GhostManSec
Server: Apache
System: Linux webm003.cluster115.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
User: eliteafr (153088)
PHP: 5.4.45
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/e/l/i/eliteafr/datapro/wp-content/plugins/themeisle-companion/dashboard/build/dashboard.js
(()=>{var e,t={20:(e,t,r)=>{"use strict";var n=r(609),o=Symbol.for("react.element"),a=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,s=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,r){var n,a={},c=null,d=null;for(n in void 0!==r&&(c=""+r),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(d=t.ref),t)i.call(t,n)&&!l.hasOwnProperty(n)&&(a[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===a[n]&&(a[n]=t[n]);return{$$typeof:o,type:e,key:c,ref:d,props:a,_owner:s.current}}t.Fragment=a,t.jsx=c,t.jsxs=c},92:(e,t,r)=>{"use strict";var n=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==r.g)return r.g;throw new Error("unable to locate global object")}();e.exports=t=n.fetch,n.fetch&&(t.default=n.fetch.bind(n)),t.Headers=n.Headers,t.Request=n.Request,t.Response=n.Response},146:(e,t,r)=>{"use strict";var n=r(363),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return n.isMemo(e)?i:s[e.$$typeof]||o}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=i;var c=Object.defineProperty,d=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,g=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(g){var o=h(r);o&&o!==g&&e(t,o,n)}var i=d(r);u&&(i=i.concat(u(r)));for(var s=l(t),f=l(r),m=0;m<i.length;++m){var v=i[m];if(!(a[v]||n&&n[v]||f&&f[v]||s&&s[v])){var b=p(r,v);try{c(t,v,b)}catch(e){}}}}return t}},363:(e,t,r)=>{"use strict";e.exports=r(799)},463:e=>{e.exports=i,i.default=i,i.stable=d,i.stableStringify=d;var t="[...]",r="[Circular]",n=[],o=[];function a(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function i(e,t,r,i){var s;void 0===i&&(i=a()),l(e,"",0,[],void 0,0,i);try{s=0===o.length?JSON.stringify(e,t,r):JSON.stringify(e,p(t),r)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==n.length;){var c=n.pop();4===c.length?Object.defineProperty(c[0],c[1],c[3]):c[0][c[1]]=c[2]}}return s}function s(e,t,r,a){var i=Object.getOwnPropertyDescriptor(a,r);void 0!==i.get?i.configurable?(Object.defineProperty(a,r,{value:e}),n.push([a,r,t,i])):o.push([t,r,e]):(a[r]=e,n.push([a,r,t]))}function l(e,n,o,a,i,c,d){var u;if(c+=1,"object"==typeof e&&null!==e){for(u=0;u<a.length;u++)if(a[u]===e)return void s(r,e,n,i);if(void 0!==d.depthLimit&&c>d.depthLimit)return void s(t,e,n,i);if(void 0!==d.edgesLimit&&o+1>d.edgesLimit)return void s(t,e,n,i);if(a.push(e),Array.isArray(e))for(u=0;u<e.length;u++)l(e[u],u,u,a,e,c,d);else{var p=Object.keys(e);for(u=0;u<p.length;u++){var h=p[u];l(e[h],h,u,a,e,c,d)}}a.pop()}}function c(e,t){return e<t?-1:e>t?1:0}function d(e,t,r,i){void 0===i&&(i=a());var s,l=u(e,"",0,[],void 0,0,i)||e;try{s=0===o.length?JSON.stringify(l,t,r):JSON.stringify(l,p(t),r)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==n.length;){var c=n.pop();4===c.length?Object.defineProperty(c[0],c[1],c[3]):c[0][c[1]]=c[2]}}return s}function u(e,o,a,i,l,d,p){var h;if(d+=1,"object"==typeof e&&null!==e){for(h=0;h<i.length;h++)if(i[h]===e)return void s(r,e,o,l);try{if("function"==typeof e.toJSON)return}catch(e){return}if(void 0!==p.depthLimit&&d>p.depthLimit)return void s(t,e,o,l);if(void 0!==p.edgesLimit&&a+1>p.edgesLimit)return void s(t,e,o,l);if(i.push(e),Array.isArray(e))for(h=0;h<e.length;h++)u(e[h],h,h,i,e,d,p);else{var g={},f=Object.keys(e).sort(c);for(h=0;h<f.length;h++){var m=f[h];u(e[m],m,h,i,e,d,p),g[m]=e[m]}if(void 0===l)return g;n.push([l,o,e]),l[o]=g}i.pop()}}function p(e){return e=void 0!==e?e:function(e,t){return t},function(t,r){if(o.length>0)for(var n=0;n<o.length;n++){var a=o[n];if(a[1]===t&&a[0]===r){r=a[2],o.splice(n,1);break}}return e.call(this,t,r)}}},609:e=>{"use strict";e.exports=window.React},625:(e,t,r)=>{"use strict";var n=r(609),o=r(848);function a(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}var i=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,s=a(function(e){return i.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),l=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,r),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{r.insertRule(e,r.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}(),c=Math.abs,d=String.fromCharCode,u=Object.assign;function p(e){return e.trim()}function h(e,t,r){return e.replace(t,r)}function g(e,t){return e.indexOf(t)}function f(e,t){return 0|e.charCodeAt(t)}function m(e,t,r){return e.slice(t,r)}function v(e){return e.length}function b(e){return e.length}function x(e,t){return t.push(e),e}var y=1,w=1,C=0,k=0,S=0,E="";function I(e,t,r,n,o,a,i){return{value:e,root:t,parent:r,type:n,props:o,children:a,line:y,column:w,length:i,return:""}}function P(e,t){return u(I("",null,null,"",null,null,0),e,{length:-e.length},t)}function R(){return S=k>0?f(E,--k):0,w--,10===S&&(w=1,y--),S}function T(){return S=k<C?f(E,k++):0,w++,10===S&&(w=1,y++),S}function O(){return f(E,k)}function N(){return k}function V(e,t){return m(E,e,t)}function A(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function z(e){return y=w=1,C=v(E=e),k=0,[]}function _(e){return E="",e}function F(e){return p(V(k-1,j(91===e?e+2:40===e?e+1:e)))}function L(e){for(;(S=O())&&S<33;)T();return A(e)>2||A(S)>3?"":" "}function D(e,t){for(;--t&&T()&&!(S<48||S>102||S>57&&S<65||S>70&&S<97););return V(e,N()+(t<6&&32==O()&&32==T()))}function j(e){for(;T();)switch(S){case e:return k;case 34:case 39:34!==e&&39!==e&&j(S);break;case 40:41===e&&j(e);break;case 92:T()}return k}function M(e,t){for(;T()&&e+S!==57&&(e+S!==84||47!==O()););return"/*"+V(t,k-1)+"*"+d(47===e?e:T())}function W(e){for(;!A(O());)T();return V(e,k)}var $="-ms-",B="-moz-",H="-webkit-",G="comm",U="rule",q="decl",K="@keyframes";function Y(e,t){for(var r="",n=b(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function X(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case q:return e.return=e.return||e.value;case G:return"";case K:return e.return=e.value+"{"+Y(e.children,n)+"}";case U:e.value=e.props.join(",")}return v(r=Y(e.children,n))?e.return=e.value+"{"+r+"}":""}function Z(e){return _(J("",null,null,null,[""],e=z(e),0,[0],e))}function J(e,t,r,n,o,a,i,s,l){for(var c=0,u=0,p=i,m=0,b=0,y=0,w=1,C=1,k=1,S=0,E="",I=o,P=a,V=n,A=E;C;)switch(y=S,S=T()){case 40:if(108!=y&&58==f(A,p-1)){-1!=g(A+=h(F(S),"&","&\f"),"&\f")&&(k=-1);break}case 34:case 39:case 91:A+=F(S);break;case 9:case 10:case 13:case 32:A+=L(y);break;case 92:A+=D(N()-1,7);continue;case 47:switch(O()){case 42:case 47:x(ee(M(T(),N()),t,r),l);break;default:A+="/"}break;case 123*w:s[c++]=v(A)*k;case 125*w:case 59:case 0:switch(S){case 0:case 125:C=0;case 59+u:-1==k&&(A=h(A,/\f/g,"")),b>0&&v(A)-p&&x(b>32?te(A+";",n,r,p-1):te(h(A," ","")+";",n,r,p-2),l);break;case 59:A+=";";default:if(x(V=Q(A,t,r,c,u,o,s,E,I=[],P=[],p),a),123===S)if(0===u)J(A,t,V,V,I,a,p,s,P);else switch(99===m&&110===f(A,3)?100:m){case 100:case 108:case 109:case 115:J(e,V,V,n&&x(Q(e,V,V,0,0,o,s,E,o,I=[],p),P),o,P,p,s,n?I:P);break;default:J(A,V,V,V,[""],P,0,s,P)}}c=u=b=0,w=k=1,E=A="",p=i;break;case 58:p=1+v(A),b=y;default:if(w<1)if(123==S)--w;else if(125==S&&0==w++&&125==R())continue;switch(A+=d(S),S*w){case 38:k=u>0?1:(A+="\f",-1);break;case 44:s[c++]=(v(A)-1)*k,k=1;break;case 64:45===O()&&(A+=F(T())),m=O(),u=p=v(E=A+=W(N())),S++;break;case 45:45===y&&2==v(A)&&(w=0)}}return a}function Q(e,t,r,n,o,a,i,s,l,d,u){for(var g=o-1,f=0===o?a:[""],v=b(f),x=0,y=0,w=0;x<n;++x)for(var C=0,k=m(e,g+1,g=c(y=i[x])),S=e;C<v;++C)(S=p(y>0?f[C]+" "+k:h(k,/&\f/g,f[C])))&&(l[w++]=S);return I(e,t,r,0===o?U:s,l,d,u)}function ee(e,t,r){return I(e,t,r,G,d(S),m(e,2,-2),0)}function te(e,t,r,n){return I(e,t,r,q,m(e,0,n),m(e,n+1,-1),n)}var re=function(e,t,r){for(var n=0,o=0;n=o,o=O(),38===n&&12===o&&(t[r]=1),!A(o);)T();return V(e,k)},ne=new WeakMap,oe=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||ne.get(r))&&!n){ne.set(e,!0);for(var o=[],a=function(e,t){return _(function(e,t){var r=-1,n=44;do{switch(A(n)){case 0:38===n&&12===O()&&(t[r]=1),e[r]+=re(k-1,t,r);break;case 2:e[r]+=F(n);break;case 4:if(44===n){e[++r]=58===O()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=d(n)}}while(n=T());return e}(z(e),t))}(t,o),i=r.props,s=0,l=0;s<a.length;s++)for(var c=0;c<i.length;c++,l++)e.props[l]=o[s]?a[s].replace(/&\f/g,i[c]):i[c]+" "+a[s]}}},ae=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function ie(e,t){switch(function(e,t){return 45^f(e,0)?(((t<<2^f(e,0))<<2^f(e,1))<<2^f(e,2))<<2^f(e,3):0}(e,t)){case 5103:return H+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return H+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return H+e+B+e+$+e+e;case 6828:case 4268:return H+e+$+e+e;case 6165:return H+e+$+"flex-"+e+e;case 5187:return H+e+h(e,/(\w+).+(:[^]+)/,H+"box-$1$2"+$+"flex-$1$2")+e;case 5443:return H+e+$+"flex-item-"+h(e,/flex-|-self/,"")+e;case 4675:return H+e+$+"flex-line-pack"+h(e,/align-content|flex-|-self/,"")+e;case 5548:return H+e+$+h(e,"shrink","negative")+e;case 5292:return H+e+$+h(e,"basis","preferred-size")+e;case 6060:return H+"box-"+h(e,"-grow","")+H+e+$+h(e,"grow","positive")+e;case 4554:return H+h(e,/([^-])(transform)/g,"$1"+H+"$2")+e;case 6187:return h(h(h(e,/(zoom-|grab)/,H+"$1"),/(image-set)/,H+"$1"),e,"")+e;case 5495:case 3959:return h(e,/(image-set\([^]*)/,H+"$1$`$1");case 4968:return h(h(e,/(.+:)(flex-)?(.*)/,H+"box-pack:$3"+$+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+H+e+e;case 4095:case 3583:case 4068:case 2532:return h(e,/(.+)-inline(.+)/,H+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(v(e)-1-t>6)switch(f(e,t+1)){case 109:if(45!==f(e,t+4))break;case 102:return h(e,/(.+:)(.+)-([^]+)/,"$1"+H+"$2-$3$1"+B+(108==f(e,t+3)?"$3":"$2-$3"))+e;case 115:return~g(e,"stretch")?ie(h(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==f(e,t+1))break;case 6444:switch(f(e,v(e)-3-(~g(e,"!important")&&10))){case 107:return h(e,":",":"+H)+e;case 101:return h(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+H+(45===f(e,14)?"inline-":"")+"box$3$1"+H+"$2$3$1"+$+"$2box$3")+e}break;case 5936:switch(f(e,t+11)){case 114:return H+e+$+h(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return H+e+$+h(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return H+e+$+h(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return H+e+$+e+e}return e}var se=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case q:e.return=ie(e.value,e.length);break;case K:return Y([P(e,{value:h(e.value,"@","@"+H)})],n);case U:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(function(e){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return Y([P(e,{props:[h(t,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return Y([P(e,{props:[h(t,/:(plac\w+)/,":"+H+"input-$1")]}),P(e,{props:[h(t,/:(plac\w+)/,":-moz-$1")]}),P(e,{props:[h(t,/:(plac\w+)/,$+"input-$1")]})],n)}return""})}}],le=function(e){var t=e.key;if("css"===t){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var n,o,a=e.stylisPlugins||se,i={},s=[];n=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r<t.length;r++)i[t[r]]=!0;s.push(e)});var c,d,u=[X,(d=function(e){c.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],p=function(e){var t=b(e);return function(r,n,o,a){for(var i="",s=0;s<t;s++)i+=e[s](r,n,o,a)||"";return i}}([oe,ae].concat(a,u));o=function(e,t,r,n){c=r,Y(Z(e?e+"{"+t.styles+"}":t.styles),p),n&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new l({key:t,container:n,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:o};return h.sheet.hydrate(s),h};function ce(e,t,r){var n="";return r.split(" ").forEach(function(r){void 0!==e[r]?t.push(e[r]+";"):r&&(n+=r+" ")}),n}var de=function(e,t,r){var n=e.key+"-"+t.name;!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles)},ue=function(e,t,r){de(e,t,r);var n=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+n:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}},pe={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},he=/[A-Z]|^ms/g,ge=/_EMO_([^_]+?)_([^]*?)_EMO_/g,fe=function(e){return 45===e.charCodeAt(1)},me=function(e){return null!=e&&"boolean"!=typeof e},ve=a(function(e){return fe(e)?e:e.replace(he,"-$&").toLowerCase()}),be=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(ge,function(e,t,r){return ye={name:t,styles:r,next:ye},t})}return 1===pe[e]||fe(e)||"number"!=typeof t||0===t?t:t+"px"};function xe(e,t,r){if(null==r)return"";var n=r;if(void 0!==n.__emotion_styles)return n;switch(typeof r){case"boolean":return"";case"object":var o=r;if(1===o.anim)return ye={name:o.name,styles:o.styles,next:ye},o.name;var a=r;if(void 0!==a.styles){var i=a.next;if(void 0!==i)for(;void 0!==i;)ye={name:i.name,styles:i.styles,next:ye},i=i.next;return a.styles+";"}return function(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=xe(e,t,r[o])+";";else for(var a in r){var i=r[a];if("object"!=typeof i){var s=i;null!=t&&void 0!==t[s]?n+=a+"{"+t[s]+"}":me(s)&&(n+=ve(a)+":"+be(a,s)+";")}else if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var l=xe(e,t,i);switch(a){case"animation":case"animationName":n+=ve(a)+":"+l+";";break;default:n+=a+"{"+l+"}"}}else for(var c=0;c<i.length;c++)me(i[c])&&(n+=ve(a)+":"+be(a,i[c])+";")}return n}(e,t,r);case"function":if(void 0!==e){var s=ye,l=r(e);return ye=s,xe(e,t,l)}}var c=r;if(null==t)return c;var d=t[c];return void 0!==d?d:c}var ye,we=/label:\s*([^\s;{]+)\s*(;|$)/g;function Ce(e,t,r){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var n=!0,o="";ye=void 0;var a=e[0];null==a||void 0===a.raw?(n=!1,o+=xe(r,t,a)):o+=a[0];for(var i=1;i<e.length;i++)o+=xe(r,t,e[i]),n&&(o+=a[i]);we.lastIndex=0;for(var s,l="";null!==(s=we.exec(o));)l+="-"+s[1];var c=function(e){for(var t,r=0,n=0,o=e.length;o>=4;++n,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(o){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(n)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)}(o)+l;return{name:c,styles:o,next:ye}}var ke=!!n.useInsertionEffect&&n.useInsertionEffect,Se=ke||function(e){return e()},Ee=ke||n.useLayoutEffect,Ie=n.createContext("undefined"!=typeof HTMLElement?le({key:"css"}):null),Pe=(Ie.Provider,function(e){return(0,n.forwardRef)(function(t,r){var o=(0,n.useContext)(Ie);return e(t,o,r)})}),Re=n.createContext({}),Te={}.hasOwnProperty,Oe="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Ne=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return de(t,r,n),Se(function(){return ue(t,r,n)}),null},Ve=Pe(function(e,t,r){var o=e.css;"string"==typeof o&&void 0!==t.registered[o]&&(o=t.registered[o]);var a=e[Oe],i=[o],s="";"string"==typeof e.className?s=ce(t.registered,i,e.className):null!=e.className&&(s=e.className+" ");var l=Ce(i,void 0,n.useContext(Re));s+=t.key+"-"+l.name;var c={};for(var d in e)Te.call(e,d)&&"css"!==d&&d!==Oe&&(c[d]=e[d]);return c.className=s,r&&(c.ref=r),n.createElement(n.Fragment,null,n.createElement(Ne,{cache:t,serialized:l,isStringTag:"string"==typeof a}),n.createElement(a,c))}),Ae=Ve;function ze(...e){return function(...t){e.forEach(e=>e?.(...t))}}const _e=(...e)=>e.map(e=>e?.trim?.()).filter(Boolean).join(" "),Fe=/^on[A-Z]/;function Le(...e){let t={};for(let r of e){for(let e in t)Fe.test(e)&&"function"==typeof t[e]&&"function"==typeof r[e]?t[e]=ze(t[e],r[e]):t[e]="className"!==e&&"class"!==e?"style"!==e?void 0!==r[e]?r[e]:t[e]:Object.assign({},t[e]??{},r[e]??{}):_e(t[e],r[e]);for(let e in r)void 0===t[e]&&(t[e]=r[e])}return t}function De(e){const t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}const je=(...e)=>e.filter(Boolean).map(e=>e.trim()).join(" "),Me=e=>null!=e&&"object"==typeof e&&!Array.isArray(e),We=e=>"string"==typeof e,$e=e=>"function"==typeof e,Be=(...e)=>{const t=e.reduce((e,t)=>(null!=t&&t.forEach(t=>e.add(t)),e),new Set([]));return Array.from(t)};r(146);var He,Ge,Ue=function(e,t){var r=arguments;if(null==t||!Te.call(t,"css"))return n.createElement.apply(void 0,r);var o=r.length,a=new Array(o);a[0]=Ae,a[1]=function(e,t){var r={};for(var n in t)Te.call(t,n)&&(r[n]=t[n]);return r[Oe]=e,r}(e,t);for(var i=2;i<o;i++)a[i]=r[i];return n.createElement.apply(null,a)};He=Ue||(Ue={}),Ge||(Ge=He.JSX||(He.JSX={}));var qe=Pe(function(e,t){var r=Ce([e.styles],void 0,n.useContext(Re)),o=n.useRef();return Ee(function(){var e=t.key+"-global",n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),a=!1,i=document.querySelector('style[data-emotion="'+e+" "+r.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==i&&(a=!0,i.setAttribute("data-emotion",e),n.hydrate([i])),o.current=[n,a],function(){n.flush()}},[t]),Ee(function(){var e=o.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==r.next&&ue(t,r.next,!0),n.tags.length){var a=n.tags[n.tags.length-1].nextElementSibling;n.before=a,n.flush()}t.insert("",r,n,!1)}},[t,r.name]),null});function Ke(e={}){const{name:t,strict:r=!0,hookName:o="useContext",providerName:a="Provider",errorMessage:i,defaultValue:s}=e,l=(0,n.createContext)(s);return l.displayName=t,[l.Provider,function e(){const t=(0,n.useContext)(l);if(!t&&r){const t=new Error(i??`${o} returned \`undefined\`. Seems you forgot to wrap component within ${a}`);throw t.name="ContextError",Error.captureStackTrace?.(t,e),t}return t},l]}const[Ye,Xe]=Ke({name:"ChakraContext",strict:!0,providerName:"<ChakraProvider />"});function Ze(e){const{value:t,children:r}=e;return(0,o.jsxs)(Ye,{value:t,children:[!t._config.disableLayers&&(0,o.jsx)(qe,{styles:t.layers.atRule}),(0,o.jsx)(qe,{styles:t._global}),r]})}const Je=(e,t)=>((e,t)=>{const r={},n={},o=Object.keys(e);for(const a of o)t(a)?n[a]=e[a]:r[a]=e[a];return[n,r]})(e,$e(t)?t:e=>t.includes(e)),Qe=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function et(e){return"string"==typeof e&&Qe.has(e)}const tt=function(e){return e.default||e}(s),rt=tt,nt=e=>"theme"!==e;let ot="undefined"!=typeof document;const at=({cache:e,serialized:t,isStringTag:r})=>{de(e,t,r);const n=Se(()=>ue(e,t,r));if(!ot&&void 0!==n){let r=t.name,a=t.next;for(;void 0!==a;)r=je(r,a.name),a=a.next;return(0,o.jsx)("style",{"data-emotion":je(e.key,r),dangerouslySetInnerHTML:{__html:n},nonce:e.sheet.nonce})}return null},it={path:["d"],text:["x","y"],circle:["cx","cy","r"],rect:["width","height","x","y","rx","ry"],ellipse:["cx","cy","rx","ry"],g:["transform"],stop:["offset","stopOpacity"]},st=((e,t={},r={})=>{if(a=it,i=e,Object.prototype.hasOwnProperty.call(a,i)){r.forwardProps||(r.forwardProps=[]);const t=it[e];r.forwardProps=Be([...r.forwardProps,...t])}var a,i;const s=e.__emotion_real===e,l=s&&e.__emotion_base||e;let c,d;void 0!==r&&(c=r.label,d=r.target);let u=[];const p=Pe((a,i,c)=>{const{cva:p,isValidProperty:h}=Xe(),g=t.__cva__?t:p(t),f=dt(e.__emotion_cva,g);var m;!r.shouldForwardProp&&r.forwardProps&&(r.shouldForwardProp=(m=r.forwardProps,(e,t)=>!!m.includes(e)||!t?.includes(e)&&!h(e)));const v=((e,t,r)=>{let n;if(t){const r=t.shouldForwardProp;n=e.__emotion_forwardProp&&r?t=>e.__emotion_forwardProp(t)&&r(t):r}return"function"!=typeof n&&r&&(n=e.__emotion_forwardProp),n})(e,r,s)||((t,r)=>{const n="string"==typeof e&&e.charCodeAt(0)>96?rt:nt,o=!r?.includes(t)&&!h(t);return n(t)&&o}),b=n.useMemo(()=>Object.assign({},r.defaultProps,De(a)),[a]),{props:x,styles:y}=function(e,t,r){const{css:o,isValidProperty:a}=Xe(),{children:i,...s}=e,l=(0,n.useMemo)(()=>{const[e,n]=Je(s,e=>r(e,t.variantKeys)),[o,i]=Je(n,t.variantKeys),[l,c]=Je(i,a);return{forwardedProps:e,variantProps:o,styleProps:l,elementProps:c}},[t.variantKeys,r,s,a]),{css:c,...d}=l.styleProps,u=(0,n.useMemo)(()=>{const e={...l.variantProps};return t.variantKeys.includes("colorPalette")||(e.colorPalette=s.colorPalette),t.variantKeys.includes("orientation")||(e.orientation=s.orientation),t(e)},[t,l.variantProps,s.colorPalette,s.orientation]);return{styles:(0,n.useMemo)(()=>{return o(u,...(e=c,(Array.isArray(e)?e:[e]).filter(Boolean).flat()),d);var e},[o,u,c,d]),props:{...l.forwardedProps,...l.elementProps,children:i}}}(b,f,v);let w="",C=[y],k=x;if(null==x.theme){k={};for(let e in x)k[e]=x[e];k.theme=n.useContext(Re)}"string"==typeof x.className?w=ce(i.registered,C,x.className):null!=x.className&&(w=je(w,x.className));const S=Ce(u.concat(C),i.registered,k);w=je(w,`${i.key}-${S.name}`),void 0!==d&&(w=je(w,d));const E=!v("as");let I=E&&x.as||l,P={};for(let e in x)if(!E||"as"!==e){if(et(e)){P[e.replace("html","").toLowerCase()]=x[e];continue}v(e)&&(P[e]=x[e])}P.className=w.trim(),P.ref=c;const R=r.forwardAsChild||r.forwardProps?.includes("asChild");if(x.asChild&&!R){const e=n.Children.only(x.children);I=e.type,P.children=null,Reflect.deleteProperty(P,"asChild"),P=Le(P,e.props),P.ref=function(...e){return t=>{e.forEach(e=>{!function(e,t){if(null!=e)if("function"!=typeof e)try{e.current=t}catch(r){throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}else e(t)}(e,t)})}}(c,function(e){const t=n.version;return We(t)?t.startsWith("18.")?e?.ref:e?.props?.ref:e?.ref}(e))}return P.as&&R?(P.as=void 0,(0,o.jsxs)(n.Fragment,{children:[(0,o.jsx)(at,{cache:i,serialized:S,isStringTag:"string"==typeof I}),(0,o.jsx)(I,{asChild:!0,...P,children:(0,o.jsx)(x.as,{children:P.children})})]})):(0,o.jsxs)(n.Fragment,{children:[(0,o.jsx)(at,{cache:i,serialized:S,isStringTag:"string"==typeof I}),(0,o.jsx)(I,{...P})]})});return p.displayName=void 0!==c?c:`chakra(${"string"==typeof l?l:l.displayName||l.name||"Component"})`,p.__emotion_real=p,p.__emotion_base=l,p.__emotion_forwardProp=r.shouldForwardProp,p.__emotion_cva=t,Object.defineProperty(p,"toString",{value:()=>`.${d}`}),p}).bind(),lt=new Map,ct=new Proxy(st,{apply:(e,__,t)=>st(...t),get:(e,t)=>(lt.has(t)||lt.set(t,st(t)),lt.get(t))}),dt=(e,t)=>e&&!t?e:!e&&t?t:e.merge(t),ut=ct("div");ut.displayName="Box";const pt=window.wp.element;var ht=r(92),gt=r.n(ht);const ft=async(e,t=!1,r={},n=!1,o="POST")=>{const a={method:o,headers:{Accept:"application/json","Content-Type":n?"application/x-www-form-urlencoded":"application/json","x-wp-nonce":obfxDash.nonce}};return"POST"===o&&(a.body=n?r:JSON.stringify(r)),await gt()(e,a).then(e=>t?e:e.json())},mt=window.wp.i18n,vt={modules:(0,mt.__)("Available Modules","themeisle-companion"),plugins:(0,mt.__)("Recommended Plugins","themeisle-companion")},bt=e=>{const t=document.createElement("textarea");return t.innerHTML=e,t.value};var xt=(e,...t)=>e.concat(t),yt=(e,...t)=>e.filter(e=>!t.includes(e)),wt=(e,t)=>((e,t)=>-1!==e.indexOf(t))(e,t)?yt(e,t):xt(e,t);var Ct=e=>"Array"===e?.constructor.name,kt=(e,t)=>{if(Object.is(e,t))return!0;if(null==e&&null!=t||null!=e&&null==t)return!1;if("function"==typeof e?.isEqual&&"function"==typeof t?.isEqual)return e.isEqual(t);if("function"==typeof e&&"function"==typeof t)return e.toString()===t.toString();if(Ct(e)&&Ct(t))return((e,t)=>{if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!kt(e[r],t[r]))return!1;return!0})(Array.from(e),Array.from(t));if("object"!=typeof e||"object"!=typeof t)return!1;const r=Object.keys(t??Object.create(null)),n=r.length;for(let t=0;t<n;t++)if(!Reflect.has(e,r[t]))return!1;for(let o=0;o<n;o++){const n=r[o];if(!kt(e[n],t[n]))return!1}return!0},St=e=>null!=e&&"object"==typeof e,Et=e=>St(e)&&!(e=>Array.isArray(e))(e),It=e=>"string"==typeof e,Pt=e=>"function"==typeof e,Rt=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),Tt=Function.prototype.toString,Ot=Tt.call(Object),Nt=e=>(e=>"object"==typeof e&&null!==e&&"$$typeof"in e&&"props"in e)(e)||(e=>"object"==typeof e&&null!==e&&"__v_isVNode"in e)(e),Vt=(e,...t)=>("function"==typeof e?e(...t):e)??void 0,At=e=>e(),zt=()=>{},_t=(...e)=>(...t)=>{e.forEach(function(e){e?.(...t)})},Ft=(()=>{let e=0;return()=>(e++,e.toString(36))})();function Lt(e,t,...r){if(e in t){const n=t[e];return Pt(n)?n(...r):n}const n=new Error(`No matching key: ${JSON.stringify(e)} in ${JSON.stringify(Object.keys(t))}`);throw Error.captureStackTrace?.(n,Lt),n}var Dt=(e,t)=>{try{return e()}catch(e){return e instanceof Error&&Error.captureStackTrace?.(e,Dt),t?.()}},{floor:jt,abs:Mt,round:Wt,min:$t,max:Bt,pow:Ht,sign:Gt}=Math,Ut=e=>Number.isNaN(e),qt=e=>Ut(e)?0:e,Kt=(e,t)=>(e%t+t)%t,Yt=(e,t,r)=>$t(Bt(qt(e),t),r),Xt=(e,t)=>{let r=e,n=t.toString(),o=n.indexOf("."),a=o>=0?n.length-o:0;if(a>0){let e=Ht(10,a);r=Wt(r*e)/e}return r},Zt=(e,t)=>"number"==typeof t?jt(e*t+.5)/t:Wt(e),Jt=(e,t,r,n)=>{const o=null!=t?Number(t):0,a=Number(r),i=(e-o)%n;let s=2*Mt(i)>=n?e+Gt(i)*(n-Mt(i)):e-i;if(s=Xt(s,n),!Ut(o)&&s<o)s=o;else if(!Ut(a)&&s>a){const e=jt((a-o)/n),t=o+e*n;s=e<=0||t<o?a:t}return Xt(s,n)},Qt=(e,t,r)=>e[t]===r?e:[...e.slice(0,t),r,...e.slice(t+1)],er=(e,t=0,r=10)=>{const n=Math.pow(r,t);return Wt(e*n)/n},tr=e=>{if(!Number.isFinite(e))return 0;let t=1,r=0;for(;Math.round(e*t)/t!==e;)t*=10,r+=1;return r},rr=(e,t,r)=>{let n="+"===t?e+r:e-r;if(e%1!=0||r%1!=0){const o=10**Math.max(tr(e),tr(r));e=Math.round(e*o),r=Math.round(r*o),n="+"===t?e+r:e-r,n/=o}return n};function nr(e){if(!(e=>{if(!St(e)||"[object Object]"!=(e=>Object.prototype.toString.call(e))(e)||Nt(e))return!1;const t=Object.getPrototypeOf(e);if(null===t)return!0;const r=Rt(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Tt.call(r)==Ot})(e)||void 0===e)return e;const t=Reflect.ownKeys(e).filter(e=>"string"==typeof e),r={};for(const n of t){const t=e[n];void 0!==t&&(r[n]=nr(t))}return r}var or=e=>function(t){return function(e,t){const r={},n={},o=new Set(t);for(const t in e)o.has(t)?n[t]=e[t]:r[t]=e[t];return[n,r]}(t,e)};function ar(e,t){const r=performance.now();let n;return n=requestAnimationFrame(function o(a){a-r>=t?e():n=requestAnimationFrame(o)}),()=>cancelAnimationFrame(n)}function ir(...e){1===e.length?e[0]:e[1],2!==e.length||e[0]}function sr(e,t){if(null==e)throw new Error(t())}var lr=e=>Math.max(0,Math.min(1,e)),cr=(...e)=>t=>e.reduce((e,t)=>t(e),t),dr=()=>{},ur=e=>"object"==typeof e&&null!==e,pr=2147483647,hr=e=>e?"":void 0,gr=e=>e?"true":void 0,fr=e=>ur(e)&&1===e.nodeType&&"string"==typeof e.nodeName,mr=e=>ur(e)&&9===e.nodeType,vr=e=>fr(e)?e.localName||"":"#document",br=e=>(e=>ur(e)&&void 0!==e.nodeType)(e)&&11===e.nodeType&&"host"in e,xr=/(textarea|select)/;function yr(e,t){if(!e||!t)return!1;if(!fr(e)||!fr(t))return!1;const r=t.getRootNode?.();if(e===t)return!0;if(e.contains(t))return!0;if(r&&br(r)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function wr(e){return mr(e)?e:(e=>ur(e)&&e===e.window)(e)?e.document:e?.ownerDocument??document}function Cr(e){return br(e)?Cr(e.host):mr(e)?e.defaultView??window:fr(e)?e.ownerDocument?.defaultView??window:window}var kr=new WeakMap;function Sr(e){return kr.has(e)||kr.set(e,Cr(e).getComputedStyle(e)),kr.get(e)}var Er=()=>"undefined"!=typeof document,Ir=e=>Er()&&e.test(function(){const e=navigator.userAgentData;return e?.platform??navigator.platform}()),Pr=e=>Er()&&e.test(function(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:e,version:t})=>`${e}/${t}`).join(" "):navigator.userAgent}()),Rr=()=>Er()&&!!navigator.maxTouchPoints,Tr=()=>Ir(/^iPhone/i)||Ir(/^iPad/i)||Or()&&navigator.maxTouchPoints>1,Or=()=>Ir(/^Mac/i),Nr=()=>{return(Or()||Tr())&&(e=/apple/i,Er()&&e.test(navigator.vendor));var e};function Vr(e){const t=function(e){return e.composedPath?.()??e.nativeEvent?.composedPath?.()}(e);return t?.[0]??e.target}var Ar=e=>yr(e.currentTarget,Vr(e));function zr(e){return function(e){return e.nativeEvent??e}(e).isComposing||229===e.keyCode}var _r=e=>0===e.button,Fr=e=>e.ctrlKey||e.altKey||e.metaKey,Lr={Up:"ArrowUp",Down:"ArrowDown",Esc:"Escape"," ":"Space",",":"Comma",Left:"ArrowLeft",Right:"ArrowRight"},Dr={ArrowLeft:"ArrowRight",ArrowRight:"ArrowLeft"};function jr(e,t={}){const{dir:r="ltr",orientation:n="horizontal"}=t;let o=e.key;return o=Lr[o]??o,"rtl"===r&&"horizontal"===n&&o in Dr&&(o=Dr[o]),o}var Mr=new Set(["PageUp","PageDown"]),Wr=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]);function $r(e){return e.ctrlKey||e.metaKey?.1:Mr.has(e.key)||e.shiftKey&&Wr.has(e.key)?10:1}function Br(e,t="client"){const r=(e=>"touches"in e&&e.touches.length>0)(e)?e.touches[0]||e.changedTouches[0]:e;return{x:r[`${t}X`],y:r[`${t}Y`]}}var Hr=(e,t,r,n)=>{const o="function"==typeof e?e():e;return o?.addEventListener(t,r,n),()=>{o?.removeEventListener(t,r,n)}};function Gr(e,t){const{type:r="HTMLInputElement",property:n="value"}=t,o=Cr(e)[r].prototype;return Object.getOwnPropertyDescriptor(o,n)??{}}function Ur(e,t,r="value"){if(!e)return;const n=function(e){return"input"===e.localName?"HTMLInputElement":"textarea"===e.localName?"HTMLTextAreaElement":"select"===e.localName?"HTMLSelectElement":void 0}(e);if(n){const o=Gr(e,{type:n,property:r});o.set?.call(e,t)}e.setAttribute(r,t)}function qr(e,t){if(!e)return;const r=Gr(e,{type:"HTMLInputElement",property:"checked"});r.set?.call(e,t),t?e.setAttribute("checked",""):e.removeAttribute("checked")}function Kr(e,t){const{value:r,bubbles:n=!0}=t;if(!e)return;const o=Cr(e);e instanceof o.HTMLInputElement&&(Ur(e,`${r}`),e.dispatchEvent(new o.Event("input",{bubbles:n})))}function Yr(e,t){const{checked:r,bubbles:n=!0}=t;if(!e)return;const o=Cr(e);e instanceof o.HTMLInputElement&&(qr(e,r),e.dispatchEvent(new o.Event("click",{bubbles:n})))}function Xr(e,t){if(!e)return;const r=function(e){return function(e){return e.matches("textarea, input, select, button")}(e)?e.form:e.closest("form")}(e),n=e=>{e.defaultPrevented||t()};return r?.addEventListener("reset",n,{passive:!0}),()=>r?.removeEventListener("reset",n)}function Zr(e,t){const r=e?.closest("fieldset");if(!r)return;t(r.disabled);const n=new(Cr(r).MutationObserver)(()=>t(r.disabled));return n.observe(r,{attributes:!0,attributeFilter:["disabled"]}),()=>n.disconnect()}function Jr(e,t){if(!e)return;const{onFieldsetDisabledChange:r,onFormReset:n}=t,o=[Xr(e,n),Zr(e,r)];return()=>o.forEach(e=>e?.())}var Qr=e=>fr(e)&&"IFRAME"===e.tagName,en="input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false']), details > summary:first-of-type",tn=(e,t=!1)=>{if(!e)return[];const r=Array.from(e.querySelectorAll(en));(1==t||"if-empty"==t&&0===r.length)&&fr(e)&&rn(e)&&r.unshift(e);const n=r.filter(rn);return n.forEach((e,t)=>{if(Qr(e)&&e.contentDocument){const r=e.contentDocument.body;n.splice(t,1,...tn(r))}}),n};function rn(e){return!(!e||e.closest("[inert]"))&&e.matches(en)&&!!fr(t=e)&&(t.offsetWidth>0||t.offsetHeight>0||t.getClientRects().length>0);var t}function nn(e,t){if(!e)return[];const r=Array.from(e.querySelectorAll(en)),n=r.filter(on);return t&&on(e)&&n.unshift(e),n.forEach((e,t)=>{if(Qr(e)&&e.contentDocument){const r=nn(e.contentDocument.body);n.splice(t,1,...r)}}),!n.length&&t?r:n}function on(e){return null!=e&&e.tabIndex>0||rn(e)&&!(e=>parseInt(e.getAttribute("tabindex")||"0",10)<0)(e)}function an(e){const{root:t,getInitialEl:r,filter:n,enabled:o=!0}=e;if(!o)return;let a=null;if(a||(a="function"==typeof r?r():r),a||(a=t?.querySelector("[data-autofocus],[autofocus]")),!a){const e=nn(t);a=n?e.filter(n)[0]:e[0]}return a||t||void 0}function sn(e){const t=new Set;function r(e){const r=globalThis.requestAnimationFrame(e);t.add(()=>globalThis.cancelAnimationFrame(r))}return r(()=>r(e)),function(){t.forEach(e=>e())}}function ln(e){let t;const r=globalThis.requestAnimationFrame(()=>{t=e()});return()=>{globalThis.cancelAnimationFrame(r),t?.()}}function cn(e,t){const{defer:r}=t,n=r?ln:e=>e(),o=[];return o.push(n(()=>{const r="function"==typeof e?e():e;o.push(function(e,t){if(!e)return;const{attributes:r,callback:n}=t,o=new(e.ownerDocument.defaultView||window).MutationObserver(e=>{for(const t of e)"attributes"===t.type&&t.attributeName&&r.includes(t.attributeName)&&n(t)});return o.observe(e,{attributes:!0,attributeFilter:r}),()=>o.disconnect()}(r,t))})),()=>{o.forEach(e=>e?.())}}function dn(e){const t=()=>{const t=Cr(e);e.dispatchEvent(new t.MouseEvent("click"))};Pr(/Firefox/i)?function(e,t,r){const n=ln(()=>{e.removeEventListener(t,o,!0),r()}),o=()=>{n(),r()};e.addEventListener(t,o,{once:!0,capture:!0})}(e,"keyup",t):queueMicrotask(t)}function un(e){const t=function(e){if("html"===vr(e))return e;const t=e.assignedSlot||e.parentNode||br(e)&&e.host||wr(e).documentElement;return br(t)?t.host:t}(e);return function(e){return["html","body","#document"].includes(vr(e))}(t)?wr(t).body:fr(t)&&gn(t)?t:un(t)}var pn=/auto|scroll|overlay|hidden|clip/,hn=new Set(["inline","contents"]);function gn(e){const t=Cr(e),{overflow:r,overflowX:n,overflowY:o,display:a}=t.getComputedStyle(e);return pn.test(r+o+n)&&!hn.has(a)}function fn(e,t){const{rootEl:r,...n}=t||{};e&&r&&gn(r)&&function(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}(r)&&e.scrollIntoView(n)}function mn(e,t){const{left:r,top:n,width:o,height:a}=t.getBoundingClientRect(),i={x:e.x-r,y:e.y-n},s={x:lr(i.x/o),y:lr(i.y/a)};return{offset:i,percent:s,getPercentValue:function(e={}){const{dir:t="ltr",orientation:r="horizontal",inverted:n}=e,o="object"==typeof n?n.x:n,a="object"==typeof n?n.y:n;return"horizontal"===r?"rtl"===t||o?1-s.x:s.x:a?1-s.y:s.y}}}var vn="default",bn="",xn=new WeakMap;function yn(e={}){const{defer:t,target:r,...n}=e,o=t?ln:e=>e(),a=[];return a.push(o(()=>{const e="function"==typeof r?r():r;a.push(function(e={}){const{target:t,doc:r}=e,n=r??document,o=n.documentElement;return Tr()?("default"===vn&&(bn=o.style.webkitUserSelect,o.style.webkitUserSelect="none"),vn="disabled"):t&&(xn.set(t,t.style.userSelect),t.style.userSelect="none"),()=>function(e={}){const{target:t,doc:r}=e,n=(r??document).documentElement;if(Tr()){if("disabled"!==vn)return;vn="restoring",setTimeout(()=>{sn(()=>{"restoring"===vn&&("none"===n.style.webkitUserSelect&&(n.style.webkitUserSelect=bn||""),bn="",vn="default")})},300)}else if(t&&xn.has(t)){const e=xn.get(t);"none"===t.style.userSelect&&(t.style.userSelect=e??""),""===t.getAttribute("style")&&t.removeAttribute("style"),xn.delete(t)}}({target:t,doc:n})}({...n,target:e}))})),()=>{a.forEach(e=>e?.())}}function wn(e){const{pointerNode:t,keyboardNode:r=t,onPress:n,onPressStart:o,onPressEnd:a,isValidKey:i=e=>"Enter"===e.key}=e;if(!t)return dr;const s=Cr(t),l=wr(t);let c=dr,d=dr,u=dr;const p=e=>({point:Br(e),event:e});function h(e){o?.(p(e))}function g(e){a?.(p(e))}const f=Hr(t,"pointerdown",e=>{d();const o=Hr(s,"pointerup",e=>{const r=Vr(e);yr(t,r)?n?.(p(e)):a?.(p(e))},{passive:!n,once:!0}),i=Hr(s,"pointercancel",g,{passive:!a,once:!0});d=cr(o,i),l.activeElement===r&&"mouse"===e.pointerType&&e.preventDefault(),h(e)},{passive:!o}),m=Hr(r,"focus",function(){const e=Hr(r,"keydown",e=>{i(e)&&(d(),d=Hr(r,"keyup",e=>{if(!i(e))return;const t=new s.PointerEvent("pointerup"),r=p(t);n?.(r),a?.(r)}),h(new s.PointerEvent("pointerdown")))}),t=Hr(r,"blur",()=>{g(new s.PointerEvent("pointercancel"))});u=cr(e,t)});return c=cr(f,m),()=>{c(),d(),u()}}function Cn(e,t){return Array.from(e?.querySelectorAll(t)??[])}function kn(e,t){return e?.querySelector(t)??null}var Sn=e=>e.id;function En(e,t,r=Sn){return e.find(e=>r(e)===t)}function In(e,t,r=Sn){const n=En(e,t,r);return n?e.indexOf(n):-1}function Pn(e,t){const{onEntry:r,measure:n,box:o="border-box"}=t,a=(Array.isArray(e)?e:[e]).filter(fr),i=Cr(a[0]),s=e=>{const t=a.map(e=>n(e));r({rects:t,entries:e})};s([]);const l=new i.ResizeObserver(s);return a.forEach(e=>l.observe(e,{box:o})),()=>l.disconnect()}function Rn(e,t){if(!e)return dr;const r=Object.keys(t).reduce((t,r)=>(t[r]=e.style.getPropertyValue(r),t),{});return Object.assign(e.style,t),()=>{Object.assign(e.style,r),0===e.style.length&&e.removeAttribute("style")}}function Tn(e,t){const{state:r,activeId:n,key:o,timeout:a=350,itemToId:i}=t,s=r.keysSoFar+o,l=s.length>1&&Array.from(s).every(e=>e===s[0])?s[0]:s,c=function(e,t,r,n=Sn){const o=r?In(e,r,n):-1;let a=r?((e,t)=>e.map((r,n)=>e[(Math.max(t,0)+n)%e.length]))(e,o):e;return 1===t.length&&(a=a.filter(e=>n(e)!==r)),a.find(e=>{return o=e,r=(o.dataset?.valuetext??o.textContent??"").split("").map(e=>{const t=e.charCodeAt(0);return t>0&&t<128?e:t>=128&&t<=255?`/x${t.toString(16)}`.replace("/","\\"):""}).join("").trim(),n=t,r.trim().toLowerCase().startsWith(n.toLowerCase());var r,n,o})}(e.slice(),l,n,i);function d(){clearTimeout(r.timer),r.timer=-1}return function e(t){r.keysSoFar=t,d(),""!==t&&(r.timer=+setTimeout(()=>{e(""),d()},a))}(s),c}var On=Object.assign(Tn,{defaultOptions:{keysSoFar:"",timer:-1},isValidEvent:function(e){return 1===e.key.length&&!e.ctrlKey&&!e.metaKey}}),Nn={border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"},Vn=1e3/60;var An=(...e)=>e.map(e=>e?.trim?.()).filter(Boolean).join(" "),zn=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g,Fn=e=>{const t={};let r;for(;r=zn.exec(e);)t[r[1]]=r[2];return t},Ln=(e,t)=>{if(It(e)){if(It(t))return`${e};${t}`;e=Fn(e)}else It(t)&&(t=Fn(t));return Object.assign({},e??{},t??{})};function Dn(...e){let t={};for(let r of e){for(let e in t)e.startsWith("on")&&"function"==typeof t[e]&&"function"==typeof r[e]?t[e]=_t(r[e],t[e]):t[e]="className"!==e&&"class"!==e?"style"!==e?void 0!==r[e]?r[e]:t[e]:Ln(t[e],r[e]):An(t[e],r[e]);for(let e in r)void 0===t[e]&&(t[e]=r[e])}return t}function jn(e,t,r){let n,o=[];return a=>{const i=e(a);return i.length!==o.length||i.some((e,t)=>!kt(o[t],e))?(o=i,n=t(...i),r?.onChange?.(n),n):n}}var Mn=(e=>(e.NotStarted="Not Started",e.Started="Started",e.Stopped="Stopped",e))(Mn||{}),Wn="__init__";function $n(e={}){const{name:t,strict:r=!0,hookName:o="useContext",providerName:a="Provider",errorMessage:i,defaultValue:s}=e,l=(0,n.createContext)(s);return l.displayName=t,[l.Provider,function e(){const t=(0,n.useContext)(l);if(!t&&r){const t=new Error(i??`${o} returned \`undefined\`. Seems you forgot to wrap component within ${a}`);throw t.name="ContextError",Error.captureStackTrace?.(t,e),t}return t},l]}const[Bn,Hn]=$n({name:"RenderStrategyContext",hookName:"useRenderStrategyContext",providerName:"<RenderStrategyPropsProvider />"}),Gn=e=>(e=>["lazyMount","unmountOnExit"].reduce((e,t)=>{const[r,n]=e,o=t;return void 0!==n[o]&&(r[o]=n[o]),delete n[o],[r,n]},[{},{...e}]))(e);function Un(...e){return t=>{const r=[];for(const n of e)if("function"==typeof n){const e=n(t);"function"==typeof e&&r.push(e)}else n&&(n.current=t);if(r.length)return()=>{for(const e of r)e()}}}const qn=e=>{const t=(0,n.memo)((0,n.forwardRef)((t,r)=>{const{asChild:o,children:a,...i}=t;if(!o)return(0,n.createElement)(e,{...i,ref:r},a);const s=n.Children.only(a);if(!(0,n.isValidElement)(s))return null;const l=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}(s);return(0,n.cloneElement)(s,{...Dn(i,s.props),ref:r?Un(r,l):l})}));return t.displayName=e.displayName||e.name,t},Kn=(()=>{const e=new Map;return new Proxy(qn,{apply:(e,t,r)=>qn(r[0]),get(t,r){const n=r;return e.has(n)||e.set(n,qn(n)),e.get(n)}})})(),[Yn,Xn]=$n({name:"TabsContext",hookName:"useTabsContext",providerName:"<TabsProvider />"}),Zn=(0,n.forwardRef)((e,t)=>{const[r,n]=Gn(e),[{value:a},i]=(e=>["value"].reduce((e,t)=>{const[r,n]=e,o=t;return void 0!==n[o]&&(r[o]=n[o]),delete n[o],[r,n]},[{},{...e}]))(n),s=Dn(a.getRootProps(),i);return(0,o.jsx)(Yn,{value:a,children:(0,o.jsx)(Bn,{value:r,children:(0,o.jsx)(Kn.div,{...s,ref:t})})})});Zn.displayName="TabsRootProvider";const Jn=window.ReactDOM;var Qn=()=>e=>Array.from(new Set(e)),eo=void 0!==globalThis.document?n.useLayoutEffect:n.useEffect;function to(e){const t=e().value??e().defaultValue,r=e().isEqual??Object.is,[o]=(0,n.useState)(t),[a,i]=(0,n.useState)(o),s=void 0!==e().value,l=(0,n.useRef)(a);l.current=s?e().value:a;const c=(0,n.useRef)(l.current);return eo(()=>{c.current=l.current},[a,e().value]),{initial:o,ref:l,get:function(){return s?e().value:a},set(t){(e().sync?Jn.flushSync:At)(()=>(t=>{const n=c.current,o=Pt(t)?t(n):t;e().debug&&console.log(`[bindable > ${e().debug}] setValue`,{next:o,prev:n}),s||i(o),r(o,n)||e().onChange?.(o,n)})(t))},invoke(t,r){e().onChange?.(t,r)},hash:t=>e().hash?.(t)??String(t)}}to.cleanup=e=>{(0,n.useEffect)(()=>e,[])},to.ref=e=>{const t=(0,n.useRef)(e);return{get:()=>t.current,set:e=>{t.current=e}}};var ro=(e,t)=>{const r=(0,n.useRef)(!1),o=(0,n.useRef)(!1);(0,n.useEffect)(()=>{if(r.current&&o.current)return t();o.current=!0},[...(e??[]).map(e=>"function"==typeof e?e():e)]),(0,n.useEffect)(()=>(r.current=!0,()=>{r.current=!1}),[])};function no(e,t={}){const r=(0,n.useMemo)(()=>{const{id:e,ids:r,getRootNode:n}=t;return function(e){const t=()=>e.getRootNode?.()??document,r=()=>wr(t()),n=()=>function(e){let t=e.activeElement;for(;t?.shadowRoot;){const e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}(t());return{...e,getRootNode:t,getDoc:r,getWin:()=>r().defaultView??window,getActiveElement:n,isActiveElement:e=>e===n(),getById:e=>t().getElementById(e)}}({id:e,ids:r,getRootNode:n})},[t]),o=(...t)=>{e.debug&&console.log(...t)},a=function(e){const t=oo(e);return function(e){return t.current[e]}}(e.props?.({props:nr(t),scope:r})??t),i=e.context?.({prop:a,bindable:to,scope:r,flush:ao,getContext:()=>l,getComputed:()=>w,getRefs:()=>f,getEvent:()=>h()}),s=oo(i),l={get:e=>s.current?.[e].ref.current,set(e,t){s.current?.[e].set(t)},initial:e=>s.current?.[e].initial,hash(e){const t=s.current?.[e].get();return s.current?.[e].hash(t)}},c=(0,n.useRef)(new Map),d=(0,n.useRef)(null),u=(0,n.useRef)(null),p=(0,n.useRef)({type:""}),h=()=>({...p.current,current:()=>p.current,previous:()=>u.current}),g=()=>({...C,matches:(...e)=>e.includes(C.ref.current),hasTag:t=>!!e.states[C.ref.current]?.tags?.includes(t)}),f=function(e){const t=(0,n.useRef)(e);return{get:e=>t.current[e],set(e,r){t.current[e]=r}}}(e.refs?.({prop:a,context:l})??{}),m=()=>({state:g(),context:l,event:h(),prop:a,send:E,action:v,guard:b,track:ro,refs:f,computed:w,flush:ao,scope:r,choose:y}),v=t=>{const r=Pt(t)?t(m()):t;if(!r)return;const n=r.map(t=>{const r=e.implementations?.actions?.[t];return r||ir(`[zag-js] No implementation found for action "${JSON.stringify(t)}"`),r});for(const e of n)e?.(m())},b=t=>Pt(t)?t(m()):e.implementations?.guards?.[t](m()),x=t=>{const r=Pt(t)?t(m()):t;if(!r)return;const n=r.map(t=>{const r=e.implementations?.effects?.[t];return r||ir(`[zag-js] No implementation found for effect "${JSON.stringify(t)}"`),r}),o=[];for(const e of n){const t=e?.(m());t&&o.push(t)}return()=>o.forEach(e=>e?.())},y=e=>{return(t=e,null==t?[]:Array.isArray(t)?t:[t]).find(e=>{let t=!e.guard;return It(e.guard)?t=!!b(e.guard):Pt(e.guard)&&(t=e.guard(m())),t});var t},w=t=>(sr(e.computed,()=>"[zag-js] No computed object found on machine"),(0,e.computed[t])({context:l,event:h(),prop:a,refs:f,scope:r,computed:w})),C=to(()=>({defaultValue:e.initialState({prop:a}),onChange(t,r){if(r){const e=c.current.get(r);e?.(),c.current.delete(r)}r&&v(e.states[r]?.exit),v(d.current?.actions);const n=x(e.states[t]?.effects);if(n&&c.current.set(t,n),r===Wn){v(e.entry);const t=x(e.effects);t&&c.current.set(Wn,t)}v(e.states[t]?.entry)}})),k=(0,n.useRef)(void 0),S=(0,n.useRef)(Mn.NotStarted);eo(()=>{queueMicrotask(()=>{const e=S.current===Mn.Started;S.current=Mn.Started,o(e?"rehydrating...":"initializing...");const t=k.current??C.initial;C.invoke(t,e?C.get():Wn)});const t=c.current,r=C.ref.current;return()=>{o("unmounting..."),k.current=r,S.current=Mn.Stopped,t.forEach(e=>e?.()),c.current=new Map,d.current=null,queueMicrotask(()=>{v(e.exit)})}},[]);const E=t=>{queueMicrotask(()=>{if(S.current!==Mn.Started)return;u.current=p.current,p.current=t,o("send",t);let r="ref"in C?C.ref.current:C.get();const n=e.states[r].on?.[t.type]??e.on?.[t.type],a=y(n);if(!a)return;d.current=a;const i=a.target??r;o("transition",a);const s=i!==r;s?(0,Jn.flushSync)(()=>C.set(i)):a.reenter&&!s?C.invoke(r,r):v(a.actions??[])})};return e.watch?.(m()),{state:g(),send:E,context:l,prop:a,scope:r,refs:f,computed:w,event:h(),getStatus:()=>S.current}}function oo(e){const t=(0,n.useRef)(e);return t.current=e,t}function ao(e){queueMicrotask(()=>{(0,Jn.flushSync)(()=>e())})}var io,so=(io=e=>e,new Proxy({},{get:(e,t)=>"style"===t?e=>({style:e}.style):io})),lo=(e,t=[])=>({parts:(...r)=>{if(uo(t))return lo(e,r);throw new Error("createAnatomy().parts(...) should only be called once. Did you mean to use .extendWith(...) ?")},extendWith:(...r)=>lo(e,[...t,...r]),omit:(...r)=>lo(e,t.filter(e=>!r.includes(e))),rename:e=>lo(e,t),keys:()=>t,build:()=>[...new Set(t)].reduce((t,r)=>Object.assign(t,{[r]:{selector:[`&[data-scope="${co(e)}"][data-part="${co(r)}"]`,`& [data-scope="${co(e)}"][data-part="${co(r)}"]`].join(", "),attrs:{"data-scope":co(e),"data-part":co(r)}}}),{})}),co=e=>e.replace(/([A-Z])([A-Z])/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),uo=e=>0===e.length,po=lo("tabs").parts("root","list","trigger","content","indicator").build(),ho=e=>e.ids?.list??`tabs:${e.id}:list`,go=(e,t)=>e.ids?.content??`tabs:${e.id}:content-${t}`,fo=(e,t)=>e.ids?.trigger??`tabs:${e.id}:trigger-${t}`,mo=e=>e.ids?.indicator??`tabs:${e.id}:indicator`,vo=(e,t)=>e.getById(fo(e,t)),bo=e=>e.getById(mo(e)),xo=e=>{const t=`[role=tab][data-ownedby='${CSS.escape(ho(e))}']:not([disabled])`;return Cn((e=>e.getById(ho(e)))(e),t)},yo=e=>({left:e?.offsetLeft??0,top:e?.offsetTop??0,width:e?.offsetWidth??0,height:e?.offsetHeight??0}),wo=e=>({width:`${e.width}px`,height:`${e.height}px`,left:`${e.left}px`,top:`${e.top}px`}),{createMachine:Co}={guards:{and:(...e)=>function(t){return e.every(e=>t.guard(e))},or:(...e)=>function(t){return e.some(e=>t.guard(e))},not:e=>function(t){return!t.guard(e)}},createMachine:e=>e,choose:e=>function({choose:t}){return t(e)?.actions}},ko=Co({props:({props:e})=>({dir:"ltr",orientation:"horizontal",activationMode:"automatic",loopFocus:!0,composite:!0,navigate(e){dn(e.node)},defaultValue:null,...e}),initialState:()=>"idle",context:({prop:e,bindable:t})=>({value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),onChange(t){e("onValueChange")?.({value:t})}})),focusedValue:t(()=>({defaultValue:e("value")||e("defaultValue"),sync:!0,onChange(t){e("onFocusChange")?.({focusedValue:t})}})),ssr:t(()=>({defaultValue:!0})),indicatorTransition:t(()=>({defaultValue:!1})),indicatorRect:t(()=>({defaultValue:{left:"0px",top:"0px",width:"0px",height:"0px"}}))}),watch({context:e,prop:t,track:r,action:n}){r([()=>e.get("value")],()=>{n(["allowIndicatorTransition","syncIndicatorRect","syncTabIndex","navigateIfNeeded"])}),r([()=>t("dir"),()=>t("orientation")],()=>{n(["syncIndicatorRect"])})},on:{SET_VALUE:{actions:["setValue"]},CLEAR_VALUE:{actions:["clearValue"]},SET_INDICATOR_RECT:{actions:["setIndicatorRect"]},SYNC_TAB_INDEX:{actions:["syncTabIndex"]}},entry:["syncIndicatorRect","syncTabIndex","syncSsr"],exit:["cleanupObserver"],states:{idle:{on:{TAB_FOCUS:{target:"focused",actions:["setFocusedValue"]},TAB_CLICK:{target:"focused",actions:["setFocusedValue","setValue"]}}},focused:{on:{TAB_CLICK:{actions:["setFocusedValue","setValue"]},ARROW_PREV:[{guard:"selectOnFocus",actions:["focusPrevTab","selectFocusedTab"]},{actions:["focusPrevTab"]}],ARROW_NEXT:[{guard:"selectOnFocus",actions:["focusNextTab","selectFocusedTab"]},{actions:["focusNextTab"]}],HOME:[{guard:"selectOnFocus",actions:["focusFirstTab","selectFocusedTab"]},{actions:["focusFirstTab"]}],END:[{guard:"selectOnFocus",actions:["focusLastTab","selectFocusedTab"]},{actions:["focusLastTab"]}],TAB_FOCUS:{actions:["setFocusedValue"]},TAB_BLUR:{target:"idle",actions:["clearFocusedValue"]}}}},implementations:{guards:{selectOnFocus:({prop:e})=>"automatic"===e("activationMode")},actions:{selectFocusedTab({context:e,prop:t}){ln(()=>{const r=e.get("focusedValue");if(!r)return;const n=t("deselectable")&&e.get("value")===r?null:r;e.set("value",n)})},setFocusedValue({context:e,event:t,flush:r}){null!=t.value&&r(()=>{e.set("focusedValue",t.value)})},clearFocusedValue({context:e}){e.set("focusedValue",null)},setValue({context:e,event:t,prop:r}){const n=r("deselectable")&&e.get("value")===e.get("focusedValue");e.set("value",n?null:t.value)},clearValue({context:e}){e.set("value",null)},focusFirstTab({scope:e}){ln(()=>{var t,r;(t=e,r=xo(t),r[0])?.focus()})},focusLastTab({scope:e}){ln(()=>{var t,r;(t=e,r=xo(t),r[r.length-1])?.focus()})},focusNextTab({context:e,prop:t,scope:r,event:n}){const o=n.value??e.get("focusedValue");if(!o)return;const a=(i=r,s={value:o,loopFocus:t("loopFocus")},function(e,t,r=!0){let n=In(e,t);return n=r?(n+1)%e.length:Math.min(n+1,e.length-1),e[n]}(xo(i),fo(i,s.value),s.loopFocus));var i,s;ln(()=>{t("composite")?a?.focus():null!=a?.dataset.value&&e.set("focusedValue",a.dataset.value)})},focusPrevTab({context:e,prop:t,scope:r,event:n}){const o=n.value??e.get("focusedValue");if(!o)return;const a=(i=r,s={value:o,loopFocus:t("loopFocus")},function(e,t,r=!0){let n=In(e,t);return-1===n?r?e[e.length-1]:null:(n=r?(n-1+e.length)%e.length:Math.max(0,n-1),e[n])}(xo(i),fo(i,s.value),s.loopFocus));var i,s;ln(()=>{t("composite")?a?.focus():null!=a?.dataset.value&&e.set("focusedValue",a.dataset.value)})},syncTabIndex({context:e,scope:t}){ln(()=>{const r=e.get("value");if(!r)return;const n=((e,t)=>e.getById(go(e,t)))(t,r);n&&(tn(n).length>0?n.removeAttribute("tabindex"):n.setAttribute("tabindex","0"))})},cleanupObserver({refs:e}){const t=e.get("indicatorCleanup");t&&t()},allowIndicatorTransition({context:e}){e.set("indicatorTransition",!0)},setIndicatorRect({context:e,event:t,scope:r}){const n=t.id??e.get("value");bo(r)&&(n?vo(r,n)&&(e.set("indicatorRect",((e,t)=>{const r=En(xo(e),fo(e,t));return wo(yo(r))})(r,n)),sn(()=>{e.set("indicatorTransition",!1)})):e.set("indicatorTransition",!1))},syncSsr({context:e}){e.set("ssr",!1)},syncIndicatorRect({context:e,refs:t,scope:r}){const n=t.get("indicatorCleanup");n&&n();const o=e.get("value");if(!o)return void e.set("indicatorTransition",!1);const a=vo(r,o),i=bo(r);if(!a||!i)return;const s=Pn([a],{measure:e=>yo(e),onEntry({rects:t}){const[r]=t;e.set("indicatorRect",wo(r))}});t.set("indicatorCleanup",s)},navigateIfNeeded({context:e,prop:t,scope:r}){const n=e.get("value");if(!n)return;const o=vo(r,n);var a;a=o,a?.matches("a[href]")&&t("navigate")?.({value:n,node:o,href:o.href})}}}}),So=(or(Qn()(["activationMode","composite","deselectable","dir","getRootNode","id","ids","loopFocus","navigate","onFocusChange","onValueChange","orientation","translations","value","defaultValue"])),Qn()(["disabled","value"])),Eo=(or(So),Qn()(["value"]));or(Eo);const[Io,Po]=$n({name:"EnvironmentContext",hookName:"useEnvironmentContext",providerName:"<EnvironmentProvider />",strict:!1,defaultValue:{getRootNode:()=>document,getDocument:()=>document,getWindow:()=>window}}),[Ro,To]=$n({name:"LocaleContext",hookName:"useLocaleContext",providerName:"<LocaleProvider />",strict:!1,defaultValue:{dir:"ltr",locale:"en-US"}}),Oo=e=>{const t=(0,n.useId)(),{getRootNode:r}=Po(),{dir:o}=To(),a={id:t,dir:o,getRootNode:r,...e};return function(e,t){const{state:r,send:n,context:o,prop:a,scope:i}=e,s=a("translations"),l=r.matches("focused"),c="vertical"===a("orientation"),d="horizontal"===a("orientation"),u=a("composite");function p(e){return{selected:o.get("value")===e.value,focused:o.get("focusedValue")===e.value,disabled:!!e.disabled}}return{value:o.get("value"),focusedValue:o.get("focusedValue"),setValue(e){n({type:"SET_VALUE",value:e})},clearValue(){n({type:"CLEAR_VALUE"})},setIndicatorRect(e){const t=fo(i,e);n({type:"SET_INDICATOR_RECT",id:t})},syncTabIndex(){n({type:"SYNC_TAB_INDEX"})},selectNext(e){n({type:"TAB_FOCUS",value:e,src:"selectNext"}),n({type:"ARROW_NEXT",src:"selectNext"})},selectPrev(e){n({type:"TAB_FOCUS",value:e,src:"selectPrev"}),n({type:"ARROW_PREV",src:"selectPrev"})},focus(){const e=o.get("value");e&&vo(i,e)?.focus()},getRootProps(){return t.element({...po.root.attrs,id:(e=i,e.ids?.root??`tabs:${e.id}`),"data-orientation":a("orientation"),"data-focus":hr(l),dir:a("dir")});var e},getListProps:()=>t.element({...po.list.attrs,id:ho(i),role:"tablist",dir:a("dir"),"data-focus":hr(l),"aria-orientation":a("orientation"),"data-orientation":a("orientation"),"aria-label":s?.listLabel,onKeyDown(e){if(e.defaultPrevented)return;if(!Ar(e))return;if(zr(e))return;const t={ArrowDown(){d||n({type:"ARROW_NEXT",key:"ArrowDown"})},ArrowUp(){d||n({type:"ARROW_PREV",key:"ArrowUp"})},ArrowLeft(){c||n({type:"ARROW_PREV",key:"ArrowLeft"})},ArrowRight(){c||n({type:"ARROW_NEXT",key:"ArrowRight"})},Home(){n({type:"HOME"})},End(){n({type:"END"})}}[jr(e,{dir:a("dir"),orientation:a("orientation")})];return t?(e.preventDefault(),void t(e)):void 0}}),getTriggerState:p,getTriggerProps(e){const{value:r,disabled:s}=e,l=p(e);return t.button({...po.trigger.attrs,role:"tab",type:"button",disabled:s,dir:a("dir"),"data-orientation":a("orientation"),"data-disabled":hr(s),"aria-disabled":s,"data-value":r,"aria-selected":l.selected,"data-selected":hr(l.selected),"data-focus":hr(l.focused),"aria-controls":l.selected?go(i,r):void 0,"data-ownedby":ho(i),"data-ssr":hr(o.get("ssr")),id:fo(i,r),tabIndex:l.selected&&u?0:-1,onFocus(){n({type:"TAB_FOCUS",value:r})},onBlur(e){const t=e.relatedTarget;"tab"!==t?.getAttribute("role")&&n({type:"TAB_BLUR"})},onClick(e){e.defaultPrevented||function(e){const t=e.currentTarget;if(!t)return!1;if(!t.matches("a[href], button[type='submit'], input[type='submit']"))return!1;const r=1===e.button,n=(o=e,Or()?o.metaKey:o.ctrlKey);var o;return r||n}(e)||s||(Nr()&&e.currentTarget.focus(),n({type:"TAB_CLICK",value:r}))}})},getContentProps(e){const{value:r}=e,n=o.get("value")===r;return t.element({...po.content.attrs,dir:a("dir"),id:go(i,r),tabIndex:u?0:-1,"aria-labelledby":fo(i,r),role:"tabpanel","data-ownedby":ho(i),"data-selected":hr(n),"data-orientation":a("orientation"),hidden:!n})},getIndicatorProps(){const e=o.get("indicatorRect"),r=o.get("indicatorTransition");return t.element({id:mo(i),...po.indicator.attrs,dir:a("dir"),"data-orientation":a("orientation"),style:{"--transition-property":"left, right, top, bottom, width, height","--left":e.left,"--top":e.top,"--width":e.width,"--height":e.height,position:"absolute",willChange:"var(--transition-property)",transitionProperty:"var(--transition-property)",transitionDuration:r?"var(--transition-duration, 150ms)":"0ms",transitionTimingFunction:"var(--transition-timing-function)",[d?"left":"top"]:d?"var(--left)":"var(--top)"}})}}}(no(ko,a),so)},No=(0,n.forwardRef)((e,t)=>{const[r,n]=Gn(e),[a,i]=(e=>["activationMode","composite","defaultValue","deselectable","id","ids","loopFocus","navigate","onFocusChange","onValueChange","orientation","translations","value"].reduce((e,t)=>{const[r,n]=e,o=t;return void 0!==n[o]&&(r[o]=n[o]),delete n[o],[r,n]},[{},{...e}]))(n),s=Oo(a),l=Dn(s.getRootProps(),i);return(0,o.jsx)(Yn,{value:s,children:(0,o.jsx)(Bn,{value:r,children:(0,o.jsx)(Kn.div,{...l,ref:t})})})});No.displayName="TabsRoot";const Vo=(0,n.forwardRef)((e,t)=>{const[r,n]=(e=>["disabled","value"].reduce((e,t)=>{const[r,n]=e,o=t;return void 0!==n[o]&&(r[o]=n[o]),delete n[o],[r,n]},[{},{...e}]))(e),a=Dn(Xn().getTriggerProps(r),n);return(0,o.jsx)(Kn.button,{...a,ref:t})});function Ao(e,t){const[r,o]=(0,n.useState)(e);return(0,n.useEffect)(()=>{const r=setTimeout(()=>{o(e)},t);return()=>{clearTimeout(r)}},[e,t]),r}Vo.displayName="TabTrigger";var zo={props:({props:e})=>({...e,present:!!e.present}),initialState:({prop:e})=>e("present")?"mounted":"unmounted",refs:()=>({node:null,styles:null}),context:({bindable:e})=>({unmountAnimationName:e(()=>({defaultValue:null})),prevAnimationName:e(()=>({defaultValue:null})),present:e(()=>({defaultValue:!1})),initial:e(()=>({sync:!0,defaultValue:!1}))}),exit:["clearInitial","cleanupNode"],watch({track:e,action:t,prop:r}){e([()=>r("present")],()=>{t(["setInitial","syncPresence"])})},on:{"NODE.SET":{actions:["setNode","setStyles"]}},states:{mounted:{on:{UNMOUNT:{target:"unmounted",actions:["clearPrevAnimationName","invokeOnExitComplete"]},"UNMOUNT.SUSPEND":{target:"unmountSuspended"}}},unmountSuspended:{effects:["trackAnimationEvents"],on:{MOUNT:{target:"mounted",actions:["setPrevAnimationName"]},UNMOUNT:{target:"unmounted",actions:["clearPrevAnimationName","invokeOnExitComplete"]}}},unmounted:{on:{MOUNT:{target:"mounted",actions:["setPrevAnimationName"]}}}},implementations:{actions:{setInitial:({context:e})=>{e.get("initial")||queueMicrotask(()=>{e.set("initial",!0)})},clearInitial:({context:e})=>{e.set("initial",!1)},cleanupNode:({refs:e})=>{e.set("node",null),e.set("styles",null)},invokeOnExitComplete:({prop:e})=>{e("onExitComplete")?.()},setNode:({refs:e,event:t})=>{e.set("node",t.node)},setStyles:({refs:e,event:t})=>{e.set("styles",Sr(t.node))},syncPresence:({context:e,refs:t,send:r,prop:n})=>{const o=n("present");if(o)return r({type:"MOUNT",src:"presence.changed"});const a=t.get("node");if(!o&&"hidden"===a?.ownerDocument.visibilityState)return r({type:"UNMOUNT",src:"visibilitychange"});ln(()=>{const n=_o(t.get("styles"));e.set("unmountAnimationName",n),"none"===n||n===e.get("prevAnimationName")||"none"===t.get("styles")?.display||"0s"===t.get("styles")?.animationDuration?r({type:"UNMOUNT",src:"presence.changed"}):r({type:"UNMOUNT.SUSPEND"})})},setPrevAnimationName:({context:e,refs:t})=>{ln(()=>{e.set("prevAnimationName",_o(t.get("styles")))})},clearPrevAnimationName:({context:e})=>{e.set("prevAnimationName",null)}},effects:{trackAnimationEvents:({context:e,refs:t,send:r})=>{const n=t.get("node");if(!n)return;const o=r=>{(r.composedPath?.()?.[0]??r.target)===n&&e.set("prevAnimationName",_o(t.get("styles")))},a=o=>{const a=_o(t.get("styles"));Vr(o)===n&&a===e.get("unmountAnimationName")&&r({type:"UNMOUNT",src:"animationend"})};n.addEventListener("animationstart",o),n.addEventListener("animationcancel",a),n.addEventListener("animationend",a);const i=Rn(n,{animationFillMode:"forwards"});return()=>{n.removeEventListener("animationstart",o),n.removeEventListener("animationcancel",a),n.removeEventListener("animationend",a),sn(()=>i())}}}}};function _o(e){return e?.animationName||"none"}function Fo(e,t={}){const{sync:r=!1}=t,o=function(e){const t=(0,n.useRef)(e);return t.current=e,t}(e);return(0,n.useCallback)((...e)=>r?queueMicrotask(()=>o.current?.(...e)):o.current?.(...e),[r,o])}Qn()(["onExitComplete","present","immediate"]);const Lo=(e={})=>{const{lazyMount:t,unmountOnExit:r,present:o,skipAnimationOnMount:a=!1,...i}=e,s=(0,n.useRef)(!1),l={...i,present:o,onExitComplete:Fo(e.onExitComplete)},c=function(e){const{state:t,send:r,context:n}=e,o=t.matches("mounted","unmountSuspended");return{skip:!n.get("initial"),present:o,setNode(e){e&&r({type:"NODE.SET",node:e})},unmount(){r({type:"UNMOUNT"})}}}(no(zo,l));c.present&&(s.current=!0);const d=!c.present&&!s.current&&t||r&&!c.present&&s.current;return{ref:c.setNode,getPresenceProps:()=>({"data-state":c.skip&&a?void 0:o?"open":"closed",hidden:!c.present}),present:c.present,unmounted:d}},[Do,jo]=$n({name:"PresenceContext",hookName:"usePresenceContext",providerName:"<PresenceProvider />"}),Mo=(0,n.forwardRef)((e,t)=>{const[r,n]=(e=>["value"].reduce((e,t)=>{const[r,n]=e,o=t;return void 0!==n[o]&&(r[o]=n[o]),delete n[o],[r,n]},[{},{...e}]))(e),a=Xn(),i=Hn(),s=Lo({...i,present:Ao(a.value===e.value,0),immediate:!0}),l=Dn(a.getContentProps(r),s.getPresenceProps(),n);return(0,o.jsx)(Do,{value:s,children:s.unmounted?null:(0,o.jsx)(Kn.div,{...l,ref:Un(s.ref,t)})})});Mo.displayName="TabContent";const Wo=(0,n.forwardRef)((e,t)=>{const r=Dn(Xn().getListProps(),e);return(0,o.jsx)(Kn.div,{...r,ref:t})});Wo.displayName="TabList";const $o=(0,n.forwardRef)((e,t)=>{const r=Dn(Xn().getIndicatorProps(),e);return(0,o.jsx)(Kn.div,{...r,ref:t})});$o.displayName="TabIndicator";const Bo=Object.freeze({}),Ho=Object.freeze({}),Go=e=>{const{key:t,recipe:r}=e,a=(i=t||r.className||"Component").charAt(0).toUpperCase()+i.slice(1);var i;const[s,l]=Ke({name:`${a}StylesContext`,errorMessage:`use${a}Styles returned is 'undefined'. Seems you forgot to wrap the components in "<${a}.Root />" `}),[c,d]=Ke({name:`${a}ClassNameContext`,errorMessage:`use${a}ClassNames returned is 'undefined'. Seems you forgot to wrap the components in "<${a}.Root />" `,strict:!1}),[u,p]=Ke({strict:!1,name:`${a}PropsContext`,providerName:`${a}PropsContext`,defaultValue:{}});function h(e){const{unstyled:o,...a}=e,i=function(e){const{key:t,recipe:r}=e,o=Xe();return(0,n.useMemo)(()=>{const e=r||(null!=t?o.getSlotRecipe(t):{});return o.sva(structuredClone(e))},[t,r,o])}({key:t,recipe:a.recipe||r}),[s,l]=(0,n.useMemo)(()=>i.splitVariantProps(a),[a,i]);return{styles:(0,n.useMemo)(()=>o?Ho:i(s),[o,s,i]),classNames:i.classNameMap,props:l}}return{StylesProvider:s,ClassNamesProvider:c,PropsProvider:u,usePropsContext:p,useRecipeResult:h,withProvider:(e,t,r)=>{const{defaultProps:a,...i}=r??{},l=ct(e,{},i),d=(0,n.forwardRef)((e,i)=>{const d=p(),u=(0,n.useMemo)(()=>Le(a??{},d,e),[d,e]),{styles:g,props:f,classNames:m}=h(u),v=m[t],b=(0,o.jsx)(s,{value:g,children:(0,o.jsx)(c,{value:m,children:(0,o.jsx)(l,{ref:i,...f,css:[g[t],u.css],className:je(u.className,v)})})});return r?.wrapElement?.(b,u)??b});return d.displayName=e.displayName||e.name,d},withContext:(e,t,r)=>{const a=ct(e,{},r),i=(0,n.forwardRef)((e,r)=>{const n=l(),i=d(),s=i?.[t];return(0,o.jsx)(a,{...e,css:[t?n[t]:void 0,e.css],ref:r,className:je(e.className,s)})});return i.displayName=e.displayName||e.name,i},withRootProvider:function(e,t={}){const{defaultProps:r}=t,a=t=>{const a=p(),i=(0,n.useMemo)(()=>Le(r,a,t),[a,t]),{styles:l,classNames:d,props:u}=h(i);return(0,o.jsx)(s,{value:l,children:(0,o.jsx)(c,{value:d,children:(0,o.jsx)(e,{...u})})})};return a.displayName=e.displayName||e.name,a},useStyles:l,useClassNames:d}},{withProvider:Uo,withContext:qo,useStyles:Ko,PropsProvider:Yo}=Go({key:"tabs"}),Xo=(Uo(Zn,"root",{forwardAsChild:!0}),Uo(No,"root",{forwardAsChild:!0})),Zo=qo(Vo,"trigger",{forwardAsChild:!0}),Jo=qo(Mo,"content",{forwardAsChild:!0}),Qo=(qo("div","contentGroup"),qo(Wo,"list",{forwardAsChild:!0})),ea=(qo($o,"indicator",{forwardAsChild:!0}),(0,n.forwardRef)(function(e,t){const{direction:r,align:n,justify:a,wrap:i,basis:s,grow:l,shrink:c,inline:d,...u}=e;return(0,o.jsx)(ct.div,{ref:t,...u,css:{display:d?"inline-flex":"flex",flexDirection:r,alignItems:n,justifyContent:a,flexWrap:i,flexBasis:s,flexGrow:l,flexShrink:c,...e.css}})}));function ta(e){const{key:t,recipe:r}=e,o=Xe();return(0,n.useMemo)(()=>{const e=r||(null!=t?o.getRecipe(t):{});return o.cva(structuredClone(e))},[t,r,o])}function ra(e){const{key:t,recipe:r}=e,a=(i=t||r.className||"Component").charAt(0).toUpperCase()+i.slice(1);var i;const[s,l]=Ke({strict:!1,name:`${a}PropsContext`,providerName:`${a}PropsContext`});function c(e){const{unstyled:o,...a}=e,i=ta({key:t,recipe:a.recipe||r}),[s,l]=(0,n.useMemo)(()=>i.splitVariantProps(a),[i,a]);return{styles:o?Bo:i(s),className:i.className,props:l}}return{withContext:(e,t)=>{const r=ct(e,{},t),a=(0,n.forwardRef)((e,t)=>{const a=l(),i=(0,n.useMemo)(()=>Le(a,e),[e,a]),{styles:s,className:d,props:u}=c(i);return(0,o.jsx)(r,{...u,ref:t,css:[s,i.css],className:je(d,i.className)})});return a.displayName=e.displayName||e.name,a},PropsProvider:s,withPropsProvider:function(){return s},usePropsContext:l,useRecipeResult:c}}const{withContext:na,PropsProvider:oa}=ra({key:"container"}),aa=na("div"),ia=(0,n.forwardRef)(function(e,t){const{align:r,fit:n="cover",...a}=e;return(0,o.jsx)(ct.img,{ref:t,objectFit:n,objectPosition:r,className:je("chakra-image",e.className),...a})}),{withContext:sa,PropsProvider:la}=ra({key:"text"}),ca=sa("p"),{PropsProvider:da,withContext:ua}=ra({key:"badge"}),pa=ua("span"),ha=({activeTab:e,setActiveTab:t})=>(0,n.createElement)(Xo,{size:"lg",onValueChange:({value:e})=>{window.location.hash=e,t(e)},value:e,colorPalette:"purple"},(0,n.createElement)(Qo,{borderBottom:"none"},Object.entries(vt).map(([t,r])=>{const o=e===t;return(0,n.createElement)(Zo,{key:t,value:t,fontSize:"sm",fontWeight:"semibold",color:o?"purple.600":"fg.muted",_hover:{color:"purple.700"}},r)})),(0,n.createElement)(Jo,null)),ga=({activeTab:e,setActiveTab:t})=>{const[r,o]=(0,pt.useState)(null);return(0,pt.useEffect)(()=>{(()=>{const e=document.querySelector(".neve-notice-upsell");if(!e)return;const t=e.outerHTML;o(t),e.remove()})()},[]),(0,n.createElement)(ea,{direction:"column",gap:"8"},(0,n.createElement)(ut,{as:"header",bg:"bg"},(0,n.createElement)(ut,{borderBottom:"1px solid",borderColor:"border"},(0,n.createElement)(aa,{maxW:"container"},(0,n.createElement)(ea,{alignItems:"center",justifyContent:"space-between"},(0,n.createElement)(ea,{alignItems:"center",gap:"5",py:"3"},(0,n.createElement)(ia,{src:obfxDash.path+"assets/orbit-fox.svg",alt:"logo",w:"14"}),(0,n.createElement)(ca,{as:"h1",fontSize:"xl",fontWeight:"semibold"},"Orbit Fox")),(0,n.createElement)(pa,{variant:"surface",size:"sm",color:"fg.muted"},"v",obfxDash.version)))),(0,n.createElement)(ut,{borderBottom:"1px solid",borderColor:"border"},(0,n.createElement)(aa,null,(0,n.createElement)(ha,{activeTab:e,setActiveTab:t})))),window.tsdk_reposition_notice&&(0,n.createElement)(aa,{id:"tsdk_banner",className:"obfx-banner"}),!window.tsdk_reposition_notice&&r&&(0,n.createElement)(aa,{className:"obfx-banner",id:"neve-notice-upsell",dangerouslySetInnerHTML:{__html:r}}))};function fa(e){if(null===e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(e=>fa(e));const t=Object.create(Object.getPrototypeOf(e));for(const r of Object.keys(e))t[r]=fa(e[r]);return t}function ma(e,t){if(null==t)return e;for(const r of Object.keys(t))if(void 0!==t[r]&&"__proto__"!==r)if(!Me(e[r])&&Me(t[r]))Object.assign(e,{[r]:t[r]});else if(e[r]&&Me(t[r]))ma(e[r],t[r]);else if(Array.isArray(t[r])&&Array.isArray(e[r])){let n=0;for(;n<t[r].length;n++)Me(e[r][n])&&Me(t[r][n])?ma(e[r][n],t[r][n]):e[r][n]=t[r][n]}else Object.assign(e,{[r]:t[r]});return e}function va(e,...t){for(const r of t)ma(e,r);return e}function ba(){const e=e=>e;return new Proxy(e,{get:()=>e})}const xa=ba(),ya=ba(),wa=(...e)=>va({},...e.map(fa));var Ca="".split(","),ka="WebkitAppearance,WebkitBorderBefore,WebkitBorderBeforeColor,WebkitBorderBeforeStyle,WebkitBorderBeforeWidth,WebkitBoxReflect,WebkitLineClamp,WebkitMask,WebkitMaskAttachment,WebkitMaskClip,WebkitMaskComposite,WebkitMaskImage,WebkitMaskOrigin,WebkitMaskPosition,WebkitMaskPositionX,WebkitMaskPositionY,WebkitMaskRepeat,WebkitMaskRepeatX,WebkitMaskRepeatY,WebkitMaskSize,WebkitOverflowScrolling,WebkitTapHighlightColor,WebkitTextFillColor,WebkitTextStroke,WebkitTextStrokeColor,WebkitTextStrokeWidth,WebkitTouchCallout,WebkitUserModify,WebkitUserSelect,accentColor,alignContent,alignItems,alignSelf,alignTracks,all,anchorName,anchorScope,animation,animationComposition,animationDelay,animationDirection,animationDuration,animationFillMode,animationIterationCount,animationName,animationPlayState,animationRange,animationRangeEnd,animationRangeStart,animationTimeline,animationTimingFunction,appearance,aspectRatio,backdropFilter,backfaceVisibility,background,backgroundAttachment,backgroundBlendMode,backgroundClip,backgroundColor,backgroundImage,backgroundOrigin,backgroundPosition,backgroundPositionX,backgroundPositionY,backgroundRepeat,backgroundSize,blockSize,border,borderBlock,borderBlockColor,borderBlockEnd,borderBlockEndColor,borderBlockEndStyle,borderBlockEndWidth,borderBlockStart,borderBlockStartColor,borderBlockStartStyle,borderBlockStartWidth,borderBlockStyle,borderBlockWidth,borderBottom,borderBottomColor,borderBottomLeftRadius,borderBottomRightRadius,borderBottomStyle,borderBottomWidth,borderCollapse,borderColor,borderEndEndRadius,borderEndStartRadius,borderImage,borderImageOutset,borderImageRepeat,borderImageSlice,borderImageSource,borderImageWidth,borderInline,borderInlineColor,borderInlineEnd,borderInlineEndColor,borderInlineEndStyle,borderInlineEndWidth,borderInlineStart,borderInlineStartColor,borderInlineStartStyle,borderInlineStartWidth,borderInlineStyle,borderInlineWidth,borderLeft,borderLeftColor,borderLeftStyle,borderLeftWidth,borderRadius,borderRight,borderRightColor,borderRightStyle,borderRightWidth,borderSpacing,borderStartEndRadius,borderStartStartRadius,borderStyle,borderTop,borderTopColor,borderTopLeftRadius,borderTopRightRadius,borderTopStyle,borderTopWidth,borderWidth,bottom,boxAlign,boxDecorationBreak,boxDirection,boxFlex,boxFlexGroup,boxLines,boxOrdinalGroup,boxOrient,boxPack,boxShadow,boxSizing,breakAfter,breakBefore,breakInside,captionSide,caret,caretColor,caretShape,clear,clip,clipPath,clipRule,color,colorInterpolationFilters,colorScheme,columnCount,columnFill,columnGap,columnRule,columnRuleColor,columnRuleStyle,columnRuleWidth,columnSpan,columnWidth,columns,contain,containIntrinsicBlockSize,containIntrinsicHeight,containIntrinsicInlineSize,containIntrinsicSize,containIntrinsicWidth,container,containerName,containerType,content,contentVisibility,counterIncrement,counterReset,counterSet,cursor,cx,cy,d,direction,display,dominantBaseline,emptyCells,fieldSizing,fill,fillOpacity,fillRule,filter,flex,flexBasis,flexDirection,flexFlow,flexGrow,flexShrink,flexWrap,float,floodColor,floodOpacity,font,fontFamily,fontFeatureSettings,fontKerning,fontLanguageOverride,fontOpticalSizing,fontPalette,fontSize,fontSizeAdjust,fontSmooth,fontStretch,fontStyle,fontSynthesis,fontSynthesisPosition,fontSynthesisSmallCaps,fontSynthesisStyle,fontSynthesisWeight,fontVariant,fontVariantAlternates,fontVariantCaps,fontVariantEastAsian,fontVariantEmoji,fontVariantLigatures,fontVariantNumeric,fontVariantPosition,fontVariationSettings,fontWeight,forcedColorAdjust,gap,grid,gridArea,gridAutoColumns,gridAutoFlow,gridAutoRows,gridColumn,gridColumnEnd,gridColumnGap,gridColumnStart,gridGap,gridRow,gridRowEnd,gridRowGap,gridRowStart,gridTemplate,gridTemplateAreas,gridTemplateColumns,gridTemplateRows,hangingPunctuation,height,hyphenateCharacter,hyphenateLimitChars,hyphens,imageOrientation,imageRendering,imageResolution,imeMode,initialLetter,initialLetterAlign,inlineSize,inset,insetBlock,insetBlockEnd,insetBlockStart,insetInline,insetInlineEnd,insetInlineStart,interpolateSize,isolation,justifyContent,justifyItems,justifySelf,justifyTracks,left,letterSpacing,lightingColor,lineBreak,lineClamp,lineHeight,lineHeightStep,listStyle,listStyleImage,listStylePosition,listStyleType,margin,marginBlock,marginBlockEnd,marginBlockStart,marginBottom,marginInline,marginInlineEnd,marginInlineStart,marginLeft,marginRight,marginTop,marginTrim,marker,markerEnd,markerMid,markerStart,mask,maskBorder,maskBorderMode,maskBorderOutset,maskBorderRepeat,maskBorderSlice,maskBorderSource,maskBorderWidth,maskClip,maskComposite,maskImage,maskMode,maskOrigin,maskPosition,maskRepeat,maskSize,maskType,masonryAutoFlow,mathDepth,mathShift,mathStyle,maxBlockSize,maxHeight,maxInlineSize,maxLines,maxWidth,minBlockSize,minHeight,minInlineSize,minWidth,mixBlendMode,objectFit,objectPosition,offset,offsetAnchor,offsetDistance,offsetPath,offsetPosition,offsetRotate,opacity,order,orphans,outline,outlineColor,outlineOffset,outlineStyle,outlineWidth,overflow,overflowAnchor,overflowBlock,overflowClipBox,overflowClipMargin,overflowInline,overflowWrap,overflowX,overflowY,overlay,overscrollBehavior,overscrollBehaviorBlock,overscrollBehaviorInline,overscrollBehaviorX,overscrollBehaviorY,padding,paddingBlock,paddingBlockEnd,paddingBlockStart,paddingBottom,paddingInline,paddingInlineEnd,paddingInlineStart,paddingLeft,paddingRight,paddingTop,page,pageBreakAfter,pageBreakBefore,pageBreakInside,paintOrder,perspective,perspectiveOrigin,placeContent,placeItems,placeSelf,pointerEvents,position,positionAnchor,positionArea,positionTry,positionTryFallbacks,positionTryOrder,positionVisibility,printColorAdjust,quotes,r,resize,right,rotate,rowGap,rubyAlign,rubyMerge,rubyPosition,rx,ry,scale,scrollBehavior,scrollMargin,scrollMarginBlock,scrollMarginBlockEnd,scrollMarginBlockStart,scrollMarginBottom,scrollMarginInline,scrollMarginInlineEnd,scrollMarginInlineStart,scrollMarginLeft,scrollMarginRight,scrollMarginTop,scrollPadding,scrollPaddingBlock,scrollPaddingBlockEnd,scrollPaddingBlockStart,scrollPaddingBottom,scrollPaddingInline,scrollPaddingInlineEnd,scrollPaddingInlineStart,scrollPaddingLeft,scrollPaddingRight,scrollPaddingTop,scrollSnapAlign,scrollSnapCoordinate,scrollSnapDestination,scrollSnapPointsX,scrollSnapPointsY,scrollSnapStop,scrollSnapType,scrollSnapTypeX,scrollSnapTypeY,scrollTimeline,scrollTimelineAxis,scrollTimelineName,scrollbarColor,scrollbarGutter,scrollbarWidth,shapeImageThreshold,shapeMargin,shapeOutside,shapeRendering,stopColor,stopOpacity,stroke,strokeDasharray,strokeDashoffset,strokeLinecap,strokeLinejoin,strokeMiterlimit,strokeOpacity,strokeWidth,tabSize,tableLayout,textAlign,textAlignLast,textAnchor,textBox,textBoxEdge,textBoxTrim,textCombineUpright,textDecoration,textDecorationColor,textDecorationLine,textDecorationSkip,textDecorationSkipInk,textDecorationStyle,textDecorationThickness,textEmphasis,textEmphasisColor,textEmphasisPosition,textEmphasisStyle,textIndent,textJustify,textOrientation,textOverflow,textRendering,textShadow,textSizeAdjust,textSpacingTrim,textTransform,textUnderlineOffset,textUnderlinePosition,textWrap,textWrapMode,textWrapStyle,timelineScope,top,touchAction,transform,transformBox,transformOrigin,transformStyle,transition,transitionBehavior,transitionDelay,transitionDuration,transitionProperty,transitionTimingFunction,translate,unicodeBidi,userSelect,vectorEffect,verticalAlign,viewTimeline,viewTimelineAxis,viewTimelineInset,viewTimelineName,viewTransitionName,visibility,whiteSpace,whiteSpaceCollapse,widows,width,willChange,wordBreak,wordSpacing,wordWrap,writingMode,x,y,zIndex,zoom,alignmentBaseline,baselineShift,colorInterpolation,colorRendering,glyphOrientationVertical".split(",").concat(Ca),Sa=new Map(ka.map(e=>[e,!0]));function Ea(e){const t=Object.create(null);return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}var Ia=/&|@/,Pa=Ea(e=>Sa.has(e)||e.startsWith("--")||Ia.test(e));const Ra=e=>null!=e;function Ta(e,t,r={}){const{stop:n,getKey:o}=r;return function e(r,a=[]){if(Me(r)||Array.isArray(r)){const i={};for(const[s,l]of Object.entries(r)){const c=o?.(s,l)??s,d=[...a,c];if(n?.(r,d))return t(r,a);const u=e(l,d);Ra(u)&&(i[c]=u)}return i}return t(r,a)}(e)}function Oa(e,t){return Array.isArray(e)?e.map(e=>Ra(e)?t(e):e):Me(e)?Ta(e,e=>t(e)):Ra(e)?t(e):e}function Na(e,t){const r={};return Ta(e,(e,t)=>{e&&(r[t.join(".")]=e.value)},{stop:t}),r}var Va=r(463);const Aa=e=>{const t=Object.create(null);return function(...r){const n=r.map(e=>Va(e)).join("|");return void 0===t[n]&&(t[n]=e(...r)),t[n]}},za="px",_a="em",Fa="rem";function La(e=""){const t=new RegExp(String.raw`-?\d+(?:\.\d+|\d*)`),r=new RegExp(`${za}|${_a}|${Fa}`),n=e.match(new RegExp(`${t.source}(${r.source})`));return n?.[1]}function Da(e=""){if("number"==typeof e)return`${e}px`;const t=La(e);return t?t===za?e:t===_a||t===Fa?`${16*parseFloat(e)}${za}`:void 0:e}function ja(e=""){const t=La(e);return t?t===Fa?e:t===_a?`${parseFloat(e)}${Fa}`:t===za?`${parseFloat(e)/16}${Fa}`:void 0:e}function Ma(e){return ja(parseFloat(Da(e)??"")-.04+"px")}function Wa({min:e,max:t}){return null==e&&null==t?"":["@media screen",e&&`(min-width: ${e})`,t&&`(max-width: ${t})`].filter(Boolean).join(" and ")}const $a=e=>({minMax:new RegExp(`(!?\\(\\s*min(-device-)?-${e})(.|\n)+\\(\\s*max(-device)?-${e}`,"i"),min:new RegExp(`\\(\\s*min(-device)?-${e}`,"i"),maxMin:new RegExp(`(!?\\(\\s*max(-device)?-${e})(.|\n)+\\(\\s*min(-device)?-${e}`,"i"),max:new RegExp(`\\(\\s*max(-device)?-${e}`,"i")}),Ba=$a("width"),Ha=$a("height"),Ga=e=>({isMin:ni(e.minMax,e.maxMin,e.min),isMax:ni(e.maxMin,e.minMax,e.max)}),{isMin:Ua,isMax:qa}=Ga(Ba),{isMin:Ka,isMax:Ya}=Ga(Ha),Xa=/print/i,Za=/^print$/i,Ja=/(-?\d*\.?\d+)(ch|em|ex|px|rem)/,Qa=/(\d)/,ei=Number.MAX_VALUE,ti={ch:8.8984375,em:16,rem:16,ex:8.296875,px:1};function ri(e){const t=Ja.exec(e)||(Ua(e)||Ka(e)?Qa.exec(e):null);if(!t)return ei;if("0"===t[0])return 0;const r=parseFloat(t[1]),n=t[2];return r*(ti[n]||1)}function ni(e,t,r){return n=>e.test(n)||!t.test(n)&&r.test(n)}const oi=Aa((e,t)=>{const r=function(e,t){const r=Xa.test(e),n=Za.test(e),o=Xa.test(t),a=Za.test(t);return r&&o?!n&&a?1:n&&!a?-1:e.localeCompare(t):r?1:o?-1:null}(e,t);if(null!==r)return r;const n=Ua(e)||Ka(e),o=qa(e)||Ya(e),a=Ua(t)||Ka(t),i=qa(t)||Ya(t);if(n&&i)return-1;if(o&&a)return 1;const s=ri(e),l=ri(t);return s===ei&&l===ei?e.localeCompare(t):s===ei?1:l===ei?-1:s!==l?s>l?o?-1:1:o?1:-1:e.localeCompare(t)});function ai(e){return e.sort(([e],[t])=>oi(e,t))}function ii(e){const t=[],r=[],n={};for(const[o,a]of Object.entries(e))o.startsWith("@media")?t.push([o,a]):o.startsWith("@container")?r.push([o,a]):Me(a)?n[o]=ii(a):n[o]=a;const o=ai(t),a=ai(r);return{...n,...Object.fromEntries(o),...Object.fromEntries(a)}}const si=/\s*!(important)?/i;function li(e){const{transform:t,conditions:r,normalize:n}=e,o=(a=e,Aa(function(...e){return va({},...function(e){const t=function(...e){return e.filter(e=>Me(e)&&Object.keys(De(e)).length>0)}(...e);return 1===t.length?t:t.map(e=>a.normalize(e))}(e))}));var a;return Aa(function(...e){const a=o(...e),i=n(a),s=Object.create(null);return Ta(i,(e,n)=>{const o=!!We(a=e)&&si.test(a);var a;if(null==e)return;const[i,...l]=r.sort(n).map(r.resolve);o&&(e=(e=>We(e)?e.replace(si,"").trim():e)(e));let c=t(i,e)??Object.create(null);c=Ta(c,e=>We(e)&&o?`${e} !important`:e,{getKey:e=>r.expandAtRule(e)}),function(e,t,r){let n=e;for(const e of t)e&&(n[e]||(n[e]=Object.create(null)),n=n[e]);va(n,r)}(s,l.flat(),c)}),ii(s)})}function ci(e,t=[]){const r=Object.assign({},e);for(const e of t)e in r&&delete r[e];return r}const di=e=>({base:{},variants:{},defaultVariants:{},compoundVariants:[],...e});const ui={reset:"reset",base:"base",tokens:"tokens",recipes:"recipes"},pi={reset:0,base:1,tokens:2,recipes:3};const hi=/[^a-zA-Z0-9_\u0081-\uffff-]/g,gi=/[A-Z]/g;function fi(e,t={}){const{fallback:r="",prefix:n=""}=t,o=function(e){return e.replace(gi,e=>`-${e.toLowerCase()}`)}(["-",n,(a=e,`${a}`.replace(hi,e=>`\\${e}`))].filter(Boolean).join("-"));var a;return{var:o,ref:`var(${o}${r?`, ${r}`:""})`}}const mi=/([\0-\x1f\x7f]|^-?\d)|^-$|^-|[^\x80-\uFFFF\w-]/g,vi=function(e,t){return t?"\0"===e?"�":"-"===e&&1===e.length?"\\-":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16):"\\"+e},bi=e=>(e+"").replace(mi,vi),xi=(e,t)=>{let r="",n=0,o="char",a="",i="";const s=[];for(;n<e.length;){const l=e[n];if("{"===l){const o=e.indexOf("}",n);if(-1===o)break;const a=e.slice(n+1,o);r+=t(a)??a,n=o+1;continue}if("token"===o&&","===l){""===e[n]&&n++,o="fallback",s.push(o);const l=t(a);l?.endsWith(")")&&(r+=l.slice(0,-1)),a="",i="";continue}if("fallback"===o&&", var("===i+l){const t=yi(e.slice(n+1))+n+1,a=e.slice(n+1,t);if(-1===t)break;r+=", var("+a+")",n=t+1,o=s.pop()??o,i="";continue}if("token"===o||"fallback"===o){if(n++,")"===l){o=s.pop()??o??"char",i+=l;const e=a?t(a)??bi(a):a;if(i)if(i=i.slice(1).trim(),!i.startsWith("token(")&&i.endsWith(")")&&(i=i.slice(0,-1)),i.includes("token(")){const e=xi(i,t);e&&(i=e.slice(0,-1))}else if(i){const e=t(i);e&&(i=e)}const n=r.at(-1);i?n?.trim()?r+=e.slice(0,-1)+", "+i+")":r+=i:r+=e||")",a="",i="",o="char";continue}"token"===o&&(a+=l),"fallback"===o&&(i+=l);continue}const c=e.indexOf("token(",n);if(-1!==c){const t=c+6;r+=e.slice(n,c),n=t,o="token",s.push(o);continue}r+=l,n++}return r},yi=e=>{let t=0;const r=["("];for(;t<e.length;){const n=e[t];if("("===n)r.push(n);else if(")"===n&&(r.pop(),0===r.length))return t;t++}return t};function wi(e){const t={};return e.forEach((e,r)=>{e instanceof Map?t[r]=Object.fromEntries(e):t[r]=e}),t}const Ci=/({([^}]*)})/g,ki=/[{}]/g,Si=/\w+\.\w+/,Ei=e=>{if(!We(e))return[];const t=e.match(Ci);return t?t.map(e=>e.replace(ki,"")).map(e=>e.trim()):[]};function Ii(e){if(!e.extensions?.references)return e.extensions?.cssVar?.ref??e.value;const t=e.extensions.references??{};return e.value=Object.keys(t).reduce((e,r)=>{const n=t[r];if(n.extensions.conditions)return e;const o=Ii(n);return e.replace(`{${r}}`,o)},e.value),delete e.extensions.references,e.value}function Pi(e){return Me(e)&&e.reference?e.reference:String(e)}const Ri=(e,...t)=>t.map(Pi).join(` ${e} `).replace(/calc/g,""),Ti=(...e)=>`calc(${Ri("+",...e)})`,Oi=(...e)=>`calc(${Ri("-",...e)})`,Ni=(...e)=>`calc(${Ri("*",...e)})`,Vi=(...e)=>`calc(${Ri("/",...e)})`,Ai=e=>{const t=Pi(e);return null==t||Number.isNaN(parseFloat(t))?Ni(t,-1):String(t).startsWith("-")?String(t).slice(1):`-${t}`},zi=Object.assign(e=>({add:(...t)=>zi(Ti(e,...t)),subtract:(...t)=>zi(Oi(e,...t)),multiply:(...t)=>zi(Ni(e,...t)),divide:(...t)=>zi(Vi(e,...t)),negate:()=>zi(Ai(e)),toString:()=>e.toString()}),{add:Ti,subtract:Oi,multiply:Ni,divide:Vi,negate:Ai}),_i={enforce:"pre",transform(e){const{prefix:t,allTokens:r,formatCssVar:n,formatTokenName:o,registerToken:a}=e;r.filter(({extensions:e})=>"spacing"===e.category).forEach(e=>{const r=e.path.slice(),i=n(r,t);if(We(e.value)&&"0rem"===e.value)return;const s=structuredClone(e);Object.assign(s.extensions,{negative:!0,prop:`-${e.extensions.prop}`,originalPath:r}),s.value=zi.negate(i.ref);const l=s.path[s.path.length-1];null!=l&&(s.path[s.path.length-1]=`-${l}`),s.path&&(s.name=o(s.path)),a(s)})}},Fi=new Set(["spacing","sizes","borderWidths","fontSizes","radii"]),Li={enforce:"post",transform(e){const t=e.allTokens.filter(e=>Fi.has(e.extensions.category)&&!e.extensions.negative);t.forEach(e=>{Object.assign(e.extensions,{pixelValue:Da(e.value)})})}},Di={enforce:"post",transform(e){const{allTokens:t,registerToken:r,formatTokenName:n}=e,o=t.filter(({extensions:e})=>"colors"===e.category),a=new Map,i=new Map;o.forEach(e=>{const{colorPalette:t}=e.extensions;t&&(t.keys.forEach(e=>{a.set(n(e),e)}),t.roots.forEach(r=>{const o=n(r),s=i.get(o)||[];if(s.push(e),i.set(o,s),e.extensions.default&&1===r.length){const e=t.keys[0]?.filter(Boolean);if(!e.length)return;const o=r.concat(e);a.set(n(o),[])}}))}),a.forEach(e=>{const t=["colors","colorPalette",...e].filter(Boolean),o=n(t),a=n(t.slice(1));r({name:o,value:o,originalValue:o,path:t,extensions:{condition:"base",originalPath:t,category:"colors",prop:a,virtual:!0}},"pre")})}},ji={enforce:"post",transform(e){e.allTokens=e.allTokens.filter(e=>""!==e.value)}},Mi=[_i,Di,Li,ji],Wi={type:"extensions",enforce:"pre",name:"tokens/css-var",transform(e,t){const{prefix:r,formatCssVar:n}=t,{negative:o,originalPath:a}=e.extensions;return{cssVar:n((o?a:e.path).filter(Boolean),r)}}},$i={enforce:"post",type:"value",name:"tokens/conditionals",transform(e,t){const{prefix:r,formatCssVar:n}=t,o=Ei(e.value);return o.length?(o.forEach(t=>{const o=n(t.split("."),r);e.value=e.value.replace(`{${o.ref}}`,o)}),e.value):e.value}},Bi={type:"extensions",enforce:"pre",name:"tokens/colors/colorPalette",match:e=>"colors"===e.extensions.category&&!e.extensions.virtual,transform(e,t){let r=e.path.slice();if(r.pop(),r.shift(),0===r.length){const t=[...e.path];t.shift(),r=t}if(0===r.length)return{};const n=r.reduce((e,t,r,n)=>{const o=n.slice(0,r+1);return e.push(o),e},[]),o=r[0],a=t.formatTokenName(r),i=e.path.slice(e.path.indexOf(o)+1).reduce((e,t,r,n)=>(e.push(n.slice(r)),e),[]);return 0===i.length&&i.push([""]),{colorPalette:{value:a,roots:n,keys:i}}}},Hi=[Wi,$i,Bi],Gi=e=>Me(e)&&Object.prototype.hasOwnProperty.call(e,"value");function Ui(e){const{prefix:t="",tokens:r={},semanticTokens:n={},breakpoints:o={}}=e,a=e=>e.join("."),i=[],s=new Map,l=new Map,c=new Map,d=new Map,u=new Map,p=new Map,h=new Map,g=new Map,f=[];function m(e,t){i.push(e),s.set(e.name,e),t&&g.forEach(r=>{r.enforce===t&&E(r,e)})}const v=function(e){return e?{breakpoints:Oa(e,e=>({value:e})),sizes:Object.fromEntries(Object.entries(e).map(([e,t])=>[`breakpoint-${e}`,{value:t}]))}:{breakpoints:{},sizes:{}}}(o),b=De({...r,breakpoints:v.breakpoints,sizes:{...r.sizes,...v.sizes}});function x(e){return s.get(e)}let y={};const w=Aa((e,t)=>u.get(e)??t),C=Aa(e=>y[e]||null),k=Aa(e=>xi(e,e=>{if(!e)return;if(e.includes("/")){const t=(e=>{if(!e||"string"!=typeof e)return{invalid:!0,value:e};const[t,r]=e.split("/");if(!t||!r)return{invalid:!0,value:t};const n=w(t),o=x(`opacity.${r}`)?.value;if(!o&&isNaN(Number(r)))return{invalid:!0,value:t};const a=n??t;return{invalid:!1,color:a,value:`color-mix(in srgb, ${a} ${o?100*Number(o)+"%":`${r}%`}, transparent)`}})(e);if(t.invalid)throw new Error("Invalid color mix at "+e+": "+t.value);return t.value}return w(e)||(Si.test(e)?bi(e):e)})),S={prefix:t,allTokens:i,tokenMap:s,registerToken:m,getByName:x,formatTokenName:a,formatCssVar:(e,t)=>fi(e.join("-"),{prefix:t}),flatMap:u,cssVarMap:c,categoryMap:h,colorPaletteMap:d,getVar:w,getCategoryValues:C,expandReferenceInValue:k};function E(e,t){if(t.extensions.references)return;if($e(e.match)&&!e.match(t))return;const r=(n=t,e.transform(n,S));var n;switch(!0){case"extensions"===e.type:Object.assign(t.extensions,r);break;case"value"===e.type:t.value=r;break;default:t[e.type]=r}}function I(e){f.forEach(t=>{t.enforce===e&&t.transform(S)})}function P(e){g.forEach(t=>{t.enforce===e&&i.forEach(e=>{E(t,e)})})}return Ta(b,(e,t)=>{const r=t.includes("DEFAULT"),n=(t=qi(t))[0],o=a(t),i=We(e)?{value:e}:e,s={value:i.value,originalValue:i.value,name:o,path:t,extensions:{condition:"base",originalPath:t,category:n,prop:a(t.slice(1))}};r&&(s.extensions.default=!0),m(s)},{stop:Gi}),Ta(n,(e,t)=>{const r=t.includes("DEFAULT"),n=(t=Ki(qi(t)))[0],o=a(t),i=We(e.value)?{value:{base:e.value}}:e,s={value:i.value.base||"",originalValue:i.value.base||"",name:o,path:t,extensions:{originalPath:t,category:n,conditions:i.value,condition:"base",prop:a(t.slice(1))}};r&&(s.extensions.default=!0),m(s)},{stop:Gi}),function(...e){e.forEach(e=>{g.set(e.name,e)})}(...Hi),function(...e){f.push(...e)}(...Mi),I("pre"),P("pre"),i.forEach(e=>{const t=function(e){if(!e.extensions.conditions)return;const{conditions:t}=e.extensions,r=[];return Ta(t,(t,n)=>{const o=Ki(n);if(!o.length)return;const a=structuredClone(e);a.value=t,a.extensions.condition=o.join(":"),r.push(a)}),r}(e);t&&0!==t.length&&t.forEach(e=>{m(e)})}),i.forEach(e=>{if(t=e.value,!Ci.test(t))return;var t;const r=function(e){return Ei(e).map(e=>x(e)).filter(Boolean)}(e.value);e.extensions.references=r.reduce((e,t)=>(e[t.name]=t,e),{})}),i.forEach(e=>{Ii(e)}),I("post"),P("post"),i.forEach(e=>{!function(e){const{condition:t}=e.extensions;t&&(l.has(t)||l.set(t,new Set),l.get(t).add(e))}(e),function(e){const{category:t,prop:r}=e.extensions;t&&(h.has(t)||h.set(t,new Map),h.get(t).set(r,e))}(e),function(e){const{condition:t,negative:r,virtual:n,cssVar:o}=e.extensions;!r&&!n&&t&&o&&(c.has(t)||c.set(t,new Map),c.get(t).set(o.var,e.value))}(e),function(e){const{category:t,prop:r,cssVar:n,negative:o}=e.extensions;if(!t)return;p.has(t)||p.set(t,new Map);const a=o?e.extensions.conditions?e.originalValue:e.value:n.ref;p.get(t).set(r,a),u.set([t,r].join("."),a)}(e),function(e){const{colorPalette:t,virtual:r,default:n}=e.extensions;t&&!r&&t.roots.forEach(r=>{const o=a(r);d.has(o)||d.set(o,new Map);const i=function(e,t){const r=e.findIndex((r,n)=>t.every((t,r)=>e[n+r]===t));return-1===r||(e.splice(r,t.length),e.splice(r,0,"colorPalette")),e}([...e.path],[...r]),s=x(a(i));if(!s||!s.extensions.cssVar)return;const{var:l}=s.extensions.cssVar;if(d.get(o).set(l,e.extensions.cssVar.ref),n&&1===r.length){const n=x(a(["colors","colorPalette"]));if(!n)return;const o=x(a(e.path));if(!o)return;const i=t.keys[0]?.filter(Boolean);if(!i.length)return;const s=a(r.concat(i));d.has(s)||d.set(s,new Map),d.get(s).set(n.extensions.cssVar.var,o.extensions.cssVar.ref)}})}(e)}),y=wi(p),S}function qi(e){return"DEFAULT"===e[0]?e:e.filter(e=>"DEFAULT"!==e)}function Ki(e){return e.filter(e=>"base"!==e)}Array.from(new Set(["aspectRatios","zIndex","opacity","colors","fonts","fontSizes","fontWeights","lineHeights","letterSpacings","sizes","shadows","spacing","radii","cursor","borders","borderWidths","borderStyles","durations","easings","animations","blurs","gradients","breakpoints","assets"]));const Yi=e=>(t,r)=>{const n=r.utils.colorMix(t);if(n.invalid)return{[e]:t};const o="--mix-"+e;return{[o]:n.value,[e]:`var(${o}, ${n.color})`}};function Xi(...e){const t=wa(...e),{theme:r={},utilities:n={},globalCss:o={},cssVarsRoot:a=":where(:root, :host)",cssVarsPrefix:i="chakra",preflight:s}=t,l=function(e){const t=e.layers??ui,r=Object.values(t).sort((e,t)=>pi[e]-pi[t]);return{names:r,atRule:`@layer ${r.join(", ")};`,wrap(r,n){if(e.disableLayers)return n;const o=t[r];return{[`@layer ${o}`]:n}}}}(t),c=Ui({breakpoints:r.breakpoints,tokens:r.tokens,semanticTokens:r.semanticTokens,prefix:i}),d=function(e){const t=function(e){return Object.entries(e).sort(([,e],[,t])=>parseInt(e,10)<parseInt(t,10)?-1:1).map(([e,t],r,n)=>{let o=null;return r<=n.length-1&&(o=n[r+1]?.[1]),null!=o&&(o=Ma(o)),[e,{name:e,min:ja(t),max:o}]})}(e),r=Object.fromEntries(t);function n(e){return r[e]}function o(e){return Wa(n(e))}const a=function(){const e=function(){const e=Object.keys(r),t=function(e){const t=[];return e.forEach((r,n)=>{let o=n;o++;let a=e[o];for(;a;)t.push([r,a]),o++,a=e[o]}),t}(e),a=e.flatMap(e=>{const t=n(e),r=[`${e}Down`,Wa({max:Ma(t.min)})];return[[e,Wa({min:t.min})],[`${e}Only`,o(e)],r]}).filter(([,e])=>""!==e).concat(t.map(([e,t])=>{const r=n(e),o=n(t);return[`${e}To${a=t,a.charAt(0).toUpperCase()+a.slice(1)}`,Wa({min:r.min,max:Ma(o.min)})];var a}));return Object.fromEntries(a)}();return Object.fromEntries(Object.entries(e))}();return{values:Object.values(r),only:o,keys:function(){return["base",...Object.keys(r)]},conditions:a,getCondition:e=>a[e],up:function(e){return Wa({min:n(e).min})},down:function(e){return Wa({max:Ma(n(e).min)})}}}(r.breakpoints??{}),u=(e=>{const{breakpoints:t,conditions:r={}}=e,n=(a=r,Object.fromEntries(Object.entries(a).map(([e,t])=>((e,t)=>[`_${e}`,t])(e,t)))),o=Object.assign({},n,t.conditions);var a;function i(){return Object.keys(o)}function s(e){return i().includes(e)||/^@|&|&$/.test(e)||e.startsWith("_")}return{keys:i,sort:function(e){return e.filter(e=>"base"!==e).sort((e,t)=>{const r=s(e),n=s(t);return r&&!n?1:!r&&n?-1:0})},has:s,resolve:function(e){return Reflect.get(o,e)||e},breakpoints:t.keys(),expandAtRule:function(e){return e.startsWith("@breakpoint")?t.getCondition(e.replace("@breakpoint ","")):e}}})({conditions:t.conditions??{},breakpoints:d}),p=function(e){const t=(a=e.config,Object.fromEntries(Object.entries(a).map(([e,t])=>[e,t]))),r=e.tokens,n=new Map,o=new Map;var a;function i(e,r){t[e]=r,s(e,r)}const s=(e,t)=>{const r=d(t);r&&(o.set(e,r),c(e,t))},l=new Map,c=(e,t)=>{if(!t)return;const r=d(t,e=>`type:Tokens["${e}"]`);if("object"==typeof r&&r.type)return void l.set(e,new Set([`type:${r.type}`]));if(r){const t=new Set(Object.keys(r));l.set(e,t)}const n=l.get(e)??new Set;t.property&&l.set(e,n.add(`CssProperties["${t.property}"]`))},d=(e,t)=>{const{values:n}=e,o=e=>{const r=t?.(e);return r?{[r]:r}:void 0};return We(n)?o?.(n)??r.getCategoryValues(n)??{}:Array.isArray(n)?n.reduce((e,t)=>(e[t]=t,e),{}):$e(n)?n(t?o:r.getCategoryValues):n},u=Aa((e,t)=>({[e]:e.startsWith("--")?r.getVar(t,t):t})),p=Object.assign(r.getVar,{raw:e=>r.getByName(e)}),h=Aa((e,n)=>{const a=f(e);We(n)&&!n.includes("_EMO_")&&(n=r.expandReferenceInValue(n));const i=t[a];if(!i)return u(a,n);const s=o.get(a)?.[n];return i.transform?i.transform(s??n,{raw:n,token:p,utils:{colorMix:e=>((e,t)=>{if(!e||"string"!=typeof e)return{invalid:!0,value:e};const[r,n]=e.split("/");if(!r||!n||"currentBg"===r)return{invalid:!0,value:r};const o=t(`colors.${r}`),a=t.raw(`opacity.${n}`)?.value;if(!a&&isNaN(Number(n)))return{invalid:!0,value:r};const i=o??r;return{invalid:!1,color:i,value:`color-mix(in srgb, ${i} ${a?100*Number(a)+"%":`${n}%`}, transparent)`}})(e,p)}}):u(e,s??n)});(()=>{for(const[e,r]of Object.entries(t)){const{shorthand:t}=r??{};t&&(Array.isArray(t)?t:[t]).forEach(t=>n.set(t,e))}})(),(()=>{const e=wi(r.colorPaletteMap);i("colorPalette",{values:Object.keys(e),transform:Aa(t=>e[t])})})(),(()=>{for(const[e,r]of Object.entries(t))r&&s(e,r)})(),(()=>{for(const[e,r]of Object.entries(t))r&&c(e,r)})();const g=n.size>0,f=Aa(e=>n.get(e)??e);return{keys:()=>[...Array.from(n.keys()),...Object.keys(t)],hasShorthand:g,transform:h,shorthands:n,resolveShorthand:f,register:i,getTypes:()=>{const e=new Map;for(const[t,r]of l.entries()){if(0===r.size){e.set(t,["string"]);continue}const n=Array.from(r).map(e=>e.startsWith("CssProperties")?e:e.startsWith("type:")?e.replace("type:",""):JSON.stringify(e));e.set(t,n)}return e},addPropertyType:(e,t)=>{const r=l.get(e)??new Set;l.set(e,new Set([...r,...t]))}}}({config:n,tokens:c});!function(){const{textStyles:e,layerStyles:t,animationStyles:n}=r,o=De({textStyle:e,layerStyle:t,animationStyle:n});for(const[e,t]of Object.entries(o)){const r=Na(t??{},e=>Me(e)&&"value"in e);p.register(e,{values:Object.keys(r),transform:e=>b(r[e])})}}(),p.addPropertyType("animationName",Object.keys(r.keyframes??{}));const h=new Set(["css",...p.keys(),...u.keys()]),g=Aa(e=>h.has(e)||Pa(e)),f=e=>Array.isArray(e)?e.reduce((e,t,r)=>{const n=u.breakpoints[r];return null!=t&&(e[n]=t),e},{}):e,m=function(e){const{utility:t,normalize:r}=e,{hasShorthand:n,resolveShorthand:o}=t;return function(e){return Ta(e,r,{stop:e=>Array.isArray(e),getKey:n?o:void 0})}}({utility:p,normalize:f}),v=function(e){const{conditions:t,isValidProperty:r}=e;return function(e){return Ta(e,e=>e,{getKey:(e,n)=>Me(n)?t.has(e)||r(e)?e:function(e){const t=[];let r=0,n="",o=!1;for(let a=0;a<e.length;a++){const i=e[a];"\\"!==i||o?o?(o=!1,n+=i):("("===i?r++:")"===i&&r--,","===i&&0===r?(t.push(n.trim()),n=""):n+=i):(o=!0,n+=i)}return n&&t.push(n.trim()),t}(e).map(e=>"&"+e).join(", "):e})}}({conditions:u,isValidProperty:g}),b=li({transform:p.transform,conditions:u,normalize:m}),x=function(e){const{css:t,conditions:r,normalize:n,layers:o}=e;return function a(i={}){const{base:s,variants:l,defaultVariants:c,compoundVariants:d}=di(i),u=li({conditions:r,normalize:n,transform:(e,t)=>l[e]?.[t]}),p=(e={})=>{const r=n({...c,...De(e)});let a={...s};va(a,u(r));const i=function(e,r){let n={};return e.forEach(e=>{Object.entries(e).every(([e,t])=>"css"===e||(Array.isArray(t)?t:[t]).some(t=>r[e]===t))&&(n=t(n,e.css))}),n}(d,r);return o.wrap("recipes",t(a,i))},h=Object.keys(l),g=Object.fromEntries(Object.entries(l).map(([e,t])=>[e,Object.keys(t)]));return Object.assign(e=>t(p(e)),{className:i.className,__cva__:!0,variantMap:g,variantKeys:h,raw:p,config:i,splitVariantProps:e=>{const t=ci(e,["recipe"]),[r,n]=Je(t,h);return h.includes("colorPalette")||(r.colorPalette=e.colorPalette||c.colorPalette),h.includes("orientation")&&(n.orientation=e.orientation),[r,n]},merge(t){return a(function(e){const{css:t}=e;return function(e,r){const n=di(r.config),o=Be(e.variantKeys,Object.keys(r.variants)),a=t(e.base,n.base),i=Object.fromEntries(o.map(r=>[r,t(e.config.variants[r],n.variants[r])])),s=va(e.config.defaultVariants,n.defaultVariants),l=[...e.compoundVariants,...n.compoundVariants];return{className:je(e.className,r.className),base:a,variants:i,defaultVariants:s,compoundVariants:l}}}(e)(this,t))}})}}({css:b,conditions:u,normalize:m,layers:l}),y=function(e){const{cva:t}=e;return function(e={}){const r=Object.entries(((e={})=>{const t=t=>{return{base:e.base?.[t]??{},variants:{},defaultVariants:e.defaultVariants??{},compoundVariants:e.compoundVariants?(r=e.compoundVariants,n=t,r.filter(e=>e.css[n]).map(e=>({...e,css:e.css[n]}))):[]};var r,n},r=(e.slots??[]).map(e=>[e,t(e)]);for(const[t,n]of Object.entries(e.variants??{}))for(const[e,o]of Object.entries(n))r.forEach(([r,n])=>{var a;(a=n.variants)[t]??(a[t]={}),n.variants[t][e]=o[r]??{}});return Object.fromEntries(r)})(e)).map(([e,r])=>[e,t(r)]),n=e.variants??{},o=Object.keys(n),a=Object.fromEntries(Object.entries(n).map(([e,t])=>[e,Object.keys(t)]));let i={};return e.className&&(i=Object.fromEntries(e.slots.map(t=>[t,`${e.className}__${t}`]))),Object.assign(function(e){const t=r.map(([t,r])=>[t,r(e)]);return Object.fromEntries(t)},{variantMap:a,variantKeys:o,splitVariantProps:function(t){const r=ci(t,["recipe"]),[n,a]=Je(r,o);return o.includes("colorPalette")||(n.colorPalette=t.colorPalette||e.defaultVariants?.colorPalette),o.includes("orientation")&&(a.orientation=t.orientation),[n,a]},classNameMap:i})}}({cva:x});function w(){const e={};for(const[t,r]of c.cssVarMap.entries()){const n=Object.fromEntries(r);if(0===Object.keys(n).length)continue;const o="base"===t?a:u.resolve(t),i=o.startsWith("@");va(e,b(v({[o]:i?{[a]:n}:n})))}return l.wrap("tokens",e)}function C(){const e=Object.fromEntries(Object.entries(r.keyframes??{}).map(([e,t])=>[`@keyframes ${e}`,t])),t=Object.assign({},e,b(v(o)));return l.wrap("base",t)}function k(){const e=function(e){const{preflight:t}=e;if(!t)return{};const{scope:r="",level:n="parent"}=Me(t)?t:{};let o="";r&&"parent"===n?o=`${r} `:r&&"element"===n&&(o=`&${r}`);const a={"*":{margin:"0px",padding:"0px",font:"inherit",wordWrap:"break-word",WebkitTapHighlightColor:"transparent"},"*, *::before, *::after, *::backdrop":{boxSizing:"border-box",borderWidth:"0px",borderStyle:"solid",borderColor:"var(--global-color-border, currentColor)"},hr:{height:"0px",color:"inherit",borderTopWidth:"1px"},body:{minHeight:"100dvh",position:"relative"},img:{borderStyle:"none"},"img, svg, video, canvas, audio, iframe, embed, object":{display:"block",verticalAlign:"middle"},iframe:{border:"none"},"img, video":{maxWidth:"100%",height:"auto"},"p, h1, h2, h3, h4, h5, h6":{overflowWrap:"break-word"},"ol, ul":{listStyle:"none"},"code, kbd, pre, samp":{fontSize:"1em"},"button, [type='button'], [type='reset'], [type='submit']":{WebkitAppearance:"button",backgroundColor:"transparent",backgroundImage:"none"},"button, input, optgroup, select, textarea":{color:"inherit"},"button, select":{textTransform:"none"},table:{textIndent:"0px",borderColor:"inherit",borderCollapse:"collapse"},"*::placeholder":{opacity:"unset",color:"#9ca3af",userSelect:"none"},textarea:{resize:"vertical"},summary:{display:"list-item"},small:{fontSize:"80%"},"sub, sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},dialog:{padding:"0px"},a:{color:"inherit",textDecoration:"inherit"},"abbr:where([title])":{textDecoration:"underline dotted"},"b, strong":{fontWeight:"bolder"},"code, kbd, samp, pre":{fontSize:"1em","--font-mono-fallback":"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New'",fontFamily:"var(--global-font-mono, var(--font-mono-fallback))"},'input[type="text"], input[type="email"], input[type="search"], input[type="password"]':{WebkitAppearance:"none",MozAppearance:"none"},"input[type='search']":{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration, ::-webkit-search-cancel-button":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},'input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button':{height:"auto"},"input[type='number']":{MozAppearance:"textfield"},":-moz-ui-invalid":{boxShadow:"none"},":-moz-focusring":{outline:"auto"},"[hidden]:where(:not([hidden='until-found']))":{display:"none !important"}},i={[r||"html"]:{lineHeight:1.5,"--font-fallback":"ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'",WebkitTextSizeAdjust:"100%",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",textRendering:"optimizeLegibility",touchAction:"manipulation",MozTabSize:"4",tabSize:"4",fontFamily:"var(--global-font-body, var(--font-fallback))"}};if("element"===n){const e=Object.entries(a).reduce((e,[t,r])=>(e[t]={[o]:r},e),{});Object.assign(i,e)}else o?i[o]=a:Object.assign(i,a);return i}({preflight:s});return l.wrap("reset",e)}const S=function(e){const t=new Map;return e.allTokens.forEach(e=>{const{cssVar:r,virtual:n,conditions:o}=e.extensions,a=o||n?r.ref:e.value;t.set(e.name,{value:a,variable:r.ref})}),t}(c),E=(e,t)=>S.get(e)?.value||t;function I(e){return Object.hasOwnProperty.call(r.recipes??{},e)}function P(e){return Object.hasOwnProperty.call(r.slotRecipes??{},e)}return E.var=(e,t)=>S.get(e)?.variable||t,{$$chakra:!0,_config:t,_global:[k(),C(),w()],breakpoints:d,tokens:c,conditions:u,utility:p,token:E,properties:h,layers:l,isValidProperty:g,splitCssProps:function(e){return Je(e,g)},normalizeValue:f,getTokenCss:w,getGlobalCss:C,getPreflightCss:k,css:b,cva:x,sva:y,getRecipe:function(e,t){return r.recipes?.[e]??t},getSlotRecipe:function(e,t){return r.slotRecipes?.[e]??t},hasRecipe:function(e){return I(e)||P(e)},isRecipe:I,isSlotRecipe:P}}const Zi=(e,t)=>null!=t?`${e}(${t})`:t,Ji=e=>{if((e=>/^var\(--.+\)$/.test(e))(e)||null==e)return e;const t="string"==typeof e&&!e.endsWith("deg");return"number"==typeof e||t?`${e}deg`:e},Qi=e=>({values:["outside","inside","mixed","none"],transform(t,{token:r}){const n=r("colors.colorPalette.focusRing");return{inside:{"--focus-ring-color":n,[e]:{outlineOffset:"0px",outlineWidth:"var(--focus-ring-width, 1px)",outlineColor:"var(--focus-ring-color)",outlineStyle:"var(--focus-ring-style, solid)",borderColor:"var(--focus-ring-color)"}},outside:{"--focus-ring-color":n,[e]:{outlineWidth:"var(--focus-ring-width, 2px)",outlineOffset:"var(--focus-ring-offset, 2px)",outlineStyle:"var(--focus-ring-style, solid)",outlineColor:"var(--focus-ring-color)"}},mixed:{"--focus-ring-color":n,[e]:{outlineWidth:"var(--focus-ring-width, 3px)",outlineStyle:"var(--focus-ring-style, solid)",outlineColor:"color-mix(in srgb, var(--focus-ring-color), transparent 60%)",borderColor:"var(--focus-ring-color)"}},none:{"--focus-ring-color":n,[e]:{outline:"none"}}}[t]??{}}}),es=Yi("borderColor"),ts=e=>({transition:e,transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"150ms"}),rs=fi("bg-currentcolor"),ns=e=>e===rs.ref||"currentBg"===e,os=e=>({...e("colors"),currentBg:rs}),as={conditions:{hover:["@media (hover: hover)","&:is(:hover, [data-hover]):not(:disabled, [data-disabled])"],active:"&:is(:active, [data-active]):not(:disabled, [data-disabled], [data-state=open])",focus:"&:is(:focus, [data-focus])",focusWithin:"&:is(:focus-within, [data-focus-within])",focusVisible:"&:is(:focus-visible, [data-focus-visible])",disabled:"&:is(:disabled, [disabled], [data-disabled], [aria-disabled=true])",visited:"&:visited",target:"&:target",readOnly:"&:is([data-readonly], [aria-readonly=true], [readonly])",readWrite:"&:read-write",empty:"&:is(:empty, [data-empty])",checked:"&:is(:checked, [data-checked], [aria-checked=true], [data-state=checked])",enabled:"&:enabled",expanded:"&:is([aria-expanded=true], [data-expanded], [data-state=expanded])",highlighted:"&[data-highlighted]",complete:"&[data-complete]",incomplete:"&[data-incomplete]",dragging:"&[data-dragging]",before:"&::before",after:"&::after",firstLetter:"&::first-letter",firstLine:"&::first-line",marker:"&::marker",selection:"&::selection",file:"&::file-selector-button",backdrop:"&::backdrop",first:"&:first-of-type",last:"&:last-of-type",notFirst:"&:not(:first-of-type)",notLast:"&:not(:last-of-type)",only:"&:only-child",even:"&:nth-of-type(even)",odd:"&:nth-of-type(odd)",peerFocus:".peer:is(:focus, [data-focus]) ~ &",peerHover:".peer:is(:hover, [data-hover]):not(:disabled, [data-disabled]) ~ &",peerActive:".peer:is(:active, [data-active]):not(:disabled, [data-disabled]) ~ &",peerFocusWithin:".peer:focus-within ~ &",peerFocusVisible:".peer:is(:focus-visible, [data-focus-visible]) ~ &",peerDisabled:".peer:is(:disabled, [disabled], [data-disabled]) ~ &",peerChecked:".peer:is(:checked, [data-checked], [aria-checked=true], [data-state=checked]) ~ &",peerInvalid:".peer:is(:invalid, [data-invalid], [aria-invalid=true]) ~ &",peerExpanded:".peer:is([aria-expanded=true], [data-expanded], [data-state=expanded]) ~ &",peerPlaceholderShown:".peer:placeholder-shown ~ &",groupFocus:".group:is(:focus, [data-focus]) &",groupHover:".group:is(:hover, [data-hover]):not(:disabled, [data-disabled]) &",groupActive:".group:is(:active, [data-active]):not(:disabled, [data-disabled]) &",groupFocusWithin:".group:focus-within &",groupFocusVisible:".group:is(:focus-visible, [data-focus-visible]) &",groupDisabled:".group:is(:disabled, [disabled], [data-disabled]) &",groupChecked:".group:is(:checked, [data-checked], [aria-checked=true], [data-state=checked]) &",groupExpanded:".group:is([aria-expanded=true], [data-expanded], [data-state=expanded]) &",groupInvalid:".group:invalid &",indeterminate:"&:is(:indeterminate, [data-indeterminate], [aria-checked=mixed], [data-state=indeterminate])",required:"&:is([data-required], [aria-required=true])",valid:"&:is([data-valid], [data-state=valid])",invalid:"&:is([data-invalid], [aria-invalid=true], [data-state=invalid])",autofill:"&:autofill",inRange:"&:is(:in-range, [data-in-range])",outOfRange:"&:is(:out-of-range, [data-outside-range])",placeholder:"&::placeholder, &[data-placeholder]",placeholderShown:"&:is(:placeholder-shown, [data-placeholder-shown])",pressed:"&:is([aria-pressed=true], [data-pressed])",selected:"&:is([aria-selected=true], [data-selected])",grabbed:"&:is([aria-grabbed=true], [data-grabbed])",underValue:"&[data-state=under-value]",overValue:"&[data-state=over-value]",atValue:"&[data-state=at-value]",default:"&:default",optional:"&:optional",open:"&:is([open], [data-open], [data-state=open])",closed:"&:is([closed], [data-closed], [data-state=closed])",fullscreen:"&is(:fullscreen, [data-fullscreen])",loading:"&:is([data-loading], [aria-busy=true])",hidden:"&:is([hidden], [data-hidden])",current:"&[data-current]",currentPage:"&[aria-current=page]",currentStep:"&[aria-current=step]",today:"&[data-today]",unavailable:"&[data-unavailable]",rangeStart:"&[data-range-start]",rangeEnd:"&[data-range-end]",now:"&[data-now]",topmost:"&[data-topmost]",motionReduce:"@media (prefers-reduced-motion: reduce)",motionSafe:"@media (prefers-reduced-motion: no-preference)",print:"@media print",landscape:"@media (orientation: landscape)",portrait:"@media (orientation: portrait)",dark:".dark &, .dark .chakra-theme:not(.light) &",light:":root &, .light &",osDark:"@media (prefers-color-scheme: dark)",osLight:"@media (prefers-color-scheme: light)",highContrast:"@media (forced-colors: active)",lessContrast:"@media (prefers-contrast: less)",moreContrast:"@media (prefers-contrast: more)",ltr:"[dir=ltr] &",rtl:"[dir=rtl] &",scrollbar:"&::-webkit-scrollbar",scrollbarThumb:"&::-webkit-scrollbar-thumb",scrollbarTrack:"&::-webkit-scrollbar-track",horizontal:"&[data-orientation=horizontal]",vertical:"&[data-orientation=vertical]",icon:"& :where(svg)",starting:"@starting-style"},utilities:{background:{values:os,shorthand:["bg"],transform(e,t){if(ns(t.raw))return{background:rs.ref};const r=Yi("background")(e,t);return{...r,[rs.var]:r?.background}}},backgroundColor:{values:os,shorthand:["bgColor"],transform(e,t){if(ns(t.raw))return{backgroundColor:rs.ref};const r=Yi("backgroundColor")(e,t);return{...r,[rs.var]:r?.backgroundColor}}},backgroundSize:{shorthand:["bgSize"]},backgroundPosition:{shorthand:["bgPos"]},backgroundRepeat:{shorthand:["bgRepeat"]},backgroundAttachment:{shorthand:["bgAttachment"]},backgroundClip:{shorthand:["bgClip"],values:["text"],transform:e=>"text"===e?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},backgroundGradient:{shorthand:["bgGradient"],values:e=>({...e("gradients"),"to-t":"linear-gradient(to top, var(--gradient))","to-tr":"linear-gradient(to top right, var(--gradient))","to-r":"linear-gradient(to right, var(--gradient))","to-br":"linear-gradient(to bottom right, var(--gradient))","to-b":"linear-gradient(to bottom, var(--gradient))","to-bl":"linear-gradient(to bottom left, var(--gradient))","to-l":"linear-gradient(to left, var(--gradient))","to-tl":"linear-gradient(to top left, var(--gradient))"}),transform:e=>({"--gradient-stops":"var(--gradient-from), var(--gradient-to)","--gradient":"var(--gradient-via-stops, var(--gradient-stops))",backgroundImage:e})},gradientFrom:{values:os,transform:Yi("--gradient-from")},gradientTo:{values:os,transform:Yi("--gradient-to")},gradientVia:{values:os,transform:(e,t)=>({...Yi("--gradient-via")(e,t),"--gradient-via-stops":"var(--gradient-from), var(--gradient-via), var(--gradient-to)"})},backgroundImage:{values:e=>({...e("gradients"),...e("assets")}),shorthand:["bgImg","bgImage"]},border:{values:"borders"},borderTop:{values:"borders"},borderLeft:{values:"borders"},borderBlockStart:{values:"borders"},borderRight:{values:"borders"},borderBottom:{values:"borders"},borderBlockEnd:{values:"borders"},borderInlineStart:{values:"borders",shorthand:["borderStart"]},borderInlineEnd:{values:"borders",shorthand:["borderEnd"]},borderInline:{values:"borders",shorthand:["borderX"]},borderBlock:{values:"borders",shorthand:["borderY"]},borderColor:{values:os,transform:Yi("borderColor")},borderTopColor:{values:os,transform:Yi("borderTopColor")},borderBlockStartColor:{values:os,transform:Yi("borderBlockStartColor")},borderBottomColor:{values:os,transform:Yi("borderBottomColor")},borderBlockEndColor:{values:os,transform:Yi("borderBlockEndColor")},borderLeftColor:{values:os,transform:Yi("borderLeftColor")},borderInlineStartColor:{values:os,shorthand:["borderStartColor"],transform:Yi("borderInlineStartColor")},borderRightColor:{values:os,transform:Yi("borderRightColor")},borderInlineEndColor:{values:os,shorthand:["borderEndColor"],transform:Yi("borderInlineEndColor")},borderStyle:{values:"borderStyles"},borderTopStyle:{values:"borderStyles"},borderBlockStartStyle:{values:"borderStyles"},borderBottomStyle:{values:"borderStyles"},borderBlockEndStyle:{values:"borderStyles"},borderInlineStartStyle:{values:"borderStyles",shorthand:["borderStartStyle"]},borderInlineEndStyle:{values:"borderStyles",shorthand:["borderEndStyle"]},borderLeftStyle:{values:"borderStyles"},borderRightStyle:{values:"borderStyles"},borderRadius:{values:"radii",shorthand:["rounded"]},borderTopLeftRadius:{values:"radii",shorthand:["roundedTopLeft"]},borderStartStartRadius:{values:"radii",shorthand:["roundedStartStart","borderTopStartRadius"]},borderEndStartRadius:{values:"radii",shorthand:["roundedEndStart","borderBottomStartRadius"]},borderTopRightRadius:{values:"radii",shorthand:["roundedTopRight"]},borderStartEndRadius:{values:"radii",shorthand:["roundedStartEnd","borderTopEndRadius"]},borderEndEndRadius:{values:"radii",shorthand:["roundedEndEnd","borderBottomEndRadius"]},borderBottomLeftRadius:{values:"radii",shorthand:["roundedBottomLeft"]},borderBottomRightRadius:{values:"radii",shorthand:["roundedBottomRight"]},borderInlineStartRadius:{values:"radii",property:"borderRadius",shorthand:["roundedStart","borderStartRadius"],transform:e=>({borderStartStartRadius:e,borderEndStartRadius:e})},borderInlineEndRadius:{values:"radii",property:"borderRadius",shorthand:["roundedEnd","borderEndRadius"],transform:e=>({borderStartEndRadius:e,borderEndEndRadius:e})},borderTopRadius:{values:"radii",property:"borderRadius",shorthand:["roundedTop"],transform:e=>({borderTopLeftRadius:e,borderTopRightRadius:e})},borderBottomRadius:{values:"radii",property:"borderRadius",shorthand:["roundedBottom"],transform:e=>({borderBottomLeftRadius:e,borderBottomRightRadius:e})},borderLeftRadius:{values:"radii",property:"borderRadius",shorthand:["roundedLeft"],transform:e=>({borderTopLeftRadius:e,borderBottomLeftRadius:e})},borderRightRadius:{values:"radii",property:"borderRadius",shorthand:["roundedRight"],transform:e=>({borderTopRightRadius:e,borderBottomRightRadius:e})},borderWidth:{values:"borderWidths"},borderBlockStartWidth:{values:"borderWidths"},borderTopWidth:{values:"borderWidths"},borderBottomWidth:{values:"borderWidths"},borderBlockEndWidth:{values:"borderWidths"},borderRightWidth:{values:"borderWidths"},borderInlineWidth:{values:"borderWidths",shorthand:["borderXWidth"]},borderInlineStartWidth:{values:"borderWidths",shorthand:["borderStartWidth"]},borderInlineEndWidth:{values:"borderWidths",shorthand:["borderEndWidth"]},borderLeftWidth:{values:"borderWidths"},borderBlockWidth:{values:"borderWidths",shorthand:["borderYWidth"]},color:{values:os,transform:Yi("color")},fill:{values:os,transform:Yi("fill")},stroke:{values:os,transform:Yi("stroke")},accentColor:{values:os,transform:Yi("accentColor")},divideX:{values:{type:"string"},transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderInlineStartWidth:e,borderInlineEndWidth:"0px"}})},divideY:{values:{type:"string"},transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderTopWidth:e,borderBottomWidth:"0px"}})},divideColor:{values:os,transform:(e,t)=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":es(e,t)})},divideStyle:{property:"borderStyle",transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderStyle:e}})},boxShadow:{values:"shadows",shorthand:["shadow"]},boxShadowColor:{values:os,transform:Yi("--shadow-color"),shorthand:["shadowColor"]},mixBlendMode:{shorthand:["blendMode"]},backgroundBlendMode:{shorthand:["bgBlendMode"]},opacity:{values:"opacity"},filter:{transform:e=>"auto"!==e?{filter:e}:{filter:"var(--blur) var(--brightness) var(--contrast) var(--grayscale) var(--hue-rotate) var(--invert) var(--saturate) var(--sepia) var(--drop-shadow)"}},blur:{values:"blurs",transform:e=>({"--blur":Zi("blur",e)})},brightness:{transform:e=>({"--brightness":Zi("brightness",e)})},contrast:{transform:e=>({"--contrast":Zi("contrast",e)})},grayscale:{transform:e=>({"--grayscale":Zi("grayscale",e)})},hueRotate:{transform:e=>({"--hue-rotate":Zi("hue-rotate",Ji(e))})},invert:{transform:e=>({"--invert":Zi("invert",e)})},saturate:{transform:e=>({"--saturate":Zi("saturate",e)})},sepia:{transform:e=>({"--sepia":Zi("sepia",e)})},dropShadow:{transform:e=>({"--drop-shadow":Zi("drop-shadow",e)})},backdropFilter:{transform:e=>"auto"!==e?{backdropFilter:e}:{backdropFilter:"var(--backdrop-blur) var(--backdrop-brightness) var(--backdrop-contrast) var(--backdrop-grayscale) var(--backdrop-hue-rotate) var(--backdrop-invert) var(--backdrop-opacity) var(--backdrop-saturate) var(--backdrop-sepia)"}},backdropBlur:{values:"blurs",transform:e=>({"--backdrop-blur":Zi("blur",e)})},backdropBrightness:{transform:e=>({"--backdrop-brightness":Zi("brightness",e)})},backdropContrast:{transform:e=>({"--backdrop-contrast":Zi("contrast",e)})},backdropGrayscale:{transform:e=>({"--backdrop-grayscale":Zi("grayscale",e)})},backdropHueRotate:{transform:e=>({"--backdrop-hue-rotate":Zi("hue-rotate",Ji(e))})},backdropInvert:{transform:e=>({"--backdrop-invert":Zi("invert",e)})},backdropOpacity:{transform:e=>({"--backdrop-opacity":Zi("opacity",e)})},backdropSaturate:{transform:e=>({"--backdrop-saturate":Zi("saturate",e)})},backdropSepia:{transform:e=>({"--backdrop-sepia":Zi("sepia",e)})},flexBasis:{values:"sizes"},gap:{values:"spacing"},rowGap:{values:"spacing",shorthand:["gapY"]},columnGap:{values:"spacing",shorthand:["gapX"]},flexDirection:{shorthand:["flexDir"]},gridGap:{values:"spacing"},gridColumnGap:{values:"spacing"},gridRowGap:{values:"spacing"},outlineColor:{values:os,transform:Yi("outlineColor")},focusRing:Qi("&:is(:focus, [data-focus])"),focusVisibleRing:Qi("&:is(:focus-visible, [data-focus-visible])"),focusRingColor:{values:os,transform:Yi("--focus-ring-color")},focusRingOffset:{values:"spacing",transform:e=>({"--focus-ring-offset":e})},focusRingWidth:{values:"borderWidths",property:"outlineWidth",transform:e=>({"--focus-ring-width":e})},focusRingStyle:{values:"borderStyles",property:"outlineStyle",transform:e=>({"--focus-ring-style":e})},aspectRatio:{values:"aspectRatios"},width:{values:"sizes",shorthand:["w"]},inlineSize:{values:"sizes"},height:{values:"sizes",shorthand:["h"]},blockSize:{values:"sizes"},boxSize:{values:"sizes",property:"width",transform:e=>({width:e,height:e})},minWidth:{values:"sizes",shorthand:["minW"]},minInlineSize:{values:"sizes"},minHeight:{values:"sizes",shorthand:["minH"]},minBlockSize:{values:"sizes"},maxWidth:{values:"sizes",shorthand:["maxW"]},maxInlineSize:{values:"sizes"},maxHeight:{values:"sizes",shorthand:["maxH"]},maxBlockSize:{values:"sizes"},hideFrom:{values:"breakpoints",transform:(e,{raw:t,token:r})=>{const n=r.raw(`breakpoints.${t}`)?`@breakpoint ${t}`:`@media screen and (min-width: ${e})`;return{[n]:{display:"none"}}}},hideBelow:{values:"breakpoints",transform(e,{raw:t,token:r}){const n=r.raw(`breakpoints.${t}`)?`@breakpoint ${t}Down`:`@media screen and (max-width: ${e})`;return{[n]:{display:"none"}}}},overscrollBehavior:{shorthand:["overscroll"]},overscrollBehaviorX:{shorthand:["overscrollX"]},overscrollBehaviorY:{shorthand:["overscrollY"]},scrollbar:{values:["visible","hidden"],transform(e){switch(e){case"visible":return{msOverflowStyle:"auto",scrollbarWidth:"auto","&::-webkit-scrollbar":{display:"block"}};case"hidden":return{msOverflowStyle:"none",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}};default:return{}}}},scrollbarColor:{values:os,transform:Yi("scrollbarColor")},scrollbarGutter:{values:"spacing"},scrollbarWidth:{values:"sizes"},scrollMargin:{values:"spacing"},scrollMarginTop:{values:"spacing"},scrollMarginBottom:{values:"spacing"},scrollMarginLeft:{values:"spacing"},scrollMarginRight:{values:"spacing"},scrollMarginX:{values:"spacing",transform:e=>({scrollMarginLeft:e,scrollMarginRight:e})},scrollMarginY:{values:"spacing",transform:e=>({scrollMarginTop:e,scrollMarginBottom:e})},scrollPadding:{values:"spacing"},scrollPaddingTop:{values:"spacing"},scrollPaddingBottom:{values:"spacing"},scrollPaddingLeft:{values:"spacing"},scrollPaddingRight:{values:"spacing"},scrollPaddingInline:{values:"spacing",shorthand:["scrollPaddingX"]},scrollPaddingBlock:{values:"spacing",shorthand:["scrollPaddingY"]},scrollSnapType:{values:{none:"none",x:"x var(--scroll-snap-strictness)",y:"y var(--scroll-snap-strictness)",both:"both var(--scroll-snap-strictness)"}},scrollSnapStrictness:{values:["mandatory","proximity"],transform:e=>({"--scroll-snap-strictness":e})},scrollSnapMargin:{values:"spacing"},scrollSnapMarginTop:{values:"spacing"},scrollSnapMarginBottom:{values:"spacing"},scrollSnapMarginLeft:{values:"spacing"},scrollSnapMarginRight:{values:"spacing"},listStylePosition:{shorthand:["listStylePos"]},listStyleImage:{values:"assets",shorthand:["listStyleImg"]},position:{shorthand:["pos"]},zIndex:{values:"zIndex"},inset:{values:"spacing"},insetInline:{values:"spacing",shorthand:["insetX"]},insetBlock:{values:"spacing",shorthand:["insetY"]},top:{values:"spacing"},insetBlockStart:{values:"spacing"},bottom:{values:"spacing"},insetBlockEnd:{values:"spacing"},left:{values:"spacing"},right:{values:"spacing"},insetInlineStart:{values:"spacing",shorthand:["insetStart"]},insetInlineEnd:{values:"spacing",shorthand:["insetEnd"]},ring:{transform:e=>({"--ring-offset-shadow":"var(--ring-inset) 0 0 0 var(--ring-offset-width) var(--ring-offset-color)","--ring-shadow":"var(--ring-inset) 0 0 0 calc(var(--ring-width) + var(--ring-offset-width)) var(--ring-color)","--ring-width":e,boxShadow:"var(--ring-offset-shadow), var(--ring-shadow), var(--shadow, 0 0 #0000)"})},ringColor:{values:os,transform:Yi("--ring-color")},ringOffset:{transform:e=>({"--ring-offset-width":e})},ringOffsetColor:{values:os,transform:Yi("--ring-offset-color")},ringInset:{transform:e=>({"--ring-inset":e})},margin:{values:"spacing",shorthand:["m"]},marginTop:{values:"spacing",shorthand:["mt"]},marginBlockStart:{values:"spacing"},marginRight:{values:"spacing",shorthand:["mr"]},marginBottom:{values:"spacing",shorthand:["mb"]},marginBlockEnd:{values:"spacing"},marginLeft:{values:"spacing",shorthand:["ml"]},marginInlineStart:{values:"spacing",shorthand:["ms","marginStart"]},marginInlineEnd:{values:"spacing",shorthand:["me","marginEnd"]},marginInline:{values:"spacing",shorthand:["mx","marginX"]},marginBlock:{values:"spacing",shorthand:["my","marginY"]},padding:{values:"spacing",shorthand:["p"]},paddingTop:{values:"spacing",shorthand:["pt"]},paddingRight:{values:"spacing",shorthand:["pr"]},paddingBottom:{values:"spacing",shorthand:["pb"]},paddingBlockStart:{values:"spacing"},paddingBlockEnd:{values:"spacing"},paddingLeft:{values:"spacing",shorthand:["pl"]},paddingInlineStart:{values:"spacing",shorthand:["ps","paddingStart"]},paddingInlineEnd:{values:"spacing",shorthand:["pe","paddingEnd"]},paddingInline:{values:"spacing",shorthand:["px","paddingX"]},paddingBlock:{values:"spacing",shorthand:["py","paddingY"]},textDecoration:{shorthand:["textDecor"]},textDecorationColor:{values:os,transform:Yi("textDecorationColor")},textShadow:{values:"shadows"},transform:{transform:e=>{let t=e;return"auto"===e&&(t="translateX(var(--translate-x, 0)) translateY(var(--translate-y, 0)) rotate(var(--rotate, 0)) scaleX(var(--scale-x, 1)) scaleY(var(--scale-y, 1)) skewX(var(--skew-x, 0)) skewY(var(--skew-y, 0))"),"auto-gpu"===e&&(t="translate3d(var(--translate-x, 0), var(--translate-y, 0), 0) rotate(var(--rotate, 0)) scaleX(var(--scale-x, 1)) scaleY(var(--scale-y, 1)) skewX(var(--skew-x, 0)) skewY(var(--skew-y, 0))"),{transform:t}}},skewX:{transform:e=>({"--skew-x":Ji(e)})},skewY:{transform:e=>({"--skew-y":Ji(e)})},scaleX:{transform:e=>({"--scale-x":e})},scaleY:{transform:e=>({"--scale-y":e})},scale:{transform:e=>"auto"!==e?{scale:e}:{scale:"var(--scale-x, 1) var(--scale-y, 1)"}},spaceXReverse:{values:{type:"boolean"},transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-x-reverse":e?"1":void 0}})},spaceX:{property:"marginInlineStart",values:"spacing",transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-x-reverse":"0",marginInlineStart:`calc(${e} * calc(1 - var(--space-x-reverse)))`,marginInlineEnd:`calc(${e} * var(--space-x-reverse))`}})},spaceYReverse:{values:{type:"boolean"},transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-y-reverse":e?"1":void 0}})},spaceY:{property:"marginTop",values:"spacing",transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-y-reverse":"0",marginTop:`calc(${e} * calc(1 - var(--space-y-reverse)))`,marginBottom:`calc(${e} * var(--space-y-reverse))`}})},rotate:{transform:e=>"auto"!==e?{rotate:Ji(e)}:{rotate:"var(--rotate-x, 0) var(--rotate-y, 0) var(--rotate-z, 0)"}},rotateX:{transform:e=>({"--rotate-x":Ji(e)})},rotateY:{transform:e=>({"--rotate-y":Ji(e)})},translate:{transform:e=>"auto"!==e?{translate:e}:{translate:"var(--translate-x) var(--translate-y)"}},translateX:{values:"spacing",transform:e=>({"--translate-x":e})},translateY:{values:"spacing",transform:e=>({"--translate-y":e})},transition:{values:["all","common","colors","opacity","position","backgrounds","size","shadow","transform"],transform(e){switch(e){case"all":return ts("all");case"position":return ts("left, right, top, bottom, inset-inline, inset-block");case"colors":return ts("color, background-color, border-color, text-decoration-color, fill, stroke");case"opacity":return ts("opacity");case"shadow":return ts("box-shadow");case"transform":return ts("transform");case"size":return ts("width, height");case"backgrounds":return ts("background, background-color, background-image, background-position");case"common":return ts("color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter");default:return{transition:e}}}},transitionDuration:{values:"durations"},transitionProperty:{values:{common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, translate, transform",colors:"background-color, border-color, color, fill, stroke",size:"width, height",position:"left, right, top, bottom, inset-inline, inset-block",background:"background, background-color, background-image, background-position"}},transitionTimingFunction:{values:"easings"},animation:{values:"animations"},animationDuration:{values:"durations"},animationDelay:{values:"durations"},animationTimingFunction:{values:"easings"},fontFamily:{values:"fonts"},fontSize:{values:"fontSizes"},fontWeight:{values:"fontWeights"},lineHeight:{values:"lineHeights"},letterSpacing:{values:"letterSpacings"},textIndent:{values:"spacing"},truncate:{values:{type:"boolean"},transform:e=>!0===e?{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}:{}},lineClamp:{transform:e=>"none"===e?{WebkitLineClamp:"unset"}:{overflow:"hidden",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",textWrap:"wrap"}},srOnly:{values:{type:"boolean"},transform:e=>is[e]||{}},debug:{values:{type:"boolean"},transform:e=>e?{outline:"1px solid blue !important","& > *":{outline:"1px solid red !important"}}:{}},caretColor:{values:os,transform:Yi("caretColor")},cursor:{values:"cursor"}}},is={true:{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},false:{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",clip:"auto",whiteSpace:"normal"}},ss="var(--chakra-empty,/*!*/ /*!*/)",ls={"*":{fontFeatureSettings:'"cv11"',"--ring-inset":ss,"--ring-offset-width":"0px","--ring-offset-color":"#fff","--ring-color":"rgba(66, 153, 225, 0.6)","--ring-offset-shadow":"0 0 #0000","--ring-shadow":"0 0 #0000",...Object.fromEntries(["brightness","contrast","grayscale","hue-rotate","invert","saturate","sepia","drop-shadow"].map(e=>[`--${e}`,ss])),...Object.fromEntries(["blur","brightness","contrast","grayscale","hue-rotate","invert","opacity","saturate","sepia"].map(e=>[`--backdrop-${e}`,ss])),"--global-font-mono":"fonts.mono","--global-font-body":"fonts.body","--global-color-border":"colors.border"},html:{color:"fg",bg:"bg",lineHeight:"1.5",colorPalette:"gray"},"*::placeholder, *[data-placeholder]":{color:"fg.muted/80"},"*::selection":{bg:"colorPalette.emphasized/80"}},cs={className:"chakra-badge",base:{display:"inline-flex",alignItems:"center",borderRadius:"l2",gap:"1",fontWeight:"medium",fontVariantNumeric:"tabular-nums",whiteSpace:"nowrap",userSelect:"none"},variants:{variant:{solid:{bg:"colorPalette.solid",color:"colorPalette.contrast"},subtle:{bg:"colorPalette.subtle",color:"colorPalette.fg"},outline:{color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},surface:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},plain:{color:"colorPalette.fg"}},size:{xs:{textStyle:"2xs",px:"1",minH:"4"},sm:{textStyle:"xs",px:"1.5",minH:"5"},md:{textStyle:"sm",px:"2",minH:"6"},lg:{textStyle:"sm",px:"2.5",minH:"7"}}},defaultVariants:{variant:"subtle",size:"sm"}},ds={className:"chakra-checkmark",base:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0",color:"white",borderWidth:"1px",borderColor:"transparent",borderRadius:"l1",cursor:"checkbox",focusVisibleRing:"outside",_icon:{boxSize:"full"},_invalid:{colorPalette:"red",borderColor:"border.error"},_disabled:{opacity:"0.5",cursor:"disabled"}},variants:{size:{xs:{boxSize:"3"},sm:{boxSize:"4"},md:{boxSize:"5",p:"0.5"},lg:{boxSize:"6",p:"0.5"}},variant:{solid:{borderColor:"border.emphasized","&:is([data-state=checked], [data-state=indeterminate])":{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},outline:{borderColor:"border","&:is([data-state=checked], [data-state=indeterminate])":{color:"colorPalette.fg",borderColor:"colorPalette.solid"}},subtle:{bg:"colorPalette.muted",borderColor:"colorPalette.muted","&:is([data-state=checked], [data-state=indeterminate])":{color:"colorPalette.fg"}},plain:{"&:is([data-state=checked], [data-state=indeterminate])":{color:"colorPalette.fg"}},inverted:{borderColor:"border",color:"colorPalette.fg","&:is([data-state=checked], [data-state=indeterminate])":{borderColor:"colorPalette.solid"}}}},defaultVariants:{variant:"solid",size:"md"}},{variants:us,defaultVariants:ps}=cs,hs={className:"color-swatch",base:{boxSize:"var(--swatch-size)",shadow:"inset 0 0 0 1px rgba(0, 0, 0, 0.1)","--checker-size":"8px","--checker-bg":"colors.bg","--checker-fg":"colors.bg.emphasized",background:"linear-gradient(var(--color), var(--color)), repeating-conic-gradient(var(--checker-fg) 0%, var(--checker-fg) 25%, var(--checker-bg) 0%, var(--checker-bg) 50%) 0% 50% / var(--checker-size) var(--checker-size) !important",display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0"},variants:{size:{"2xs":{"--swatch-size":"sizes.3.5"},xs:{"--swatch-size":"sizes.4"},sm:{"--swatch-size":"sizes.4.5"},md:{"--swatch-size":"sizes.5"},lg:{"--swatch-size":"sizes.6"},xl:{"--swatch-size":"sizes.7"},"2xl":{"--swatch-size":"sizes.8"},inherit:{"--swatch-size":"inherit"},full:{"--swatch-size":"100%"}},shape:{square:{borderRadius:"none"},circle:{borderRadius:"full"},rounded:{borderRadius:"l1"}}},defaultVariants:{size:"md",shape:"rounded"}},gs={className:"chakra-input",base:{width:"100%",minWidth:"0",outline:"0",position:"relative",appearance:"none",textAlign:"start",borderRadius:"l2",_disabled:{layerStyle:"disabled"},height:"var(--input-height)",minW:"var(--input-height)","--focus-color":"colors.colorPalette.focusRing","--error-color":"colors.border.error",_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"}},variants:{size:{"2xs":{textStyle:"xs",px:"2","--input-height":"sizes.7"},xs:{textStyle:"xs",px:"2","--input-height":"sizes.8"},sm:{textStyle:"sm",px:"2.5","--input-height":"sizes.9"},md:{textStyle:"sm",px:"3","--input-height":"sizes.10"},lg:{textStyle:"md",px:"4","--input-height":"sizes.11"},xl:{textStyle:"md",px:"4.5","--input-height":"sizes.12"},"2xl":{textStyle:"lg",px:"5","--input-height":"sizes.16"}},variant:{outline:{bg:"transparent",borderWidth:"1px",borderColor:"border",focusVisibleRing:"inside",focusRingColor:"var(--focus-color)"},subtle:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted",focusVisibleRing:"inside",focusRingColor:"var(--focus-color)"},flushed:{bg:"transparent",borderBottomWidth:"1px",borderBottomColor:"border",borderRadius:"0",px:"0",_focusVisible:{borderColor:"var(--focus-color)",boxShadow:"0px 1px 0px 0px var(--focus-color)",_invalid:{borderColor:"var(--error-color)",boxShadow:"0px 1px 0px 0px var(--error-color)"}}}}},defaultVariants:{size:"md",variant:"outline"}},fs={className:"chakra-radiomark",base:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,verticalAlign:"top",color:"white",borderWidth:"1px",borderColor:"transparent",borderRadius:"full",cursor:"radio",_focusVisible:{outline:"2px solid",outlineColor:"colorPalette.focusRing",outlineOffset:"2px"},_invalid:{colorPalette:"red",borderColor:"red.500"},_disabled:{opacity:"0.5",cursor:"disabled"},"& .dot":{height:"100%",width:"100%",borderRadius:"full",bg:"currentColor",scale:"0.4"}},variants:{variant:{solid:{borderWidth:"1px",borderColor:"border.emphasized",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},subtle:{borderWidth:"1px",bg:"colorPalette.muted",borderColor:"colorPalette.muted",color:"transparent",_checked:{color:"colorPalette.fg"}},outline:{borderWidth:"1px",borderColor:"inherit",_checked:{color:"colorPalette.fg",borderColor:"colorPalette.solid"},"& .dot":{scale:"0.6"}},inverted:{bg:"bg",borderWidth:"1px",borderColor:"inherit",_checked:{color:"colorPalette.solid",borderColor:"currentcolor"}}},size:{xs:{boxSize:"3"},sm:{boxSize:"4"},md:{boxSize:"5"},lg:{boxSize:"6"}}},defaultVariants:{variant:"solid",size:"md"}},ms={badge:cs,button:{className:"chakra-button",base:{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",borderRadius:"l2",whiteSpace:"nowrap",verticalAlign:"middle",borderWidth:"1px",borderColor:"transparent",cursor:"button",flexShrink:"0",outline:"0",lineHeight:"1.2",isolation:"isolate",fontWeight:"medium",transitionProperty:"common",transitionDuration:"moderate",focusVisibleRing:"outside",_disabled:{layerStyle:"disabled"},_icon:{flexShrink:"0"}},variants:{size:{"2xs":{h:"6",minW:"6",textStyle:"xs",px:"2",gap:"1",_icon:{width:"3.5",height:"3.5"}},xs:{h:"8",minW:"8",textStyle:"xs",px:"2.5",gap:"1",_icon:{width:"4",height:"4"}},sm:{h:"9",minW:"9",px:"3.5",textStyle:"sm",gap:"2",_icon:{width:"4",height:"4"}},md:{h:"10",minW:"10",textStyle:"sm",px:"4",gap:"2",_icon:{width:"5",height:"5"}},lg:{h:"11",minW:"11",textStyle:"md",px:"5",gap:"3",_icon:{width:"5",height:"5"}},xl:{h:"12",minW:"12",textStyle:"md",px:"5",gap:"2.5",_icon:{width:"5",height:"5"}},"2xl":{h:"16",minW:"16",textStyle:"lg",px:"7",gap:"3",_icon:{width:"6",height:"6"}}},variant:{solid:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"transparent",_hover:{bg:"colorPalette.solid/90"},_expanded:{bg:"colorPalette.solid/90"}},subtle:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"transparent",_hover:{bg:"colorPalette.muted"},_expanded:{bg:"colorPalette.muted"}},surface:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted",_hover:{bg:"colorPalette.muted"},_expanded:{bg:"colorPalette.muted"}},outline:{borderWidth:"1px",borderColor:"colorPalette.muted",color:"colorPalette.fg",_hover:{bg:"colorPalette.subtle"},_expanded:{bg:"colorPalette.subtle"}},ghost:{bg:"transparent",color:"colorPalette.fg",_hover:{bg:"colorPalette.subtle"},_expanded:{bg:"colorPalette.subtle"}},plain:{color:"colorPalette.fg"}}},defaultVariants:{size:"md",variant:"solid"}},code:{className:"chakra-code",base:{fontFamily:"mono",alignItems:"center",display:"inline-flex",borderRadius:"l2"},variants:us,defaultVariants:ps},container:{className:"chakra-container",base:{position:"relative",maxWidth:"8xl",w:"100%",mx:"auto",px:{base:"4",md:"6",lg:"8"}},variants:{centerContent:{true:{display:"flex",flexDirection:"column",alignItems:"center"}},fluid:{true:{maxWidth:"full"}}}},heading:{className:"chakra-heading",base:{fontFamily:"heading",fontWeight:"semibold"},variants:{size:{xs:{textStyle:"xs"},sm:{textStyle:"sm"},md:{textStyle:"md"},lg:{textStyle:"lg"},xl:{textStyle:"xl"},"2xl":{textStyle:"2xl"},"3xl":{textStyle:"3xl"},"4xl":{textStyle:"4xl"},"5xl":{textStyle:"5xl"},"6xl":{textStyle:"6xl"},"7xl":{textStyle:"7xl"}}},defaultVariants:{size:"xl"}},input:gs,inputAddon:{className:"chakra-input-addon",base:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap",alignSelf:"stretch",borderRadius:"l2"},variants:{size:gs.variants.size,variant:{outline:{borderWidth:"1px",borderColor:"border",bg:"bg.muted"},subtle:{borderWidth:"1px",borderColor:"transparent",bg:"bg.emphasized"},flushed:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}},defaultVariants:{size:"md",variant:"outline"}},kbd:{className:"chakra-kbd",base:{display:"inline-flex",alignItems:"center",fontWeight:"medium",fontFamily:"mono",flexShrink:"0",whiteSpace:"nowrap",wordSpacing:"-0.5em",userSelect:"none",px:"1",borderRadius:"l2"},variants:{variant:{raised:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderWidth:"1px",borderBottomWidth:"2px",borderColor:"colorPalette.muted"},outline:{borderWidth:"1px",color:"colorPalette.fg"},subtle:{bg:"colorPalette.muted",color:"colorPalette.fg"},plain:{color:"colorPalette.fg"}},size:{sm:{textStyle:"xs",height:"4.5"},md:{textStyle:"sm",height:"5"},lg:{textStyle:"md",height:"6"}}},defaultVariants:{size:"md",variant:"raised"}},link:{className:"chakra-link",base:{display:"inline-flex",alignItems:"center",outline:"none",gap:"1.5",cursor:"pointer",borderRadius:"l1",focusRing:"outside"},variants:{variant:{underline:{color:"colorPalette.fg",textDecoration:"underline",textUnderlineOffset:"3px",textDecorationColor:"currentColor/20"},plain:{color:"colorPalette.fg",_hover:{textDecoration:"underline",textUnderlineOffset:"3px",textDecorationColor:"currentColor/20"}}}},defaultVariants:{variant:"plain"}},mark:{className:"chakra-mark",base:{bg:"transparent",color:"inherit",whiteSpace:"nowrap"},variants:{variant:{subtle:{bg:"colorPalette.subtle",color:"inherit"},solid:{bg:"colorPalette.solid",color:"colorPalette.contrast"},text:{fontWeight:"medium"},plain:{}}}},separator:{className:"chakra-separator",base:{display:"block",borderColor:"border"},variants:{variant:{solid:{borderStyle:"solid"},dashed:{borderStyle:"dashed"},dotted:{borderStyle:"dotted"}},orientation:{vertical:{borderInlineStartWidth:"var(--separator-thickness)"},horizontal:{borderTopWidth:"var(--separator-thickness)"}},size:{xs:{"--separator-thickness":"0.5px"},sm:{"--separator-thickness":"1px"},md:{"--separator-thickness":"2px"},lg:{"--separator-thickness":"3px"}}},defaultVariants:{size:"sm",variant:"solid",orientation:"horizontal"}},skeleton:{className:"chakra-skeleton",base:{},variants:{loading:{true:{borderRadius:"l2",boxShadow:"none",backgroundClip:"padding-box",cursor:"default",color:"transparent",pointerEvents:"none",userSelect:"none",flexShrink:"0","&::before, &::after, *":{visibility:"hidden"}},false:{background:"unset",animation:"fade-in var(--fade-duration, 0.1s) ease-out !important"}},variant:{pulse:{background:"bg.emphasized",animation:"pulse",animationDuration:"var(--duration, 1.2s)"},shine:{"--animate-from":"200%","--animate-to":"-200%","--start-color":"colors.bg.muted","--end-color":"colors.bg.emphasized",backgroundImage:"linear-gradient(270deg,var(--start-color),var(--end-color),var(--end-color),var(--start-color))",backgroundSize:"400% 100%",animation:"bg-position var(--duration, 5s) ease-in-out infinite"},none:{animation:"none"}}},defaultVariants:{variant:"pulse",loading:!0}},skipNavLink:{className:"chakra-skip-nav",base:{display:"inline-flex",bg:"bg.panel",padding:"2.5",borderRadius:"l2",fontWeight:"semibold",focusVisibleRing:"outside",textStyle:"sm",userSelect:"none",border:"0",height:"1px",width:"1px",margin:"-1px",outline:"0",overflow:"hidden",position:"absolute",clip:"rect(0 0 0 0)",_focusVisible:{clip:"auto",width:"auto",height:"auto",position:"fixed",top:"6",insetStart:"6"}}},spinner:{className:"chakra-spinner",base:{display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderWidth:"2px",borderRadius:"full",width:"var(--spinner-size)",height:"var(--spinner-size)",animation:"spin",animationDuration:"slowest","--spinner-track-color":"transparent",borderBottomColor:"var(--spinner-track-color)",borderInlineStartColor:"var(--spinner-track-color)"},variants:{size:{inherit:{"--spinner-size":"1em"},xs:{"--spinner-size":"sizes.3"},sm:{"--spinner-size":"sizes.4"},md:{"--spinner-size":"sizes.5"},lg:{"--spinner-size":"sizes.8"},xl:{"--spinner-size":"sizes.10"}}},defaultVariants:{size:"md"}},textarea:{className:"chakra-textarea",base:{width:"100%",minWidth:"0",outline:"0",position:"relative",appearance:"none",textAlign:"start",borderRadius:"l2",_disabled:{layerStyle:"disabled"},"--focus-color":"colors.colorPalette.focusRing","--error-color":"colors.border.error",_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"}},variants:{size:{xs:{textStyle:"xs",px:"2",py:"1.5",scrollPaddingBottom:"1.5"},sm:{textStyle:"sm",px:"2.5",py:"2",scrollPaddingBottom:"2"},md:{textStyle:"sm",px:"3",py:"2",scrollPaddingBottom:"2"},lg:{textStyle:"md",px:"4",py:"3",scrollPaddingBottom:"3"},xl:{textStyle:"md",px:"4.5",py:"3.5",scrollPaddingBottom:"3.5"}},variant:{outline:{bg:"transparent",borderWidth:"1px",borderColor:"border",focusVisibleRing:"inside"},subtle:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted",focusVisibleRing:"inside"},flushed:{bg:"transparent",borderBottomWidth:"1px",borderBottomColor:"border",borderRadius:"0",px:"0",_focusVisible:{borderColor:"var(--focus-color)",boxShadow:"0px 1px 0px 0px var(--focus-color)"}}}},defaultVariants:{size:"md",variant:"outline"}},icon:{className:"chakra-icon",base:{display:"inline-block",lineHeight:"1em",flexShrink:"0",color:"currentcolor",verticalAlign:"middle"},variants:{size:{inherit:{},xs:{boxSize:"3"},sm:{boxSize:"4"},md:{boxSize:"5"},lg:{boxSize:"6"},xl:{boxSize:"7"},"2xl":{boxSize:"8"}}},defaultVariants:{size:"inherit"}},checkmark:ds,radiomark:fs,colorSwatch:hs},vs=ya.colors({bg:{DEFAULT:{value:{_light:"{colors.white}",_dark:"{colors.black}"}},subtle:{value:{_light:"{colors.gray.50}",_dark:"{colors.gray.950}"}},muted:{value:{_light:"{colors.gray.100}",_dark:"{colors.gray.900}"}},emphasized:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}},inverted:{value:{_light:"{colors.black}",_dark:"{colors.white}"}},panel:{value:{_light:"{colors.white}",_dark:"{colors.gray.950}"}},error:{value:{_light:"{colors.red.50}",_dark:"{colors.red.950}"}},warning:{value:{_light:"{colors.orange.50}",_dark:"{colors.orange.950}"}},success:{value:{_light:"{colors.green.50}",_dark:"{colors.green.950}"}},info:{value:{_light:"{colors.blue.50}",_dark:"{colors.blue.950}"}}},fg:{DEFAULT:{value:{_light:"{colors.black}",_dark:"{colors.gray.50}"}},muted:{value:{_light:"{colors.gray.600}",_dark:"{colors.gray.400}"}},subtle:{value:{_light:"{colors.gray.400}",_dark:"{colors.gray.500}"}},inverted:{value:{_light:"{colors.gray.50}",_dark:"{colors.black}"}},error:{value:{_light:"{colors.red.500}",_dark:"{colors.red.400}"}},warning:{value:{_light:"{colors.orange.600}",_dark:"{colors.orange.300}"}},success:{value:{_light:"{colors.green.600}",_dark:"{colors.green.300}"}},info:{value:{_light:"{colors.blue.600}",_dark:"{colors.blue.300}"}}},border:{DEFAULT:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}},muted:{value:{_light:"{colors.gray.100}",_dark:"{colors.gray.900}"}},subtle:{value:{_light:"{colors.gray.50}",_dark:"{colors.gray.950}"}},emphasized:{value:{_light:"{colors.gray.300}",_dark:"{colors.gray.700}"}},inverted:{value:{_light:"{colors.gray.800}",_dark:"{colors.gray.200}"}},error:{value:{_light:"{colors.red.500}",_dark:"{colors.red.400}"}},warning:{value:{_light:"{colors.orange.500}",_dark:"{colors.orange.400}"}},success:{value:{_light:"{colors.green.500}",_dark:"{colors.green.400}"}},info:{value:{_light:"{colors.blue.500}",_dark:"{colors.blue.400}"}}},gray:{contrast:{value:{_light:"{colors.white}",_dark:"{colors.black}"}},fg:{value:{_light:"{colors.gray.800}",_dark:"{colors.gray.200}"}},subtle:{value:{_light:"{colors.gray.100}",_dark:"{colors.gray.900}"}},muted:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}},emphasized:{value:{_light:"{colors.gray.300}",_dark:"{colors.gray.700}"}},solid:{value:{_light:"{colors.gray.900}",_dark:"{colors.white}"}},focusRing:{value:{_light:"{colors.gray.400}",_dark:"{colors.gray.400}"}}},red:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.red.700}",_dark:"{colors.red.300}"}},subtle:{value:{_light:"{colors.red.100}",_dark:"{colors.red.900}"}},muted:{value:{_light:"{colors.red.200}",_dark:"{colors.red.800}"}},emphasized:{value:{_light:"{colors.red.300}",_dark:"{colors.red.700}"}},solid:{value:{_light:"{colors.red.600}",_dark:"{colors.red.600}"}},focusRing:{value:{_light:"{colors.red.500}",_dark:"{colors.red.500}"}}},orange:{contrast:{value:{_light:"white",_dark:"black"}},fg:{value:{_light:"{colors.orange.700}",_dark:"{colors.orange.300}"}},subtle:{value:{_light:"{colors.orange.100}",_dark:"{colors.orange.900}"}},muted:{value:{_light:"{colors.orange.200}",_dark:"{colors.orange.800}"}},emphasized:{value:{_light:"{colors.orange.300}",_dark:"{colors.orange.700}"}},solid:{value:{_light:"{colors.orange.600}",_dark:"{colors.orange.500}"}},focusRing:{value:{_light:"{colors.orange.500}",_dark:"{colors.orange.500}"}}},green:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.green.700}",_dark:"{colors.green.300}"}},subtle:{value:{_light:"{colors.green.100}",_dark:"{colors.green.900}"}},muted:{value:{_light:"{colors.green.200}",_dark:"{colors.green.800}"}},emphasized:{value:{_light:"{colors.green.300}",_dark:"{colors.green.700}"}},solid:{value:{_light:"{colors.green.600}",_dark:"{colors.green.600}"}},focusRing:{value:{_light:"{colors.green.500}",_dark:"{colors.green.500}"}}},blue:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.blue.700}",_dark:"{colors.blue.300}"}},subtle:{value:{_light:"{colors.blue.100}",_dark:"{colors.blue.900}"}},muted:{value:{_light:"{colors.blue.200}",_dark:"{colors.blue.800}"}},emphasized:{value:{_light:"{colors.blue.300}",_dark:"{colors.blue.700}"}},solid:{value:{_light:"{colors.blue.600}",_dark:"{colors.blue.600}"}},focusRing:{value:{_light:"{colors.blue.500}",_dark:"{colors.blue.500}"}}},yellow:{contrast:{value:{_light:"black",_dark:"black"}},fg:{value:{_light:"{colors.yellow.800}",_dark:"{colors.yellow.300}"}},subtle:{value:{_light:"{colors.yellow.100}",_dark:"{colors.yellow.900}"}},muted:{value:{_light:"{colors.yellow.200}",_dark:"{colors.yellow.800}"}},emphasized:{value:{_light:"{colors.yellow.300}",_dark:"{colors.yellow.700}"}},solid:{value:{_light:"{colors.yellow.300}",_dark:"{colors.yellow.300}"}},focusRing:{value:{_light:"{colors.yellow.500}",_dark:"{colors.yellow.500}"}}},teal:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.teal.700}",_dark:"{colors.teal.300}"}},subtle:{value:{_light:"{colors.teal.100}",_dark:"{colors.teal.900}"}},muted:{value:{_light:"{colors.teal.200}",_dark:"{colors.teal.800}"}},emphasized:{value:{_light:"{colors.teal.300}",_dark:"{colors.teal.700}"}},solid:{value:{_light:"{colors.teal.600}",_dark:"{colors.teal.600}"}},focusRing:{value:{_light:"{colors.teal.500}",_dark:"{colors.teal.500}"}}},purple:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.purple.700}",_dark:"{colors.purple.300}"}},subtle:{value:{_light:"{colors.purple.100}",_dark:"{colors.purple.900}"}},muted:{value:{_light:"{colors.purple.200}",_dark:"{colors.purple.800}"}},emphasized:{value:{_light:"{colors.purple.300}",_dark:"{colors.purple.700}"}},solid:{value:{_light:"{colors.purple.600}",_dark:"{colors.purple.600}"}},focusRing:{value:{_light:"{colors.purple.500}",_dark:"{colors.purple.500}"}}},pink:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.pink.700}",_dark:"{colors.pink.300}"}},subtle:{value:{_light:"{colors.pink.100}",_dark:"{colors.pink.900}"}},muted:{value:{_light:"{colors.pink.200}",_dark:"{colors.pink.800}"}},emphasized:{value:{_light:"{colors.pink.300}",_dark:"{colors.pink.700}"}},solid:{value:{_light:"{colors.pink.600}",_dark:"{colors.pink.600}"}},focusRing:{value:{_light:"{colors.pink.500}",_dark:"{colors.pink.500}"}}},cyan:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.cyan.700}",_dark:"{colors.cyan.300}"}},subtle:{value:{_light:"{colors.cyan.100}",_dark:"{colors.cyan.900}"}},muted:{value:{_light:"{colors.cyan.200}",_dark:"{colors.cyan.800}"}},emphasized:{value:{_light:"{colors.cyan.300}",_dark:"{colors.cyan.700}"}},solid:{value:{_light:"{colors.cyan.600}",_dark:"{colors.cyan.600}"}},focusRing:{value:{_light:"{colors.cyan.500}",_dark:"{colors.cyan.500}"}}}}),bs=ya.radii({l1:{value:"{radii.xs}"},l2:{value:"{radii.sm}"},l3:{value:"{radii.md}"}}),xs=ya.shadows({xs:{value:{_light:"0px 1px 2px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/20}",_dark:"0px 1px 1px {black/64}, 0px 0px 1px inset {colors.gray.300/20}"}},sm:{value:{_light:"0px 2px 4px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 2px 4px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},md:{value:{_light:"0px 4px 8px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 4px 8px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},lg:{value:{_light:"0px 8px 16px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 8px 16px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},xl:{value:{_light:"0px 16px 24px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 16px 24px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},"2xl":{value:{_light:"0px 24px 40px {colors.gray.900/16}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 24px 40px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},inner:{value:{_light:"inset 0 2px 4px 0 {black/5}",_dark:"inset 0 2px 4px 0 black"}},inset:{value:{_light:"inset 0 0 0 1px {black/5}",_dark:"inset 0 0 0 1px {colors.gray.300/5}"}}});var ys=Object.defineProperty,ws=(e,t,r)=>((e,t,r)=>t in e?ys(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r)(e,"symbol"!=typeof t?t+"":t,r),Cs={itemToValue:e=>"string"==typeof e?e:Et(e)&&Rt(e,"value")?e.value:"",itemToString:e=>"string"==typeof e?e:Et(e)&&Rt(e,"label")?e.label:Cs.itemToValue(e),isItemDisabled:e=>!(!Et(e)||!Rt(e,"disabled")||!e.disabled)},ks=class e{constructor(t){this.options=t,ws(this,"items"),ws(this,"copy",t=>new e({...this.options,items:t??[...this.items]})),ws(this,"isEqual",e=>kt(this.items,e.items)),ws(this,"setItems",e=>this.copy(e)),ws(this,"getValues",(e=this.items)=>Array.from(e).map(e=>this.getItemValue(e)).filter(Boolean)),ws(this,"find",e=>{if(null==e)return null;const t=this.indexOf(e);return null!=t?this.at(t):null}),ws(this,"findMany",e=>Array.from(e).map(e=>this.find(e)).filter(e=>null!=e)),ws(this,"at",e=>{if(!this.options.groupBy&&!this.options.groupSort)return this.items[e]??null;let t=0;const r=this.group();for(const[,n]of r)for(const r of n){if(t===e)return r;t++}return null}),ws(this,"sortFn",(e,t)=>(this.indexOf(e)??0)-(this.indexOf(t)??0)),ws(this,"sort",e=>[...e].sort(this.sortFn.bind(this))),ws(this,"getItemValue",e=>null==e?null:this.options.itemToValue?.(e)??Cs.itemToValue(e)),ws(this,"getItemDisabled",e=>null!=e&&(this.options.isItemDisabled?.(e)??Cs.isItemDisabled(e))),ws(this,"stringifyItem",e=>null==e?null:this.options.itemToString?.(e)??Cs.itemToString(e)),ws(this,"stringify",e=>null==e?null:this.stringifyItem(this.find(e))),ws(this,"stringifyItems",(e,t=", ")=>Array.from(e).map(e=>this.stringifyItem(e)).filter(Boolean).join(t)),ws(this,"stringifyMany",(e,t)=>this.stringifyItems(this.findMany(e),t)),ws(this,"has",e=>-1!==this.indexOf(e)),ws(this,"hasItem",e=>null!=e&&this.has(this.getItemValue(e))),ws(this,"group",()=>{const{groupBy:e,groupSort:t}=this.options;if(!e)return[["",[...this.items]]];const r=new Map;this.items.forEach((t,n)=>{const o=e(t,n);r.has(o)||r.set(o,[]),r.get(o).push(t)});let n=Array.from(r.entries());return t&&n.sort(([e],[r])=>{if("function"==typeof t)return t(e,r);if(Array.isArray(t)){const n=t.indexOf(e),o=t.indexOf(r);return-1===n?1:-1===o?-1:n-o}return"asc"===t?e.localeCompare(r):"desc"===t?r.localeCompare(e):0}),n}),ws(this,"getNextValue",(e,t=1,r=!1)=>{let n=this.indexOf(e);if(-1===n)return null;for(n=r?Math.min(n+t,this.size-1):n+t;n<=this.size&&this.getItemDisabled(this.at(n));)n++;return this.getItemValue(this.at(n))}),ws(this,"getPreviousValue",(e,t=1,r=!1)=>{let n=this.indexOf(e);if(-1===n)return null;for(n=r?Math.max(n-t,0):n-t;n>=0&&this.getItemDisabled(this.at(n));)n--;return this.getItemValue(this.at(n))}),ws(this,"indexOf",e=>{if(null==e)return-1;if(!this.options.groupBy&&!this.options.groupSort)return this.items.findIndex(t=>this.getItemValue(t)===e);let t=0;const r=this.group();for(const[,n]of r)for(const r of n){if(this.getItemValue(r)===e)return t;t++}return-1}),ws(this,"getByText",(e,t)=>{let r=null!=t?Es(this.items,this.indexOf(t)):this.items;return 1===e.length&&(r=r.filter(e=>this.getItemValue(e)!==t)),r.find(t=>Ss(this.stringifyItem(t),e))}),ws(this,"search",(e,t)=>{const{state:r,currentValue:n,timeout:o=350}=t,a=r.keysSoFar+e,i=a.length>1&&Array.from(a).every(e=>e===a[0])?a[0]:a,s=this.getByText(i,n),l=this.getItemValue(s);function c(){clearTimeout(r.timer),r.timer=-1}return function e(t){r.keysSoFar=t,c(),""!==t&&(r.timer=+setTimeout(()=>{e(""),c()},o))}(a),l}),ws(this,"update",(e,t)=>{let r=this.indexOf(e);return-1===r?this:this.copy([...this.items.slice(0,r),t,...this.items.slice(r+1)])}),ws(this,"upsert",(e,t,r="append")=>{let n=this.indexOf(e);return-1===n?("append"===r?this.append:this.prepend)(t):this.copy([...this.items.slice(0,n),t,...this.items.slice(n+1)])}),ws(this,"insert",(e,...t)=>this.copy(Is(this.items,e,...t))),ws(this,"insertBefore",(e,...t)=>{let r=this.indexOf(e);if(-1===r){if(0!==this.items.length)return this;r=0}return this.copy(Is(this.items,r,...t))}),ws(this,"insertAfter",(e,...t)=>{let r=this.indexOf(e);if(-1===r){if(0!==this.items.length)return this;r=0}return this.copy(Is(this.items,r+1,...t))}),ws(this,"prepend",(...e)=>this.copy(Is(this.items,0,...e))),ws(this,"append",(...e)=>this.copy(Is(this.items,this.items.length,...e))),ws(this,"filter",e=>{const t=this.items.filter((t,r)=>e(this.stringifyItem(t),r,t));return this.copy(t)}),ws(this,"remove",(...e)=>{const t=e.map(e=>"string"==typeof e?e:this.getItemValue(e));return this.copy(this.items.filter(e=>{const r=this.getItemValue(e);return null!=r&&!t.includes(r)}))}),ws(this,"move",(e,t)=>{const r=this.indexOf(e);return-1===r?this:this.copy(Ps(this.items,[r],t))}),ws(this,"moveBefore",(e,...t)=>{let r=this.items.findIndex(t=>this.getItemValue(t)===e);if(-1===r)return this;let n=t.map(e=>this.items.findIndex(t=>this.getItemValue(t)===e)).sort((e,t)=>e-t);return this.copy(Ps(this.items,n,r))}),ws(this,"moveAfter",(e,...t)=>{let r=this.items.findIndex(t=>this.getItemValue(t)===e);if(-1===r)return this;let n=t.map(e=>this.items.findIndex(t=>this.getItemValue(t)===e)).sort((e,t)=>e-t);return this.copy(Ps(this.items,n,r+1))}),ws(this,"reorder",(e,t)=>this.copy(Ps(this.items,[e],t))),ws(this,"compareValue",(e,t)=>{const r=this.indexOf(e),n=this.indexOf(t);return r<n?-1:r>n?1:0}),ws(this,"range",(e,t)=>{let r=[],n=e;for(;null!=n;){if(this.find(n)&&r.push(n),n===t)return r;n=this.getNextValue(n)}return[]}),ws(this,"getValueRange",(e,t)=>e&&t?this.compareValue(e,t)<=0?this.range(e,t):this.range(t,e):[]),ws(this,"toString",()=>{let e="";for(const t of this.items)e+=[this.getItemValue(t),this.stringifyItem(t),this.getItemDisabled(t)].filter(Boolean).join(":")+",";return e}),ws(this,"toJSON",()=>({size:this.size,first:this.firstValue,last:this.lastValue})),this.items=[...t.items]}get size(){return this.items.length}get firstValue(){let e=0;for(;this.getItemDisabled(this.at(e));)e++;return this.getItemValue(this.at(e))}get lastValue(){let e=this.size-1;for(;this.getItemDisabled(this.at(e));)e--;return this.getItemValue(this.at(e))}*[Symbol.iterator](){yield*this.items}},Ss=(e,t)=>!!e?.toLowerCase().startsWith(t.toLowerCase()),Es=(e,t)=>e.map((r,n)=>e[(Math.max(t,0)+n)%e.length]);function Is(e,t,...r){return[...e.slice(0,t),...r,...e.slice(t)]}function Ps(e,t,r){const n=(t=[...t].sort((e,t)=>e-t)).map(t=>e[t]);for(let r=t.length-1;r>=0;r--)e=[...e.slice(0,t[r]),...e.slice(t[r]+1)];return r=Math.max(0,r-t.filter(e=>e<r).length),[...e.slice(0,r),...n,...e.slice(r)]}function Rs(e,t,r){for(let n=0;n<t.length;n++)e=r.getChildren(e,t.slice(n+1))[t[n]];return e}function Ts(e,t){for(let r=0;r<Math.min(e.length,t.length);r++){if(e[r]<t[r])return-1;if(e[r]>t[r])return 1}return e.length-t.length}function Os(e,t){let r;return Ds(e,{onEnter:(e,n)=>{if(t.predicate(e,n))return r=[...n],"stop"},getChildren:t.getChildren}),r}function Ns(e){return{type:"remove",indexes:e}}function Vs(){return{type:"replace"}}function As(e){return[e.slice(0,-1),e[e.length-1]]}function zs(e,t,r=new Map){const[n,o]=As(e);for(let e=n.length-1;e>=0;e--){const t=n.slice(0,e).join();"remove"!==r.get(t)?.type&&r.set(t,Vs())}const a=r.get(n.join());return"remove"===a?.type?r.set(n.join(),{type:"removeThenInsert",removeIndexes:a.indexes,insertIndex:o,insertNodes:t}):r.set(n.join(),function(e,t){return{type:"insert",index:e,nodes:t}}(o,t)),r}function _s(e){const t=new Map,r=new Map;for(const t of e){const e=t.slice(0,-1).join(),n=r.get(e)??[];n.push(t[t.length-1]),r.set(e,n.sort((e,t)=>e-t))}for(const r of e)for(let e=r.length-2;e>=0;e--){const n=r.slice(0,e).join();t.has(n)||t.set(n,Vs())}for(const[e,n]of r)t.set(e,Ns(n));return t}function Fs(e,t,r){return function(e,t){const r={};return Ds(e,{...t,onLeave:(e,n)=>{const o=[0,...n],a=o.join(),i=t.transform(e,r[a]??[],n),s=o.slice(0,-1).join(),l=r[s]??[];l.push(i),r[s]=l}}),r[""][0]}(e,{...r,getChildren:(e,n)=>{const o=n.join(),a=t.get(o);switch(a?.type){case"replace":case"remove":case"removeThenInsert":case"insert":return r.getChildren(e,n);default:return[]}},transform:(e,n,o)=>{const a=o.join(),i=t.get(a);switch(i?.type){case"remove":return r.create(e,n.filter((e,t)=>!i.indexes.includes(t)),o);case"removeThenInsert":const t=n.filter((e,t)=>!i.removeIndexes.includes(t)),a=i.removeIndexes.reduce((e,t)=>t<e?e-1:e,i.insertIndex);return r.create(e,Ls(t,a,0,...i.insertNodes),o);case"insert":return r.create(e,Ls(n,i.index,0,...i.nodes),o);case"replace":return r.create(e,n,o);default:return e}}})}function Ls(e,t,r,...n){return[...e.slice(0,t),...n,...e.slice(t+r)]}function Ds(e,t){const{onEnter:r,onLeave:n,getChildren:o}=t;let a=[],i=[{node:e}];const s=t.reuseIndexPath?()=>a:()=>a.slice();for(;i.length>0;){let e=i[i.length-1];if(void 0===e.state){const t=r?.(e.node,s());if("stop"===t)return;e.state="skip"===t?-1:0}const t=e.children||o(e.node,s());if(e.children||(e.children=t),-1!==e.state){if(e.state<t.length){let r=e.state;a.push(r),i.push({node:t[r]}),e.state=r+1;continue}const r=n?.(e.node,s());if("stop"===r)return}a.pop(),i.pop()}}Set;var js=class e{constructor(t){this.options=t,ws(this,"rootNode"),ws(this,"isEqual",e=>kt(this.rootNode,e.rootNode)),ws(this,"getNodeChildren",e=>this.options.nodeToChildren?.(e)??Ms.nodeToChildren(e)??[]),ws(this,"resolveIndexPath",e=>"string"==typeof e?this.getIndexPath(e):e),ws(this,"resolveNode",e=>{const t=this.resolveIndexPath(e);return t?this.at(t):void 0}),ws(this,"getNodeChildrenCount",e=>this.options.nodeToChildrenCount?.(e)??Ms.nodeToChildrenCount(e)),ws(this,"getNodeValue",e=>this.options.nodeToValue?.(e)??Ms.nodeToValue(e)),ws(this,"getNodeDisabled",e=>this.options.isNodeDisabled?.(e)??Ms.isNodeDisabled(e)),ws(this,"stringify",e=>{const t=this.findNode(e);return t?this.stringifyNode(t):null}),ws(this,"stringifyNode",e=>this.options.nodeToString?.(e)??Ms.nodeToString(e)),ws(this,"getFirstNode",(e=this.rootNode)=>{let t;return Ds(e,{getChildren:this.getNodeChildren,onEnter:(e,r)=>{if(!t&&r.length>0&&!this.getNodeDisabled(e))return t=e,"stop"}}),t}),ws(this,"getLastNode",(e=this.rootNode,t={})=>{let r;return Ds(e,{getChildren:this.getNodeChildren,onEnter:(n,o)=>{if(!this.isSameNode(n,e))return t.skip?.({value:this.getNodeValue(n),node:n,indexPath:o})?"skip":void(o.length>0&&!this.getNodeDisabled(n)&&(r=n))}}),r}),ws(this,"at",e=>Rs(this.rootNode,e,{getChildren:this.getNodeChildren})),ws(this,"findNode",(e,t=this.rootNode)=>function(e,t){let r;return Ds(e,{...t,onEnter:(e,n)=>{if(t.predicate(e,n))return r=e,"stop"}}),r}(t,{getChildren:this.getNodeChildren,predicate:t=>this.getNodeValue(t)===e})),ws(this,"findNodes",(e,t=this.rootNode)=>{const r=new Set(e.filter(e=>null!=e));return function(e,t){const r=[];return Ds(e,{onEnter:(e,n)=>{t.predicate(e,n)&&r.push(e)},getChildren:t.getChildren}),r}(t,{getChildren:this.getNodeChildren,predicate:e=>r.has(this.getNodeValue(e))})}),ws(this,"sort",e=>e.reduce((e,t)=>{const r=this.getIndexPath(t);return r&&e.push({value:t,indexPath:r}),e},[]).sort((e,t)=>Ts(e.indexPath,t.indexPath)).map(({value:e})=>e)),ws(this,"getIndexPath",e=>Os(this.rootNode,{getChildren:this.getNodeChildren,predicate:t=>this.getNodeValue(t)===e})),ws(this,"getValue",e=>{const t=this.at(e);return t?this.getNodeValue(t):void 0}),ws(this,"getValuePath",e=>{if(!e)return[];const t=[];let r=[...e];for(;r.length>0;){const e=this.at(r);e&&t.unshift(this.getNodeValue(e)),r.pop()}return t}),ws(this,"getDepth",e=>{const t=Os(this.rootNode,{getChildren:this.getNodeChildren,predicate:t=>this.getNodeValue(t)===e});return t?.length??0}),ws(this,"isSameNode",(e,t)=>this.getNodeValue(e)===this.getNodeValue(t)),ws(this,"isRootNode",e=>this.isSameNode(e,this.rootNode)),ws(this,"contains",(e,t)=>!(!e||!t)&&t.slice(0,e.length).every((r,n)=>e[n]===t[n])),ws(this,"getNextNode",(e,t={})=>{let r,n=!1;return Ds(this.rootNode,{getChildren:this.getNodeChildren,onEnter:(o,a)=>{if(this.isRootNode(o))return;const i=this.getNodeValue(o);return t.skip?.({value:i,node:o,indexPath:a})?(i===e&&(n=!0),"skip"):n&&!this.getNodeDisabled(o)?(r=o,"stop"):void(i===e&&(n=!0))}}),r}),ws(this,"getPreviousNode",(e,t={})=>{let r,n=!1;return Ds(this.rootNode,{getChildren:this.getNodeChildren,onEnter:(o,a)=>{if(this.isRootNode(o))return;const i=this.getNodeValue(o);return t.skip?.({value:i,node:o,indexPath:a})?"skip":i===e?(n=!0,"stop"):void(this.getNodeDisabled(o)||(r=o))}}),n?r:void 0}),ws(this,"getParentNodes",e=>{const t=this.resolveIndexPath(e)?.slice();if(!t)return[];const r=[];for(;t.length>0;){t.pop();const e=this.at(t);e&&!this.isRootNode(e)&&r.unshift(e)}return r}),ws(this,"getDescendantNodes",(e,t)=>{const r=this.resolveNode(e);if(!r)return[];const n=[];return Ds(r,{getChildren:this.getNodeChildren,onEnter:(e,r)=>{0!==r.length&&(!t?.withBranch&&this.isBranchNode(e)||n.push(e))}}),n}),ws(this,"getDescendantValues",(e,t)=>this.getDescendantNodes(e,t).map(e=>this.getNodeValue(e))),ws(this,"getParentIndexPath",e=>e.slice(0,-1)),ws(this,"getParentNode",e=>{const t=this.resolveIndexPath(e);return t?this.at(this.getParentIndexPath(t)):void 0}),ws(this,"visit",e=>{const{skip:t,...r}=e;Ds(this.rootNode,{...r,getChildren:this.getNodeChildren,onEnter:(e,n)=>{if(!this.isRootNode(e))return t?.({value:this.getNodeValue(e),node:e,indexPath:n})?"skip":r.onEnter?.(e,n)}})}),ws(this,"getPreviousSibling",e=>{const t=this.getParentNode(e);if(!t)return;const r=this.getNodeChildren(t);let n=e[e.length-1];for(;--n>=0;){const e=r[n];if(!this.getNodeDisabled(e))return e}}),ws(this,"getNextSibling",e=>{const t=this.getParentNode(e);if(!t)return;const r=this.getNodeChildren(t);let n=e[e.length-1];for(;++n<r.length;){const e=r[n];if(!this.getNodeDisabled(e))return e}}),ws(this,"getSiblingNodes",e=>{const t=this.getParentNode(e);return t?this.getNodeChildren(t):[]}),ws(this,"getValues",(e=this.rootNode)=>{const t=function(e,t){return function(e,t){let r=t.initialResult;return Ds(e,{...t,onEnter:(e,n)=>{r=t.nextResult(r,e,n)}}),r}(e,{...t,initialResult:[],nextResult:(e,r,n)=>(e.push(...t.transform(r,n)),e)})}(e,{getChildren:this.getNodeChildren,transform:e=>[this.getNodeValue(e)]});return t.slice(1)}),ws(this,"isSameDepth",(e,t)=>null==t||e.length===t),ws(this,"isBranchNode",e=>this.getNodeChildren(e).length>0||null!=this.getNodeChildrenCount(e)),ws(this,"getBranchValues",(e=this.rootNode,t={})=>{let r=[];return Ds(e,{getChildren:this.getNodeChildren,onEnter:(e,n)=>{if(0===n.length)return;const o=this.getNodeValue(e);if(t.skip?.({value:o,node:e,indexPath:n}))return"skip";this.isBranchNode(e)&&this.isSameDepth(n,t.depth)&&r.push(this.getNodeValue(e))}}),r}),ws(this,"flatten",(e=this.rootNode)=>function(e,t){const r=[];let n=0;const o=new Map,a=new Map;return Ds(e,{getChildren:t.getChildren,onEnter:(e,i)=>{o.has(e)||o.set(e,n++);const s=t.getChildren(e,i);s.forEach(t=>{a.has(t)||a.set(t,e),o.has(t)||o.set(t,n++)});const l=s.length>0?s.map(e=>o.get(e)):void 0,c=a.get(e),d=c?o.get(c):void 0,u=o.get(e);r.push({...e,_children:l,_parent:d,_index:u})}}),r}(e,{getChildren:this.getNodeChildren})),ws(this,"_create",(e,t)=>nr({...e,children:t.length>0?t:void 0})),ws(this,"_insert",(e,t,r)=>this.copy(function(e,t){const{nodes:r,at:n}=t;if(0===n.length)throw new Error("Can't insert nodes at the root");return Fs(e,zs(n,r),t)}(e,{at:t,nodes:r,getChildren:this.getNodeChildren,create:this._create}))),ws(this,"copy",t=>new e({...this.options,rootNode:t})),ws(this,"_replace",(e,t,r)=>this.copy(function(e,t){if(0===t.at.length)return t.node;const r=function(e,t){const r=new Map,[n,o]=As(e);for(let e=n.length-1;e>=0;e--){const t=n.slice(0,e).join();r.set(t,Vs())}return r.set(n.join(),{type:"removeThenInsert",removeIndexes:[o],insertIndex:o,insertNodes:[t]}),r}(t.at,t.node);return Fs(e,r,t)}(e,{at:t,node:r,getChildren:this.getNodeChildren,create:this._create}))),ws(this,"_move",(e,t,r)=>this.copy(function(e,t){if(0===t.indexPaths.length)return e;for(const e of t.indexPaths)if(0===e.length)throw new Error("Can't move the root node");if(0===t.to.length)throw new Error("Can't move nodes to the root");const r=function(e){const t=function(e){return e.sort(Ts)}(e),r=[],n=new Set;for(const e of t){const t=e.join();n.has(t)||(n.add(t),r.push(e))}return r}(t.indexPaths),n=r.map(r=>Rs(e,r,t)),o=zs(t.to,n,_s(r));return Fs(e,o,t)}(e,{indexPaths:t,to:r,getChildren:this.getNodeChildren,create:this._create}))),ws(this,"_remove",(e,t)=>this.copy(function(e,t){if(0===t.indexPaths.length)return e;for(const e of t.indexPaths)if(0===e.length)throw new Error("Can't remove the root node");return Fs(e,_s(t.indexPaths),t)}(e,{indexPaths:t,getChildren:this.getNodeChildren,create:this._create}))),ws(this,"replace",(e,t)=>this._replace(this.rootNode,e,t)),ws(this,"remove",e=>this._remove(this.rootNode,e)),ws(this,"insertBefore",(e,t)=>this.getParentNode(e)?this._insert(this.rootNode,e,t):void 0),ws(this,"insertAfter",(e,t)=>{if(!this.getParentNode(e))return;const r=[...e.slice(0,-1),e[e.length-1]+1];return this._insert(this.rootNode,r,t)}),ws(this,"move",(e,t)=>this._move(this.rootNode,e,t)),ws(this,"filter",e=>{const t=function(e,t){const{predicate:r,create:n,getChildren:o}=t,a=(e,t)=>{const i=o(e,t),s=[];i.forEach((e,r)=>{const n=[...t,r],o=a(e,n);o&&s.push(o)});const l=0===t.length,c=r(e,t),d=s.length>0;return l||c||d?n(e,s,t):null};return a(e,[])||n(e,[],[])}(this.rootNode,{predicate:e,getChildren:this.getNodeChildren,create:this._create});return this.copy(t)}),ws(this,"toJSON",()=>this.getValues(this.rootNode)),this.rootNode=t.rootNode}},Ms={nodeToValue:e=>"string"==typeof e?e:Et(e)&&Rt(e,"value")?e.value:"",nodeToString:e=>"string"==typeof e?e:Et(e)&&Rt(e,"label")?e.label:Ms.nodeToValue(e),isNodeDisabled:e=>!(!Et(e)||!Rt(e,"disabled")||!e.disabled),nodeToChildren:e=>e.children,nodeToChildrenCount(e){if(Et(e)&&Rt(e,"childrenCount"))return e.childrenCount}};const Ws=["top","right","bottom","left"],$s=Math.min,Bs=Math.max,Hs=Math.round,Gs=Math.floor,Us=e=>({x:e,y:e}),qs={left:"right",right:"left",bottom:"top",top:"bottom"},Ks={start:"end",end:"start"};function Ys(e,t,r){return Bs(e,$s(t,r))}function Xs(e,t){return"function"==typeof e?e(t):e}function Zs(e){return e.split("-")[0]}function Js(e){return e.split("-")[1]}function Qs(e){return"x"===e?"y":"x"}function el(e){return"y"===e?"height":"width"}const tl=new Set(["top","bottom"]);function rl(e){return tl.has(Zs(e))?"y":"x"}function nl(e){return Qs(rl(e))}function ol(e){return e.replace(/start|end/g,e=>Ks[e])}const al=["left","right"],il=["right","left"],sl=["top","bottom"],ll=["bottom","top"];function cl(e){return e.replace(/left|right|bottom|top/g,e=>qs[e])}function dl(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function ul(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function pl(e,t,r){let{reference:n,floating:o}=e;const a=rl(t),i=nl(t),s=el(i),l=Zs(t),c="y"===a,d=n.x+n.width/2-o.width/2,u=n.y+n.height/2-o.height/2,p=n[s]/2-o[s]/2;let h;switch(l){case"top":h={x:d,y:n.y-o.height};break;case"bottom":h={x:d,y:n.y+n.height};break;case"right":h={x:n.x+n.width,y:u};break;case"left":h={x:n.x-o.width,y:u};break;default:h={x:n.x,y:n.y}}switch(Js(t)){case"start":h[i]-=p*(r&&c?-1:1);break;case"end":h[i]+=p*(r&&c?-1:1)}return h}async function hl(e,t){var r;void 0===t&&(t={});const{x:n,y:o,platform:a,rects:i,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:p=!1,padding:h=0}=Xs(t,e),g=dl(h),f=s[p?"floating"===u?"reference":"floating":u],m=ul(await a.getClippingRect({element:null==(r=await(null==a.isElement?void 0:a.isElement(f)))||r?f:f.contextElement||await(null==a.getDocumentElement?void 0:a.getDocumentElement(s.floating)),boundary:c,rootBoundary:d,strategy:l})),v="floating"===u?{x:n,y:o,width:i.floating.width,height:i.floating.height}:i.reference,b=await(null==a.getOffsetParent?void 0:a.getOffsetParent(s.floating)),x=await(null==a.isElement?void 0:a.isElement(b))&&await(null==a.getScale?void 0:a.getScale(b))||{x:1,y:1},y=ul(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:b,strategy:l}):v);return{top:(m.top-y.top+g.top)/x.y,bottom:(y.bottom-m.bottom+g.bottom)/x.y,left:(m.left-y.left+g.left)/x.x,right:(y.right-m.right+g.right)/x.x}}function gl(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function fl(e){return Ws.some(t=>e[t]>=0)}const ml=new Set(["left","top"]);function vl(){return"undefined"!=typeof window}function bl(e){return wl(e)?(e.nodeName||"").toLowerCase():"#document"}function xl(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function yl(e){var t;return null==(t=(wl(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function wl(e){return!!vl()&&(e instanceof Node||e instanceof xl(e).Node)}function Cl(e){return!!vl()&&(e instanceof Element||e instanceof xl(e).Element)}function kl(e){return!!vl()&&(e instanceof HTMLElement||e instanceof xl(e).HTMLElement)}function Sl(e){return!(!vl()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof xl(e).ShadowRoot)}const El=new Set(["inline","contents"]);function Il(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=Dl(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!El.has(o)}const Pl=new Set(["table","td","th"]);function Rl(e){return Pl.has(bl(e))}const Tl=[":popover-open",":modal"];function Ol(e){return Tl.some(t=>{try{return e.matches(t)}catch(e){return!1}})}const Nl=["transform","translate","scale","rotate","perspective"],Vl=["transform","translate","scale","rotate","perspective","filter"],Al=["paint","layout","strict","content"];function zl(e){const t=_l(),r=Cl(e)?Dl(e):e;return Nl.some(e=>!!r[e]&&"none"!==r[e])||!!r.containerType&&"normal"!==r.containerType||!t&&!!r.backdropFilter&&"none"!==r.backdropFilter||!t&&!!r.filter&&"none"!==r.filter||Vl.some(e=>(r.willChange||"").includes(e))||Al.some(e=>(r.contain||"").includes(e))}function _l(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const Fl=new Set(["html","body","#document"]);function Ll(e){return Fl.has(bl(e))}function Dl(e){return xl(e).getComputedStyle(e)}function jl(e){return Cl(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ml(e){if("html"===bl(e))return e;const t=e.assignedSlot||e.parentNode||Sl(e)&&e.host||yl(e);return Sl(t)?t.host:t}function Wl(e){const t=Ml(e);return Ll(t)?e.ownerDocument?e.ownerDocument.body:e.body:kl(t)&&Il(t)?t:Wl(t)}function $l(e,t,r){var n;void 0===t&&(t=[]),void 0===r&&(r=!0);const o=Wl(e),a=o===(null==(n=e.ownerDocument)?void 0:n.body),i=xl(o);if(a){const e=Bl(i);return t.concat(i,i.visualViewport||[],Il(o)?o:[],e&&r?$l(e):[])}return t.concat(o,$l(o,[],r))}function Bl(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Hl(e){const t=Dl(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=kl(e),a=o?e.offsetWidth:r,i=o?e.offsetHeight:n,s=Hs(r)!==a||Hs(n)!==i;return s&&(r=a,n=i),{width:r,height:n,$:s}}function Gl(e){return Cl(e)?e:e.contextElement}function Ul(e){const t=Gl(e);if(!kl(t))return Us(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:a}=Hl(t);let i=(a?Hs(r.width):r.width)/n,s=(a?Hs(r.height):r.height)/o;return i&&Number.isFinite(i)||(i=1),s&&Number.isFinite(s)||(s=1),{x:i,y:s}}const ql=Us(0);function Kl(e){const t=xl(e);return _l()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:ql}function Yl(e,t,r,n){void 0===t&&(t=!1),void 0===r&&(r=!1);const o=e.getBoundingClientRect(),a=Gl(e);let i=Us(1);t&&(n?Cl(n)&&(i=Ul(n)):i=Ul(e));const s=function(e,t,r){return void 0===t&&(t=!1),!(!r||t&&r!==xl(e))&&t}(a,r,n)?Kl(a):Us(0);let l=(o.left+s.x)/i.x,c=(o.top+s.y)/i.y,d=o.width/i.x,u=o.height/i.y;if(a){const e=xl(a),t=n&&Cl(n)?xl(n):n;let r=e,o=Bl(r);for(;o&&n&&t!==r;){const e=Ul(o),t=o.getBoundingClientRect(),n=Dl(o),a=t.left+(o.clientLeft+parseFloat(n.paddingLeft))*e.x,i=t.top+(o.clientTop+parseFloat(n.paddingTop))*e.y;l*=e.x,c*=e.y,d*=e.x,u*=e.y,l+=a,c+=i,r=xl(o),o=Bl(r)}}return ul({width:d,height:u,x:l,y:c})}function Xl(e,t){const r=jl(e).scrollLeft;return t?t.left+r:Yl(yl(e)).left+r}function Zl(e,t,r){void 0===r&&(r=!1);const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-(r?0:Xl(e,n)),y:n.top+t.scrollTop}}const Jl=new Set(["absolute","fixed"]);function Ql(e,t,r){let n;if("viewport"===t)n=function(e,t){const r=xl(e),n=yl(e),o=r.visualViewport;let a=n.clientWidth,i=n.clientHeight,s=0,l=0;if(o){a=o.width,i=o.height;const e=_l();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:a,height:i,x:s,y:l}}(e,r);else if("document"===t)n=function(e){const t=yl(e),r=jl(e),n=e.ownerDocument.body,o=Bs(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),a=Bs(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let i=-r.scrollLeft+Xl(e);const s=-r.scrollTop;return"rtl"===Dl(n).direction&&(i+=Bs(t.clientWidth,n.clientWidth)-o),{width:o,height:a,x:i,y:s}}(yl(e));else if(Cl(t))n=function(e,t){const r=Yl(e,!0,"fixed"===t),n=r.top+e.clientTop,o=r.left+e.clientLeft,a=kl(e)?Ul(e):Us(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:o*a.x,y:n*a.y}}(t,r);else{const r=Kl(e);n={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return ul(n)}function ec(e,t){const r=Ml(e);return!(r===t||!Cl(r)||Ll(r))&&("fixed"===Dl(r).position||ec(r,t))}function tc(e,t,r){const n=kl(t),o=yl(t),a="fixed"===r,i=Yl(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const l=Us(0);function c(){l.x=Xl(o)}if(n||!n&&!a)if(("body"!==bl(t)||Il(o))&&(s=jl(t)),n){const e=Yl(t,!0,a,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&c();a&&!n&&o&&c();const d=!o||n||a?Us(0):Zl(o,s);return{x:i.left+s.scrollLeft-l.x-d.x,y:i.top+s.scrollTop-l.y-d.y,width:i.width,height:i.height}}function rc(e){return"static"===Dl(e).position}function nc(e,t){if(!kl(e)||"fixed"===Dl(e).position)return null;if(t)return t(e);let r=e.offsetParent;return yl(e)===r&&(r=r.ownerDocument.body),r}function oc(e,t){const r=xl(e);if(Ol(e))return r;if(!kl(e)){let t=Ml(e);for(;t&&!Ll(t);){if(Cl(t)&&!rc(t))return t;t=Ml(t)}return r}let n=nc(e,t);for(;n&&Rl(n)&&rc(n);)n=nc(n,t);return n&&Ll(n)&&rc(n)&&!zl(n)?r:n||function(e){let t=Ml(e);for(;kl(t)&&!Ll(t);){if(zl(t))return t;if(Ol(t))return null;t=Ml(t)}return null}(e)||r}const ac={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const a="fixed"===o,i=yl(n),s=!!t&&Ol(t.floating);if(n===i||s&&a)return r;let l={scrollLeft:0,scrollTop:0},c=Us(1);const d=Us(0),u=kl(n);if((u||!u&&!a)&&(("body"!==bl(n)||Il(i))&&(l=jl(n)),kl(n))){const e=Yl(n);c=Ul(n),d.x=e.x+n.clientLeft,d.y=e.y+n.clientTop}const p=!i||u||a?Us(0):Zl(i,l,!0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+d.x+p.x,y:r.y*c.y-l.scrollTop*c.y+d.y+p.y}},getDocumentElement:yl,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const a="clippingAncestors"===r?Ol(t)?[]:function(e,t){const r=t.get(e);if(r)return r;let n=$l(e,[],!1).filter(e=>Cl(e)&&"body"!==bl(e)),o=null;const a="fixed"===Dl(e).position;let i=a?Ml(e):e;for(;Cl(i)&&!Ll(i);){const t=Dl(i),r=zl(i);r||"fixed"!==t.position||(o=null),(a?!r&&!o:!r&&"static"===t.position&&o&&Jl.has(o.position)||Il(i)&&!r&&ec(e,i))?n=n.filter(e=>e!==i):o=t,i=Ml(i)}return t.set(e,n),n}(t,this._c):[].concat(r),i=[...a,n],s=i[0],l=i.reduce((e,r)=>{const n=Ql(t,r,o);return e.top=Bs(n.top,e.top),e.right=$s(n.right,e.right),e.bottom=$s(n.bottom,e.bottom),e.left=Bs(n.left,e.left),e},Ql(t,s,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:oc,getElementRects:async function(e){const t=this.getOffsetParent||oc,r=this.getDimensions,n=await r(e.floating);return{reference:tc(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:r}=Hl(e);return{width:t,height:r}},getScale:Ul,isElement:Cl,isRTL:function(e){return"rtl"===Dl(e).direction}};function ic(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}const sc=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:a,rects:i,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:f=!0,...m}=Xs(e,t);if(null!=(r=a.arrow)&&r.alignmentOffset)return{};const v=Zs(o),b=rl(s),x=Zs(s)===s,y=await(null==l.isRTL?void 0:l.isRTL(c.floating)),w=p||(x||!f?[cl(s)]:function(e){const t=cl(e);return[ol(e),t,ol(t)]}(s)),C="none"!==g;!p&&C&&w.push(...function(e,t,r,n){const o=Js(e);let a=function(e,t,r){switch(e){case"top":case"bottom":return r?t?il:al:t?al:il;case"left":case"right":return t?sl:ll;default:return[]}}(Zs(e),"start"===r,n);return o&&(a=a.map(e=>e+"-"+o),t&&(a=a.concat(a.map(ol)))),a}(s,f,g,y));const k=[s,...w],S=await hl(t,m),E=[];let I=(null==(n=a.flip)?void 0:n.overflows)||[];if(d&&E.push(S[v]),u){const e=function(e,t,r){void 0===r&&(r=!1);const n=Js(e),o=nl(e),a=el(o);let i="x"===o?n===(r?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=cl(i)),[i,cl(i)]}(o,i,y);E.push(S[e[0]],S[e[1]])}if(I=[...I,{placement:o,overflows:E}],!E.every(e=>e<=0)){var P,R;const e=((null==(P=a.flip)?void 0:P.index)||0)+1,t=k[e];if(t&&("alignment"!==u||b===rl(t)||I.every(e=>e.overflows[0]>0&&rl(e.placement)===b)))return{data:{index:e,overflows:I},reset:{placement:t}};let r=null==(R=I.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:R.placement;if(!r)switch(h){case"bestFit":{var T;const e=null==(T=I.filter(e=>{if(C){const t=rl(e.placement);return t===b||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:T[0];e&&(r=e);break}case"initialPlacement":r=s}if(o!==r)return{reset:{placement:r}}}return{}}}},lc=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:a,middlewareData:i}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=Xs(e,t),d={x:r,y:n},u=rl(o),p=Qs(u);let h=d[p],g=d[u];const f=Xs(s,t),m="number"==typeof f?{mainAxis:f,crossAxis:0}:{mainAxis:0,crossAxis:0,...f};if(l){const e="y"===p?"height":"width",t=a.reference[p]-a.floating[e]+m.mainAxis,r=a.reference[p]+a.reference[e]-m.mainAxis;h<t?h=t:h>r&&(h=r)}if(c){var v,b;const e="y"===p?"width":"height",t=ml.has(Zs(o)),r=a.reference[u]-a.floating[e]+(t&&(null==(v=i.offset)?void 0:v[u])||0)+(t?0:m.crossAxis),n=a.reference[u]+a.reference[e]+(t?0:(null==(b=i.offset)?void 0:b[u])||0)-(t?m.crossAxis:0);g<r?g=r:g>n&&(g=n)}return{[p]:h,[u]:g}}}};function cc(e=0,t=0,r=0,n=0){if("function"==typeof DOMRect)return new DOMRect(e,t,r,n);const o={x:e,y:t,width:r,height:n,top:t,right:e+r,bottom:t+n,left:e};return{...o,toJSON:()=>o}}var dc=e=>({variable:e,reference:`var(${e})`}),uc={arrowSize:dc("--arrow-size"),arrowSizeHalf:dc("--arrow-size-half"),arrowBg:dc("--arrow-background"),transformOrigin:dc("--transform-origin"),arrowOffset:dc("--arrow-offset")},pc={name:"transformOrigin",fn({placement:e,elements:t,middlewareData:r}){const{arrow:n}=r,o=(e=>({top:"bottom center","top-start":e?`${e.x}px bottom`:"left bottom","top-end":e?`${e.x}px bottom`:"right bottom",bottom:"top center","bottom-start":e?`${e.x}px top`:"top left","bottom-end":e?`${e.x}px top`:"top right",left:"right center","left-start":e?`right ${e.y}px`:"right top","left-end":e?`right ${e.y}px`:"right bottom",right:"left center","right-start":e?`left ${e.y}px`:"left top","right-end":e?`left ${e.y}px`:"left bottom"}))(n)[e],{floating:a}=t;return a.style.setProperty(uc.transformOrigin.variable,o),{data:{transformOrigin:o}}}},hc={name:"rects",fn:({rects:e})=>({data:e})},gc=e=>{if(e)return{name:"shiftArrow",fn({placement:t,middlewareData:r}){if(!r.arrow)return{};const{x:n,y:o}=r.arrow,a=t.split("-")[0];return Object.assign(e.style,{left:null!=n?`${n}px`:"",top:null!=o?`${o}px`:"",[a]:`calc(100% + ${uc.arrowOffset.reference})`}),{}}}},fc={strategy:"absolute",placement:"bottom",listeners:!0,gutter:8,flip:!0,slide:!0,overlap:!1,sameWidth:!1,fitViewport:!1,overflowPadding:8,arrowPadding:4};function mc(e,t){const r=e.devicePixelRatio||1;return Math.round(t*r)/r}function vc(e){return Vt(e.boundary)}function bc(e,t){if(e)return(e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:a,platform:i,elements:s,middlewareData:l}=t,{element:c,padding:d=0}=Xs(e,t)||{};if(null==c)return{};const u=dl(d),p={x:r,y:n},h=nl(o),g=el(h),f=await i.getDimensions(c),m="y"===h,v=m?"top":"left",b=m?"bottom":"right",x=m?"clientHeight":"clientWidth",y=a.reference[g]+a.reference[h]-p[h]-a.floating[g],w=p[h]-a.reference[h],C=await(null==i.getOffsetParent?void 0:i.getOffsetParent(c));let k=C?C[x]:0;k&&await(null==i.isElement?void 0:i.isElement(C))||(k=s.floating[x]||a.floating[g]);const S=y/2-w/2,E=k/2-f[g]/2-1,I=$s(u[v],E),P=$s(u[b],E),R=I,T=k-f[g]-P,O=k/2-f[g]/2+S,N=Ys(R,O,T),V=!l.arrow&&null!=Js(o)&&O!==N&&a.reference[g]/2-(O<R?I:P)-f[g]/2<0,A=V?O<R?O-R:O-T:0;return{[h]:p[h]+A,data:{[h]:N,centerOffset:O-N-A,...V&&{alignmentOffset:A}},reset:V}}}))({element:e,padding:t.arrowPadding})}function xc(e,t){if(null!=(t.offset??t.gutter))return function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:a,placement:i,middlewareData:s}=t,l=await async function(e,t){const{placement:r,platform:n,elements:o}=e,a=await(null==n.isRTL?void 0:n.isRTL(o.floating)),i=Zs(r),s=Js(r),l="y"===rl(r),c=ml.has(i)?-1:1,d=a&&l?-1:1,u=Xs(t,e);let{mainAxis:p,crossAxis:h,alignmentAxis:g}="number"==typeof u?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return s&&"number"==typeof g&&(h="end"===s?-1*g:g),l?{x:h*d,y:p*c}:{x:p*c,y:h*d}}(t,e);return i===(null==(r=s.offset)?void 0:r.placement)&&null!=(n=s.arrow)&&n.alignmentOffset?{}:{x:o+l.x,y:a+l.y,data:{...l,placement:i}}}}}(({placement:r})=>{const n=(e?.clientHeight||0)/2,o=t.offset?.mainAxis??t.gutter,a="number"==typeof o?o+n:o??n,{hasAlign:i}=function(e){const[t,r]=e.split("-");return{side:t,align:r,hasAlign:null!=r}}(r),s=i?void 0:t.shift;return nr({crossAxis:t.offset?.crossAxis??s,mainAxis:a,alignmentAxis:t.shift})})}function yc(e){if(e.flip)return sc({boundary:vc(e),padding:e.overflowPadding,fallbackPlacements:!0===e.flip?void 0:e.flip})}function wc(e){if(e.slide||e.overlap)return function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:a=!0,crossAxis:i=!1,limiter:s={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...l}=Xs(e,t),c={x:r,y:n},d=await hl(t,l),u=rl(Zs(o)),p=Qs(u);let h=c[p],g=c[u];if(a){const e="y"===p?"bottom":"right";h=Ys(h+d["y"===p?"top":"left"],h,h-d[e])}if(i){const e="y"===u?"bottom":"right";g=Ys(g+d["y"===u?"top":"left"],g,g-d[e])}const f=s.fn({...t,[p]:h,[u]:g});return{...f,data:{x:f.x-r,y:f.y-n,enabled:{[p]:a,[u]:i}}}}}}({boundary:vc(e),mainAxis:e.slide,crossAxis:e.overlap,padding:e.overflowPadding,limiter:lc()})}function Cc(e){return function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:a,platform:i,elements:s}=t,{apply:l=()=>{},...c}=Xs(e,t),d=await hl(t,c),u=Zs(o),p=Js(o),h="y"===rl(o),{width:g,height:f}=a.floating;let m,v;"top"===u||"bottom"===u?(m=u,v=p===(await(null==i.isRTL?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(v=u,m="end"===p?"top":"bottom");const b=f-d.top-d.bottom,x=g-d.left-d.right,y=$s(f-d[m],b),w=$s(g-d[v],x),C=!t.middlewareData.shift;let k=y,S=w;if(null!=(r=t.middlewareData.shift)&&r.enabled.x&&(S=x),null!=(n=t.middlewareData.shift)&&n.enabled.y&&(k=b),C&&!p){const e=Bs(d.left,0),t=Bs(d.right,0),r=Bs(d.top,0),n=Bs(d.bottom,0);h?S=g-2*(0!==e||0!==t?e+t:Bs(d.left,d.right)):k=f-2*(0!==r||0!==n?r+n:Bs(d.top,d.bottom))}await l({...t,availableWidth:S,availableHeight:k});const E=await i.getDimensions(s.floating);return g!==E.width||f!==E.height?{reset:{rects:!0}}:{}}}}({padding:e.overflowPadding,apply({elements:e,rects:t,availableHeight:r,availableWidth:n}){const o=e.floating,a=Math.round(t.reference.width);n=Math.floor(n),r=Math.floor(r),o.style.setProperty("--reference-width",`${a}px`),o.style.setProperty("--available-width",`${n}px`),o.style.setProperty("--available-height",`${r}px`)}})}function kc(e){if(e.hideWhenDetached)return function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...o}=Xs(e,t);switch(n){case"referenceHidden":{const e=gl(await hl(t,{...o,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:fl(e)}}}case"escaped":{const e=gl(await hl(t,{...o,altBoundary:!0}),r.floating);return{data:{escapedOffsets:e,escaped:fl(e)}}}default:return{}}}}}({strategy:"referenceHidden",boundary:e.boundary?.()??"clippingAncestors"})}function Sc(e,t,r={}){const{defer:n,...o}=r,a=n?ln:e=>e(),i=[];return i.push(a(()=>{const r="function"==typeof e?e():e,n="function"==typeof t?t():t;i.push(function(e,t,r={}){const n=(o=e,a=r.getAnchorRect,{contextElement:fr(o)?o:void 0,getBoundingClientRect:()=>{const e=o,t=a?.(e);return t||!e?function(e){if(!e)return cc();const{x:t,y:r,width:n,height:o}=e;return cc(t,r,n,o)}(t):e.getBoundingClientRect()}});var o,a;if(!t||!n)return;const i=Object.assign({},fc,r),s=t.querySelector("[data-part=arrow]"),l=[xc(s,i),yc(i),wc(i),bc(s,i),gc(s),pc,Cc(i),kc(i),hc],{placement:c,strategy:d,onComplete:u,onPositioned:p}=i,h=async()=>{if(!n||!t)return;const e=await((e,t,r)=>{const n=new Map,o={platform:ac,...r},a={...o.platform,_c:n};return(async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:a=[],platform:i}=r,s=a.filter(Boolean),l=await(null==i.isRTL?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:u}=pl(c,n,l),p=n,h={},g=0;for(let r=0;r<s.length;r++){const{name:a,fn:f}=s[r],{x:m,y:v,data:b,reset:x}=await f({x:d,y:u,initialPlacement:n,placement:p,strategy:o,middlewareData:h,rects:c,platform:i,elements:{reference:e,floating:t}});d=null!=m?m:d,u=null!=v?v:u,h={...h,[a]:{...h[a],...b}},x&&g<=50&&(g++,"object"==typeof x&&(x.placement&&(p=x.placement),x.rects&&(c=!0===x.rects?await i.getElementRects({reference:e,floating:t,strategy:o}):x.rects),({x:d,y:u}=pl(c,p,l))),r=-1)}return{x:d,y:u,placement:p,strategy:o,middlewareData:h}})(e,t,{...o,platform:a})})(n,t,{placement:c,middleware:l,strategy:d});u?.(e),p?.({placed:!0});const r=Cr(t),o=mc(r,e.x),a=mc(r,e.y);if(t.style.setProperty("--x",`${o}px`),t.style.setProperty("--y",`${a}px`),i.hideWhenDetached){const r=e.middlewareData.hide?.referenceHidden;r?(t.style.setProperty("visibility","hidden"),t.style.setProperty("pointer-events","none")):(t.style.removeProperty("visibility"),t.style.removeProperty("pointer-events"))}const s=t.firstElementChild;if(s){const e=Sr(s);t.style.setProperty("--z-index",e.zIndex)}},g=async()=>{r.updatePosition?(await r.updatePosition({updatePosition:h}),p?.({placed:!0})):await h()},f=function(e){return e?!0===e?{ancestorResize:!0,ancestorScroll:!0,elementResize:!0,layoutShift:!0}:e:{}}(i.listeners),m=i.listeners?function(e,t,r,n){void 0===n&&(n={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=n,c=Gl(e),d=o||a?[...c?$l(c):[],...$l(t)]:[];d.forEach(e=>{o&&e.addEventListener("scroll",r,{passive:!0}),a&&e.addEventListener("resize",r)});const u=c&&s?function(e,t){let r,n=null;const o=yl(e);function a(){var e;clearTimeout(r),null==(e=n)||e.disconnect(),n=null}return function i(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),a();const c=e.getBoundingClientRect(),{left:d,top:u,width:p,height:h}=c;if(s||t(),!p||!h)return;const g={rootMargin:-Gs(u)+"px "+-Gs(o.clientWidth-(d+p))+"px "+-Gs(o.clientHeight-(u+h))+"px "+-Gs(d)+"px",threshold:Bs(0,$s(1,l))||1};let f=!0;function m(t){const n=t[0].intersectionRatio;if(n!==l){if(!f)return i();n?i(!1,n):r=setTimeout(()=>{i(!1,1e-7)},1e3)}1!==n||ic(c,e.getBoundingClientRect())||i(),f=!1}try{n=new IntersectionObserver(m,{...g,root:o.ownerDocument})}catch(e){n=new IntersectionObserver(m,g)}n.observe(e)}(!0),a}(c,r):null;let p,h=-1,g=null;i&&(g=new ResizeObserver(e=>{let[n]=e;n&&n.target===c&&g&&(g.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var e;null==(e=g)||e.observe(t)})),r()}),c&&!l&&g.observe(c),g.observe(t));let f=l?Yl(e):null;return l&&function t(){const n=Yl(e);f&&!ic(f,n)&&r(),f=n,p=requestAnimationFrame(t)}(),r(),()=>{var e;d.forEach(e=>{o&&e.removeEventListener("scroll",r),a&&e.removeEventListener("resize",r)}),null==u||u(),null==(e=g)||e.disconnect(),g=null,l&&cancelAnimationFrame(p)}}(n,t,g,f):zt;return g(),()=>{m?.(),p?.({placed:!1})}}(r,n,o))})),()=>{i.forEach(e=>e?.())}}var Ec={bottom:"rotate(45deg)",left:"rotate(135deg)",top:"rotate(225deg)",right:"rotate(315deg)"};function Ic(e={}){const{placement:t,sameWidth:r,fitViewport:n,strategy:o="absolute"}=e;return{arrow:{position:"absolute",width:uc.arrowSize.reference,height:uc.arrowSize.reference,[uc.arrowSizeHalf.variable]:`calc(${uc.arrowSize.reference} / 2)`,[uc.arrowOffset.variable]:`calc(${uc.arrowSizeHalf.reference} * -1)`},arrowTip:{transform:t?Ec[t.split("-")[0]]:void 0,background:uc.arrowBg.reference,top:"0",left:"0",width:"100%",height:"100%",position:"absolute",zIndex:"inherit"},floating:{position:o,isolation:"isolate",minWidth:r?void 0:"max-content",width:r?"var(--reference-width)":void 0,maxWidth:n?"var(--available-width)":void 0,maxHeight:n?"var(--available-height)":void 0,pointerEvents:t?void 0:"none",top:"0px",left:"0px",transform:t?"translate3d(var(--x), var(--y), 0)":"translate3d(0, -100vh, 0)",zIndex:"var(--z-index)"}}}var Pc=new WeakMap,Rc=new WeakMap,Tc={},Oc=0,Nc=e=>e&&(e.host||Nc(e.parentNode)),Vc=new Set(["script","output","status","next-route-announcer"]),Ac=(e,t=(e=>(Array.isArray(e)?e[0]:e).ownerDocument.body)(e),r="data-aria-hidden")=>{if(t)return((e,t)=>{const{parentNode:r,markerName:n,controlAttribute:o}=t,a=((e,t)=>t.map(t=>{if(e.contains(t))return t;const r=Nc(t);return r&&e.contains(r)?r:(console.error("[zag-js > ariaHidden] target",t,"in not contained inside",e,". Doing nothing"),null)}).filter(e=>Boolean(e)))(r,Array.isArray(e)?e:[e]);Tc[n]||(Tc[n]=new WeakMap);const i=Tc[n],s=[],l=new Set,c=new Set(a),d=e=>{e&&!l.has(e)&&(l.add(e),d(e.parentNode))};a.forEach(d);const u=e=>{e&&!c.has(e)&&Array.prototype.forEach.call(e.children,e=>{if(l.has(e))u(e);else try{if((e=>!!Vc.has(e.localName)||"status"===e.role||!!e.hasAttribute("aria-live")||e.matches("[data-live-announcer]"))(e))return;const t="true"===e.getAttribute(o),r=(Pc.get(e)||0)+1,a=(i.get(e)||0)+1;Pc.set(e,r),i.set(e,a),s.push(e),1===r&&t&&Rc.set(e,!0),1===a&&e.setAttribute(n,""),t||e.setAttribute(o,"true")}catch(t){console.error("[zag-js > ariaHidden] cannot operate on ",e,t)}})};return u(r),l.clear(),Oc++,()=>{s.forEach(e=>{const t=Pc.get(e)-1,r=i.get(e)-1;Pc.set(e,t),i.set(e,r),t||(Rc.has(e)||e.removeAttribute(o),Rc.delete(e)),r||e.removeAttribute(n)}),--Oc||(Pc=new WeakMap,Pc=new WeakMap,Rc=new WeakMap,Tc={})}})(e,{parentNode:t,markerName:r,controlAttribute:"aria-hidden"})},zc=e=>{const t=requestAnimationFrame(()=>e());return()=>cancelAnimationFrame(t)};var _c="pointerdown.outside",Fc="focus.outside";function Lc(e){for(const t of e)if(fr(t)&&rn(t))return!0;return!1}var Dc=e=>"clientY"in e;function jc(e,t){if(!t||!Dc(e))return!1;const r=t.scrollHeight>t.clientHeight,n=r&&e.clientX>t.offsetLeft+t.clientWidth,o=t.scrollWidth>t.clientWidth,a=o&&e.clientY>t.offsetTop+t.clientHeight;return i={x:t.offsetLeft,y:t.offsetTop,width:t.clientWidth+(r?16:0),height:t.clientHeight+(o?16:0)},s={x:e.clientX,y:e.clientY},!!(i.y<=s.y&&s.y<=i.y+i.height&&i.x<=s.x&&s.x<=i.x+i.width)&&(n||a);var i,s}function Mc(e,t){const{defer:r}=t,n=r?ln:e=>e(),o=[];return o.push(n(()=>{const r="function"==typeof e?e():e;o.push(function(e,t){const{exclude:r,onFocusOutside:n,onPointerDownOutside:o,onInteractOutside:a,defer:i}=t;if(!e)return;const s=wr(e),l=Cr(e),c=function(e){const t={each(t){for(let r=0;r<e.frames?.length;r+=1){const n=e.frames[r];n&&t(n)}},addEventListener:(e,r,n)=>(t.each(t=>{try{t.document.addEventListener(e,r,n)}catch{}}),()=>{try{t.removeEventListener(e,r,n)}catch{}}),removeEventListener(e,r,n){t.each(t=>{try{t.document.removeEventListener(e,r,n)}catch{}})}};return t}(l),d=function(e){const t=null!=e.frameElement?e.parent:null;return{addEventListener:(e,r,n)=>{try{t?.addEventListener(e,r,n)}catch{}return()=>{try{t?.removeEventListener(e,r,n)}catch{}}},removeEventListener:(e,r,n)=>{try{t?.removeEventListener(e,r,n)}catch{}}}}(l);function u(t,n){if(!fr(n))return!1;if(!n.isConnected)return!1;if(yr(e,n))return!1;if(function(e,t){if(!Dc(t)||!e)return!1;const r=e.getBoundingClientRect();return 0!==r.width&&0!==r.height&&r.top<=t.clientY&&t.clientY<=r.top+r.height&&r.left<=t.clientX&&t.clientX<=r.left+r.width}(e,t))return!1;const o=s.querySelector(`[aria-controls="${e.id}"]`);return!(o&&jc(t,un(o))||jc(t,un(e))||r?.(n))}const p=new Set,h=br(e?.getRootNode());function g(t){function r(r){const n=i&&!Rr()?ln:e=>e(),s=r??t,l=s?.composedPath?.()??[s?.target];n(()=>{const r=h?l[0]:Vr(t);if(e&&u(t,r)){if(o||a){const t=_t(o,a);e.addEventListener(_c,t,{once:!0})}var n;Wc(e,_c,{bubbles:!1,cancelable:!0,detail:{originalEvent:s,contextmenu:(n=s,2===n.button||Or()&&n.ctrlKey&&0===n.button),focusable:Lc(l),target:r}})}})}"touch"===t.pointerType?(p.forEach(e=>e()),p.add(Hr(s,"click",r,{once:!0})),p.add(d.addEventListener("click",r,{once:!0})),p.add(c.addEventListener("click",r,{once:!0}))):r()}const f=new Set,m=setTimeout(()=>{f.add(Hr(s,"pointerdown",g,!0)),f.add(d.addEventListener("pointerdown",g,!0)),f.add(c.addEventListener("pointerdown",g,!0))},0);function v(t){(i?ln:e=>e())(()=>{const r=Vr(t);if(e&&u(t,r)){if(n||a){const t=_t(n,a);e.addEventListener(Fc,t,{once:!0})}Wc(e,Fc,{bubbles:!1,cancelable:!0,detail:{originalEvent:t,contextmenu:!1,focusable:rn(r),target:r}})}})}return Rr()||(f.add(Hr(s,"focusin",v,!0)),f.add(d.addEventListener("focusin",v,!0)),f.add(c.addEventListener("focusin",v,!0))),()=>{clearTimeout(m),p.forEach(e=>e()),f.forEach(e=>e())}}(r,t))})),()=>{o.forEach(e=>e?.())}}function Wc(e,t,r){const n=new(e.ownerDocument.defaultView||window).CustomEvent(t,r);return e.dispatchEvent(n)}function $c(e,t){return Hr(wr(e),"keydown",e=>{"Escape"===e.key&&(e.isComposing||t?.(e))},{capture:!0})}var Bc,Hc={layers:[],branches:[],count(){return this.layers.length},pointerBlockingLayers(){return this.layers.filter(e=>e.pointerBlocking)},topMostPointerBlockingLayer(){return[...this.pointerBlockingLayers()].slice(-1)[0]},hasPointerBlockingLayer(){return this.pointerBlockingLayers().length>0},isBelowPointerBlockingLayer(e){return this.indexOf(e)<(this.topMostPointerBlockingLayer()?this.indexOf(this.topMostPointerBlockingLayer()?.node):-1)},isTopMost(e){const t=this.layers[this.count()-1];return t?.node===e},getNestedLayers(e){return Array.from(this.layers).slice(this.indexOf(e)+1)},isInNestedLayer(e,t){return this.getNestedLayers(e).some(e=>yr(e.node,t))},isInBranch(e){return Array.from(this.branches).some(t=>yr(t,e))},add(e){const t=this.layers.push(e);e.node.style.setProperty("--layer-index",`${t}`)},addBranch(e){this.branches.push(e)},remove(e){const t=this.indexOf(e);t<0||(t<this.count()-1&&this.getNestedLayers(e).forEach(e=>e.dismiss()),this.layers.splice(t,1),e.style.removeProperty("--layer-index"))},removeBranch(e){const t=this.branches.indexOf(e);t>=0&&this.branches.splice(t,1)},indexOf(e){return this.layers.findIndex(t=>t.node===e)},dismiss(e){this.layers[this.indexOf(e)]?.dismiss()},clear(){this.remove(this.layers[0].node)}};function Gc(){Hc.layers.forEach(({node:e})=>{e.style.pointerEvents=Hc.isBelowPointerBlockingLayer(e)?"none":"auto"})}function Uc(e,t){const r=wr(e),n=[];if(Hc.hasPointerBlockingLayer()&&!r.body.hasAttribute("data-inert")&&(Bc=document.body.style.pointerEvents,queueMicrotask(()=>{r.body.style.pointerEvents="none",r.body.setAttribute("data-inert","")})),t){const e=function(e,t){const r=[];return e?.forEach(e=>{const n=function(e,t){const r=e();if(fr(r)&&r.isConnected)return t(r),()=>{};{const r=setInterval(()=>{const n=e();fr(n)&&n.isConnected&&(t(n),clearInterval(r))},Vn);return()=>clearInterval(r)}}(e,t);r.push(n)}),()=>{r.forEach(e=>e())}}(t,e=>{n.push(Rn(e,{pointerEvents:"auto"}))});n.push(e)}return()=>{Hc.hasPointerBlockingLayer()||(queueMicrotask(()=>{r.body.style.pointerEvents=Bc,r.body.removeAttribute("data-inert"),0===r.body.style.length&&r.body.removeAttribute("style")}),n.forEach(e=>e()))}}function qc(e,t){const{defer:r}=t,n=r?ln:e=>e(),o=[];return o.push(n(()=>{const r=Pt(e)?e():e;o.push(function(e,t){const{warnOnMissingNode:r=!0}=t;if(r&&!e)return void ir("[@zag-js/dismissable] node is `null` or `undefined`");if(!e)return;const{onDismiss:n,pointerBlocking:o,exclude:a,debug:i}=t,s={dismiss:n,node:e,pointerBlocking:o};Hc.add(s),Gc();const l=[o?Uc(e,t.persistentElements):void 0,$c(e,function(r){Hc.isTopMost(e)&&(t.onEscapeKeyDown?.(r),!r.defaultPrevented&&n&&(r.preventDefault(),n()))}),Mc(e,{exclude:function(r){if(!e)return!1;const n="function"==typeof a?a():a,o=Array.isArray(n)?n:[n],i=t.persistentElements?.map(e=>e()).filter(fr);return i&&o.push(...i),o.some(e=>yr(e,r))||Hc.isInNestedLayer(e,r)},onFocusOutside:function(e){const r=Vr(e.detail.originalEvent);Hc.isInBranch(r)||(t.onFocusOutside?.(e),t.onInteractOutside?.(e),e.defaultPrevented||(i&&console.log("onFocusOutside:",e.detail.originalEvent),n?.()))},onPointerDownOutside:function(r){const o=Vr(r.detail.originalEvent);Hc.isBelowPointerBlockingLayer(e)||Hc.isInBranch(o)||(t.onPointerDownOutside?.(r),t.onInteractOutside?.(r),r.defaultPrevented||(i&&console.log("onPointerDownOutside:",r.detail.originalEvent),n?.()))},defer:t.defer})];return()=>{Hc.remove(e),Gc(),function(e){e.style.pointerEvents=""}(e),l.forEach(e=>e?.())}}(r,t))})),()=>{o.forEach(e=>e?.())}}var Kc=lo("combobox").parts("root","clearTrigger","content","control","input","item","itemGroup","itemGroupLabel","itemIndicator","itemText","label","list","positioner","trigger"),Yc=(Kc.build(),e=>new ks(e));Yc.empty=()=>new ks({items:[]});var Xc=e=>e.getById((e=>e.ids?.content??`combobox:${e.id}:content`)(e)),Zc=e=>e.getById((e=>e.ids?.input??`combobox:${e.id}:input`)(e)),Jc=e=>e.getById((e=>e.ids?.positioner??`combobox:${e.id}:popper`)(e)),Qc=e=>e.getById((e=>e.ids?.control??`combobox:${e.id}:control`)(e)),ed=e=>e.getById((e=>e.ids?.trigger??`combobox:${e.id}:toggle-btn`)(e)),td=e=>e.getById((e=>e.ids?.clearTrigger??`combobox:${e.id}:clear-btn`)(e)),rd=(e,t)=>{if(null==t)return;const r=`[role=option][data-value="${CSS.escape(t)}"]`;return kn(Xc(e),r)},nd=e=>{const t=Zc(e);e.isActiveElement(t)||t?.focus({preventScroll:!0})},{guards:od,createMachine:ad,choose:id}={guards:{and:(...e)=>function(t){return e.every(e=>t.guard(e))},or:(...e)=>function(t){return e.some(e=>t.guard(e))},not:e=>function(t){return!t.guard(e)}},createMachine:e=>e,choose:e=>function({choose:t}){return t(e)?.actions}},{and:sd,not:ld}=od;function cd(e){return(e.previousEvent||e).src}ad({props:({props:e})=>({loopFocus:!0,openOnClick:!1,defaultValue:[],closeOnSelect:!e.multiple,allowCustomValue:!1,inputBehavior:"none",selectionBehavior:e.multiple?"clear":"replace",openOnKeyPress:!0,openOnChange:!0,composite:!0,navigate({node:e}){dn(e)},collection:Yc.empty(),...e,positioning:{placement:"bottom",sameWidth:!0,...e.positioning},translations:{triggerLabel:"Toggle suggestions",clearTriggerLabel:"Clear value",...e.translations}}),initialState:({prop:e})=>e("open")||e("defaultOpen")?"suggesting":"idle",context:({prop:e,bindable:t,getContext:r,getEvent:n})=>({currentPlacement:t(()=>({defaultValue:void 0})),value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),isEqual:kt,hash:e=>e.join(","),onChange(t){const n=r(),o=n.get("selectedItems"),a=e("collection"),i=t.map(e=>o.find(t=>a.getItemValue(t)===e)||a.find(e));n.set("selectedItems",i),e("onValueChange")?.({value:t,items:i})}})),highlightedValue:t(()=>({defaultValue:e("defaultHighlightedValue")||null,value:e("highlightedValue"),onChange(t){const r=e("collection").find(t);e("onHighlightChange")?.({highlightedValue:t,highlightedItem:r})}})),inputValue:t(()=>{let t=e("inputValue")||e("defaultInputValue")||"";const r=e("defaultValue")||e("value")||[];if(!t.trim()&&!e("multiple")){const n=e("collection").stringifyMany(r);t=Lt(e("selectionBehavior"),{preserve:t||n,replace:n,clear:""})}return{defaultValue:t,value:e("inputValue"),onChange(t){const r=n(),o=(r.previousEvent||r).src;e("onInputValueChange")?.({inputValue:t,reason:o})}}}),highlightedItem:t(()=>{const t=e("highlightedValue");return{defaultValue:e("collection").find(t)}}),selectedItems:t(()=>{const t=e("value")||e("defaultValue")||[];return{defaultValue:e("collection").findMany(t)}})}),computed:{isInputValueEmpty:({context:e})=>0===e.get("inputValue").length,isInteractive:({prop:e})=>!(e("readOnly")||e("disabled")),autoComplete:({prop:e})=>"autocomplete"===e("inputBehavior"),autoHighlight:({prop:e})=>"autohighlight"===e("inputBehavior"),hasSelectedItems:({context:e})=>e.get("value").length>0,valueAsString:({context:e,prop:t})=>t("collection").stringifyItems(e.get("selectedItems")),isCustomValue:({context:e,computed:t})=>e.get("inputValue")!==t("valueAsString")},watch({context:e,prop:t,track:r,action:n,send:o}){r([()=>e.hash("value")],()=>{n(["syncSelectedItems"])}),r([()=>e.get("inputValue")],()=>{n(["syncInputValue"])}),r([()=>e.get("highlightedValue")],()=>{n(["syncHighlightedItem","autofillInputValue"])}),r([()=>t("open")],()=>{n(["toggleVisibility"])}),r([()=>t("collection").toString()],()=>{o({type:"CHILDREN_CHANGE"})})},on:{"SELECTED_ITEMS.SYNC":{actions:["syncSelectedItems"]},"HIGHLIGHTED_VALUE.SET":{actions:["setHighlightedValue"]},"HIGHLIGHTED_VALUE.CLEAR":{actions:["clearHighlightedValue"]},"ITEM.SELECT":{actions:["selectItem"]},"ITEM.CLEAR":{actions:["clearItem"]},"VALUE.SET":{actions:["setValue"]},"INPUT_VALUE.SET":{actions:["setInputValue"]},"POSITIONING.SET":{actions:["reposition"]}},entry:id([{guard:"autoFocus",actions:["setInitialFocus"]}]),states:{idle:{tags:["idle","closed"],entry:["scrollContentToTop","clearHighlightedValue"],on:{"CONTROLLED.OPEN":{target:"interacting"},"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]}],"INPUT.CLICK":[{guard:"isOpenControlled",actions:["highlightFirstSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightFirstSelectedItem","invokeOnOpen"]}],"INPUT.FOCUS":{target:"focused"},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"interacting",actions:["invokeOnOpen"]}],"VALUE.CLEAR":{target:"focused",actions:["clearInputValue","clearSelectedItems","setInitialFocus"]}}},focused:{tags:["focused","closed"],entry:["scrollContentToTop","clearHighlightedValue"],on:{"CONTROLLED.OPEN":[{guard:"isChangeEvent",target:"suggesting"},{target:"interacting"}],"INPUT.CHANGE":[{guard:sd("isOpenControlled","openOnChange"),actions:["setInputValue","invokeOnOpen","highlightFirstItemIfNeeded"]},{guard:"openOnChange",target:"suggesting",actions:["setInputValue","invokeOnOpen","highlightFirstItemIfNeeded"]},{actions:["setInputValue"]}],"LAYER.INTERACT_OUTSIDE":{target:"idle"},"INPUT.ESCAPE":{guard:sd("isCustomValue",ld("allowCustomValue")),actions:["revertInputValue"]},"INPUT.BLUR":{target:"idle"},"INPUT.CLICK":[{guard:"isOpenControlled",actions:["highlightFirstSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightFirstSelectedItem","invokeOnOpen"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]}],"INPUT.ARROW_DOWN":[{guard:sd("isOpenControlled","autoComplete"),actions:["invokeOnOpen"]},{guard:"autoComplete",target:"interacting",actions:["invokeOnOpen"]},{guard:"isOpenControlled",actions:["highlightFirstOrSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightFirstOrSelectedItem","invokeOnOpen"]}],"INPUT.ARROW_UP":[{guard:"autoComplete",target:"interacting",actions:["invokeOnOpen"]},{guard:"autoComplete",target:"interacting",actions:["invokeOnOpen"]},{target:"interacting",actions:["highlightLastOrSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightLastOrSelectedItem","invokeOnOpen"]}],OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"interacting",actions:["invokeOnOpen"]}],"VALUE.CLEAR":{actions:["clearInputValue","clearSelectedItems"]}}},interacting:{tags:["open","focused"],entry:["setInitialFocus"],effects:["scrollToHighlightedItem","trackDismissableLayer","trackPlacement","hideOtherElements"],on:{"CONTROLLED.CLOSE":[{guard:"restoreFocus",target:"focused",actions:["setFinalFocus"]},{target:"idle"}],CHILDREN_CHANGE:[{guard:"isHighlightedItemRemoved",actions:["clearHighlightedValue"]},{actions:["scrollToHighlightedItem"]}],"INPUT.HOME":{actions:["highlightFirstItem"]},"INPUT.END":{actions:["highlightLastItem"]},"INPUT.ARROW_DOWN":[{guard:sd("autoComplete","isLastItemHighlighted"),actions:["clearHighlightedValue","scrollContentToTop"]},{actions:["highlightNextItem"]}],"INPUT.ARROW_UP":[{guard:sd("autoComplete","isFirstItemHighlighted"),actions:["clearHighlightedValue"]},{actions:["highlightPrevItem"]}],"INPUT.ENTER":[{guard:sd("isOpenControlled","isCustomValue",ld("hasHighlightedItem"),ld("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:sd("isCustomValue",ld("hasHighlightedItem"),ld("allowCustomValue")),target:"focused",actions:["revertInputValue","invokeOnClose"]},{guard:sd("isOpenControlled","closeOnSelect"),actions:["selectHighlightedItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectHighlightedItem","invokeOnClose","setFinalFocus"]},{actions:["selectHighlightedItem"]}],"INPUT.CHANGE":[{guard:"autoComplete",target:"suggesting",actions:["setInputValue"]},{target:"suggesting",actions:["clearHighlightedValue","setInputValue"]}],"ITEM.POINTER_MOVE":{actions:["setHighlightedValue"]},"ITEM.POINTER_LEAVE":{actions:["clearHighlightedValue"]},"ITEM.CLICK":[{guard:sd("isOpenControlled","closeOnSelect"),actions:["selectItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectItem","invokeOnClose","setFinalFocus"]},{actions:["selectItem"]}],"LAYER.ESCAPE":[{guard:sd("isOpenControlled","autoComplete"),actions:["syncInputValue","invokeOnClose"]},{guard:"autoComplete",target:"focused",actions:["syncInputValue","invokeOnClose"]},{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose","setFinalFocus"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose"]}],"LAYER.INTERACT_OUTSIDE":[{guard:sd("isOpenControlled","isCustomValue",ld("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:sd("isCustomValue",ld("allowCustomValue")),target:"idle",actions:["revertInputValue","invokeOnClose"]},{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"idle",actions:["invokeOnClose"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose","setFinalFocus"]}],"VALUE.CLEAR":[{guard:"isOpenControlled",actions:["clearInputValue","clearSelectedItems","invokeOnClose"]},{target:"focused",actions:["clearInputValue","clearSelectedItems","invokeOnClose","setFinalFocus"]}]}},suggesting:{tags:["open","focused"],effects:["trackDismissableLayer","scrollToHighlightedItem","trackPlacement","hideOtherElements"],entry:["setInitialFocus"],on:{"CONTROLLED.CLOSE":[{guard:"restoreFocus",target:"focused",actions:["setFinalFocus"]},{target:"idle"}],CHILDREN_CHANGE:[{guard:"autoHighlight",actions:["highlightFirstItem"]},{guard:"isHighlightedItemRemoved",actions:["clearHighlightedValue"]}],"INPUT.ARROW_DOWN":{target:"interacting",actions:["highlightNextItem"]},"INPUT.ARROW_UP":{target:"interacting",actions:["highlightPrevItem"]},"INPUT.HOME":{target:"interacting",actions:["highlightFirstItem"]},"INPUT.END":{target:"interacting",actions:["highlightLastItem"]},"INPUT.ENTER":[{guard:sd("isOpenControlled","isCustomValue",ld("hasHighlightedItem"),ld("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:sd("isCustomValue",ld("hasHighlightedItem"),ld("allowCustomValue")),target:"focused",actions:["revertInputValue","invokeOnClose"]},{guard:sd("isOpenControlled","closeOnSelect"),actions:["selectHighlightedItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectHighlightedItem","invokeOnClose","setFinalFocus"]},{actions:["selectHighlightedItem"]}],"INPUT.CHANGE":{actions:["setInputValue"]},"LAYER.ESCAPE":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose"]}],"ITEM.POINTER_MOVE":{target:"interacting",actions:["setHighlightedValue"]},"ITEM.POINTER_LEAVE":{actions:["clearHighlightedValue"]},"LAYER.INTERACT_OUTSIDE":[{guard:sd("isOpenControlled","isCustomValue",ld("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:sd("isCustomValue",ld("allowCustomValue")),target:"idle",actions:["revertInputValue","invokeOnClose"]},{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"idle",actions:["invokeOnClose"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose"]}],"ITEM.CLICK":[{guard:sd("isOpenControlled","closeOnSelect"),actions:["selectItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectItem","invokeOnClose","setFinalFocus"]},{actions:["selectItem"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose","setFinalFocus"]}],"VALUE.CLEAR":[{guard:"isOpenControlled",actions:["clearInputValue","clearSelectedItems","invokeOnClose"]},{target:"focused",actions:["clearInputValue","clearSelectedItems","invokeOnClose","setFinalFocus"]}]}}},implementations:{guards:{isInputValueEmpty:({computed:e})=>e("isInputValueEmpty"),autoComplete:({computed:e,prop:t})=>e("autoComplete")&&!t("multiple"),autoHighlight:({computed:e})=>e("autoHighlight"),isFirstItemHighlighted:({prop:e,context:t})=>e("collection").firstValue===t.get("highlightedValue"),isLastItemHighlighted:({prop:e,context:t})=>e("collection").lastValue===t.get("highlightedValue"),isCustomValue:({computed:e})=>e("isCustomValue"),allowCustomValue:({prop:e})=>!!e("allowCustomValue"),hasHighlightedItem:({context:e})=>null!=e.get("highlightedValue"),closeOnSelect:({prop:e})=>!!e("closeOnSelect"),isOpenControlled:({prop:e})=>null!=e("open"),openOnChange:({prop:e,context:t})=>{const r=e("openOnChange");return!0===(n=r)||!1===n?r:!!r?.({inputValue:t.get("inputValue")});var n},restoreFocus:({event:e})=>null==e.restoreFocus||!!e.restoreFocus,isChangeEvent:({event:e})=>"INPUT.CHANGE"===e.previousEvent?.type,autoFocus:({prop:e})=>!!e("autoFocus"),isHighlightedItemRemoved:({prop:e,context:t})=>!e("collection").has(t.get("highlightedValue"))},effects:{trackDismissableLayer({send:e,prop:t,scope:r}){if(!t("disableLayer"))return qc(()=>Xc(r),{defer:!0,exclude:()=>[Zc(r),ed(r),td(r)],onFocusOutside:t("onFocusOutside"),onPointerDownOutside:t("onPointerDownOutside"),onInteractOutside:t("onInteractOutside"),onEscapeKeyDown(t){t.preventDefault(),t.stopPropagation(),e({type:"LAYER.ESCAPE",src:"escape-key"})},onDismiss(){e({type:"LAYER.INTERACT_OUTSIDE",src:"interact-outside",restoreFocus:!1})}})},hideOtherElements:({scope:e})=>function(e,t={}){const{defer:r=!0}=t,n=r?zc:e=>e(),o=[];return o.push(n(()=>{const t=("function"==typeof e?e():e).filter(Boolean);0!==t.length&&o.push(Ac(t))})),()=>{o.forEach(e=>e?.())}}([Zc(e),Xc(e),ed(e),td(e)]),trackPlacement:({context:e,prop:t,scope:r})=>(e.set("currentPlacement",t("positioning").placement),Sc(()=>Qc(r)||ed(r),()=>Jc(r),{...t("positioning"),defer:!0,onComplete(t){e.set("currentPlacement",t.placement)}})),scrollToHighlightedItem({context:e,prop:t,scope:r,event:n}){const o=Zc(r);let a=[];const i=o=>{const i=n.current().type.includes("POINTER"),s=e.get("highlightedValue");if(i||!s)return;const l=rd(r,s),c=Xc(r),d=t("scrollToIndexFn");if(d)return void d({index:t("collection").indexOf(s),immediate:o});const u=ln(()=>{fn(l,{rootEl:c,block:"nearest"})});a.push(u)},s=ln(()=>i(!0));a.push(s);const l=cn(o,{attributes:["aria-activedescendant"],callback:()=>i(!1)});return a.push(l),()=>{a.forEach(e=>e())}}},actions:{reposition({context:e,prop:t,scope:r,event:n}){Sc(()=>Qc(r),()=>Jc(r),{...t("positioning"),...n.options,defer:!0,listeners:!1,onComplete(t){e.set("currentPlacement",t.placement)}})},setHighlightedValue({context:e,event:t}){null!=t.value&&e.set("highlightedValue",t.value)},clearHighlightedValue({context:e}){e.set("highlightedValue",null)},selectHighlightedItem(e){const{context:t,prop:r}=e,n=r("collection"),o=t.get("highlightedValue");if(!o||!n.has(o))return;const a=r("multiple")?wt(t.get("value"),o):[o];r("onSelect")?.({value:a,itemValue:o}),t.set("value",a);const i=Lt(r("selectionBehavior"),{preserve:t.get("inputValue"),replace:n.stringifyMany(a),clear:""});t.set("inputValue",i)},scrollToHighlightedItem({context:e,prop:t,scope:r}){sn(()=>{const n=e.get("highlightedValue");if(null==n)return;const o=rd(r,n),a=Xc(r),i=t("scrollToIndexFn");i?i({index:t("collection").indexOf(n),immediate:!0}):fn(o,{rootEl:a,block:"nearest"})})},selectItem(e){const{context:t,event:r,flush:n,prop:o}=e;null!=r.value&&n(()=>{const e=o("multiple")?wt(t.get("value"),r.value):[r.value];o("onSelect")?.({value:e,itemValue:r.value}),t.set("value",e);const n=Lt(o("selectionBehavior"),{preserve:t.get("inputValue"),replace:o("collection").stringifyMany(e),clear:""});t.set("inputValue",n)})},clearItem(e){const{context:t,event:r,flush:n,prop:o}=e;null!=r.value&&n(()=>{const e=yt(t.get("value"),r.value);t.set("value",e);const n=Lt(o("selectionBehavior"),{preserve:t.get("inputValue"),replace:o("collection").stringifyMany(e),clear:""});t.set("inputValue",n)})},setInitialFocus({scope:e}){ln(()=>{nd(e)})},setFinalFocus({scope:e}){ln(()=>{const t=ed(e);null==t?.dataset.focusable?nd(e):(e=>{const t=ed(e);e.isActiveElement(t)||t?.focus({preventScroll:!0})})(e)})},syncInputValue({context:e,scope:t,event:r}){const n=Zc(t);n&&(n.value=e.get("inputValue"),queueMicrotask(()=>{"INPUT.CHANGE"!==r.current().type&&function(e){if(!e)return;const t=e.selectionStart??0,r=e.selectionEnd??0;0===Math.abs(r-t)&&0===t&&e.setSelectionRange(e.value.length,e.value.length)}(n)}))},setInputValue({context:e,event:t}){e.set("inputValue",t.value)},clearInputValue({context:e}){e.set("inputValue","")},revertInputValue({context:e,prop:t,computed:r}){const n=Lt(t("selectionBehavior"),{replace:r("hasSelectedItems")?r("valueAsString"):"",preserve:e.get("inputValue"),clear:""});e.set("inputValue",n)},setValue(e){const{context:t,flush:r,event:n,prop:o}=e;r(()=>{t.set("value",n.value);const e=Lt(o("selectionBehavior"),{preserve:t.get("inputValue"),replace:o("collection").stringifyMany(n.value),clear:""});t.set("inputValue",e)})},clearSelectedItems(e){const{context:t,flush:r,prop:n}=e;r(()=>{t.set("value",[]);const e=Lt(n("selectionBehavior"),{preserve:t.get("inputValue"),replace:n("collection").stringifyMany([]),clear:""});t.set("inputValue",e)})},scrollContentToTop({prop:e,scope:t}){const r=e("scrollToIndexFn");if(r)r({index:0,immediate:!0});else{const e=Xc(t);if(!e)return;e.scrollTop=0}},invokeOnOpen({prop:e,event:t}){const r=cd(t);e("onOpenChange")?.({open:!0,reason:r})},invokeOnClose({prop:e,event:t}){const r=cd(t);e("onOpenChange")?.({open:!1,reason:r})},highlightFirstItem({context:e,prop:t,scope:r}){(Xc(r)?queueMicrotask:ln)(()=>{const r=t("collection").firstValue;r&&e.set("highlightedValue",r)})},highlightFirstItemIfNeeded({computed:e,action:t}){e("autoHighlight")&&t(["highlightFirstItem"])},highlightLastItem({context:e,prop:t,scope:r}){(Xc(r)?queueMicrotask:ln)(()=>{const r=t("collection").lastValue;r&&e.set("highlightedValue",r)})},highlightNextItem({context:e,prop:t}){let r=null;const n=e.get("highlightedValue"),o=t("collection");n?(r=o.getNextValue(n),!r&&t("loopFocus")&&(r=o.firstValue)):r=o.firstValue,r&&e.set("highlightedValue",r)},highlightPrevItem({context:e,prop:t}){let r=null;const n=e.get("highlightedValue"),o=t("collection");n?(r=o.getPreviousValue(n),!r&&t("loopFocus")&&(r=o.lastValue)):r=o.lastValue,r&&e.set("highlightedValue",r)},highlightFirstSelectedItem({context:e,prop:t}){ln(()=>{const[r]=t("collection").sort(e.get("value"));r&&e.set("highlightedValue",r)})},highlightFirstOrSelectedItem({context:e,prop:t,computed:r}){ln(()=>{let n=null;n=r("hasSelectedItems")?t("collection").sort(e.get("value"))[0]:t("collection").firstValue,n&&e.set("highlightedValue",n)})},highlightLastOrSelectedItem({context:e,prop:t,computed:r}){ln(()=>{const n=t("collection");let o=null;o=r("hasSelectedItems")?n.sort(e.get("value"))[0]:n.lastValue,o&&e.set("highlightedValue",o)})},autofillInputValue({context:e,computed:t,prop:r,event:n,scope:o}){const a=Zc(o),i=r("collection");if(!t("autoComplete")||!a||!n.keypress)return;const s=i.stringify(e.get("highlightedValue"));ln(()=>{a.value=s||e.get("inputValue")})},syncSelectedItems(e){queueMicrotask(()=>{const{context:t,prop:r}=e,n=r("collection"),o=t.get("value"),a=o.map(e=>t.get("selectedItems").find(t=>n.getItemValue(t)===e)||n.find(e));t.set("selectedItems",a);const i=Lt(r("selectionBehavior"),{preserve:t.get("inputValue"),replace:n.stringifyMany(o),clear:""});t.set("inputValue",i)})},syncHighlightedItem({context:e,prop:t}){const r=t("collection").find(e.get("highlightedValue"));e.set("highlightedItem",r)},toggleVisibility({event:e,send:t,prop:r}){t({type:r("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:e})}}}});var dd=(or(Qn()(["allowCustomValue","autoFocus","closeOnSelect","collection","composite","defaultHighlightedValue","defaultInputValue","defaultOpen","defaultValue","dir","disabled","disableLayer","form","getRootNode","highlightedValue","id","ids","inputBehavior","inputValue","invalid","loopFocus","multiple","name","navigate","onFocusOutside","onHighlightChange","onInputValueChange","onInteractOutside","onOpenChange","onOpenChange","onPointerDownOutside","onSelect","onValueChange","open","openOnChange","openOnClick","openOnKeyPress","placeholder","positioning","readOnly","required","scrollToIndexFn","selectionBehavior","translations","value"])),Qn()(["htmlFor"])),ud=(or(dd),Qn()(["id"])),pd=(or(ud),Qn()(["item","persistFocus"])),hd=(or(pd),lo("accordion").parts("root","item","itemTrigger","itemContent","itemIndicator")),{and:gd,not:fd}=(hd.build(),{and:(...e)=>function(t){return e.every(e=>t.guard(e))},or:(...e)=>function(t){return e.some(e=>t.guard(e))},not:e=>function(t){return!t.guard(e)}}),md=(or((gd("isExpanded","canToggle"),fd("isExpanded"),Qn()(["collapsible","dir","disabled","getRootNode","id","ids","multiple","onFocusChange","onValueChange","orientation","value","defaultValue"]))),Qn()(["value","disabled"])),vd=(or(md),lo("clipboard").parts("root","control","trigger","indicator","input","label"));vd.build();var bd=(or(Qn()(["getRootNode","id","ids","value","defaultValue","timeout","onStatusChange","onValueChange"])),Qn()(["copied"])),xd=(or(bd),Object.defineProperty),yd=(e,t,r)=>((e,t,r)=>t in e?xd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r)(e,t+"",r);function wd(e,t){const{xChannel:r,yChannel:n,dir:o="ltr"}=t,{zChannel:a}=e.getColorAxes({xChannel:r,yChannel:n}),i=e.getChannelValue(a),{minValue:s,maxValue:l}=e.getChannelRange(a),c=["top","rtl"===o?"left":"right"];let d=!1,u={areaStyles:{},areaGradientStyles:{}},p=(i-s)/(l-s),h="hsla"===e.getFormat();switch(a){case"red":d="green"===r,u=((e,t,r)=>{const n=`linear-gradient(to ${e[Number(!t)]}, transparent, #000)`;return{areaStyles:{backgroundImage:`linear-gradient(to ${e[Number(t)]},rgb(${r},0,0),rgb(${r},255,0))`},areaGradientStyles:{backgroundImage:`linear-gradient(to ${e[Number(t)]},rgb(${r},0,255),rgb(${r},255,255))`,WebkitMaskImage:n,maskImage:n}}})(c,d,i);break;case"green":d="red"===r,u=((e,t,r)=>{const n=`linear-gradient(to ${e[Number(!t)]}, transparent, #000)`;return{areaStyles:{backgroundImage:`linear-gradient(to ${e[Number(t)]},rgb(0,${r},0),rgb(255,${r},0))`},areaGradientStyles:{backgroundImage:`linear-gradient(to ${e[Number(t)]},rgb(0,${r},255),rgb(255,${r},255))`,WebkitMaskImage:n,maskImage:n}}})(c,d,i);break;case"blue":d="red"===r,u=((e,t,r)=>{const n=`linear-gradient(to ${e[Number(!t)]}, transparent, #000)`;return{areaStyles:{backgroundImage:`linear-gradient(to ${e[Number(t)]},rgb(0,0,${r}),rgb(255,0,${r}))`},areaGradientStyles:{backgroundImage:`linear-gradient(to ${e[Number(t)]},rgb(0,255,${r}),rgb(255,255,${r}))`,WebkitMaskImage:n,maskImage:n}}})(c,d,i);break;case"hue":d="saturation"!==r,u=h?((e,t,r)=>({areaStyles:{},areaGradientStyles:{background:[`linear-gradient(to ${e[Number(t)]}, hsla(0,0%,0%,1) 0%, hsla(0,0%,0%,0) 50%, hsla(0,0%,100%,0) 50%, hsla(0,0%,100%,1) 100%)`,`linear-gradient(to ${e[Number(!t)]},hsl(0,0%,50%),hsla(0,0%,50%,0))`,`hsl(${r}, 100%, 50%)`].join(",")}}))(c,d,i):((e,t,r)=>({areaStyles:{},areaGradientStyles:{background:[`linear-gradient(to ${e[Number(t)]},hsl(0,0%,0%),hsla(0,0%,0%,0))`,`linear-gradient(to ${e[Number(!t)]},hsl(0,0%,100%),hsla(0,0%,100%,0))`,`hsl(${r}, 100%, 50%)`].join(",")}}))(c,d,i);break;case"saturation":d="hue"===r,u=h?((e,t,r)=>({areaStyles:{},areaGradientStyles:{background:[`linear-gradient(to ${e[Number(!t)]}, hsla(0,0%,0%,${r}) 0%, hsla(0,0%,0%,0) 50%, hsla(0,0%,100%,0) 50%, hsla(0,0%,100%,${r}) 100%)`,`linear-gradient(to ${e[Number(t)]},hsla(0,100%,50%,${r}),hsla(60,100%,50%,${r}),hsla(120,100%,50%,${r}),hsla(180,100%,50%,${r}),hsla(240,100%,50%,${r}),hsla(300,100%,50%,${r}),hsla(359,100%,50%,${r}))`,"hsl(0, 0%, 50%)"].join(",")}}))(c,d,p):((e,t,r)=>({areaStyles:{},areaGradientStyles:{background:[`linear-gradient(to ${e[Number(!t)]},hsla(0,0%,0%,${r}),hsla(0,0%,0%,0))`,`linear-gradient(to ${e[Number(t)]},hsla(0,100%,50%,${r}),hsla(60,100%,50%,${r}),hsla(120,100%,50%,${r}),hsla(180,100%,50%,${r}),hsla(240,100%,50%,${r}),hsla(300,100%,50%,${r}),hsla(359,100%,50%,${r}))`,`linear-gradient(to ${e[Number(!t)]},hsl(0,0%,0%),hsl(0,0%,100%))`].join(",")}}))(c,d,p);break;case"brightness":d="hue"===r,u=((e,t,r)=>({areaStyles:{},areaGradientStyles:{background:[`linear-gradient(to ${e[Number(!t)]},hsla(0,0%,100%,${r}),hsla(0,0%,100%,0))`,`linear-gradient(to ${e[Number(t)]},hsla(0,100%,50%,${r}),hsla(60,100%,50%,${r}),hsla(120,100%,50%,${r}),hsla(180,100%,50%,${r}),hsla(240,100%,50%,${r}),hsla(300,100%,50%,${r}),hsla(359,100%,50%,${r}))`,"#000"].join(",")}}))(c,d,p);break;case"lightness":d="hue"===r,u=((e,t,r)=>({areaStyles:{},areaGradientStyles:{backgroundImage:[`linear-gradient(to ${e[Number(!t)]},hsl(0,0%,${r}%),hsla(0,0%,${r}%,0))`,`linear-gradient(to ${e[Number(t)]},hsl(0,100%,${r}%),hsl(60,100%,${r}%),hsl(120,100%,${r}%),hsl(180,100%,${r}%),hsl(240,100%,${r}%),hsl(300,100%,${r}%),hsl(360,100%,${r}%))`].join(",")}}))(c,d,i)}return u}var Cd=class{toHexInt(){return this.toFormat("rgba").toHexInt()}getChannelValue(e){if(e in this)return this[e];throw new Error("Unsupported color channel: "+e)}getChannelValuePercent(e,t){const r=t??this.getChannelValue(e),{minValue:n,maxValue:o}=this.getChannelRange(e);return a=n,i=o,(qt(r)-a)/(i-a);var a,i}getChannelPercentValue(e,t){const{minValue:r,maxValue:n,step:o}=this.getChannelRange(e),a=((e,t,r,n)=>Yt(((e,t,r)=>Wt((qt(e)-t)/r)*r+t)(e*(r-t)+t,t,n),t,r))(t,r,n,o);return Jt(a,r,n,o)}withChannelValue(e,t){const{minValue:r,maxValue:n}=this.getChannelRange(e);if(e in this){let o=this.clone();return o[e]=Yt(t,r,n),o}throw new Error("Unsupported color channel: "+e)}getColorAxes(e){let{xChannel:t,yChannel:r}=e,n=t||this.getChannels().find(e=>e!==r),o=r||this.getChannels().find(e=>e!==n),a=this.getChannels().find(e=>e!==n&&e!==o);return{xChannel:n,yChannel:o,zChannel:a}}incrementChannel(e,t){const{minValue:r,maxValue:n,step:o}=this.getChannelRange(e),a=Jt(Yt(this.getChannelValue(e)+t,r,n),r,n,o);return this.withChannelValue(e,a)}decrementChannel(e,t){return this.incrementChannel(e,-t)}isEqual(e){return((e,t)=>{if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let r in e)if(e[r]!==t[r])return!1;return!0})(this.toJSON(),e.toJSON())&&this.getChannelValue("alpha")===e.getChannelValue("alpha")}},kd=/^#[\da-f]+$/i,Sd=/^rgba?\((.*)\)$/,Ed=/[^#]/gi,Id=class e extends Cd{constructor(e,t,r,n){super(),this.red=e,this.green=t,this.blue=r,this.alpha=n}static parse(t){let r=[];if(kd.test(t)&&[4,5,7,9].includes(t.length)){const e=(t.length<6?t.replace(Ed,"$&$&"):t).slice(1).split("");for(;e.length>0;)r.push(parseInt(e.splice(0,2).join(""),16));r[3]=void 0!==r[3]?r[3]/255:void 0}const n=t.match(Sd);return n?.[1]&&(r=n[1].split(",").map(e=>Number(e.trim())).map((e,t)=>Yt(e,0,t<3?255:1))),r.length<3?void 0:new e(r[0],r[1],r[2],r[3]??1)}toString(e){switch(e){case"hex":return"#"+(this.red.toString(16).padStart(2,"0")+this.green.toString(16).padStart(2,"0")+this.blue.toString(16).padStart(2,"0")).toUpperCase();case"hexa":return"#"+(this.red.toString(16).padStart(2,"0")+this.green.toString(16).padStart(2,"0")+this.blue.toString(16).padStart(2,"0")+Math.round(255*this.alpha).toString(16).padStart(2,"0")).toUpperCase();case"rgb":return`rgb(${this.red}, ${this.green}, ${this.blue})`;case"css":case"rgba":return`rgba(${this.red}, ${this.green}, ${this.blue}, ${this.alpha})`;case"hsl":return this.toHSL().toString("hsl");case"hsb":return this.toHSB().toString("hsb");default:return this.toFormat(e).toString(e)}}toFormat(e){switch(e){case"rgba":return this;case"hsba":return this.toHSB();case"hsla":return this.toHSL();default:throw new Error("Unsupported color conversion: rgb -> "+e)}}toHexInt(){return this.red<<16|this.green<<8|this.blue}toHSB(){const e=this.red/255,t=this.green/255,r=this.blue/255,n=Math.min(e,t,r),o=Math.max(e,t,r),a=o-n,i=0===o?0:a/o;let s=0;if(0!==a){switch(o){case e:s=(t-r)/a+(t<r?6:0);break;case t:s=(r-e)/a+2;break;case r:s=(e-t)/a+4}s/=6}return new Ad(er(360*s,2),er(100*i,2),er(100*o,2),er(this.alpha,2))}toHSL(){const e=this.red/255,t=this.green/255,r=this.blue/255,n=Math.min(e,t,r),o=Math.max(e,t,r),a=(o+n)/2,i=o-n;let s=-1,l=-1;if(0===i)s=l=0;else{switch(l=i/(a<.5?o+n:2-o-n),o){case e:s=(t-r)/i+(t<r?6:0);break;case t:s=(r-e)/i+2;break;case r:s=(e-t)/i+4}s/=6}return new Od(er(360*s,2),er(100*l,2),er(100*a,2),er(this.alpha,2))}clone(){return new e(this.red,this.green,this.blue,this.alpha)}getChannelFormatOptions(e){switch(e){case"red":case"green":case"blue":return{style:"decimal"};case"alpha":return{style:"percent"};default:throw new Error("Unknown color channel: "+e)}}formatChannelValue(e,t){let r=this.getChannelFormatOptions(e),n=this.getChannelValue(e);return new Intl.NumberFormat(t,r).format(n)}getChannelRange(e){switch(e){case"red":case"green":case"blue":return{minValue:0,maxValue:255,step:1,pageSize:17};case"alpha":return{minValue:0,maxValue:1,step:.01,pageSize:.1};default:throw new Error("Unknown color channel: "+e)}}toJSON(){return{r:this.red,g:this.green,b:this.blue,a:this.alpha}}getFormat(){return"rgba"}getChannels(){return e.colorChannels}};yd(Id,"colorChannels",["red","green","blue"]);var Pd=Id,Rd=/hsl\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%)\)|hsla\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d(.\d+)?)\)/,Td=class e extends Cd{constructor(e,t,r,n){super(),this.hue=e,this.saturation=t,this.lightness=r,this.alpha=n}static parse(t){let r;if(r=t.match(Rd)){const[t,n,o,a]=(r[1]??r[2]).split(",").map(e=>Number(e.trim().replace("%","")));return new e(Kt(t,360),Yt(n,0,100),Yt(o,0,100),Yt(a??1,0,1))}}toString(e){switch(e){case"hex":return this.toRGB().toString("hex");case"hexa":return this.toRGB().toString("hexa");case"hsl":return`hsl(${this.hue}, ${er(this.saturation,2)}%, ${er(this.lightness,2)}%)`;case"css":case"hsla":return`hsla(${this.hue}, ${er(this.saturation,2)}%, ${er(this.lightness,2)}%, ${this.alpha})`;case"hsb":return this.toHSB().toString("hsb");case"rgb":return this.toRGB().toString("rgb");default:return this.toFormat(e).toString(e)}}toFormat(e){switch(e){case"hsla":return this;case"hsba":return this.toHSB();case"rgba":return this.toRGB();default:throw new Error("Unsupported color conversion: hsl -> "+e)}}toHSB(){let e=this.saturation/100,t=this.lightness/100,r=t+e*Math.min(t,1-t);return e=0===r?0:2*(1-t/r),new Ad(er(this.hue,2),er(100*e,2),er(100*r,2),er(this.alpha,2))}toRGB(){let e=this.hue,t=this.saturation/100,r=this.lightness/100,n=t*Math.min(r,1-r),o=(t,o=(t+e/30)%12)=>r-n*Math.max(Math.min(o-3,9-o,1),-1);return new Pd(Math.round(255*o(0)),Math.round(255*o(8)),Math.round(255*o(4)),er(this.alpha,2))}clone(){return new e(this.hue,this.saturation,this.lightness,this.alpha)}getChannelFormatOptions(e){switch(e){case"hue":return{style:"unit",unit:"degree",unitDisplay:"narrow"};case"saturation":case"lightness":case"alpha":return{style:"percent"};default:throw new Error("Unknown color channel: "+e)}}formatChannelValue(e,t){let r=this.getChannelFormatOptions(e),n=this.getChannelValue(e);return"saturation"!==e&&"lightness"!==e||(n/=100),new Intl.NumberFormat(t,r).format(n)}getChannelRange(e){switch(e){case"hue":return{minValue:0,maxValue:360,step:1,pageSize:15};case"saturation":case"lightness":return{minValue:0,maxValue:100,step:1,pageSize:10};case"alpha":return{minValue:0,maxValue:1,step:.01,pageSize:.1};default:throw new Error("Unknown color channel: "+e)}}toJSON(){return{h:this.hue,s:this.saturation,l:this.lightness,a:this.alpha}}getFormat(){return"hsla"}getChannels(){return e.colorChannels}};yd(Td,"colorChannels",["hue","saturation","lightness"]);var Od=Td,Nd=/hsb\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%)\)|hsba\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d(.\d+)?)\)/,Vd=class e extends Cd{constructor(e,t,r,n){super(),this.hue=e,this.saturation=t,this.brightness=r,this.alpha=n}static parse(t){let r;if(r=t.match(Nd)){const[t,n,o,a]=(r[1]??r[2]).split(",").map(e=>Number(e.trim().replace("%","")));return new e(Kt(t,360),Yt(n,0,100),Yt(o,0,100),Yt(a??1,0,1))}}toString(e){switch(e){case"css":return this.toHSL().toString("css");case"hex":return this.toRGB().toString("hex");case"hexa":return this.toRGB().toString("hexa");case"hsb":return`hsb(${this.hue}, ${er(this.saturation,2)}%, ${er(this.brightness,2)}%)`;case"hsba":return`hsba(${this.hue}, ${er(this.saturation,2)}%, ${er(this.brightness,2)}%, ${this.alpha})`;case"hsl":return this.toHSL().toString("hsl");case"rgb":return this.toRGB().toString("rgb");default:return this.toFormat(e).toString(e)}}toFormat(e){switch(e){case"hsba":return this;case"hsla":return this.toHSL();case"rgba":return this.toRGB();default:throw new Error("Unsupported color conversion: hsb -> "+e)}}toHSL(){let e=this.saturation/100,t=this.brightness/100,r=t*(1-e/2);return e=0===r||1===r?0:(t-r)/Math.min(r,1-r),new Od(er(this.hue,2),er(100*e,2),er(100*r,2),er(this.alpha,2))}toRGB(){let e=this.hue,t=this.saturation/100,r=this.brightness/100,n=(n,o=(n+e/60)%6)=>r-t*r*Math.max(Math.min(o,4-o,1),0);return new Pd(Math.round(255*n(5)),Math.round(255*n(3)),Math.round(255*n(1)),er(this.alpha,2))}clone(){return new e(this.hue,this.saturation,this.brightness,this.alpha)}getChannelFormatOptions(e){switch(e){case"hue":return{style:"unit",unit:"degree",unitDisplay:"narrow"};case"saturation":case"brightness":case"alpha":return{style:"percent"};default:throw new Error("Unknown color channel: "+e)}}formatChannelValue(e,t){let r=this.getChannelFormatOptions(e),n=this.getChannelValue(e);return"saturation"!==e&&"brightness"!==e||(n/=100),new Intl.NumberFormat(t,r).format(n)}getChannelRange(e){switch(e){case"hue":return{minValue:0,maxValue:360,step:1,pageSize:15};case"saturation":case"brightness":return{minValue:0,maxValue:100,step:1,pageSize:10};case"alpha":return{minValue:0,maxValue:1,step:.01,pageSize:.1};default:throw new Error("Unknown color channel: "+e)}}toJSON(){return{h:this.hue,s:this.saturation,b:this.brightness,a:this.alpha}}getFormat(){return"hsba"}getChannels(){return e.colorChannels}};yd(Vd,"colorChannels",["hue","saturation","brightness"]);var Ad=Vd,zd=(()=>{const e=new Map,t="aliceblue:f0f8ff,antiquewhite:faebd7,aqua:00ffff,aquamarine:7fffd4,azure:f0ffff,beige:f5f5dc,bisque:ffe4c4,black:000000,blanchedalmond:ffebcd,blue:0000ff,blueviolet:8a2be2,brown:a52a2a,burlywood:deb887,cadetblue:5f9ea0,chartreuse:7fff00,chocolate:d2691e,coral:ff7f50,cornflowerblue:6495ed,cornsilk:fff8dc,crimson:dc143c,cyan:00ffff,darkblue:00008b,darkcyan:008b8b,darkgoldenrod:b8860b,darkgray:a9a9a9,darkgreen:006400,darkkhaki:bdb76b,darkmagenta:8b008b,darkolivegreen:556b2f,darkorange:ff8c00,darkorchid:9932cc,darkred:8b0000,darksalmon:e9967a,darkseagreen:8fbc8f,darkslateblue:483d8b,darkslategray:2f4f4f,darkturquoise:00ced1,darkviolet:9400d3,deeppink:ff1493,deepskyblue:00bfff,dimgray:696969,dodgerblue:1e90ff,firebrick:b22222,floralwhite:fffaf0,forestgreen:228b22,fuchsia:ff00ff,gainsboro:dcdcdc,ghostwhite:f8f8ff,gold:ffd700,goldenrod:daa520,gray:808080,green:008000,greenyellow:adff2f,honeydew:f0fff0,hotpink:ff69b4,indianred:cd5c5c,indigo:4b0082,ivory:fffff0,khaki:f0e68c,lavender:e6e6fa,lavenderblush:fff0f5,lawngreen:7cfc00,lemonchiffon:fffacd,lightblue:add8e6,lightcoral:f08080,lightcyan:e0ffff,lightgoldenrodyellow:fafad2,lightgrey:d3d3d3,lightgreen:90ee90,lightpink:ffb6c1,lightsalmon:ffa07a,lightseagreen:20b2aa,lightskyblue:87cefa,lightslategray:778899,lightsteelblue:b0c4de,lightyellow:ffffe0,lime:00ff00,limegreen:32cd32,linen:faf0e6,magenta:ff00ff,maroon:800000,mediumaquamarine:66cdaa,mediumblue:0000cd,mediumorchid:ba55d3,mediumpurple:9370d8,mediumseagreen:3cb371,mediumslateblue:7b68ee,mediumspringgreen:00fa9a,mediumturquoise:48d1cc,mediumvioletred:c71585,midnightblue:191970,mintcream:f5fffa,mistyrose:ffe4e1,moccasin:ffe4b5,navajowhite:ffdead,navy:000080,oldlace:fdf5e6,olive:808000,olivedrab:6b8e23,orange:ffa500,orangered:ff4500,orchid:da70d6,palegoldenrod:eee8aa,palegreen:98fb98,paleturquoise:afeeee,palevioletred:d87093,papayawhip:ffefd5,peachpuff:ffdab9,peru:cd853f,pink:ffc0cb,plum:dda0dd,powderblue:b0e0e6,purple:800080,rebeccapurple:663399,red:ff0000,rosybrown:bc8f8f,royalblue:4169e1,saddlebrown:8b4513,salmon:fa8072,sandybrown:f4a460,seagreen:2e8b57,seashell:fff5ee,sienna:a0522d,silver:c0c0c0,skyblue:87ceeb,slateblue:6a5acd,slategray:708090,snow:fffafa,springgreen:00ff7f,steelblue:4682b4,tan:d2b48c,teal:008080,thistle:d8bfd8,tomato:ff6347,turquoise:40e0d0,violet:ee82ee,wheat:f5deb3,white:ffffff,whitesmoke:f5f5f5,yellow:ffff00,yellowgreen:9acd32".split(",");for(let r=0;r<t.length;r++){const[n,o]=t[r].split(":");e.set(n,`#${o}`),n.includes("gray")&&e.set(n.replace("gray","grey"),`#${o}`)}return e})(),_d=e=>{if(zd.has(e))return _d(zd.get(e));const t=Pd.parse(e)||Ad.parse(e)||Od.parse(e);if(!t){const t=new Error("Invalid color value: "+e);throw Error.captureStackTrace?.(t,_d),t}return t},Fd=e=>"string"==typeof e?_d(e):e,Ld=lo("color-picker",["root","label","control","trigger","positioner","content","area","areaThumb","valueText","areaBackground","channelSlider","channelSliderLabel","channelSliderTrack","channelSliderThumb","channelSliderValueText","channelInput","transparencyGrid","swatchGroup","swatchTrigger","swatchIndicator","swatch","eyeDropperTrigger","formatTrigger","formatSelect"]),Dd=Ld.build(),jd=e=>e.ids?.label??`color-picker:${e.id}:label`,Md=e=>e.ids?.hiddenInput??`color-picker:${e.id}:hidden-input`,Wd=e=>e.ids?.control??`color-picker:${e.id}:control`,$d=e=>e.ids?.trigger??`color-picker:${e.id}:trigger`,Bd=e=>e.ids?.content??`color-picker:${e.id}:content`,Hd=e=>e.ids?.positioner??`color-picker:${e.id}:positioner`,Gd=e=>e.ids?.area??`color-picker:${e.id}:area`,Ud=e=>e.ids?.areaThumb??`color-picker:${e.id}:area-thumb`,qd=(e,t)=>e.ids?.channelSliderTrack?.(t)??`color-picker:${e.id}:slider-track:${t}`,Kd=(e,t)=>e.ids?.channelSliderThumb?.(t)??`color-picker:${e.id}:slider-thumb:${t}`,Yd=e=>e.getById(Bd(e)),Xd=e=>e.getById(Md(e)),Zd=e=>e.getById(Wd(e)),Jd=e=>e.getById($d(e));function Qd(e,t){switch(t){case"hue":return _d(`hsl(${e.getChannelValue("hue")}, 100%, 50%)`);case"lightness":case"brightness":case"saturation":case"red":case"green":case"blue":return e.withChannelValue("alpha",1);case"alpha":return e;default:throw new Error("Unknown color channel: "+t)}}function eu(e,t){if(null==t)return"";if("hex"===t)return e.toString("hex");if("css"===t)return e.toString("css");if(t in e)return e.getChannelValue(t).toString();const r="hsla"===e.getFormat();switch(t){case"hue":return r?e.toFormat("hsla").getChannelValue("hue").toString():e.toFormat("hsba").getChannelValue("hue").toString();case"saturation":return r?e.toFormat("hsla").getChannelValue("saturation").toString():e.toFormat("hsba").getChannelValue("saturation").toString();case"lightness":return e.toFormat("hsla").getChannelValue("lightness").toString();case"brightness":return e.toFormat("hsba").getChannelValue("brightness").toString();case"red":case"green":case"blue":return e.toFormat("rgba").getChannelValue(t).toString();default:return e.getChannelValue(t).toString()}}var tu=e=>{const{channel:t,value:r,dir:n,orientation:o}=e,a=function(e,t){return"vertical"===e?"top":"ltr"===t?"right":"left"}(o,n),{minValue:i,maxValue:s}=r.getChannelRange(t);switch(t){case"hue":return`linear-gradient(to ${a}, rgb(255, 0, 0) 0%, rgb(255, 255, 0) 17%, rgb(0, 255, 0) 33%, rgb(0, 255, 255) 50%, rgb(0, 0, 255) 67%, rgb(255, 0, 255) 83%, rgb(255, 0, 0) 100%)`;case"lightness":return`linear-gradient(to ${a}, ${r.withChannelValue(t,i).toString("css")}, ${r.withChannelValue(t,(s-i)/2).toString("css")}, ${r.withChannelValue(t,s).toString("css")})`;case"saturation":case"brightness":case"red":case"green":case"blue":case"alpha":return`linear-gradient(to ${a}, ${r.withChannelValue(t,i).toString("css")}, ${r.withChannelValue(t,s).toString("css")})`;default:throw new Error("Unknown color channel: "+t)}};var ru=["hsba","hsla","rgba"],nu=new RegExp(`^(${ru.join("|")})$`);function ou(e){const t=ru.indexOf(e);return ru[t+1]??ru[0]}var au=e=>_d(e),iu=/^[0-9a-fA-F]{3,8}$/;var{and:su}={and:(...e)=>function(t){return e.every(e=>t.guard(e))},or:(...e)=>function(t){return e.some(e=>t.guard(e))},not:e=>function(t){return!t.guard(e)}},lu={props:({props:e})=>({dir:"ltr",defaultValue:au("#000000"),defaultFormat:"rgba",openAutoFocus:!0,...e,positioning:{placement:"bottom",...e.positioning}}),initialState:({prop:e})=>e("open")||e("defaultOpen")||e("inline")?"open":"idle",context:({prop:e,bindable:t,getContext:r})=>({value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),isEqual:(e,t)=>e.toString("css")===t?.toString("css"),hash:e=>e.toString("css"),onChange(t){const n=r(),o=t.toString(n.get("format"));e("onValueChange")?.({value:t,valueAsString:o})}})),format:t(()=>({defaultValue:e("defaultFormat"),value:e("format"),onChange(t){e("onFormatChange")?.({format:t})}})),activeId:t(()=>({defaultValue:null})),activeChannel:t(()=>({defaultValue:null})),activeOrientation:t(()=>({defaultValue:null})),fieldsetDisabled:t(()=>({defaultValue:!1})),restoreFocus:t(()=>({defaultValue:!0})),currentPlacement:t(()=>({defaultValue:void 0}))}),computed:{rtl:({prop:e})=>"rtl"===e("dir"),disabled:({prop:e,context:t})=>!!e("disabled")||t.get("fieldsetDisabled"),interactive:({prop:e})=>!(e("disabled")||e("readOnly")),valueAsString:({context:e})=>e.get("value").toString(e.get("format")),areaValue:({context:e})=>{const t=e.get("format").startsWith("hsl")?"hsla":"hsba";return e.get("value").toFormat(t)}},effects:["trackFormControl"],watch({prop:e,context:t,action:r,track:n}){n([()=>t.hash("value")],()=>{r(["syncInputElements","dispatchChangeEvent"])}),n([()=>t.get("format")],()=>{r(["syncFormatSelectElement"])}),n([()=>e("open")],()=>{r(["toggleVisibility"])})},on:{"VALUE.SET":{actions:["setValue"]},"FORMAT.SET":{actions:["setFormat"]},"CHANNEL_INPUT.CHANGE":{actions:["setChannelColorFromInput"]},"EYEDROPPER.CLICK":{actions:["openEyeDropper"]},"SWATCH_TRIGGER.CLICK":{actions:["setValue"]}},states:{idle:{tags:["closed"],on:{"CONTROLLED.OPEN":{target:"open",actions:["setInitialFocus"]},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen","setInitialFocus"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen","setInitialFocus"]}],"CHANNEL_INPUT.FOCUS":{target:"focused",actions:["setActiveChannel"]}}},focused:{tags:["closed","focused"],on:{"CONTROLLED.OPEN":{target:"open",actions:["setInitialFocus"]},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen","setInitialFocus"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen","setInitialFocus"]}],"CHANNEL_INPUT.FOCUS":{actions:["setActiveChannel"]},"CHANNEL_INPUT.BLUR":{target:"idle",actions:["setChannelColorFromInput"]},"TRIGGER.BLUR":{target:"idle"}}},open:{tags:["open"],effects:["trackPositioning","trackDismissableElement"],on:{"CONTROLLED.CLOSE":[{guard:"shouldRestoreFocus",target:"focused",actions:["setReturnFocus"]},{target:"idle"}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"idle",actions:["invokeOnClose"]}],"AREA.POINTER_DOWN":{target:"open:dragging",actions:["setActiveChannel","setAreaColorFromPoint","focusAreaThumb"]},"AREA.FOCUS":{actions:["setActiveChannel"]},"CHANNEL_SLIDER.POINTER_DOWN":{target:"open:dragging",actions:["setActiveChannel","setChannelColorFromPoint","focusChannelThumb"]},"CHANNEL_SLIDER.FOCUS":{actions:["setActiveChannel"]},"AREA.ARROW_LEFT":{actions:["decrementAreaXChannel"]},"AREA.ARROW_RIGHT":{actions:["incrementAreaXChannel"]},"AREA.ARROW_UP":{actions:["incrementAreaYChannel"]},"AREA.ARROW_DOWN":{actions:["decrementAreaYChannel"]},"AREA.PAGE_UP":{actions:["incrementAreaXChannel"]},"AREA.PAGE_DOWN":{actions:["decrementAreaXChannel"]},"CHANNEL_SLIDER.ARROW_LEFT":{actions:["decrementChannel"]},"CHANNEL_SLIDER.ARROW_RIGHT":{actions:["incrementChannel"]},"CHANNEL_SLIDER.ARROW_UP":{actions:["incrementChannel"]},"CHANNEL_SLIDER.ARROW_DOWN":{actions:["decrementChannel"]},"CHANNEL_SLIDER.PAGE_UP":{actions:["incrementChannel"]},"CHANNEL_SLIDER.PAGE_DOWN":{actions:["decrementChannel"]},"CHANNEL_SLIDER.HOME":{actions:["setChannelToMin"]},"CHANNEL_SLIDER.END":{actions:["setChannelToMax"]},"CHANNEL_INPUT.BLUR":{actions:["setChannelColorFromInput"]},INTERACT_OUTSIDE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{guard:"shouldRestoreFocus",target:"focused",actions:["invokeOnClose","setReturnFocus"]},{target:"idle",actions:["invokeOnClose"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"idle",actions:["invokeOnClose"]}],"SWATCH_TRIGGER.CLICK":[{guard:su("isOpenControlled","closeOnSelect"),actions:["setValue","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["setValue","invokeOnClose","setReturnFocus"]},{actions:["setValue"]}]}},"open:dragging":{tags:["open"],exit:["clearActiveChannel"],effects:["trackPointerMove","disableTextSelection","trackPositioning","trackDismissableElement"],on:{"CONTROLLED.CLOSE":[{guard:"shouldRestoreFocus",target:"focused",actions:["setReturnFocus"]},{target:"idle"}],"AREA.POINTER_MOVE":{actions:["setAreaColorFromPoint","focusAreaThumb"]},"AREA.POINTER_UP":{target:"open",actions:["invokeOnChangeEnd"]},"CHANNEL_SLIDER.POINTER_MOVE":{actions:["setChannelColorFromPoint","focusChannelThumb"]},"CHANNEL_SLIDER.POINTER_UP":{target:"open",actions:["invokeOnChangeEnd"]},INTERACT_OUTSIDE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{guard:"shouldRestoreFocus",target:"focused",actions:["invokeOnClose","setReturnFocus"]},{target:"idle",actions:["invokeOnClose"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"idle",actions:["invokeOnClose"]}]}}},implementations:{guards:{closeOnSelect:({prop:e})=>!!e("closeOnSelect"),isOpenControlled:({prop:e})=>null!=e("open")||!!e("inline"),shouldRestoreFocus:({context:e})=>!!e.get("restoreFocus")},effects:{trackPositioning({context:e,prop:t,scope:r}){if(!t("inline"))return e.get("currentPlacement")||e.set("currentPlacement",t("positioning")?.placement),Sc(Jd(r),()=>{return(e=r).getById(Hd(e));var e},{...t("positioning"),defer:!0,onComplete(t){e.set("currentPlacement",t.placement)}})},trackDismissableElement({context:e,scope:t,prop:r,send:n}){if(!r("inline"))return qc(()=>Yd(t),{exclude:Jd(t),defer:!0,onInteractOutside(t){r("onInteractOutside")?.(t),t.defaultPrevented||e.set("restoreFocus",!(t.detail.focusable||t.detail.contextmenu))},onPointerDownOutside:r("onPointerDownOutside"),onFocusOutside:r("onFocusOutside"),onDismiss(){n({type:"INTERACT_OUTSIDE"})}})},trackFormControl:({context:e,scope:t,send:r})=>Jr(Xd(t),{onFieldsetDisabledChange(t){e.set("fieldsetDisabled",t)},onFormReset(){r({type:"VALUE.SET",value:e.initial("value"),src:"form.reset"})}}),trackPointerMove:({context:e,scope:t,event:r,send:n})=>function(e,t){const{onPointerMove:r,onPointerUp:n}=t,o=[Hr(e,"pointermove",e=>{const t=Br(e);Math.sqrt(t.x**2+t.y**2)<("touch"===e.pointerType?10:5)||("mouse"!==e.pointerType||0!==e.button?r({point:t,event:e}):n())},!1),Hr(e,"pointerup",n,!1),Hr(e,"pointercancel",n,!1),Hr(e,"contextmenu",n,!1),yn({doc:e})];return()=>{o.forEach(e=>e())}}(t.getDoc(),{onPointerMove({point:t}){const o="area"===e.get("activeId")?"AREA.POINTER_MOVE":"CHANNEL_SLIDER.POINTER_MOVE";n({type:o,point:t,format:r.format})},onPointerUp(){const t="area"===e.get("activeId")?"AREA.POINTER_UP":"CHANNEL_SLIDER.POINTER_UP";n({type:t})}}),disableTextSelection:({scope:e})=>yn({doc:e.getDoc(),target:Yd(e)})},actions:{openEyeDropper({scope:e,context:t}){const r=e.getWin();"EyeDropper"in r&&(new r.EyeDropper).open().then(({sRGBHex:e})=>{const r=t.get("value").getFormat(),n=_d(e).toFormat(r);t.set("value",n)}).catch(()=>{})},setActiveChannel({context:e,event:t}){e.set("activeId",t.id),t.channel&&e.set("activeChannel",t.channel),t.orientation&&e.set("activeOrientation",t.orientation)},clearActiveChannel({context:e}){e.set("activeChannel",null),e.set("activeId",null),e.set("activeOrientation",null)},setAreaColorFromPoint({context:e,event:t,computed:r,scope:n}){const o=t.format?e.get("value").toFormat(t.format):r("areaValue"),{xChannel:a,yChannel:i}=t.channel||e.get("activeChannel"),s=((e,t)=>{const r=(e=>e.getById(Gd(e)))(e);if(!r)return;const{percent:n}=mn(t,r);return n})(n,t.point);if(!s)return;const l=o.getChannelPercentValue(a,s.x),c=o.getChannelPercentValue(i,1-s.y),d=o.withChannelValue(a,l).withChannelValue(i,c);e.set("value",d)},setChannelColorFromPoint({context:e,event:t,computed:r,scope:n}){const o=t.channel||e.get("activeId"),a=t.format?e.get("value").toFormat(t.format):r("areaValue"),i=((e,t,r)=>{const n=((e,t)=>e.getById(qd(e,t)))(e,r);if(!n)return;const{percent:o}=mn(t,n);return o})(n,t.point,o);if(!i)return;const s="horizontal"===(e.get("activeOrientation")||"horizontal")?i.x:i.y,l=a.getChannelPercentValue(o,s),c=a.withChannelValue(o,l);e.set("value",c)},setValue({context:e,event:t}){e.set("value",t.value)},setFormat({context:e,event:t}){e.set("format",t.format)},dispatchChangeEvent({scope:e,computed:t}){Kr(Xd(e),{value:t("valueAsString")})},syncInputElements({context:e,scope:t}){cu(t,e.get("value"))},invokeOnChangeEnd({context:e,prop:t,computed:r}){t("onValueChangeEnd")?.({value:e.get("value"),valueAsString:r("valueAsString")})},setChannelColorFromInput({context:e,event:t,scope:r,prop:n}){const{channel:o,isTextField:a,value:i}=t,s=e.get("value").getChannelValue("alpha");let l;if("alpha"===o){let t=parseFloat(i);t=Number.isNaN(t)?s:t,l=e.get("value").withChannelValue("alpha",t)}else if(a)l=Dt(()=>{const e="hex"===o?function(e){return e.startsWith("#")?e:function(e){return iu.test(e)}(e)?`#${e}`:e}(i):i;return au(e).withChannelValue("alpha",s)},()=>e.get("value"));else{const t=e.get("value").toFormat(e.get("format")),r=Number.isNaN(i)?t.getChannelValue(o):i;l=t.withChannelValue(o,r)}cu(r,e.get("value"),l),e.set("value",l),n("onValueChangeEnd")?.({value:l,valueAsString:l.toString(e.get("format"))})},incrementChannel({context:e,event:t}){const r=e.get("value").incrementChannel(t.channel,t.step);e.set("value",r)},decrementChannel({context:e,event:t}){const r=e.get("value").decrementChannel(t.channel,t.step);e.set("value",r)},incrementAreaXChannel({context:e,event:t,computed:r}){const{xChannel:n}=t.channel,o=r("areaValue").incrementChannel(n,t.step);e.set("value",o)},decrementAreaXChannel({context:e,event:t,computed:r}){const{xChannel:n}=t.channel,o=r("areaValue").decrementChannel(n,t.step);e.set("value",o)},incrementAreaYChannel({context:e,event:t,computed:r}){const{yChannel:n}=t.channel,o=r("areaValue").incrementChannel(n,t.step);e.set("value",o)},decrementAreaYChannel({context:e,event:t,computed:r}){const{yChannel:n}=t.channel,o=r("areaValue").decrementChannel(n,t.step);e.set("value",o)},setChannelToMax({context:e,event:t}){const r=e.get("value"),n=r.getChannelRange(t.channel),o=r.withChannelValue(t.channel,n.maxValue);e.set("value",o)},setChannelToMin({context:e,event:t}){const r=e.get("value"),n=r.getChannelRange(t.channel),o=r.withChannelValue(t.channel,n.minValue);e.set("value",o)},focusAreaThumb({scope:e}){ln(()=>{var t;(t=e,t.getById(Ud(t)))?.focus({preventScroll:!0})})},focusChannelThumb({event:e,scope:t}){ln(()=>{var r,n;(r=t,n=e.channel,r.getById(Kd(r,n)))?.focus({preventScroll:!0})})},setInitialFocus({prop:e,scope:t}){e("openAutoFocus")&&ln(()=>{const r=an({root:Yd(t),getInitialEl:e("initialFocusEl")});r?.focus({preventScroll:!0})})},setReturnFocus({scope:e}){ln(()=>{Jd(e)?.focus({preventScroll:!0})})},syncFormatSelectElement({context:e,scope:t}){!function(e,t){const r=(n=e).getById((e=>e.ids?.formatSelect??`color-picker:${e.id}:format-select`)(n));var n;r&&ln(()=>Ur(r,t))}(t,e.get("format"))},invokeOnOpen({prop:e}){e("inline")||e("onOpenChange")?.({open:!0})},invokeOnClose({prop:e}){e("inline")||e("onOpenChange")?.({open:!1})},toggleVisibility({prop:e,event:t,send:r}){r({type:e("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:t})}}}};function cu(e,t,r){const n=[...Cn(Yd(o=e),"input[data-channel]"),...Cn(Zd(o),"input[data-channel]")];var o;ln(()=>{n.forEach(e=>{const n=e.dataset.channel;Ur(e,eu(r||t,n))})})}var du=(or(Qn()(["closeOnSelect","dir","disabled","format","defaultFormat","getRootNode","id","ids","initialFocusEl","inline","name","positioning","onFocusOutside","onFormatChange","onInteractOutside","onOpenChange","onPointerDownOutside","onValueChange","onValueChangeEnd","defaultOpen","open","positioning","required","readOnly","value","defaultValue","invalid","openAutoFocus"])),Qn()(["xChannel","yChannel"])),uu=(or(du),Qn()(["channel","orientation"])),pu=(or(uu),Qn()(["value","disabled"])),hu=(or(pu),Qn()(["value","respectAlpha"])),gu=(or(hu),Qn()(["size"]));or(gu);const fu=Ld.extendWith("view");Object.defineProperty;var mu=lo("dialog").parts("trigger","backdrop","positioner","content","title","description","closeTrigger");mu.build();var vu=(or(Qn()(["aria-label","closeOnEscape","closeOnInteractOutside","dir","finalFocusEl","getRootNode","getRootNode","id","id","ids","initialFocusEl","modal","onEscapeKeyDown","onFocusOutside","onInteractOutside","onOpenChange","onPointerDownOutside","defaultOpen","open","persistentElements","preventScroll","restoreFocus","role","trapFocus"])),lo("editable").parts("root","area","label","preview","input","editTrigger","submitTrigger","cancelTrigger","control"));vu.build(),or(Qn()(["activationMode","autoResize","dir","disabled","finalFocusEl","form","getRootNode","id","ids","invalid","maxLength","name","onEditChange","onFocusOutside","onInteractOutside","onPointerDownOutside","onValueChange","onValueCommit","onValueRevert","placeholder","readOnly","required","selectOnFocus","edit","defaultEdit","submitMode","translations","defaultValue","value"]));const bu=lo("field").parts("root","errorText","helperText","input","label","select","textarea","requiredIndicator"),xu=bu.build(),yu=lo("fieldset").parts("root","errorText","helperText","legend"),wu=yu.build();var Cu=lo("file-upload").parts("root","dropzone","item","itemDeleteTrigger","itemGroup","itemName","itemPreview","itemPreviewImage","itemSizeText","label","trigger","clearTrigger");Cu.build();var ku=(or(Qn()(["accept","allowDrop","capture","dir","directory","disabled","getRootNode","id","ids","locale","maxFiles","maxFileSize","minFileSize","name","invalid","onFileAccept","onFileReject","onFileChange","preventDocumentDrop","required","translations","transformFiles","validate"])),Qn()(["file"]));or(ku),Object.defineProperty;var{min:Su,max:Eu}=Math,{sign:Iu,abs:Pu,min:Ru}=Math,Tu=lo("menu").parts("arrow","arrowTip","content","contextTrigger","indicator","item","itemGroup","itemGroupLabel","itemIndicator","itemText","positioner","separator","trigger","triggerItem"),{not:Ou,and:Nu,or:Vu}=(Tu.build(),{and:(...e)=>function(t){return e.every(e=>t.guard(e))},or:(...e)=>function(t){return e.some(e=>t.guard(e))},not:e=>function(t){return!t.guard(e)}});Ou("isSubmenu"),Vu("isOpenAutoFocusEvent","isArrowDownEvent"),Nu(Ou("isTriggerItem"),"isOpenControlled"),Ou("isTriggerItem"),Nu("isSubmenu","isOpenControlled"),Ou("isPointerSuspended"),Nu(Ou("isPointerSuspended"),Ou("isTriggerItem")),Nu(Ou("isTriggerItemHighlighted"),Ou("isHighlightedItemEditable"),"closeOnSelect","isOpenControlled"),Nu(Ou("isTriggerItemHighlighted"),Ou("isHighlightedItemEditable"),"closeOnSelect"),Nu(Ou("isTriggerItemHighlighted"),Ou("isHighlightedItemEditable"));var Au=(or(Qn()(["anchorPoint","aria-label","closeOnSelect","composite","defaultHighlightedValue","defaultOpen","dir","getRootNode","highlightedValue","id","ids","loopFocus","navigate","onEscapeKeyDown","onFocusOutside","onHighlightChange","onInteractOutside","onOpenChange","onPointerDownOutside","onSelect","open","positioning","typeahead"])),Qn()(["closeOnSelect","disabled","value","valueText"])),zu=(or(Au),Qn()(["htmlFor"])),_u=(or(zu),Qn()(["id"])),Fu=(or(_u),Qn()(["checked","closeOnSelect","disabled","onCheckedChange","type","value","valueText"])),Lu=(or(Fu),lo("popover").parts("arrow","arrowTip","anchor","trigger","indicator","positioner","content","title","description","closeTrigger"));Lu.build(),or(Qn()(["autoFocus","closeOnEscape","closeOnInteractOutside","dir","getRootNode","id","ids","initialFocusEl","modal","onEscapeKeyDown","onFocusOutside","onInteractOutside","onOpenChange","onPointerDownOutside","defaultOpen","open","persistentElements","portalled","positioning"]));var Du=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]),ju=null,Mu=new Set,Wu=new Map,$u=!1,Bu=!1,Hu={Tab:!0,Escape:!0};function Gu(e,t){for(let r of Mu)r(e,t)}function Uu(e){$u=!0,function(e){return!(e.metaKey||!Or()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key)}(e)&&(ju="keyboard",Gu("keyboard",e))}function qu(e){ju="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||($u=!0,Gu("pointer",e))}function Ku(e){(function(e){return!(0!==e.mozInputSource||!e.isTrusted)||(Pr(/Android/i)&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)})(e)&&($u=!0,ju="virtual")}function Yu(e){const t=Vr(e);t!==Cr(t)&&t!==wr(t)&&($u||Bu||(ju="virtual",Gu("virtual",e)),$u=!1,Bu=!1)}function Xu(){$u=!1,Bu=!0}var Zu=(e,t)=>{const r=Cr(e),n=wr(e);Wu.has(r)&&(r.HTMLElement.prototype.focus=Wu.get(r).focus,n.removeEventListener("keydown",Uu,!0),n.removeEventListener("keyup",Uu,!0),n.removeEventListener("click",Ku,!0),r.removeEventListener("focus",Yu,!0),r.removeEventListener("blur",Xu,!1),void 0!==r.PointerEvent?(n.removeEventListener("pointerdown",qu,!0),n.removeEventListener("pointermove",qu,!0),n.removeEventListener("pointerup",qu,!0)):(n.removeEventListener("mousedown",qu,!0),n.removeEventListener("mousemove",qu,!0),n.removeEventListener("mouseup",qu,!0)),Wu.delete(r))};function Ju(){return"keyboard"===ju}function Qu(e={}){const{isTextInput:t,autoFocus:r,onChange:n,root:o}=e;(function(e){if("undefined"==typeof window||Wu.get(Cr(e)))return;const t=Cr(e),r=wr(e);let n=t.HTMLElement.prototype.focus;Object.defineProperty(t.HTMLElement.prototype,"focus",{configurable:!0,value:function(){ju="virtual",Gu("virtual",null),$u=!0,n.apply(this,arguments)}}),r.addEventListener("keydown",Uu,!0),r.addEventListener("keyup",Uu,!0),r.addEventListener("click",Ku,!0),t.addEventListener("focus",Yu,!0),t.addEventListener("blur",Xu,!1),void 0!==t.PointerEvent?(r.addEventListener("pointerdown",qu,!0),r.addEventListener("pointermove",qu,!0),r.addEventListener("pointerup",qu,!0)):(r.addEventListener("mousedown",qu,!0),r.addEventListener("mousemove",qu,!0),r.addEventListener("mouseup",qu,!0)),t.addEventListener("beforeunload",()=>{Zu(e)},{once:!0}),Wu.set(t,{focus:n})})(o),n?.({isFocusVisible:r||Ju(),modality:ju});const a=(e,r)=>{(function(e,t,r){const n=r?Vr(r):null,o=Cr(n);return!((e=e||n instanceof o.HTMLInputElement&&!Du.has(n?.type)||n instanceof o.HTMLTextAreaElement||n instanceof o.HTMLElement&&n.isContentEditable)&&"keyboard"===t&&r instanceof o.KeyboardEvent&&!Reflect.has(Hu,r.key))})(!!t,e,r)&&n?.({isFocusVisible:Ju(),modality:e})};return Mu.add(a),()=>{Mu.delete(a)}}var ep=lo("radio-group").parts("root","label","item","itemText","itemControl","indicator"),tp=ep.build(),rp=e=>e.ids?.root??`radio-group:${e.id}`,np=e=>e.ids?.label??`radio-group:${e.id}:label`,op=(e,t)=>e.ids?.item?.(t)??`radio-group:${e.id}:radio:${t}`,ap=(e,t)=>e.ids?.itemHiddenInput?.(t)??`radio-group:${e.id}:radio:input:${t}`,ip=e=>e.ids?.indicator??`radio-group:${e.id}:indicator`,sp=e=>e.getById(rp(e)),lp=e=>{const t=`input[type=radio][data-ownedby='${CSS.escape(rp(e))}']:not([disabled])`;return Cn(sp(e),t)};var{not:cp}={and:(...e)=>function(t){return e.every(e=>t.guard(e))},or:(...e)=>function(t){return e.some(e=>t.guard(e))},not:e=>function(t){return!t.guard(e)}},dp={props:({props:e})=>({orientation:"vertical",...e}),initialState:()=>"idle",context:({prop:e,bindable:t})=>({value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),onChange(t){e("onValueChange")?.({value:t})}})),activeValue:t(()=>({defaultValue:null})),focusedValue:t(()=>({defaultValue:null})),hoveredValue:t(()=>({defaultValue:null})),indicatorRect:t(()=>({defaultValue:{}})),canIndicatorTransition:t(()=>({defaultValue:!1})),fieldsetDisabled:t(()=>({defaultValue:!1})),ssr:t(()=>({defaultValue:!0}))}),refs:()=>({indicatorCleanup:null}),computed:{isDisabled:({prop:e,context:t})=>!!e("disabled")||t.get("fieldsetDisabled")},entry:["syncIndicatorRect","syncSsr"],exit:["cleanupObserver"],effects:["trackFormControlState","trackFocusVisible"],watch({track:e,action:t,context:r}){e([()=>r.get("value")],()=>{t(["setIndicatorTransition","syncIndicatorRect","syncInputElements"])})},on:{SET_VALUE:[{guard:cp("isTrusted"),actions:["setValue","dispatchChangeEvent"]},{actions:["setValue"]}],SET_HOVERED:{actions:["setHovered"]},SET_ACTIVE:{actions:["setActive"]},SET_FOCUSED:{actions:["setFocused"]}},states:{idle:{}},implementations:{guards:{isTrusted:({event:e})=>!!e.isTrusted},effects:{trackFormControlState:({context:e,scope:t})=>Jr(sp(t),{onFieldsetDisabledChange(t){e.set("fieldsetDisabled",t)},onFormReset(){e.set("value",e.initial("value"))}}),trackFocusVisible:({scope:e})=>Qu({root:e.getRootNode?.()})},actions:{setValue({context:e,event:t}){e.set("value",t.value)},setHovered({context:e,event:t}){e.set("hoveredValue",t.value)},setActive({context:e,event:t}){e.set("activeValue",t.value)},setFocused({context:e,event:t}){e.set("focusedValue",t.value)},syncInputElements({context:e,scope:t}){lp(t).forEach(t=>{t.checked=t.value===e.get("value")})},setIndicatorTransition({context:e}){e.set("canIndicatorTransition",It(e.get("value")))},cleanupObserver({refs:e}){e.get("indicatorCleanup")?.()},syncSsr({context:e}){e.set("ssr",!1)},syncIndicatorRect({context:e,scope:t,refs:r}){if(r.get("indicatorCleanup")?.(),!(n=t).getById(ip(n)))return;var n;const o=e.get("value"),a=((e,t)=>{if(t)return e.getById(op(e,t))})(t,o);if(null==o||!a)return e.set("canIndicatorTransition",!1),void e.set("indicatorRect",{});const i=Pn([a],{measure:e=>(e=>({left:e?.offsetLeft??0,top:e?.offsetTop??0,width:e?.offsetWidth??0,height:e?.offsetHeight??0}))(e),onEntry({rects:t}){var r;e.set("indicatorRect",{width:`${(r=t[0]).width}px`,height:`${r.height}px`,left:`${r.left}px`,top:`${r.top}px`})}});r.set("indicatorCleanup",i)},dispatchChangeEvent({context:e,scope:t}){lp(t).forEach(t=>{const r=t.value===e.get("value");r!==t.checked&&Yr(t,{checked:r})})}}}},up=(or(Qn()(["dir","disabled","form","getRootNode","id","ids","name","onValueChange","orientation","readOnly","value","defaultValue"])),Qn()(["value","disabled","invalid"])),pp=(or(up),lo("rating-group").parts("root","label","item","control"));pp.build();var hp=(or(Qn()(["allowHalf","autoFocus","count","dir","disabled","form","getRootNode","id","ids","name","onHoverChange","onValueChange","required","readOnly","translations","value","defaultValue"])),Qn()(["index"])),gp=(or(hp),lo("select").parts("label","positioner","trigger","indicator","clearTrigger","item","itemText","itemIndicator","itemGroup","itemGroupLabel","list","content","root","control","valueText")),fp=gp.build(),mp=e=>new ks(e);mp.empty=()=>new ks({items:[]});var vp=e=>e.ids?.content??`select:${e.id}:content`,bp=e=>e.ids?.trigger??`select:${e.id}:trigger`,xp=e=>e.ids?.clearTrigger??`select:${e.id}:clear-trigger`,yp=e=>e.ids?.label??`select:${e.id}:label`,Cp=(e,t)=>e.ids?.item?.(t)??`select:${e.id}:option:${t}`,kp=e=>e.ids?.hiddenSelect??`select:${e.id}:select`,Sp=e=>e.ids?.positioner??`select:${e.id}:positioner`,Ep=(e,t)=>e.ids?.itemGroup?.(t)??`select:${e.id}:optgroup:${t}`,Ip=(e,t)=>e.ids?.itemGroupLabel?.(t)??`select:${e.id}:optgroup-label:${t}`,Pp=e=>e.getById(kp(e)),Rp=e=>e.getById(vp(e)),Tp=e=>e.getById(bp(e)),Op=e=>e.getById(Sp(e));function Np(e,t){const{context:r,prop:n,scope:o,state:a,computed:i,send:s}=e,l=n("disabled")||r.get("fieldsetDisabled"),c=n("invalid"),d=n("readOnly"),u=n("composite"),p=n("collection"),h=a.hasTag("open"),g=a.matches("focused"),f=r.get("highlightedValue"),m=r.get("highlightedItem"),v=r.get("selectedItems"),b=r.get("currentPlacement"),x=i("isTypingAhead"),y=i("isInteractive"),w=f?Cp(o,f):void 0;function C(e){const t=p.getItemDisabled(e.item),n=p.getItemValue(e.item);return sr(n,()=>`[zag-js] No value found for item ${JSON.stringify(e.item)}`),{value:n,disabled:Boolean(l||t),highlighted:f===n,selected:r.get("value").includes(n)}}const k=Ic({...n("positioning"),placement:b});return{open:h,focused:g,empty:0===r.get("value").length,highlightedItem:m,highlightedValue:f,selectedItems:v,hasSelectedItems:i("hasSelectedItems"),value:r.get("value"),valueAsString:i("valueAsString"),collection:p,multiple:!!n("multiple"),disabled:!!l,reposition(e={}){s({type:"POSITIONING.SET",options:e})},focus(){Tp(o)?.focus({preventScroll:!0})},setOpen(e){a.hasTag("open")!==e&&s({type:e?"OPEN":"CLOSE"})},selectValue(e){s({type:"ITEM.SELECT",value:e})},setValue(e){s({type:"VALUE.SET",value:e})},selectAll(){s({type:"VALUE.SET",value:p.getValues()})},setHighlightValue(e){s({type:"HIGHLIGHTED_VALUE.SET",value:e})},clearHighlightValue(){s({type:"HIGHLIGHTED_VALUE.CLEAR"})},clearValue(e){s(e?{type:"ITEM.CLEAR",value:e}:{type:"VALUE.CLEAR"})},getItemState:C,getRootProps(){return t.element({...fp.root.attrs,dir:n("dir"),id:(e=o,e.ids?.root??`select:${e.id}`),"data-invalid":hr(c),"data-readonly":hr(d)});var e},getLabelProps:()=>t.label({dir:n("dir"),id:yp(o),...fp.label.attrs,"data-disabled":hr(l),"data-invalid":hr(c),"data-readonly":hr(d),htmlFor:kp(o),onClick(e){e.defaultPrevented||l||Tp(o)?.focus({preventScroll:!0})}}),getControlProps(){return t.element({...fp.control.attrs,dir:n("dir"),id:(e=o,e.ids?.control??`select:${e.id}:control`),"data-state":h?"open":"closed","data-focus":hr(g),"data-disabled":hr(l),"data-invalid":hr(c)});var e},getValueTextProps:()=>t.element({...fp.valueText.attrs,dir:n("dir"),"data-disabled":hr(l),"data-invalid":hr(c),"data-focus":hr(g)}),getTriggerProps:()=>t.button({id:bp(o),disabled:l,dir:n("dir"),type:"button",role:"combobox","aria-controls":vp(o),"aria-expanded":h,"aria-haspopup":"listbox","data-state":h?"open":"closed","aria-invalid":c,"aria-labelledby":yp(o),...fp.trigger.attrs,"data-disabled":hr(l),"data-invalid":hr(c),"data-readonly":hr(d),"data-placement":b,"data-placeholder-shown":hr(!i("hasSelectedItems")),onClick(e){y&&(e.defaultPrevented||s({type:"TRIGGER.CLICK"}))},onFocus(){s({type:"TRIGGER.FOCUS"})},onBlur(){s({type:"TRIGGER.BLUR"})},onKeyDown(e){if(e.defaultPrevented)return;if(!y)return;const t={ArrowUp(){s({type:"TRIGGER.ARROW_UP"})},ArrowDown(e){s({type:e.altKey?"OPEN":"TRIGGER.ARROW_DOWN"})},ArrowLeft(){s({type:"TRIGGER.ARROW_LEFT"})},ArrowRight(){s({type:"TRIGGER.ARROW_RIGHT"})},Home(){s({type:"TRIGGER.HOME"})},End(){s({type:"TRIGGER.END"})},Enter(){s({type:"TRIGGER.ENTER"})},Space(e){s(x?{type:"TRIGGER.TYPEAHEAD",key:e.key}:{type:"TRIGGER.ENTER"})}}[jr(e,{dir:n("dir"),orientation:"vertical"})];if(t)return t(e),void e.preventDefault();On.isValidEvent(e)&&(s({type:"TRIGGER.TYPEAHEAD",key:e.key}),e.preventDefault())}}),getIndicatorProps:()=>t.element({...fp.indicator.attrs,dir:n("dir"),"aria-hidden":!0,"data-state":h?"open":"closed","data-disabled":hr(l),"data-invalid":hr(c),"data-readonly":hr(d)}),getItemProps(r){const a=C(r);return t.element({id:Cp(o,a.value),role:"option",...fp.item.attrs,dir:n("dir"),"data-value":a.value,"aria-selected":a.selected,"data-state":a.selected?"checked":"unchecked","data-highlighted":hr(a.highlighted),"data-disabled":hr(a.disabled),"aria-disabled":gr(a.disabled),onPointerMove(e){a.disabled||"mouse"!==e.pointerType||a.value!==f&&s({type:"ITEM.POINTER_MOVE",value:a.value})},onClick(e){e.defaultPrevented||a.disabled||s({type:"ITEM.CLICK",src:"pointerup",value:a.value})},onPointerLeave(t){if(a.disabled)return;if(r.persistFocus)return;if("mouse"!==t.pointerType)return;const n=e.event.previous()?.type.includes("POINTER");n&&s({type:"ITEM.POINTER_LEAVE"})}})},getItemTextProps(e){const r=C(e);return t.element({...fp.itemText.attrs,"data-state":r.selected?"checked":"unchecked","data-disabled":hr(r.disabled),"data-highlighted":hr(r.highlighted)})},getItemIndicatorProps(e){const r=C(e);return t.element({"aria-hidden":!0,...fp.itemIndicator.attrs,"data-state":r.selected?"checked":"unchecked",hidden:!r.selected})},getItemGroupLabelProps(e){const{htmlFor:r}=e;return t.element({...fp.itemGroupLabel.attrs,id:Ip(o,r),dir:n("dir"),role:"presentation"})},getItemGroupProps(e){const{id:r}=e;return t.element({...fp.itemGroup.attrs,"data-disabled":hr(l),id:Ep(o,r),"aria-labelledby":Ip(o,r),role:"group",dir:n("dir")})},getClearTriggerProps:()=>t.button({...fp.clearTrigger.attrs,id:xp(o),type:"button","aria-label":"Clear value","data-invalid":hr(c),disabled:l,hidden:!i("hasSelectedItems"),dir:n("dir"),onClick(e){e.defaultPrevented||s({type:"CLEAR.CLICK"})}}),getHiddenSelectProps(){const e=r.get("value"),a=n("multiple")?e:e?.[0];return t.select({name:n("name"),form:n("form"),disabled:l,multiple:n("multiple"),required:n("required"),"aria-hidden":!0,id:kp(o),defaultValue:a,style:Nn,tabIndex:-1,onFocus(){Tp(o)?.focus({preventScroll:!0})},"aria-labelledby":yp(o)})},getPositionerProps:()=>t.element({...fp.positioner.attrs,dir:n("dir"),id:Sp(o),style:k.floating}),getContentProps:()=>t.element({hidden:!h,dir:n("dir"),id:vp(o),role:u?"listbox":"dialog",...fp.content.attrs,"data-state":h?"open":"closed","data-placement":b,"data-activedescendant":w,"aria-activedescendant":u?w:void 0,"aria-multiselectable":!(!n("multiple")||!u)||void 0,"aria-labelledby":yp(o),tabIndex:0,onKeyDown(e){if(!y)return;if(!Ar(e))return;if("Tab"===e.key){const t=function(e){const t=e.currentTarget;if(!t)return!1;const[r,n]=function(e,t){const r=nn(e,t);return[r[0]||null,r[r.length-1]||null]}(t),o=t.ownerDocument||document;return!(o.activeElement===r&&e.shiftKey||o.activeElement===n&&!e.shiftKey||!r&&!n)}(e);if(!t)return void e.preventDefault()}const t={ArrowUp(){s({type:"CONTENT.ARROW_UP"})},ArrowDown(){s({type:"CONTENT.ARROW_DOWN"})},Home(){s({type:"CONTENT.HOME"})},End(){s({type:"CONTENT.END"})},Enter(){s({type:"ITEM.CLICK",src:"keydown.enter"})},Space(e){x?s({type:"CONTENT.TYPEAHEAD",key:e.key}):t.Enter?.(e)}},r=t[jr(e)];if(r)return r(e),void e.preventDefault();(function(e){if(null==e||!fr(e))return!1;try{return(e=>fr(e)&&"input"===e.localName)(e)&&null!=e.selectionStart||xr.test(e.localName)||e.isContentEditable||"true"===e.getAttribute("contenteditable")||""===e.getAttribute("contenteditable")}catch{return!1}})(Vr(e))||On.isValidEvent(e)&&(s({type:"CONTENT.TYPEAHEAD",key:e.key}),e.preventDefault())}}),getListProps:()=>t.element({...fp.list.attrs,tabIndex:0,role:u?void 0:"listbox","aria-labelledby":bp(o),"aria-activedescendant":u?void 0:w,"aria-multiselectable":!(u||!n("multiple"))||void 0})}}var{and:Vp,not:Ap,or:zp}={and:(...e)=>function(t){return e.every(e=>t.guard(e))},or:(...e)=>function(t){return e.some(e=>t.guard(e))},not:e=>function(t){return!t.guard(e)}},_p={props:({props:e})=>({loopFocus:!1,closeOnSelect:!e.multiple,composite:!0,defaultValue:[],...e,collection:e.collection??mp.empty(),positioning:{placement:"bottom-start",gutter:8,...e.positioning}}),context:({prop:e,bindable:t})=>({value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),isEqual:kt,onChange(t){const r=e("collection").findMany(t);return e("onValueChange")?.({value:t,items:r})}})),highlightedValue:t(()=>({defaultValue:e("defaultHighlightedValue")||null,value:e("highlightedValue"),onChange(t){e("onHighlightChange")?.({highlightedValue:t,highlightedItem:e("collection").find(t),highlightedIndex:e("collection").indexOf(t)})}})),currentPlacement:t(()=>({defaultValue:void 0})),fieldsetDisabled:t(()=>({defaultValue:!1})),highlightedItem:t(()=>({defaultValue:null})),selectedItems:t(()=>{const t=e("value")??e("defaultValue")??[];return{defaultValue:e("collection").findMany(t)}})}),refs:()=>({typeahead:{...On.defaultOptions}}),computed:{hasSelectedItems:({context:e})=>e.get("value").length>0,isTypingAhead:({refs:e})=>""!==e.get("typeahead").keysSoFar,isDisabled:({prop:e,context:t})=>!!e("disabled")||!!t.get("fieldsetDisabled"),isInteractive:({prop:e})=>!(e("disabled")||e("readOnly")),valueAsString:({context:e,prop:t})=>t("collection").stringifyItems(e.get("selectedItems"))},initialState:({prop:e})=>e("open")||e("defaultOpen")?"open":"idle",entry:["syncSelectElement"],watch({context:e,prop:t,track:r,action:n}){r([()=>e.get("value").toString()],()=>{n(["syncSelectedItems","syncSelectElement","dispatchChangeEvent"])}),r([()=>t("open")],()=>{n(["toggleVisibility"])}),r([()=>e.get("highlightedValue")],()=>{n(["syncHighlightedItem"])}),r([()=>t("collection").toString()],()=>{n(["syncCollection"])})},on:{"HIGHLIGHTED_VALUE.SET":{actions:["setHighlightedItem"]},"HIGHLIGHTED_VALUE.CLEAR":{actions:["clearHighlightedItem"]},"ITEM.SELECT":{actions:["selectItem"]},"ITEM.CLEAR":{actions:["clearItem"]},"VALUE.SET":{actions:["setSelectedItems"]},"VALUE.CLEAR":{actions:["clearSelectedItems"]},"CLEAR.CLICK":{actions:["clearSelectedItems","focusTriggerEl"]}},effects:["trackFormControlState"],states:{idle:{tags:["closed"],on:{"CONTROLLED.OPEN":[{guard:"isTriggerClickEvent",target:"open",actions:["setInitialFocus","highlightFirstSelectedItem"]},{target:"open",actions:["setInitialFocus"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen","setInitialFocus","highlightFirstSelectedItem"]}],"TRIGGER.FOCUS":{target:"focused"},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen"]}]}},focused:{tags:["closed"],on:{"CONTROLLED.OPEN":[{guard:"isTriggerClickEvent",target:"open",actions:["setInitialFocus","highlightFirstSelectedItem"]},{guard:"isTriggerArrowUpEvent",target:"open",actions:["setInitialFocus","highlightComputedLastItem"]},{guard:zp("isTriggerArrowDownEvent","isTriggerEnterEvent"),target:"open",actions:["setInitialFocus","highlightComputedFirstItem"]},{target:"open",actions:["setInitialFocus"]}],OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen"]}],"TRIGGER.BLUR":{target:"idle"},"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen","highlightFirstSelectedItem"]}],"TRIGGER.ENTER":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen","highlightComputedFirstItem"]}],"TRIGGER.ARROW_UP":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen","highlightComputedLastItem"]}],"TRIGGER.ARROW_DOWN":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen","highlightComputedFirstItem"]}],"TRIGGER.ARROW_LEFT":[{guard:Vp(Ap("multiple"),"hasSelectedItems"),actions:["selectPreviousItem"]},{guard:Ap("multiple"),actions:["selectLastItem"]}],"TRIGGER.ARROW_RIGHT":[{guard:Vp(Ap("multiple"),"hasSelectedItems"),actions:["selectNextItem"]},{guard:Ap("multiple"),actions:["selectFirstItem"]}],"TRIGGER.HOME":{guard:Ap("multiple"),actions:["selectFirstItem"]},"TRIGGER.END":{guard:Ap("multiple"),actions:["selectLastItem"]},"TRIGGER.TYPEAHEAD":{guard:Ap("multiple"),actions:["selectMatchingItem"]}}},open:{tags:["open"],exit:["scrollContentToTop"],effects:["trackDismissableElement","computePlacement","scrollToHighlightedItem"],on:{"CONTROLLED.CLOSE":[{guard:"restoreFocus",target:"focused",actions:["focusTriggerEl","clearHighlightedItem"]},{target:"idle",actions:["clearHighlightedItem"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{guard:"restoreFocus",target:"focused",actions:["invokeOnClose","focusTriggerEl","clearHighlightedItem"]},{target:"idle",actions:["invokeOnClose","clearHighlightedItem"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose","clearHighlightedItem"]}],"ITEM.CLICK":[{guard:Vp("closeOnSelect","isOpenControlled"),actions:["selectHighlightedItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectHighlightedItem","invokeOnClose","focusTriggerEl","clearHighlightedItem"]},{actions:["selectHighlightedItem"]}],"CONTENT.HOME":{actions:["highlightFirstItem"]},"CONTENT.END":{actions:["highlightLastItem"]},"CONTENT.ARROW_DOWN":[{guard:Vp("hasHighlightedItem","loop","isLastItemHighlighted"),actions:["highlightFirstItem"]},{guard:"hasHighlightedItem",actions:["highlightNextItem"]},{actions:["highlightFirstItem"]}],"CONTENT.ARROW_UP":[{guard:Vp("hasHighlightedItem","loop","isFirstItemHighlighted"),actions:["highlightLastItem"]},{guard:"hasHighlightedItem",actions:["highlightPreviousItem"]},{actions:["highlightLastItem"]}],"CONTENT.TYPEAHEAD":{actions:["highlightMatchingItem"]},"ITEM.POINTER_MOVE":{actions:["highlightItem"]},"ITEM.POINTER_LEAVE":{actions:["clearHighlightedItem"]},"POSITIONING.SET":{actions:["reposition"]}}}},implementations:{guards:{loop:({prop:e})=>!!e("loopFocus"),multiple:({prop:e})=>!!e("multiple"),hasSelectedItems:({computed:e})=>!!e("hasSelectedItems"),hasHighlightedItem:({context:e})=>null!=e.get("highlightedValue"),isFirstItemHighlighted:({context:e,prop:t})=>e.get("highlightedValue")===t("collection").firstValue,isLastItemHighlighted:({context:e,prop:t})=>e.get("highlightedValue")===t("collection").lastValue,closeOnSelect:({prop:e,event:t})=>!!(t.closeOnSelect??e("closeOnSelect")),restoreFocus:({event:e})=>Fp(e),isOpenControlled:({prop:e})=>void 0!==e("open"),isTriggerClickEvent:({event:e})=>"TRIGGER.CLICK"===e.previousEvent?.type,isTriggerEnterEvent:({event:e})=>"TRIGGER.ENTER"===e.previousEvent?.type,isTriggerArrowUpEvent:({event:e})=>"TRIGGER.ARROW_UP"===e.previousEvent?.type,isTriggerArrowDownEvent:({event:e})=>"TRIGGER.ARROW_DOWN"===e.previousEvent?.type},effects:{trackFormControlState:({context:e,scope:t})=>Jr(Pp(t),{onFieldsetDisabledChange(t){e.set("fieldsetDisabled",t)},onFormReset(){const t=e.initial("value");e.set("value",t)}}),trackDismissableElement({scope:e,send:t,prop:r}){let n=!0;return qc(()=>Rp(e),{defer:!0,exclude:[Tp(e),(o=e,o.getById(xp(o)))],onFocusOutside:r("onFocusOutside"),onPointerDownOutside:r("onPointerDownOutside"),onInteractOutside(e){r("onInteractOutside")?.(e),n=!(e.detail.focusable||e.detail.contextmenu)},onDismiss(){t({type:"CLOSE",src:"interact-outside",restoreFocus:n})}});var o},computePlacement({context:e,prop:t,scope:r}){const n=t("positioning");return e.set("currentPlacement",n.placement),Sc(()=>Tp(r),()=>Op(r),{defer:!0,...n,onComplete(t){e.set("currentPlacement",t.placement)}})},scrollToHighlightedItem({context:e,prop:t,scope:r,event:n}){const o=o=>{const a=e.get("highlightedValue");if(null==a)return;if(n.current().type.includes("POINTER"))return;const i=((e,t)=>e.getById(Cp(e,t)))(r,a),s=Rp(r),l=t("scrollToIndexFn");if(l){const e=t("collection").indexOf(a);return void l?.({index:e,immediate:o})}fn(i,{rootEl:s,block:"nearest"})};return ln(()=>o(!0)),cn(()=>Rp(r),{defer:!0,attributes:["data-activedescendant"],callback(){o(!1)}})}},actions:{reposition({context:e,prop:t,scope:r,event:n}){Sc(Tp(r),()=>Op(r),{...t("positioning"),...n.options,defer:!0,listeners:!1,onComplete(t){e.set("currentPlacement",t.placement)}})},toggleVisibility({send:e,prop:t,event:r}){e({type:t("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:r})},highlightPreviousItem({context:e,prop:t}){const r=e.get("highlightedValue");if(null==r)return;const n=t("collection").getPreviousValue(r,1,t("loopFocus"));null!=n&&e.set("highlightedValue",n)},highlightNextItem({context:e,prop:t}){const r=e.get("highlightedValue");if(null==r)return;const n=t("collection").getNextValue(r,1,t("loopFocus"));null!=n&&e.set("highlightedValue",n)},highlightFirstItem({context:e,prop:t}){const r=t("collection").firstValue;e.set("highlightedValue",r)},highlightLastItem({context:e,prop:t}){const r=t("collection").lastValue;e.set("highlightedValue",r)},setInitialFocus({scope:e}){ln(()=>{const t=an({root:Rp(e)});t?.focus({preventScroll:!0})})},focusTriggerEl({event:e,scope:t}){Fp(e)&&ln(()=>{const e=Tp(t);e?.focus({preventScroll:!0})})},selectHighlightedItem({context:e,prop:t,event:r}){let n=r.value??e.get("highlightedValue");if(null==n||!t("collection").has(n))return;t("onSelect")?.({value:n});const o=t("deselectable")&&!t("multiple")&&e.get("value").includes(n);n=o?null:n,e.set("value",e=>null==n?[]:t("multiple")?wt(e,n):[n])},highlightComputedFirstItem({context:e,prop:t,computed:r}){const n=t("collection"),o=r("hasSelectedItems")?n.sort(e.get("value"))[0]:n.firstValue;e.set("highlightedValue",o)},highlightComputedLastItem({context:e,prop:t,computed:r}){const n=t("collection"),o=r("hasSelectedItems")?n.sort(e.get("value"))[0]:n.lastValue;e.set("highlightedValue",o)},highlightFirstSelectedItem({context:e,prop:t,computed:r}){if(!r("hasSelectedItems"))return;const n=t("collection").sort(e.get("value"))[0];e.set("highlightedValue",n)},highlightItem({context:e,event:t}){e.set("highlightedValue",t.value)},highlightMatchingItem({context:e,prop:t,event:r,refs:n}){const o=t("collection").search(r.key,{state:n.get("typeahead"),currentValue:e.get("highlightedValue")});null!=o&&e.set("highlightedValue",o)},setHighlightedItem({context:e,event:t}){e.set("highlightedValue",t.value)},clearHighlightedItem({context:e}){e.set("highlightedValue",null)},selectItem({context:e,prop:t,event:r}){t("onSelect")?.({value:r.value});const n=t("deselectable")&&!t("multiple")&&e.get("value").includes(r.value)?null:r.value;e.set("value",e=>null==n?[]:t("multiple")?wt(e,n):[n])},clearItem({context:e,event:t}){e.set("value",e=>e.filter(e=>e!==t.value))},setSelectedItems({context:e,event:t}){e.set("value",t.value)},clearSelectedItems({context:e}){e.set("value",[])},selectPreviousItem({context:e,prop:t}){const[r]=e.get("value"),n=t("collection").getPreviousValue(r);n&&e.set("value",[n])},selectNextItem({context:e,prop:t}){const[r]=e.get("value"),n=t("collection").getNextValue(r);n&&e.set("value",[n])},selectFirstItem({context:e,prop:t}){const r=t("collection").firstValue;r&&e.set("value",[r])},selectLastItem({context:e,prop:t}){const r=t("collection").lastValue;r&&e.set("value",[r])},selectMatchingItem({context:e,prop:t,event:r,refs:n}){const o=t("collection").search(r.key,{state:n.get("typeahead"),currentValue:e.get("value")[0]});null!=o&&e.set("value",[o])},scrollContentToTop({prop:e,scope:t}){e("scrollToIndexFn")?e("scrollToIndexFn")?.({index:0,immediate:!0}):Rp(t)?.scrollTo(0,0)},invokeOnOpen({prop:e}){e("onOpenChange")?.({open:!0})},invokeOnClose({prop:e}){e("onOpenChange")?.({open:!1})},syncSelectElement({context:e,prop:t,scope:r}){const n=Pp(r);if(n)if(0!==e.get("value").length||t("multiple"))for(const t of n.options)t.selected=e.get("value").includes(t.value);else n.selectedIndex=-1},syncCollection({context:e,prop:t}){const r=t("collection"),n=r.find(e.get("highlightedValue"));n&&e.set("highlightedItem",n);const o=r.findMany(e.get("value"));e.set("selectedItems",o)},syncSelectedItems({context:e,prop:t}){const r=t("collection"),n=e.get("selectedItems"),o=e.get("value").map(e=>n.find(t=>r.getItemValue(t)===e)||r.find(e));e.set("selectedItems",o)},syncHighlightedItem({context:e,prop:t}){const r=t("collection"),n=e.get("highlightedValue"),o=n?r.find(n):null;e.set("highlightedItem",o)},dispatchChangeEvent({scope:e}){queueMicrotask(()=>{const t=Pp(e);if(!t)return;const r=new(e.getWin().Event)("change",{bubbles:!0,composed:!0});t.dispatchEvent(r)})}}}};function Fp(e){const t=e.restoreFocus??e.previousEvent?.restoreFocus;return null==t||!!t}var Lp=(or(Qn()(["closeOnSelect","collection","composite","defaultHighlightedValue","defaultOpen","defaultValue","deselectable","dir","disabled","form","getRootNode","highlightedValue","id","ids","invalid","loopFocus","multiple","name","onFocusOutside","onHighlightChange","onInteractOutside","onOpenChange","onPointerDownOutside","onSelect","onValueChange","open","positioning","readOnly","required","scrollToIndexFn","value"])),Qn()(["item","persistFocus"])),Dp=(or(Lp),Qn()(["id"])),jp=(or(Dp),Qn()(["htmlFor"])),Mp=(or(jp),lo("slider").parts("root","label","thumb","valueText","track","range","control","markerGroup","marker","draggingIndicator"));Mp.build();var Wp=(or(Qn()(["aria-label","aria-labelledby","dir","disabled","form","getAriaValueText","getRootNode","id","ids","invalid","max","min","minStepsBetweenThumbs","name","onFocusChange","onValueChange","onValueChangeEnd","orientation","origin","readOnly","step","thumbAlignment","thumbAlignment","thumbSize","value","defaultValue"])),Qn()(["index","name"])),$p=(or(Wp),lo("switch").parts("root","label","control","thumb")),Bp=$p.build(),Hp=e=>e.ids?.root??`switch:${e.id}`,Gp=e=>e.ids?.label??`switch:${e.id}:label`,Up=e=>e.ids?.hiddenInput??`switch:${e.id}:input`,qp=e=>e.getById(Up(e)),{not:Kp}={and:(...e)=>function(t){return e.every(e=>t.guard(e))},or:(...e)=>function(t){return e.some(e=>t.guard(e))},not:e=>function(t){return!t.guard(e)}},Yp={props:({props:e})=>({defaultChecked:!1,label:"switch",value:"on",...e}),initialState:()=>"ready",context:({prop:e,bindable:t})=>({checked:t(()=>({defaultValue:e("defaultChecked"),value:e("checked"),onChange(t){e("onCheckedChange")?.({checked:t})}})),fieldsetDisabled:t(()=>({defaultValue:!1})),focusVisible:t(()=>({defaultValue:!1})),active:t(()=>({defaultValue:!1})),focused:t(()=>({defaultValue:!1})),hovered:t(()=>({defaultValue:!1}))}),computed:{isDisabled:({context:e,prop:t})=>t("disabled")||e.get("fieldsetDisabled")},watch({track:e,prop:t,context:r,action:n}){e([()=>t("disabled")],()=>{n(["removeFocusIfNeeded"])}),e([()=>r.get("checked")],()=>{n(["syncInputElement"])})},effects:["trackFormControlState","trackPressEvent","trackFocusVisible"],on:{"CHECKED.TOGGLE":[{guard:Kp("isTrusted"),actions:["toggleChecked","dispatchChangeEvent"]},{actions:["toggleChecked"]}],"CHECKED.SET":[{guard:Kp("isTrusted"),actions:["setChecked","dispatchChangeEvent"]},{actions:["setChecked"]}],"CONTEXT.SET":{actions:["setContext"]}},states:{ready:{}},implementations:{guards:{isTrusted:({event:e})=>!!e.isTrusted},effects:{trackPressEvent({computed:e,scope:t,context:r}){var n;if(!e("isDisabled"))return wn({pointerNode:(n=t,n.getById(Hp(n))),keyboardNode:qp(t),isValidKey:e=>" "===e.key,onPress:()=>r.set("active",!1),onPressStart:()=>r.set("active",!0),onPressEnd:()=>r.set("active",!1)})},trackFocusVisible({computed:e,scope:t}){if(!e("isDisabled"))return Qu({root:t.getRootNode()})},trackFormControlState:({context:e,send:t,scope:r})=>Jr(qp(r),{onFieldsetDisabledChange(t){e.set("fieldsetDisabled",t)},onFormReset(){const r=e.initial("checked");t({type:"CHECKED.SET",checked:!!r,src:"form-reset"})}})},actions:{setContext({context:e,event:t}){for(const r in t.context)e.set(r,t.context[r])},syncInputElement({context:e,scope:t}){const r=qp(t);r&&qr(r,!!e.get("checked"))},removeFocusIfNeeded({context:e,prop:t}){t("disabled")&&e.set("focused",!1)},setChecked({context:e,event:t}){e.set("checked",t.checked)},toggleChecked({context:e}){e.set("checked",!e.get("checked"))},dispatchChangeEvent({context:e,scope:t}){Yr(qp(t),{checked:e.get("checked")})}}}};or(Qn()(["checked","defaultChecked","dir","disabled","form","getRootNode","id","ids","invalid","label","name","onCheckedChange","readOnly","required","value"]));const Xp=hd.extendWith("itemBody"),Zp=lo("action-bar").parts("positioner","content","separator","selectionTrigger","closeTrigger"),Jp=lo("alert").parts("title","description","root","indicator","content"),Qp=lo("breadcrumb").parts("link","currentLink","item","list","root","ellipsis","separator"),eh=lo("blockquote").parts("root","icon","content","caption"),th=lo("card").parts("root","header","body","footer","title","description"),rh=lo("checkbox-card",["root","control","label","description","addon","indicator","content"]),nh=lo("data-list").parts("root","item","itemLabel","itemValue"),oh=mu.extendWith("header","body","footer","backdrop"),ah=mu.extendWith("header","body","footer","backdrop"),ih=vu.extendWith("textarea"),sh=lo("empty-state",["root","content","indicator","title","description"]),lh=bu.extendWith("requiredIndicator"),ch=yu.extendWith("content"),dh=Cu.extendWith("itemContent","dropzoneContent","fileText"),uh=lo("list").parts("root","item","indicator"),ph=Tu.extendWith("itemCommand"),hh=lo("select").parts("root","field","indicator"),gh=Lu.extendWith("header","body","footer"),fh=ep.extendWith("itemAddon","itemIndicator"),mh=fh.extendWith("itemContent","itemDescription"),vh=pp.extendWith("itemIndicator"),bh=gp.extendWith("indicatorGroup"),xh=Kc.extendWith("indicatorGroup","empty"),yh=Mp.extendWith("markerIndicator"),wh=lo("stat").parts("root","label","helpText","valueText","valueUnit","indicator"),Ch=lo("status").parts("root","indicator"),kh=lo("steps",["root","list","item","trigger","indicator","separator","content","title","description","nextTrigger","prevTrigger","progress"]),Sh=$p.extendWith("indicator"),Eh=lo("table").parts("root","header","body","row","columnHeader","cell","footer","caption"),Ih=lo("toast").parts("root","title","description","indicator","closeTrigger","actionTrigger"),Ph=lo("tabs").parts("root","trigger","list","content","contentGroup","indicator"),Rh=lo("tag").parts("root","label","closeTrigger","startElement","endElement"),Th=lo("timeline").parts("root","item","content","separator","indicator","connector","title","description"),Oh=fu.extendWith("channelText"),Nh=(vd.extendWith("valueText"),{className:"chakra-accordion",slots:Xp.keys(),base:{root:{width:"full","--accordion-radius":"radii.l2"},item:{overflowAnchor:"none"},itemTrigger:{display:"flex",alignItems:"center",textAlign:"start",width:"full",outline:"0",gap:"3",fontWeight:"medium",borderRadius:"var(--accordion-radius)",_focusVisible:{outline:"2px solid",outlineColor:"colorPalette.focusRing"},_disabled:{layerStyle:"disabled"}},itemBody:{pt:"var(--accordion-padding-y)",pb:"calc(var(--accordion-padding-y) * 2)"},itemContent:{overflow:"hidden",borderRadius:"var(--accordion-radius)",_open:{animationName:"expand-height, fade-in",animationDuration:"moderate"},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate"}},itemIndicator:{transition:"rotate 0.2s",transformOrigin:"center",color:"fg.subtle",_open:{rotate:"180deg"},_icon:{width:"1.2em",height:"1.2em"}}},variants:{variant:{outline:{item:{borderBottomWidth:"1px"}},subtle:{itemTrigger:{px:"var(--accordion-padding-x)"},itemContent:{px:"var(--accordion-padding-x)"},item:{borderRadius:"var(--accordion-radius)",_open:{bg:"colorPalette.subtle"}}},enclosed:{root:{borderWidth:"1px",borderRadius:"var(--accordion-radius)",divideY:"1px",overflow:"hidden"},itemTrigger:{px:"var(--accordion-padding-x)"},itemContent:{px:"var(--accordion-padding-x)"},item:{_open:{bg:"bg.subtle"}}},plain:{}},size:{sm:{root:{"--accordion-padding-x":"spacing.3","--accordion-padding-y":"spacing.2"},itemTrigger:{textStyle:"sm",py:"var(--accordion-padding-y)"}},md:{root:{"--accordion-padding-x":"spacing.4","--accordion-padding-y":"spacing.2"},itemTrigger:{textStyle:"md",py:"var(--accordion-padding-y)"}},lg:{root:{"--accordion-padding-x":"spacing.4.5","--accordion-padding-y":"spacing.2.5"},itemTrigger:{textStyle:"lg",py:"var(--accordion-padding-y)"}}}},defaultVariants:{size:"md",variant:"outline"}}),Vh={className:"chakra-action-bar",slots:Zp.keys(),base:{positioner:{position:"fixed",display:"flex",justifyContent:"center",pointerEvents:"none",insetInline:"0",top:"unset",bottom:"calc(env(safe-area-inset-bottom) + 20px)"},content:{bg:"bg.panel",shadow:"md",display:"flex",alignItems:"center",gap:"3",borderRadius:"l3",py:"2.5",px:"3",pointerEvents:"auto",translate:"calc(-1 * var(--scrollbar-width) / 2) 0px",_open:{animationName:"slide-from-bottom, fade-in",animationDuration:"moderate"},_closed:{animationName:"slide-to-bottom, fade-out",animationDuration:"faster"}},separator:{width:"1px",height:"5",bg:"border"},selectionTrigger:{display:"inline-flex",alignItems:"center",gap:"2",alignSelf:"stretch",textStyle:"sm",px:"4",py:"1",borderRadius:"l2",borderWidth:"1px",borderStyle:"dashed"}}},Ah={slots:Jp.keys(),className:"chakra-alert",base:{root:{width:"full",display:"flex",alignItems:"flex-start",position:"relative",borderRadius:"l3"},title:{fontWeight:"medium"},description:{display:"inline"},indicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0",width:"1em",height:"1em",_icon:{boxSize:"full"}},content:{display:"flex",flex:"1",gap:"1"}},variants:{status:{info:{root:{colorPalette:"blue"}},warning:{root:{colorPalette:"orange"}},success:{root:{colorPalette:"green"}},error:{root:{colorPalette:"red"}},neutral:{root:{colorPalette:"gray"}}},inline:{true:{content:{display:"inline-flex",flexDirection:"row",alignItems:"center"}},false:{content:{display:"flex",flexDirection:"column"}}},variant:{subtle:{root:{bg:"colorPalette.subtle",color:"colorPalette.fg"}},surface:{root:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},indicator:{color:"colorPalette.fg"}},outline:{root:{color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},indicator:{color:"colorPalette.fg"}},solid:{root:{bg:"colorPalette.solid",color:"colorPalette.contrast"},indicator:{color:"colorPalette.contrast"}}},size:{sm:{root:{gap:"2",px:"3",py:"3",textStyle:"xs"},indicator:{textStyle:"lg"}},md:{root:{gap:"3",px:"4",py:"4",textStyle:"sm"},indicator:{textStyle:"xl"}},lg:{root:{gap:"3",px:"4",py:"4",textStyle:"md"},indicator:{textStyle:"2xl"}}}},defaultVariants:{status:"info",variant:"subtle",size:"md",inline:!1}};var zh=lo("avatar").parts("root","image","fallback");zh.build(),or(Qn()(["dir","id","ids","onStatusChange","getRootNode"]));const _h={slots:zh.keys(),className:"chakra-avatar",base:{root:{display:"inline-flex",alignItems:"center",justifyContent:"center",fontWeight:"medium",position:"relative",verticalAlign:"top",flexShrink:"0",userSelect:"none",width:"var(--avatar-size)",height:"var(--avatar-size)",fontSize:"var(--avatar-font-size)",borderRadius:"var(--avatar-radius)","&[data-group-item]":{borderWidth:"2px",borderColor:"bg"}},image:{width:"100%",height:"100%",objectFit:"cover",borderRadius:"var(--avatar-radius)"},fallback:{lineHeight:"1",textTransform:"uppercase",fontWeight:"medium",fontSize:"var(--avatar-font-size)",borderRadius:"var(--avatar-radius)"}},variants:{size:{full:{root:{"--avatar-size":"100%","--avatar-font-size":"100%"}},"2xs":{root:{"--avatar-font-size":"fontSizes.2xs","--avatar-size":"sizes.6"}},xs:{root:{"--avatar-font-size":"fontSizes.xs","--avatar-size":"sizes.8"}},sm:{root:{"--avatar-font-size":"fontSizes.sm","--avatar-size":"sizes.9"}},md:{root:{"--avatar-font-size":"fontSizes.md","--avatar-size":"sizes.10"}},lg:{root:{"--avatar-font-size":"fontSizes.md","--avatar-size":"sizes.11"}},xl:{root:{"--avatar-font-size":"fontSizes.lg","--avatar-size":"sizes.12"}},"2xl":{root:{"--avatar-font-size":"fontSizes.xl","--avatar-size":"sizes.16"}}},variant:{solid:{root:{bg:"colorPalette.solid",color:"colorPalette.contrast"}},subtle:{root:{bg:"colorPalette.muted",color:"colorPalette.fg"}},outline:{root:{color:"colorPalette.fg",borderWidth:"1px",borderColor:"colorPalette.muted"}}},shape:{square:{},rounded:{root:{"--avatar-radius":"radii.l3"}},full:{root:{"--avatar-radius":"radii.full"}}},borderless:{true:{root:{"&[data-group-item]":{borderWidth:"0px"}}}}},defaultVariants:{size:"md",shape:"full",variant:"subtle"}},Fh={className:"chakra-blockquote",slots:eh.keys(),base:{root:{position:"relative",display:"flex",flexDirection:"column",gap:"2"},caption:{textStyle:"sm",color:"fg.muted"},icon:{boxSize:"5"}},variants:{justify:{start:{root:{alignItems:"flex-start",textAlign:"start"}},center:{root:{alignItems:"center",textAlign:"center"}},end:{root:{alignItems:"flex-end",textAlign:"end"}}},variant:{subtle:{root:{paddingX:"5",borderStartWidth:"4px",borderStartColor:"colorPalette.muted"},icon:{color:"colorPalette.fg"}},solid:{root:{paddingX:"5",borderStartWidth:"4px",borderStartColor:"colorPalette.solid"},icon:{color:"colorPalette.solid"}},plain:{root:{paddingX:"5"},icon:{color:"colorPalette.solid"}}}},defaultVariants:{variant:"subtle",justify:"start"}},Lh={className:"chakra-breadcrumb",slots:Qp.keys(),base:{list:{display:"flex",alignItems:"center",wordBreak:"break-word",color:"fg.muted",listStyle:"none"},link:{outline:"0",textDecoration:"none",borderRadius:"l1",focusRing:"outside",display:"inline-flex",alignItems:"center",gap:"2"},item:{display:"inline-flex",alignItems:"center"},separator:{color:"fg.muted",opacity:"0.8",_icon:{boxSize:"1em"},_rtl:{rotate:"180deg"}},ellipsis:{display:"inline-flex",alignItems:"center",justifyContent:"center",_icon:{boxSize:"1em"}}},variants:{variant:{underline:{link:{color:"colorPalette.fg",textDecoration:"underline",textUnderlineOffset:"0.2em",textDecorationColor:"colorPalette.muted"},currentLink:{color:"colorPalette.fg"}},plain:{link:{color:"fg.muted",_hover:{color:"fg"}},currentLink:{color:"fg"}}},size:{sm:{list:{gap:"1",textStyle:"xs"}},md:{list:{gap:"1.5",textStyle:"sm"}},lg:{list:{gap:"2",textStyle:"md"}}}},defaultVariants:{variant:"plain",size:"md"}},Dh={className:"chakra-card",slots:th.keys(),base:{root:{display:"flex",flexDirection:"column",position:"relative",minWidth:"0",wordWrap:"break-word",borderRadius:"l3",color:"fg",textAlign:"start"},title:{fontWeight:"semibold"},description:{color:"fg.muted",fontSize:"sm"},header:{paddingInline:"var(--card-padding)",paddingTop:"var(--card-padding)",display:"flex",flexDirection:"column",gap:"1.5"},body:{padding:"var(--card-padding)",flex:"1",display:"flex",flexDirection:"column"},footer:{display:"flex",alignItems:"center",gap:"2",paddingInline:"var(--card-padding)",paddingBottom:"var(--card-padding)"}},variants:{size:{sm:{root:{"--card-padding":"spacing.4"},title:{textStyle:"md"}},md:{root:{"--card-padding":"spacing.6"},title:{textStyle:"lg"}},lg:{root:{"--card-padding":"spacing.7"},title:{textStyle:"xl"}}},variant:{elevated:{root:{bg:"bg.panel",boxShadow:"md"}},outline:{root:{bg:"bg.panel",borderWidth:"1px",borderColor:"border"}},subtle:{root:{bg:"bg.muted"}}}},defaultVariants:{variant:"outline",size:"md"}};var jh=lo("checkbox").parts("root","label","control","indicator"),Mh=jh.build(),Wh=e=>e.ids?.root??`checkbox:${e.id}`,$h=e=>e.ids?.label??`checkbox:${e.id}:label`,Bh=e=>e.ids?.hiddenInput??`checkbox:${e.id}:input`,Hh=e=>e.getById(Bh(e)),{not:Gh}={and:(...e)=>function(t){return e.every(e=>t.guard(e))},or:(...e)=>function(t){return e.some(e=>t.guard(e))},not:e=>function(t){return!t.guard(e)}},Uh={props:({props:e})=>({value:"on",...e,defaultChecked:!!e.defaultChecked}),initialState:()=>"ready",context:({prop:e,bindable:t})=>({checked:t(()=>({defaultValue:e("defaultChecked"),value:e("checked"),onChange(t){e("onCheckedChange")?.({checked:t})}})),fieldsetDisabled:t(()=>({defaultValue:!1})),focusVisible:t(()=>({defaultValue:!1})),active:t(()=>({defaultValue:!1})),focused:t(()=>({defaultValue:!1})),hovered:t(()=>({defaultValue:!1}))}),watch({track:e,context:t,prop:r,action:n}){e([()=>r("disabled")],()=>{n(["removeFocusIfNeeded"])}),e([()=>t.get("checked")],()=>{n(["syncInputElement"])})},effects:["trackFormControlState","trackPressEvent","trackFocusVisible"],on:{"CHECKED.TOGGLE":[{guard:Gh("isTrusted"),actions:["toggleChecked","dispatchChangeEvent"]},{actions:["toggleChecked"]}],"CHECKED.SET":[{guard:Gh("isTrusted"),actions:["setChecked","dispatchChangeEvent"]},{actions:["setChecked"]}],"CONTEXT.SET":{actions:["setContext"]}},computed:{indeterminate:({context:e})=>qh(e.get("checked")),checked:({context:e})=>{return!qh(t=e.get("checked"))&&!!t;var t},disabled:({context:e,prop:t})=>!!t("disabled")||e.get("fieldsetDisabled")},states:{ready:{}},implementations:{guards:{isTrusted:({event:e})=>!!e.isTrusted},effects:{trackPressEvent({context:e,computed:t,scope:r}){var n;if(!t("disabled"))return wn({pointerNode:(n=r,n.getById(Wh(n))),keyboardNode:Hh(r),isValidKey:e=>" "===e.key,onPress:()=>e.set("active",!1),onPressStart:()=>e.set("active",!0),onPressEnd:()=>e.set("active",!1)})},trackFocusVisible({computed:e,scope:t}){if(!e("disabled"))return Qu({root:t.getRootNode?.()})},trackFormControlState:({context:e,scope:t})=>Jr(Hh(t),{onFieldsetDisabledChange(t){e.set("fieldsetDisabled",t)},onFormReset(){e.set("checked",e.initial("checked"))}})},actions:{setContext({context:e,event:t}){for(const r in t.context)e.set(r,t.context[r])},syncInputElement({context:e,computed:t,scope:r}){const n=Hh(r);n&&(qr(n,t("checked")),n.indeterminate=qh(e.get("checked")))},removeFocusIfNeeded({context:e,prop:t}){t("disabled")&&e.get("focused")&&(e.set("focused",!1),e.set("focusVisible",!1))},setChecked({context:e,event:t}){e.set("checked",t.checked)},toggleChecked({context:e,computed:t}){const r=!!qh(t("checked"))||!t("checked");e.set("checked",r)},dispatchChangeEvent({computed:e,scope:t}){queueMicrotask(()=>{Yr(Hh(t),{checked:e("checked")})})}}}};function qh(e){return"indeterminate"===e}or(Qn()(["defaultChecked","checked","dir","disabled","form","getRootNode","id","ids","invalid","name","onCheckedChange","readOnly","required","value"]));const Kh=jh.extendWith("group"),Yh={slots:Kh.keys(),className:"chakra-checkbox",base:{root:{display:"inline-flex",gap:"2",alignItems:"center",verticalAlign:"top",position:"relative"},control:ds.base,label:{fontWeight:"medium",userSelect:"none",_disabled:{opacity:"0.5"}}},variants:{size:{xs:{root:{gap:"1.5"},label:{textStyle:"xs"},control:ds.variants?.size?.xs},sm:{root:{gap:"2"},label:{textStyle:"sm"},control:ds.variants?.size?.sm},md:{root:{gap:"2.5"},label:{textStyle:"sm"},control:ds.variants?.size?.md},lg:{root:{gap:"3"},label:{textStyle:"md"},control:ds.variants?.size?.lg}},variant:{outline:{control:ds.variants?.variant?.outline},solid:{control:ds.variants?.variant?.solid},subtle:{control:ds.variants?.variant?.subtle}}},defaultVariants:{variant:"solid",size:"md"}},Xh={slots:rh.keys(),className:"chakra-checkbox-card",base:{root:{display:"flex",flexDirection:"column",userSelect:"none",position:"relative",borderRadius:"l2",flex:"1",focusVisibleRing:"outside",_disabled:{opacity:"0.8"},_invalid:{outline:"2px solid",outlineColor:"border.error"}},control:{display:"inline-flex",flex:"1",position:"relative",borderRadius:"inherit",justifyContent:"var(--checkbox-card-justify)",alignItems:"var(--checkbox-card-align)"},label:{fontWeight:"medium",display:"flex",alignItems:"center",gap:"2",flex:"1",_disabled:{opacity:"0.5"}},description:{opacity:"0.64",textStyle:"sm",_disabled:{opacity:"0.5"}},addon:{_disabled:{opacity:"0.5"}},indicator:ds.base,content:{display:"flex",flexDirection:"column",flex:"1",gap:"1",justifyContent:"var(--checkbox-card-justify)",alignItems:"var(--checkbox-card-align)"}},variants:{size:{sm:{root:{textStyle:"sm"},control:{padding:"3",gap:"1.5"},addon:{px:"3",py:"1.5",borderTopWidth:"1px"},indicator:ds.variants?.size.sm},md:{root:{textStyle:"sm"},control:{padding:"4",gap:"2.5"},addon:{px:"4",py:"2",borderTopWidth:"1px"},indicator:ds.variants?.size.md},lg:{root:{textStyle:"md"},control:{padding:"4",gap:"3.5"},addon:{px:"4",py:"2",borderTopWidth:"1px"},indicator:ds.variants?.size.lg}},variant:{surface:{root:{borderWidth:"1px",borderColor:"border",_checked:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"colorPalette.muted"},_disabled:{bg:"bg.muted"}},indicator:ds.variants?.variant.solid},subtle:{root:{bg:"bg.muted"},control:{_checked:{bg:"colorPalette.muted",color:"colorPalette.fg"}},indicator:ds.variants?.variant.plain},outline:{root:{borderWidth:"1px",borderColor:"border",_checked:{boxShadow:"0 0 0 1px var(--shadow-color)",boxShadowColor:"colorPalette.solid",borderColor:"colorPalette.solid"}},indicator:ds.variants?.variant.solid},solid:{root:{borderWidth:"1px",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},indicator:ds.variants?.variant.inverted}},justify:{start:{root:{"--checkbox-card-justify":"flex-start"}},end:{root:{"--checkbox-card-justify":"flex-end"}},center:{root:{"--checkbox-card-justify":"center"}}},align:{start:{root:{"--checkbox-card-align":"flex-start"},content:{textAlign:"start"}},end:{root:{"--checkbox-card-align":"flex-end"},content:{textAlign:"end"}},center:{root:{"--checkbox-card-align":"center"},content:{textAlign:"center"}}},orientation:{vertical:{control:{flexDirection:"column"}},horizontal:{control:{flexDirection:"row"}}}},defaultVariants:{size:"md",variant:"outline",align:"start",orientation:"horizontal"}};var Zh=lo("collapsible").parts("root","trigger","content","indicator"),Jh=Zh.build(),Qh=e=>e.ids?.content??`collapsible:${e.id}:content`,eg=e=>e.getById(Qh(e)),tg={initialState:({prop:e})=>e("open")||e("defaultOpen")?"open":"closed",context:({bindable:e})=>({size:e(()=>({defaultValue:{height:0,width:0},sync:!0})),initial:e(()=>({defaultValue:!1}))}),refs:()=>({cleanup:void 0,stylesRef:void 0}),watch({track:e,prop:t,action:r}){e([()=>t("open")],()=>{r(["setInitial","computeSize","toggleVisibility"])})},exit:["clearInitial","cleanupNode"],states:{closed:{on:{"controlled.open":{target:"open"},open:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitial","computeSize","invokeOnOpen"]}]}},closing:{effects:["trackExitAnimation"],on:{"controlled.close":{target:"closed"},"controlled.open":{target:"open"},open:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitial","invokeOnOpen"]}],close:[{guard:"isOpenControlled",actions:["invokeOnExitComplete"]},{target:"closed",actions:["setInitial","computeSize","invokeOnExitComplete"]}],"animation.end":{target:"closed",actions:["invokeOnExitComplete","clearInitial"]}}},open:{effects:["trackEnterAnimation"],on:{"controlled.close":{target:"closing"},close:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closing",actions:["setInitial","computeSize","invokeOnClose"]}],"size.measure":{actions:["measureSize"]},"animation.end":{actions:["clearInitial"]}}}},implementations:{guards:{isOpenControlled:({prop:e})=>null!=e("open")},effects:{trackEnterAnimation:({send:e,scope:t})=>{let r;const n=ln(()=>{const n=eg(t);if(!n)return;const o=Sr(n).animationName;if(!o||"none"===o)return void e({type:"animation.end"});const a=t=>{Vr(t)===n&&e({type:"animation.end"})};n.addEventListener("animationend",a),r=()=>{n.removeEventListener("animationend",a)}});return()=>{n(),r?.()}},trackExitAnimation:({send:e,scope:t})=>{let r;const n=ln(()=>{const n=eg(t);if(!n)return;const o=Sr(n).animationName;if(!o||"none"===o)return void e({type:"animation.end"});const a=t=>{Vr(t)===n&&e({type:"animation.end"})};n.addEventListener("animationend",a);const i=Rn(n,{animationFillMode:"forwards"});r=()=>{n.removeEventListener("animationend",a),sn(()=>i())}});return()=>{n(),r?.()}}},actions:{setInitial:({context:e,flush:t})=>{t(()=>{e.set("initial",!0)})},clearInitial:({context:e})=>{e.set("initial",!1)},cleanupNode:({refs:e})=>{e.set("stylesRef",null)},measureSize:({context:e,scope:t})=>{const r=eg(t);if(!r)return;const{height:n,width:o}=r.getBoundingClientRect();e.set("size",{height:n,width:o})},computeSize:({refs:e,scope:t,context:r})=>{e.get("cleanup")?.();const n=ln(()=>{const e=eg(t);if(!e)return;const n=e.hidden;e.style.animationName="none",e.style.animationDuration="0s",e.hidden=!1;const o=e.getBoundingClientRect();r.set("size",{height:o.height,width:o.width}),r.get("initial")&&(e.style.animationName="",e.style.animationDuration=""),e.hidden=n});e.set("cleanup",n)},invokeOnOpen:({prop:e})=>{e("onOpenChange")?.({open:!0})},invokeOnClose:({prop:e})=>{e("onOpenChange")?.({open:!1})},invokeOnExitComplete:({prop:e})=>{e("onExitComplete")?.()},toggleVisibility:({prop:e,send:t})=>{t({type:e("open")?"controlled.open":"controlled.close"})}}}};or(Qn()(["dir","disabled","getRootNode","id","ids","onExitComplete","onOpenChange","defaultOpen","open"]));const rg={slots:Zh.keys(),className:"chakra-collapsible",base:{content:{overflow:"hidden",_open:{animationName:"expand-height, fade-in",animationDuration:"moderate"},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate"}}}},ng={className:"colorPicker",slots:Oh.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5"},label:{color:"fg",fontWeight:"medium",textStyle:"sm",_disabled:{opacity:"0.5"}},valueText:{textAlign:"start"},control:{display:"flex",alignItems:"center",flexDirection:"row",gap:"2",position:"relative"},swatchTrigger:{display:"flex",alignItems:"center",justifyContent:"center"},trigger:{display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"row",flexShrink:"0",gap:"2",textStyle:"sm",minH:"var(--input-height)",minW:"var(--input-height)",px:"1",rounded:"l2",_disabled:{opacity:"0.5"},"--focus-color":"colors.colorPalette.focusRing","&:focus-visible":{borderColor:"var(--focus-color)",outline:"1px solid var(--focus-color)"},"&[data-fit-content]":{"--input-height":"unset",px:"0",border:"0"}},content:{display:"flex",flexDirection:"column",bg:"bg.panel",borderRadius:"l3",boxShadow:"lg",width:"64",p:"4",gap:"3",zIndex:"dropdown",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"faster"}},area:{height:"180px",borderRadius:"l2",overflow:"hidden"},areaThumb:{borderRadius:"full",height:"var(--thumb-size)",width:"var(--thumb-size)",borderWidth:"2px",borderColor:"white",shadow:"sm",focusVisibleRing:"mixed",focusRingColor:"white"},areaBackground:{height:"full"},channelSlider:{borderRadius:"l2",flex:"1"},channelSliderTrack:{height:"var(--slider-height)",borderRadius:"inherit",boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"},channelText:{textStyle:"xs",color:"fg.muted",fontWeight:"medium",textTransform:"capitalize"},swatchGroup:{display:"flex",flexDirection:"row",flexWrap:"wrap",gap:"2"},swatch:{...hs.base,borderRadius:"l1"},swatchIndicator:{color:"white",rounded:"full"},channelSliderThumb:{borderRadius:"full",height:"var(--thumb-size)",width:"var(--thumb-size)",borderWidth:"2px",borderColor:"white",shadow:"sm",transform:"translate(-50%, -50%)",focusVisibleRing:"outside",focusRingOffset:"1px"},channelInput:{...gs.base,"&::-webkit-inner-spin-button, &::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:0}},formatSelect:{textStyle:"xs",textTransform:"uppercase",borderWidth:"1px",minH:"6",focusRing:"inside",rounded:"l2"},transparencyGrid:{borderRadius:"l2"},view:{display:"flex",flexDirection:"column",gap:"2"}},variants:{size:{"2xs":{channelInput:gs.variants?.size?.["2xs"],swatch:{"--swatch-size":"sizes.4.5"},trigger:{"--input-height":"sizes.7"},area:{"--thumb-size":"sizes.3"},channelSlider:{"--slider-height":"sizes.3","--thumb-size":"sizes.3"}},xs:{channelInput:gs.variants?.size?.xs,swatch:{"--swatch-size":"sizes.5"},trigger:{"--input-height":"sizes.8"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},sm:{channelInput:gs.variants?.size?.sm,swatch:{"--swatch-size":"sizes.6"},trigger:{"--input-height":"sizes.9"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},md:{channelInput:gs.variants?.size?.md,swatch:{"--swatch-size":"sizes.7"},trigger:{"--input-height":"sizes.10"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},lg:{channelInput:gs.variants?.size?.lg,swatch:{"--swatch-size":"sizes.7"},trigger:{"--input-height":"sizes.11"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},xl:{channelInput:gs.variants?.size?.xl,swatch:{"--swatch-size":"sizes.8"},trigger:{"--input-height":"sizes.12"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},"2xl":{channelInput:gs.variants?.size?.["2xl"],swatch:{"--swatch-size":"sizes.10"},trigger:{"--input-height":"sizes.16"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}}},variant:{outline:{channelInput:gs.variants?.variant?.outline,trigger:{borderWidth:"1px"}},subtle:{channelInput:gs.variants?.variant?.subtle,trigger:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted"}}}},defaultVariants:{size:"md",variant:"outline"}},og={className:"chakra-combobox",slots:xh.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",width:"full"},label:{fontWeight:"medium",userSelect:"none",textStyle:"sm",_disabled:{layerStyle:"disabled"}},input:{display:"flex",alignItems:"center",justifyContent:"space-between",background:"bg.panel",width:"full",minH:"var(--combobox-input-height)",px:"var(--combobox-input-padding-x)","--input-height":"var(--combobox-input-height)",borderRadius:"l2",outline:0,userSelect:"none",textAlign:"start",_placeholderShown:{color:"fg.muted"},_disabled:{layerStyle:"disabled"},"--focus-color":"colors.colorPalette.focusRing","--error-color":"colors.border.error",_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"}},trigger:{display:"inline-flex",alignItems:"center",justifyContent:"center","--input-height":"var(--combobox-input-height)"},clearTrigger:{color:"fg.muted",pointerEvents:"auto",focusVisibleRing:"inside",focusRingWidth:"2px",rounded:"l1"},control:{pos:"relative"},indicatorGroup:{display:"flex",alignItems:"center",justifyContent:"center",gap:"1",pos:"absolute",insetEnd:"0",top:"0",bottom:"0",px:"var(--combobox-input-padding-x)",_icon:{boxSize:"var(--combobox-indicator-size)"},"[data-disabled] &":{opacity:.5}},content:{background:"bg.panel",display:"flex",flexDirection:"column",zIndex:"dropdown",borderRadius:"l2",outline:0,maxH:"96",overflowY:"auto",boxShadow:"md",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"0s"},"&[data-empty]:not(:has([data-scope=combobox][data-part=empty]))":{opacity:0}},item:{position:"relative",userSelect:"none",display:"flex",alignItems:"center",gap:"2",py:"var(--combobox-item-padding-y)",px:"var(--combobox-item-padding-x)",cursor:"option",justifyContent:"space-between",flex:"1",textAlign:"start",borderRadius:"l1",_highlighted:{bg:"bg.emphasized/60"},_disabled:{pointerEvents:"none",opacity:"0.5"},_icon:{boxSize:"var(--combobox-indicator-size)"}},empty:{py:"var(--combobox-item-padding-y)",px:"var(--combobox-item-padding-x)"},itemText:{flex:"1"},itemGroup:{pb:"var(--combobox-item-padding-y)",_last:{pb:"0"}},itemGroupLabel:{fontWeight:"medium",py:"var(--combobox-item-padding-y)",px:"var(--combobox-item-padding-x)"}},variants:{variant:{outline:{input:{bg:"transparent",borderWidth:"1px",borderColor:"border",focusVisibleRing:"inside"}},subtle:{input:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted",focusVisibleRing:"inside"}},flushed:{input:{bg:"transparent",borderBottomWidth:"1px",borderBottomColor:"border",borderRadius:"0",px:"0",_focusVisible:{borderColor:"var(--focus-color)",boxShadow:"0px 1px 0px 0px var(--focus-color)"}},indicatorGroup:{px:"0"}}},size:{xs:{root:{"--combobox-input-height":"sizes.8","--combobox-input-padding-x":"spacing.2","--combobox-indicator-size":"sizes.3.5"},input:{textStyle:"xs"},content:{"--combobox-item-padding-x":"spacing.1.5","--combobox-item-padding-y":"spacing.1","--combobox-indicator-size":"sizes.3.5",p:"1",textStyle:"xs"},trigger:{textStyle:"xs",gap:"1"}},sm:{root:{"--combobox-input-height":"sizes.9","--combobox-input-padding-x":"spacing.2.5","--combobox-indicator-size":"sizes.4"},input:{textStyle:"sm"},content:{"--combobox-item-padding-x":"spacing.2","--combobox-item-padding-y":"spacing.1.5","--combobox-indicator-size":"sizes.4",p:"1",textStyle:"sm"},trigger:{textStyle:"sm",gap:"1"}},md:{root:{"--combobox-input-height":"sizes.10","--combobox-input-padding-x":"spacing.3","--combobox-indicator-size":"sizes.4"},input:{textStyle:"sm"},content:{"--combobox-item-padding-x":"spacing.2","--combobox-item-padding-y":"spacing.1.5","--combobox-indicator-size":"sizes.4",p:"1",textStyle:"sm"},itemIndicator:{display:"flex",alignItems:"center",justifyContent:"center"},trigger:{textStyle:"sm",gap:"2"}},lg:{root:{"--combobox-input-height":"sizes.12","--combobox-input-padding-x":"spacing.4","--combobox-indicator-size":"sizes.5"},input:{textStyle:"md"},content:{"--combobox-item-padding-y":"spacing.2","--combobox-item-padding-x":"spacing.3","--combobox-indicator-size":"sizes.5",p:"1.5",textStyle:"md"},trigger:{textStyle:"md",py:"3",gap:"2"}}}},defaultVariants:{size:"md",variant:"outline"}},ag={slots:nh.keys(),className:"chakra-data-list",base:{itemLabel:{display:"flex",alignItems:"center",gap:"1"},itemValue:{display:"flex",minWidth:"0",flex:"1"}},variants:{orientation:{horizontal:{root:{display:"flex",flexDirection:"column"},item:{display:"inline-flex",alignItems:"center",gap:"4"},itemLabel:{minWidth:"120px"}},vertical:{root:{display:"flex",flexDirection:"column"},item:{display:"flex",flexDirection:"column",gap:"1"}}},size:{sm:{root:{gap:"3"},item:{textStyle:"xs"}},md:{root:{gap:"4"},item:{textStyle:"sm"}},lg:{root:{gap:"5"},item:{textStyle:"md"}}},variant:{subtle:{itemLabel:{color:"fg.muted"}},bold:{itemLabel:{fontWeight:"medium"},itemValue:{color:"fg.muted"}}}},defaultVariants:{size:"md",orientation:"vertical",variant:"subtle"}},ig={slots:oh.keys(),className:"chakra-dialog",base:{backdrop:{bg:"blackAlpha.500",pos:"fixed",left:0,top:0,w:"100vw",h:"100dvh",zIndex:"overlay",_open:{animationName:"fade-in",animationDuration:"slow"},_closed:{animationName:"fade-out",animationDuration:"moderate"}},positioner:{display:"flex",width:"100vw",height:"100dvh",position:"fixed",left:0,top:0,"--dialog-z-index":"zIndex.modal",zIndex:"calc(var(--dialog-z-index) + var(--layer-index, 0))",justifyContent:"center",overscrollBehaviorY:"none"},content:{display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,borderRadius:"l3",textStyle:"sm",my:"var(--dialog-margin, var(--dialog-base-margin))","--dialog-z-index":"zIndex.modal",zIndex:"calc(var(--dialog-z-index) + var(--layer-index, 0))",bg:"bg.panel",boxShadow:"lg",_open:{animationDuration:"moderate"},_closed:{animationDuration:"faster"}},header:{display:"flex",gap:"2",flex:0,px:"6",pt:"6",pb:"4"},body:{flex:"1",px:"6",pt:"2",pb:"6"},footer:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"3",px:"6",pt:"2",pb:"4"},title:{textStyle:"lg",fontWeight:"semibold"},description:{color:"fg.muted"},closeTrigger:{pos:"absolute",top:"2",insetEnd:"2"}},variants:{placement:{center:{positioner:{alignItems:"center"},content:{"--dialog-base-margin":"auto",mx:"auto"}},top:{positioner:{alignItems:"flex-start"},content:{"--dialog-base-margin":"spacing.16",mx:"auto"}},bottom:{positioner:{alignItems:"flex-end"},content:{"--dialog-base-margin":"spacing.16",mx:"auto"}}},scrollBehavior:{inside:{positioner:{overflow:"hidden"},content:{maxH:"calc(100% - 7.5rem)"},body:{overflow:"auto"}},outside:{positioner:{overflow:"auto",pointerEvents:"auto"}}},size:{xs:{content:{maxW:"sm"}},sm:{content:{maxW:"md"}},md:{content:{maxW:"lg"}},lg:{content:{maxW:"2xl"}},xl:{content:{maxW:"4xl"}},cover:{positioner:{padding:"10"},content:{width:"100%",height:"100%","--dialog-margin":"0"}},full:{content:{maxW:"100vw",minH:"100vh","--dialog-margin":"0",borderRadius:"0"}}},motionPreset:{scale:{content:{_open:{animationName:"scale-in, fade-in"},_closed:{animationName:"scale-out, fade-out"}}},"slide-in-bottom":{content:{_open:{animationName:"slide-from-bottom, fade-in"},_closed:{animationName:"slide-to-bottom, fade-out"}}},"slide-in-top":{content:{_open:{animationName:"slide-from-top, fade-in"},_closed:{animationName:"slide-to-top, fade-out"}}},"slide-in-left":{content:{_open:{animationName:"slide-from-left, fade-in"},_closed:{animationName:"slide-to-left, fade-out"}}},"slide-in-right":{content:{_open:{animationName:"slide-from-right, fade-in"},_closed:{animationName:"slide-to-right, fade-out"}}},none:{}}},defaultVariants:{size:"md",scrollBehavior:"outside",placement:"top",motionPreset:"scale"}},sg={slots:ah.keys(),className:"chakra-drawer",base:{backdrop:{bg:"blackAlpha.500",pos:"fixed",insetInlineStart:0,top:0,w:"100vw",h:"100dvh",zIndex:"overlay",_open:{animationName:"fade-in",animationDuration:"slow"},_closed:{animationName:"fade-out",animationDuration:"moderate"}},positioner:{display:"flex",width:"100vw",height:"100dvh",position:"fixed",insetInlineStart:0,top:0,zIndex:"modal",overscrollBehaviorY:"none"},content:{display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,zIndex:"modal",textStyle:"sm",maxH:"100dvh",color:"inherit",bg:"bg.panel",boxShadow:"lg",_open:{animationDuration:"slowest",animationTimingFunction:"ease-in-smooth"},_closed:{animationDuration:"slower",animationTimingFunction:"ease-in-smooth"}},header:{display:"flex",alignItems:"center",gap:"2",flex:0,px:"6",pt:"6",pb:"4"},body:{px:"6",py:"2",flex:"1",overflow:"auto"},footer:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"3",px:"6",pt:"2",pb:"4"},title:{flex:"1",textStyle:"lg",fontWeight:"semibold"},description:{color:"fg.muted"},closeTrigger:{pos:"absolute",top:"3",insetEnd:"2"}},variants:{size:{xs:{content:{maxW:"xs"}},sm:{content:{maxW:"md"}},md:{content:{maxW:"lg"}},lg:{content:{maxW:"2xl"}},xl:{content:{maxW:"4xl"}},full:{content:{maxW:"100vw",h:"100dvh"}}},placement:{start:{positioner:{justifyContent:"flex-start",alignItems:"stretch"},content:{_open:{animationName:{base:"slide-from-left-full, fade-in",_rtl:"slide-from-right-full, fade-in"}},_closed:{animationName:{base:"slide-to-left-full, fade-out",_rtl:"slide-to-right-full, fade-out"}}}},end:{positioner:{justifyContent:"flex-end",alignItems:"stretch"},content:{_open:{animationName:{base:"slide-from-right-full, fade-in",_rtl:"slide-from-left-full, fade-in"}},_closed:{animationName:{base:"slide-to-right-full, fade-out",_rtl:"slide-to-left-full, fade-out"}}}},top:{positioner:{justifyContent:"stretch",alignItems:"flex-start"},content:{maxW:"100%",_open:{animationName:"slide-from-top-full, fade-in"},_closed:{animationName:"slide-to-top-full, fade-out"}}},bottom:{positioner:{justifyContent:"stretch",alignItems:"flex-end"},content:{maxW:"100%",_open:{animationName:"slide-from-bottom-full, fade-in"},_closed:{animationName:"slide-to-bottom-full, fade-out"}}}},contained:{true:{positioner:{padding:"4"},content:{borderRadius:"l3"}}}},defaultVariants:{size:"xs",placement:"end"}},lg={fontSize:"inherit",fontWeight:"inherit",textAlign:"inherit",bg:"transparent",borderRadius:"l2"},cg={slots:ih.keys(),className:"chakra-editable",base:{root:{display:"inline-flex",alignItems:"center",position:"relative",gap:"1.5",width:"full"},preview:{...lg,py:"1",px:"1",display:"inline-flex",alignItems:"center",transitionProperty:"common",transitionDuration:"normal",cursor:"text",_hover:{bg:"bg.muted"},_disabled:{userSelect:"none"}},input:{...lg,outline:"0",py:"1",px:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",focusVisibleRing:"inside",focusRingWidth:"2px",_placeholder:{opacity:.6}},control:{display:"inline-flex",alignItems:"center",gap:"1.5"}},variants:{size:{sm:{root:{textStyle:"sm"},preview:{minH:"8"},input:{minH:"8"}},md:{root:{textStyle:"sm"},preview:{minH:"9"},input:{minH:"9"}},lg:{root:{textStyle:"md"},preview:{minH:"10"},input:{minH:"10"}}}},defaultVariants:{size:"md"}},dg={slots:sh.keys(),className:"chakra-empty-state",base:{root:{width:"full"},content:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},indicator:{display:"flex",alignItems:"center",justifyContent:"center",color:"fg.subtle",_icon:{boxSize:"1em"}},title:{fontWeight:"semibold"},description:{textStyle:"sm",color:"fg.muted"}},variants:{size:{sm:{root:{px:"4",py:"6"},title:{textStyle:"md"},content:{gap:"4"},indicator:{textStyle:"2xl"}},md:{root:{px:"8",py:"12"},title:{textStyle:"lg"},content:{gap:"6"},indicator:{textStyle:"4xl"}},lg:{root:{px:"12",py:"16"},title:{textStyle:"xl"},content:{gap:"8"},indicator:{textStyle:"6xl"}}}},defaultVariants:{size:"md"}},ug={className:"chakra-field",slots:lh.keys(),base:{requiredIndicator:{color:"fg.error",lineHeight:"1"},root:{display:"flex",width:"100%",position:"relative",gap:"1.5"},label:{display:"flex",alignItems:"center",textAlign:"start",textStyle:"sm",fontWeight:"medium",gap:"1",userSelect:"none",_disabled:{opacity:"0.5"}},errorText:{display:"inline-flex",alignItems:"center",fontWeight:"medium",gap:"1",color:"fg.error",textStyle:"xs"},helperText:{color:"fg.muted",textStyle:"xs"}},variants:{orientation:{vertical:{root:{flexDirection:"column",alignItems:"flex-start"}},horizontal:{root:{flexDirection:"row",alignItems:"center",justifyContent:"space-between"},label:{flex:"0 0 var(--field-label-width, 80px)"}}}},defaultVariants:{orientation:"vertical"}},pg={className:"fieldset",slots:ch.keys(),base:{root:{display:"flex",flexDirection:"column",width:"full"},content:{display:"flex",flexDirection:"column",width:"full"},legend:{color:"fg",fontWeight:"medium",_disabled:{opacity:"0.5"}},helperText:{color:"fg.muted",textStyle:"sm"},errorText:{display:"inline-flex",alignItems:"center",color:"fg.error",gap:"2",fontWeight:"medium",textStyle:"sm"}},variants:{size:{sm:{root:{spaceY:"2"},content:{gap:"1.5"},legend:{textStyle:"sm"}},md:{root:{spaceY:"4"},content:{gap:"4"},legend:{textStyle:"sm"}},lg:{root:{spaceY:"6"},content:{gap:"4"},legend:{textStyle:"md"}}}},defaultVariants:{size:"md"}},hg={className:"chakra-file-upload",slots:dh.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"4",width:"100%",alignItems:"flex-start"},label:{fontWeight:"medium",textStyle:"sm"},dropzone:{background:"bg",borderRadius:"l3",borderWidth:"2px",borderStyle:"dashed",display:"flex",alignItems:"center",flexDirection:"column",gap:"4",justifyContent:"center",minHeight:"2xs",px:"3",py:"2",transition:"backgrounds",focusVisibleRing:"outside",_hover:{bg:"bg.subtle"},_dragging:{bg:"colorPalette.subtle",borderStyle:"solid",borderColor:"colorPalette.solid"}},dropzoneContent:{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",gap:"1",textStyle:"sm"},item:{pos:"relative",textStyle:"sm",animationName:"fade-in",animationDuration:"moderate",background:"bg",borderRadius:"l2",borderWidth:"1px",width:"100%",display:"flex",alignItems:"center",gap:"3",p:"4"},itemGroup:{width:"100%",display:"flex",flexDirection:"column",gap:"3",_empty:{display:"none"}},itemName:{color:"fg",fontWeight:"medium",lineClamp:"1"},itemContent:{display:"flex",flexDirection:"column",gap:"0.5",flex:"1"},itemSizeText:{color:"fg.muted",textStyle:"xs"},itemDeleteTrigger:{display:"flex",alignItems:"center",justifyContent:"center",alignSelf:"flex-start",boxSize:"5",p:"2px",color:"fg.muted",cursor:"button"},itemPreview:{color:"fg.muted",_icon:{boxSize:"4.5"}}},defaultVariants:{}};var gg=lo("hoverCard").parts("arrow","arrowTip","trigger","positioner","content"),{not:fg,and:mg}=(gg.build(),{and:(...e)=>function(t){return e.every(e=>t.guard(e))},or:(...e)=>function(t){return e.some(e=>t.guard(e))},not:e=>function(t){return!t.guard(e)}});or((mg("isOpenControlled",fg("isPointer")),fg("isPointer"),mg("isOpenControlled",fg("isPointer")),fg("isPointer"),Qn()(["closeDelay","dir","getRootNode","id","ids","onOpenChange","defaultOpen","open","openDelay","positioning","onInteractOutside","onPointerDownOutside","onFocusOutside"])));const vg={className:"chakra-hover-card",slots:gg.keys(),base:{content:{position:"relative",display:"flex",flexDirection:"column",textStyle:"sm","--hovercard-bg":"colors.bg.panel",bg:"var(--hovercard-bg)",boxShadow:"lg",maxWidth:"80",borderRadius:"l3",zIndex:"popover",transformOrigin:"var(--transform-origin)",outline:"0",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"faster"}},arrow:{"--arrow-size":"sizes.3","--arrow-background":"var(--hovercard-bg)"},arrowTip:{borderTopWidth:"0.5px",borderInlineStartWidth:"0.5px"}},variants:{size:{xs:{content:{padding:"3"}},sm:{content:{padding:"4"}},md:{content:{padding:"5"}},lg:{content:{padding:"6"}}}},defaultVariants:{size:"md"}},bg={className:"chakra-list",slots:uh.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"var(--list-gap)","& :where(ul, ol)":{marginTop:"var(--list-gap)"}},item:{whiteSpace:"normal",display:"list-item"},indicator:{marginEnd:"2",minHeight:"1lh",flexShrink:0,display:"inline-block",verticalAlign:"middle"}},variants:{variant:{marker:{root:{listStyle:"revert"},item:{_marker:{color:"fg.subtle"}}},plain:{item:{alignItems:"flex-start",display:"inline-flex"}}},align:{center:{item:{alignItems:"center"}},start:{item:{alignItems:"flex-start"}},end:{item:{alignItems:"flex-end"}}}},defaultVariants:{variant:"marker"}},xg={className:"chakra-menu",slots:ph.keys(),base:{content:{outline:0,bg:"bg.panel",boxShadow:"lg",color:"fg",maxHeight:"var(--available-height)","--menu-z-index":"zIndex.dropdown",zIndex:"calc(var(--menu-z-index) + var(--layer-index, 0))",borderRadius:"l2",overflow:"hidden",overflowY:"auto",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"faster"}},item:{textDecoration:"none",color:"fg",userSelect:"none",borderRadius:"l1",width:"100%",display:"flex",cursor:"menuitem",alignItems:"center",textAlign:"start",position:"relative",flex:"0 0 auto",outline:0,_disabled:{layerStyle:"disabled"},"&[data-type]":{ps:"8"}},itemText:{flex:"1"},itemIndicator:{position:"absolute",insetStart:"2",transform:"translateY(-50%)",top:"50%"},itemGroupLabel:{px:"2",py:"1.5",fontWeight:"semibold",textStyle:"sm"},indicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0"},itemCommand:{opacity:"0.6",textStyle:"xs",ms:"auto",ps:"4",letterSpacing:"widest",fontFamily:"inherit"},separator:{height:"1px",bg:"bg.muted",my:"1",mx:"-1"}},variants:{variant:{subtle:{item:{_highlighted:{bg:"bg.emphasized/60"}}},solid:{item:{_highlighted:{bg:"colorPalette.solid",color:"colorPalette.contrast"}}}},size:{sm:{content:{minW:"8rem",padding:"1"},item:{gap:"1",textStyle:"xs",py:"1",px:"1.5"}},md:{content:{minW:"8rem",padding:"1.5"},item:{gap:"2",textStyle:"sm",py:"1.5",px:"2"}}}},defaultVariants:{size:"md",variant:"subtle"}},yg={className:"chakra-select",slots:bh.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",width:"full"},trigger:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"full",minH:"var(--select-trigger-height)","--input-height":"var(--select-trigger-height)",px:"var(--select-trigger-padding-x)",borderRadius:"l2",userSelect:"none",textAlign:"start",focusVisibleRing:"inside",_placeholderShown:{color:"fg.muted/80"},_disabled:{layerStyle:"disabled"},_invalid:{borderColor:"border.error"}},indicatorGroup:{display:"flex",alignItems:"center",gap:"1",pos:"absolute",insetEnd:"0",top:"0",bottom:"0",px:"var(--select-trigger-padding-x)",pointerEvents:"none"},indicator:{display:"flex",alignItems:"center",justifyContent:"center",color:{base:"fg.muted",_disabled:"fg.subtle",_invalid:"fg.error"}},content:{background:"bg.panel",display:"flex",flexDirection:"column",zIndex:"dropdown",borderRadius:"l2",outline:0,maxH:"96",overflowY:"auto",boxShadow:"md",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"fastest"}},item:{position:"relative",userSelect:"none",display:"flex",alignItems:"center",gap:"2",cursor:"option",justifyContent:"space-between",flex:"1",textAlign:"start",borderRadius:"l1",_highlighted:{bg:"bg.emphasized/60"},_disabled:{pointerEvents:"none",opacity:"0.5"},_icon:{width:"4",height:"4"}},control:{pos:"relative"},itemText:{flex:"1"},itemGroup:{_first:{mt:"0"}},itemGroupLabel:{py:"1",fontWeight:"medium"},label:{fontWeight:"medium",userSelect:"none",textStyle:"sm",_disabled:{layerStyle:"disabled"}},valueText:{lineClamp:"1",maxW:"80%"},clearTrigger:{color:"fg.muted",pointerEvents:"auto",focusVisibleRing:"inside",focusRingWidth:"2px",rounded:"l1"}},variants:{variant:{outline:{trigger:{bg:"transparent",borderWidth:"1px",borderColor:"border",_expanded:{borderColor:"border.emphasized"}}},subtle:{trigger:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted"}}},size:{xs:{root:{"--select-trigger-height":"sizes.8","--select-trigger-padding-x":"spacing.2"},content:{p:"1",gap:"1",textStyle:"xs"},trigger:{textStyle:"xs",gap:"1"},item:{py:"1",px:"2"},itemGroupLabel:{py:"1",px:"2"},indicator:{_icon:{width:"3.5",height:"3.5"}}},sm:{root:{"--select-trigger-height":"sizes.9","--select-trigger-padding-x":"spacing.2.5"},content:{p:"1",textStyle:"sm"},trigger:{textStyle:"sm",gap:"1"},indicator:{_icon:{width:"4",height:"4"}},item:{py:"1",px:"1.5"},itemGroup:{mt:"1"},itemGroupLabel:{py:"1",px:"1.5"}},md:{root:{"--select-trigger-height":"sizes.10","--select-trigger-padding-x":"spacing.3"},content:{p:"1",textStyle:"sm"},itemGroup:{mt:"1.5"},item:{py:"1.5",px:"2"},itemIndicator:{display:"flex",alignItems:"center",justifyContent:"center"},itemGroupLabel:{py:"1.5",px:"2"},trigger:{textStyle:"sm",gap:"2"},indicator:{_icon:{width:"4",height:"4"}}},lg:{root:{"--select-trigger-height":"sizes.12","--select-trigger-padding-x":"spacing.4"},content:{p:"1.5",textStyle:"md"},itemGroup:{mt:"2"},item:{py:"2",px:"3"},itemGroupLabel:{py:"2",px:"3"},trigger:{textStyle:"md",py:"3",gap:"2"},indicator:{_icon:{width:"5",height:"5"}}}}},defaultVariants:{size:"md",variant:"outline"}},wg={className:"chakra-native-select",slots:hh.keys(),base:{root:{height:"fit-content",display:"flex",width:"100%",position:"relative"},field:{width:"100%",minWidth:"0",outline:"0",appearance:"none",borderRadius:"l2","--error-color":"colors.border.error",_disabled:{layerStyle:"disabled"},_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"},focusVisibleRing:"inside",lineHeight:"normal","& > option, & > optgroup":{bg:"bg"}},indicator:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)",height:"100%",color:"fg.muted",_disabled:{opacity:"0.5"},_invalid:{color:"fg.error"},_icon:{width:"1em",height:"1em"}}},variants:{variant:{outline:{field:yg.variants?.variant.outline.trigger},subtle:{field:yg.variants?.variant.subtle.trigger},plain:{field:{bg:"transparent",color:"fg",focusRingWidth:"2px"}}},size:{xs:{field:{textStyle:"xs",ps:"2",pe:"6",height:"6"},indicator:{textStyle:"sm",insetEnd:"1.5"}},sm:{field:{textStyle:"sm",ps:"2.5",pe:"8",height:"8"},indicator:{textStyle:"md",insetEnd:"2"}},md:{field:{textStyle:"sm",ps:"3",pe:"8",height:"10"},indicator:{textStyle:"lg",insetEnd:"2"}},lg:{field:{textStyle:"md",ps:"4",pe:"8",height:"11"},indicator:{textStyle:"xl",insetEnd:"3"}},xl:{field:{textStyle:"md",ps:"4.5",pe:"10",height:"12"},indicator:{textStyle:"xl",insetEnd:"3"}}}},defaultVariants:yg.defaultVariants};function Cg(e,t){const r={};for(const n in e){const o=t(n,e[n]);r[o[0]]=o[1]}return r}let kg=new Map,Sg=!1;try{Sg="exceptZero"===new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay}catch{}let Eg=!1;try{Eg="unit"===new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style}catch{}const Ig={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class Pg{format(e){let t="";if(t=Sg||null==this.options.signDisplay?this.numberFormatter.format(e):function(e,t,r){if("auto"===t)return e.format(r);if("never"===t)return e.format(Math.abs(r));{let n=!1;if("always"===t?n=r>0||Object.is(r,0):"exceptZero"===t&&(Object.is(r,-0)||Object.is(r,0)?r=Math.abs(r):n=r>0),n){let t=e.format(-r),n=e.format(r),o=t.replace(n,"").replace(/\u200e|\u061C/,"");return 1!==[...o].length&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),t.replace(n,"!!!").replace(o,"+").replace("!!!",n)}return e.format(r)}}(this.numberFormatter,this.options.signDisplay,e),"unit"===this.options.style&&!Eg){var r;let{unit:e,unitDisplay:n="short",locale:o}=this.resolvedOptions();if(!e)return t;let a=null===(r=Ig[e])||void 0===r?void 0:r[n];t+=a[o]||a.default}return t}formatToParts(e){return this.numberFormatter.formatToParts(e)}formatRange(e,t){if("function"==typeof this.numberFormatter.formatRange)return this.numberFormatter.formatRange(e,t);if(t<e)throw new RangeError("End date must be >= start date");return`${this.format(e)} – ${this.format(t)}`}formatRangeToParts(e,t){if("function"==typeof this.numberFormatter.formatRangeToParts)return this.numberFormatter.formatRangeToParts(e,t);if(t<e)throw new RangeError("End date must be >= start date");let r=this.numberFormatter.formatToParts(e),n=this.numberFormatter.formatToParts(t);return[...r.map(e=>({...e,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...n.map(e=>({...e,source:"endRange"}))]}resolvedOptions(){let e=this.numberFormatter.resolvedOptions();return Sg||null==this.options.signDisplay||(e={...e,signDisplay:this.options.signDisplay}),Eg||"unit"!==this.options.style||(e={...e,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),e}constructor(e,t={}){this.numberFormatter=function(e,t={}){let{numberingSystem:r}=t;if(r&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${r}`),"unit"===t.style&&!Eg){var n;let{unit:e,unitDisplay:r="short"}=t;if(!e)throw new Error('unit option must be provided with style: "unit"');if(!(null===(n=Ig[e])||void 0===n?void 0:n[r]))throw new Error(`Unsupported unit ${e} with unitDisplay = ${r}`);t={...t,style:"decimal"}}let o=e+(t?Object.entries(t).sort((e,t)=>e[0]<t[0]?-1:1).join():"");if(kg.has(o))return kg.get(o);let a=new Intl.NumberFormat(e,t);return kg.set(o,a),a}(e,t),this.options=t}}const Rg=new RegExp("^.*\\(.*\\).*$"),Tg=["latn","arab","hanidec","deva","beng"];class Og{parse(e){return Vg(this.locale,this.options,e).parse(e)}isValidPartialNumber(e,t,r){return Vg(this.locale,this.options,e).isValidPartialNumber(e,t,r)}getNumberingSystem(e){return Vg(this.locale,this.options,e).options.numberingSystem}constructor(e,t={}){this.locale=e,this.options=t}}const Ng=new Map;function Vg(e,t,r){let n=Ag(e,t);if(!e.includes("-nu-")&&!n.isValidPartialNumber(r))for(let o of Tg)if(o!==n.options.numberingSystem){let n=Ag(e+(e.includes("-u-")?"-nu-":"-u-nu-")+o,t);if(n.isValidPartialNumber(r))return n}return n}function Ag(e,t){let r=e+(t?Object.entries(t).sort((e,t)=>e[0]<t[0]?-1:1).join():""),n=Ng.get(r);return n||(n=new zg(e,t),Ng.set(r,n)),n}class zg{parse(e){let t=this.sanitize(e);if(this.symbols.group&&(t=Lg(t,this.symbols.group,"")),this.symbols.decimal&&(t=t.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(t=t.replace(this.symbols.minusSign,"-")),t=t.replace(this.symbols.numeral,this.symbols.index),"percent"===this.options.style){let e=t.indexOf("-");t=t.replace("-",""),t=t.replace("+","");let r=t.indexOf(".");-1===r&&(r=t.length),t=t.replace(".",""),t=r-2==0?`0.${t}`:r-2==-1?`0.0${t}`:r-2==-2?"0.00":`${t.slice(0,r-2)}.${t.slice(r-2)}`,e>-1&&(t=`-${t}`)}let r=t?+t:NaN;if(isNaN(r))return NaN;if("percent"===this.options.style){var n,o;let e={...this.options,style:"decimal",minimumFractionDigits:Math.min((null!==(n=this.options.minimumFractionDigits)&&void 0!==n?n:0)+2,20),maximumFractionDigits:Math.min((null!==(o=this.options.maximumFractionDigits)&&void 0!==o?o:0)+2,20)};return new Og(this.locale,e).parse(new Pg(this.locale,e).format(r))}return"accounting"===this.options.currencySign&&Rg.test(e)&&(r*=-1),r}sanitize(e){return e=e.replace(this.symbols.literals,""),this.symbols.minusSign&&(e=e.replace("-",this.symbols.minusSign)),"arab"===this.options.numberingSystem&&(this.symbols.decimal&&(e=(e=e.replace(",",this.symbols.decimal)).replace(String.fromCharCode(1548),this.symbols.decimal)),this.symbols.group&&(e=Lg(e,".",this.symbols.group))),"fr-FR"===this.options.locale&&this.symbols.group&&(e=Lg(e," ",this.symbols.group),e=Lg(e,/\u00A0/g,this.symbols.group)),e}isValidPartialNumber(e,t=-1/0,r=1/0){return e=this.sanitize(e),this.symbols.minusSign&&e.startsWith(this.symbols.minusSign)&&t<0?e=e.slice(this.symbols.minusSign.length):this.symbols.plusSign&&e.startsWith(this.symbols.plusSign)&&r>0&&(e=e.slice(this.symbols.plusSign.length)),!(this.symbols.group&&e.startsWith(this.symbols.group)||this.symbols.decimal&&e.indexOf(this.symbols.decimal)>-1&&0===this.options.maximumFractionDigits||(this.symbols.group&&(e=Lg(e,this.symbols.group,"")),e=e.replace(this.symbols.numeral,""),this.symbols.decimal&&(e=e.replace(this.symbols.decimal,"")),0!==e.length))}constructor(e,t={}){var r,n;this.locale=e,1!==t.roundingIncrement&&null!=t.roundingIncrement&&(null==t.maximumFractionDigits&&null==t.minimumFractionDigits?(t.maximumFractionDigits=0,t.minimumFractionDigits=0):null==t.maximumFractionDigits?t.maximumFractionDigits=t.minimumFractionDigits:null==t.minimumFractionDigits&&(t.minimumFractionDigits=t.maximumFractionDigits)),this.formatter=new Intl.NumberFormat(e,t),this.options=this.formatter.resolvedOptions(),this.symbols=function(e,t,r,n){var o,a,i,s;let l=new Intl.NumberFormat(e,{...r,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand"}),c=l.formatToParts(-10000.111),d=l.formatToParts(10000.111),u=Fg.map(e=>l.formatToParts(e));var p;let h=null!==(p=null===(o=c.find(e=>"minusSign"===e.type))||void 0===o?void 0:o.value)&&void 0!==p?p:"-",g=null===(a=d.find(e=>"plusSign"===e.type))||void 0===a?void 0:a.value;g||"exceptZero"!==(null==n?void 0:n.signDisplay)&&"always"!==(null==n?void 0:n.signDisplay)||(g="+");let f=null===(i=new Intl.NumberFormat(e,{...r,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(e=>"decimal"===e.type))||void 0===i?void 0:i.value,m=null===(s=c.find(e=>"group"===e.type))||void 0===s?void 0:s.value,v=c.filter(e=>!_g.has(e.type)).map(e=>Dg(e.value)),b=u.flatMap(e=>e.filter(e=>!_g.has(e.type)).map(e=>Dg(e.value))),x=[...new Set([...v,...b])].sort((e,t)=>t.length-e.length),y=0===x.length?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${x.join("|")}|[\\p{White_Space}]`,"gu"),w=[...new Intl.NumberFormat(r.locale,{useGrouping:!1}).format(9876543210)].reverse(),C=new Map(w.map((e,t)=>[e,t]));return{minusSign:h,plusSign:g,decimal:f,group:m,literals:y,numeral:new RegExp(`[${w.join("")}]`,"g"),index:e=>String(C.get(e))}}(e,this.formatter,this.options,t),"percent"===this.options.style&&((null!==(r=this.options.minimumFractionDigits)&&void 0!==r?r:0)>18||(null!==(n=this.options.maximumFractionDigits)&&void 0!==n?n:0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}}const _g=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),Fg=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function Lg(e,t,r){return e.replaceAll?e.replaceAll(t,r):e.split(t).join(r)}function Dg(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var jg=lo("numberInput").parts("root","label","input","control","valueText","incrementTrigger","decrementTrigger","scrubber"),Mg=jg.build(),Wg=e=>e.ids?.input??`number-input:${e.id}:input`,$g=e=>e.ids?.incrementTrigger??`number-input:${e.id}:inc`,Bg=e=>e.ids?.decrementTrigger??`number-input:${e.id}:dec`,Hg=e=>`number-input:${e.id}:cursor`,Gg=e=>e.getById(Wg(e)),Ug=e=>e.getDoc().getElementById(Hg(e)),qg=(e,t)=>{const{prop:r,computed:n}=t;return r("formatOptions")?n("parser").parse(String(e)):parseFloat(e)},Kg=(e,t)=>{const{prop:r,computed:n}=t;return Number.isNaN(e)?"":r("formatOptions")?n("formatter").format(e):e.toString()},{choose:Yg,guards:Xg,createMachine:Zg}={guards:{and:(...e)=>function(t){return e.every(e=>t.guard(e))},or:(...e)=>function(t){return e.some(e=>t.guard(e))},not:e=>function(t){return!t.guard(e)}},createMachine:e=>e,choose:e=>function({choose:t}){return t(e)?.actions}},{not:Jg,and:Qg}=Xg,ef=Zg({props({props:e}){const t=((e,t)=>{let r=void 0===e||Number.isNaN(e)?1:e;return"percent"!==t?.style||void 0!==e&&!Number.isNaN(e)||(r=.01),r})(e.step,e.formatOptions);return{dir:"ltr",locale:"en-US",focusInputOnChange:!0,clampValueOnBlur:!e.allowOverflow,allowOverflow:!1,inputMode:"decimal",pattern:"[0-9]*(.[0-9]+)?",defaultValue:"",step:t,min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,spinOnPress:!0,...e,translations:{incrementLabel:"increment value",decrementLabel:"decrease value",...e.translations}}},initialState:()=>"idle",context:({prop:e,bindable:t,getComputed:r})=>({value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),onChange(t){const n=r(),o=qg(t,{computed:n,prop:e});e("onValueChange")?.({value:t,valueAsNumber:o})}})),hint:t(()=>({defaultValue:null})),scrubberCursorPoint:t(()=>({defaultValue:null,hash:e=>e?`x:${e.x}, y:${e.y}`:""})),fieldsetDisabled:t(()=>({defaultValue:!1}))}),computed:{isRtl:({prop:e})=>"rtl"===e("dir"),valueAsNumber:({context:e,computed:t,prop:r})=>qg(e.get("value"),{computed:t,prop:r}),formattedValue:({computed:e,prop:t})=>Kg(e("valueAsNumber"),{computed:e,prop:t}),isAtMin:({computed:e,prop:t})=>{return r=e("valueAsNumber"),n=t("min"),qt(r)<=n;var r,n},isAtMax:({computed:e,prop:t})=>{return r=e("valueAsNumber"),n=t("max"),qt(r)>=n;var r,n},isOutOfRange:({computed:e,prop:t})=>{return r=e("valueAsNumber"),n=t("min"),o=t("max"),!(qt(r)>=n&&qt(r)<=o);var r,n,o},isValueEmpty:({context:e})=>""===e.get("value"),isDisabled:({prop:e,context:t})=>!!e("disabled")||t.get("fieldsetDisabled"),canIncrement:({prop:e,computed:t})=>e("allowOverflow")||!t("isAtMax"),canDecrement:({prop:e,computed:t})=>e("allowOverflow")||!t("isAtMin"),valueText:({prop:e,context:t})=>e("translations").valueText?.(t.get("value")),formatter:jn(({prop:e})=>[e("locale"),e("formatOptions")],(e,t)=>((e,t={})=>new Intl.NumberFormat(e,t))(e,t)),parser:jn(({prop:e})=>[e("locale"),e("formatOptions")],(e,t)=>((e,t={})=>new Og(e,t))(e,t))},watch({track:e,action:t,context:r,computed:n,prop:o}){e([()=>r.get("value"),()=>o("locale")],()=>{t(["syncInputElement"])}),e([()=>n("isOutOfRange")],()=>{t(["invokeOnInvalid"])}),e([()=>r.hash("scrubberCursorPoint")],()=>{t(["setVirtualCursorPosition"])})},effects:["trackFormControl"],on:{"VALUE.SET":{actions:["setRawValue"]},"VALUE.CLEAR":{actions:["clearValue"]},"VALUE.INCREMENT":{actions:["increment"]},"VALUE.DECREMENT":{actions:["decrement"]}},states:{idle:{on:{"TRIGGER.PRESS_DOWN":[{guard:"isTouchPointer",target:"before:spin",actions:["setHint"]},{target:"before:spin",actions:["focusInput","invokeOnFocus","setHint"]}],"SCRUBBER.PRESS_DOWN":{target:"scrubbing",actions:["focusInput","invokeOnFocus","setHint","setCursorPoint"]},"INPUT.FOCUS":{target:"focused",actions:["focusInput","invokeOnFocus"]}}},focused:{tags:["focus"],effects:["attachWheelListener"],on:{"TRIGGER.PRESS_DOWN":[{guard:"isTouchPointer",target:"before:spin",actions:["setHint"]},{target:"before:spin",actions:["focusInput","setHint"]}],"SCRUBBER.PRESS_DOWN":{target:"scrubbing",actions:["focusInput","setHint","setCursorPoint"]},"INPUT.ARROW_UP":{actions:["increment"]},"INPUT.ARROW_DOWN":{actions:["decrement"]},"INPUT.HOME":{actions:["decrementToMin"]},"INPUT.END":{actions:["incrementToMax"]},"INPUT.CHANGE":{actions:["setValue","setHint"]},"INPUT.BLUR":[{guard:Qg("clampValueOnBlur",Jg("isInRange")),target:"idle",actions:["setClampedValue","clearHint","invokeOnBlur"]},{guard:Jg("isInRange"),target:"idle",actions:["setFormattedValue","clearHint","invokeOnBlur","invokeOnInvalid"]},{target:"idle",actions:["setFormattedValue","clearHint","invokeOnBlur"]}],"INPUT.ENTER":{actions:["setFormattedValue","clearHint","invokeOnBlur"]}}},"before:spin":{tags:["focus"],effects:["trackButtonDisabled","waitForChangeDelay"],entry:Yg([{guard:"isIncrementHint",actions:["increment"]},{guard:"isDecrementHint",actions:["decrement"]}]),on:{CHANGE_DELAY:{target:"spinning",guard:Qg("isInRange","spinOnPress")},"TRIGGER.PRESS_UP":[{guard:"isTouchPointer",target:"focused",actions:["clearHint"]},{target:"focused",actions:["focusInput","clearHint"]}]}},spinning:{tags:["focus"],effects:["trackButtonDisabled","spinValue"],on:{SPIN:[{guard:"isIncrementHint",actions:["increment"]},{guard:"isDecrementHint",actions:["decrement"]}],"TRIGGER.PRESS_UP":{target:"focused",actions:["focusInput","clearHint"]}}},scrubbing:{tags:["focus"],effects:["activatePointerLock","trackMousemove","setupVirtualCursor","preventTextSelection"],on:{"SCRUBBER.POINTER_UP":{target:"focused",actions:["focusInput","clearCursorPoint"]},"SCRUBBER.POINTER_MOVE":[{guard:"isIncrementHint",actions:["increment","setCursorPoint"]},{guard:"isDecrementHint",actions:["decrement","setCursorPoint"]}]}}},implementations:{guards:{clampValueOnBlur:({prop:e})=>e("clampValueOnBlur"),spinOnPress:({prop:e})=>!!e("spinOnPress"),isInRange:({computed:e})=>!e("isOutOfRange"),isDecrementHint:({context:e,event:t})=>"decrement"===(t.hint??e.get("hint")),isIncrementHint:({context:e,event:t})=>"increment"===(t.hint??e.get("hint")),isTouchPointer:({event:e})=>"touch"===e.pointerType},effects:{waitForChangeDelay({send:e}){const t=setTimeout(()=>{e({type:"CHANGE_DELAY"})},300);return()=>clearTimeout(t)},spinValue({send:e}){const t=setInterval(()=>{e({type:"SPIN"})},50);return()=>clearInterval(t)},trackFormControl:({context:e,scope:t})=>Jr(Gg(t),{onFieldsetDisabledChange(t){e.set("fieldsetDisabled",t)},onFormReset(){e.set("value",e.initial("value"))}}),setupVirtualCursor:({context:e,scope:t})=>((e,t)=>{if(!Nr())return((e,t)=>{const r=e.getDoc(),n=r.createElement("div");n.className="scrubber--cursor",n.id=Hg(e),Object.assign(n.style,{width:"15px",height:"15px",position:"fixed",pointerEvents:"none",left:"0px",top:"0px",zIndex:pr,transform:t?`translate3d(${t.x}px, ${t.y}px, 0px)`:void 0,willChange:"transform"}),n.innerHTML='\n      <svg width="46" height="15" style="left: -15.5px; position: absolute; top: 0; filter: drop-shadow(rgba(0, 0, 0, 0.4) 0px 1px 1.1px);">\n        <g transform="translate(2 3)">\n          <path fill-rule="evenodd" d="M 15 4.5L 15 2L 11.5 5.5L 15 9L 15 6.5L 31 6.5L 31 9L 34.5 5.5L 31 2L 31 4.5Z" style="stroke-width: 2px; stroke: white;"></path>\n          <path fill-rule="evenodd" d="M 15 4.5L 15 2L 11.5 5.5L 15 9L 15 6.5L 31 6.5L 31 9L 34.5 5.5L 31 2L 31 4.5Z"></path>\n        </g>\n      </svg>',r.body.appendChild(n)})(e,t),()=>{Ug(e)?.remove()}})(t,e.get("scrubberCursorPoint")),preventTextSelection:({scope:e})=>(e=>{const t=e.getDoc(),r=t.documentElement,n=t.body;return n.style.pointerEvents="none",r.style.userSelect="none",r.style.cursor="ew-resize",()=>{n.style.pointerEvents="",r.style.userSelect="",r.style.cursor="",r.style.length||r.removeAttribute("style"),n.style.length||n.removeAttribute("style")}})(e),trackButtonDisabled:({context:e,scope:t,send:r})=>cn(((e,t)=>{let r=null;return"increment"===t&&(r=(e=>e.getById($g(e)))(e)),"decrement"===t&&(r=(e=>e.getById(Bg(e)))(e)),r})(t,e.get("hint")),{attributes:["disabled"],callback(){r({type:"TRIGGER.PRESS_UP",src:"attr"})}}),attachWheelListener({scope:e,send:t,prop:r}){const n=Gg(e);if(n&&e.isActiveElement(n)&&r("allowMouseWheel"))return Hr(n,"wheel",function(e){e.preventDefault();const r=-1*Math.sign(e.deltaY);1===r?t({type:"VALUE.INCREMENT"}):-1===r&&t({type:"VALUE.DECREMENT"})},{passive:!1})},activatePointerLock({scope:e}){if(!Nr())return function(e,t){const r=e.body,n=()=>!!e.pointerLockElement;if(!("pointerLockElement"in e)&&!("mozPointerLockElement"in e))return;try{r.requestPointerLock()}catch{}const o=[Hr(e,"pointerlockchange",function(){t?.(n())},!1),Hr(e,"pointerlockerror",function(r){n()&&t?.(!1),console.error("PointerLock error occurred:",r),e.exitPointerLock()},!1)];return()=>{o.forEach(e=>e()),e.exitPointerLock()}}(e.getDoc())},trackMousemove({scope:e,send:t,context:r,computed:n}){const o=e.getDoc();return _t(Hr(o,"mousemove",function(o){const a=r.get("scrubberCursorPoint"),i=n("isRtl"),s=((e,t)=>{const{point:r,isRtl:n,event:o}=t,a=e.getWin(),i=Zt(o.movementX,a.devicePixelRatio),s=Zt(o.movementY,a.devicePixelRatio);let l=i>0?"increment":i<0?"decrement":null;n&&"increment"===l&&(l="decrement"),n&&"decrement"===l&&(l="increment");const c={x:r.x+i,y:r.y+s},d=a.innerWidth,u=Zt(7.5,a.devicePixelRatio);var p;return c.x=((c.x+u)%(p=d)+p)%p-u,{hint:l,point:c}})(e,{point:a,isRtl:i,event:o});s.hint&&t({type:"SCRUBBER.POINTER_MOVE",hint:s.hint,point:s.point})},!1),Hr(o,"mouseup",function(){t({type:"SCRUBBER.POINTER_UP"})},!1))}},actions:{focusInput({scope:e,prop:t}){if(!t("focusInputOnChange"))return;const r=Gg(e);e.isActiveElement(r)||ln(()=>r?.focus({preventScroll:!0}))},increment({context:e,event:t,prop:r,computed:n}){let o=(a=n("valueAsNumber"),i=t.step??r("step"),rr(qt(a),"+",i));var a,i;r("allowOverflow")||(o=Yt(o,r("min"),r("max"))),e.set("value",Kg(o,{computed:n,prop:r}))},decrement({context:e,event:t,prop:r,computed:n}){let o=(a=n("valueAsNumber"),i=t.step??r("step"),rr(qt(a),"-",i));var a,i;r("allowOverflow")||(o=Yt(o,r("min"),r("max"))),e.set("value",Kg(o,{computed:n,prop:r}))},setClampedValue({context:e,prop:t,computed:r}){const n=Yt(r("valueAsNumber"),t("min"),t("max"));e.set("value",Kg(n,{computed:r,prop:t}))},setRawValue({context:e,event:t,prop:r,computed:n}){let o=qg(t.value,{computed:n,prop:r});r("allowOverflow")||(o=Yt(o,r("min"),r("max"))),e.set("value",Kg(o,{computed:n,prop:r}))},setValue({context:e,event:t}){const r=t.target?.value??t.value;e.set("value",r)},clearValue({context:e}){e.set("value","")},incrementToMax({context:e,prop:t,computed:r}){const n=Kg(t("max"),{computed:r,prop:t});e.set("value",n)},decrementToMin({context:e,prop:t,computed:r}){const n=Kg(t("min"),{computed:r,prop:t});e.set("value",n)},setHint({context:e,event:t}){e.set("hint",t.hint)},clearHint({context:e}){e.set("hint",null)},invokeOnFocus({computed:e,prop:t}){t("onFocusChange")?.({focused:!0,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},invokeOnBlur({computed:e,prop:t}){t("onFocusChange")?.({focused:!1,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},invokeOnInvalid({computed:e,prop:t,event:r}){if("INPUT.CHANGE"===r.type)return;const n=e("valueAsNumber")>t("max")?"rangeOverflow":"rangeUnderflow";t("onValueInvalid")?.({reason:n,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},syncInputElement({context:e,event:t,computed:r,scope:n}){const o=t.type.endsWith("CHANGE")?e.get("value"):r("formattedValue"),a=Gg(n),i=function(e){if(e&&e.ownerDocument.activeElement===e)try{const{selectionStart:t,selectionEnd:r,value:n}=e,o=n.substring(0,t),a=n.substring(r);return{start:t,end:r,value:n,beforeTxt:o,afterTxt:a}}catch{}}(a);ln(()=>{Ur(a,o),function(e,t){if(e&&e.ownerDocument.activeElement===e)if(t)try{const{value:r}=e,{beforeTxt:n="",afterTxt:o="",start:a}=t;let i=r.length;if(r.endsWith(o))i=r.length-o.length;else if(r.startsWith(n))i=n.length;else if(null!=a){const e=n[a-1],t=r.indexOf(e,a-1);-1!==t&&(i=t+1)}e.setSelectionRange(i,i)}catch{}else e.setSelectionRange(e.value.length,e.value.length)}(a,i)})},setFormattedValue({context:e,computed:t}){e.set("value",t("formattedValue"))},setCursorPoint({context:e,event:t}){e.set("scrubberCursorPoint",t.point)},clearCursorPoint({context:e}){e.set("scrubberCursorPoint",null)},setVirtualCursorPosition({context:e,scope:t}){const r=Ug(t),n=e.get("scrubberCursorPoint");r&&n&&(r.style.transform=`translate3d(${n.x}px, ${n.y}px, 0px)`)}}}});or(Qn()(["allowMouseWheel","allowOverflow","clampValueOnBlur","dir","disabled","focusInputOnChange","form","formatOptions","getRootNode","id","ids","inputMode","invalid","locale","max","min","name","onFocusChange","onValueChange","onValueInvalid","pattern","required","readOnly","spinOnPress","step","translations","value","defaultValue"]));const tf={display:"flex",justifyContent:"center",alignItems:"center",flex:"1",userSelect:"none",cursor:"button",lineHeight:"1",color:"fg.muted","--stepper-base-radius":"radii.l1","--stepper-radius":"calc(var(--stepper-base-radius) + 1px)",_icon:{boxSize:"1em"},_disabled:{opacity:"0.5"},_hover:{bg:"bg.muted"},_active:{bg:"bg.emphasized"}},rf={className:"chakra-number-input",slots:jg.keys(),base:{root:{position:"relative",zIndex:"0",isolation:"isolate"},input:{...gs.base,verticalAlign:"top",pe:"calc(var(--stepper-width) + 0.5rem)"},control:{display:"flex",flexDirection:"column",position:"absolute",top:"0",insetEnd:"0px",margin:"1px",width:"var(--stepper-width)",height:"calc(100% - 2px)",zIndex:"1",borderStartWidth:"1px",divideY:"1px"},incrementTrigger:{...tf,borderTopEndRadius:"var(--stepper-radius)"},decrementTrigger:{...tf,borderBottomEndRadius:"var(--stepper-radius)"},valueText:{fontWeight:"medium",fontFeatureSettings:"pnum",fontVariantNumeric:"proportional-nums"}},variants:{size:{xs:{input:gs.variants.size.xs,control:{fontSize:"2xs","--stepper-width":"sizes.4"}},sm:{input:gs.variants.size.sm,control:{fontSize:"xs","--stepper-width":"sizes.5"}},md:{input:gs.variants.size.md,control:{fontSize:"sm","--stepper-width":"sizes.6"}},lg:{input:gs.variants.size.lg,control:{fontSize:"sm","--stepper-width":"sizes.6"}}},variant:Cg(gs.variants.variant,(e,t)=>[e,{input:t}])},defaultVariants:{size:"md",variant:"outline"}};var nf=lo("pinInput").parts("root","label","input","control"),of=(nf.build(),e=>e.ids?.root??`pin-input:${e.id}`),af=e=>{const t=`input[data-ownedby=${CSS.escape(of(e))}]`;return Cn((e=>e.getById(of(e)))(e),t)},sf=(e,t)=>af(e)[t],lf=e=>e.getById((e=>e.ids?.hiddenInput??`pin-input:${e.id}:hidden`)(e)),cf=(e,t)=>{e.value=t,e.setAttribute("value",t)},{choose:df,createMachine:uf}={guards:{and:(...e)=>function(t){return e.every(e=>t.guard(e))},or:(...e)=>function(t){return e.some(e=>t.guard(e))},not:e=>function(t){return!t.guard(e)}},createMachine:e=>e,choose:e=>function({choose:t}){return t(e)?.actions}};function pf(e,t){let r=t;return e[0]===t[0]?r=t[1]:e[0]===t[1]&&(r=t[0]),r.split("")[r.length-1]}function hf(e,t){return Array.from({length:t}).fill("").map((t,r)=>e[r]||t)}uf({props:({props:e})=>({placeholder:"○",otp:!1,type:"numeric",defaultValue:e.count?hf([],e.count):[],...e,translations:{inputLabel:(e,t)=>`pin code ${e+1} of ${t}`,...e.translations}}),initialState:()=>"idle",context:({prop:e,bindable:t})=>({value:t(()=>({value:e("value"),defaultValue:e("defaultValue"),isEqual:kt,onChange(t){e("onValueChange")?.({value:t,valueAsString:t.join("")})}})),focusedIndex:t(()=>({sync:!0,defaultValue:-1})),count:t(()=>({defaultValue:e("count")}))}),computed:{_value:({context:e})=>hf(e.get("value"),e.get("count")),valueLength:({computed:e})=>e("_value").length,filledValueLength:({computed:e})=>e("_value").filter(e=>""!==e?.trim()).length,isValueComplete:({computed:e})=>e("valueLength")===e("filledValueLength"),valueAsString:({computed:e})=>e("_value").join(""),focusedValue:({computed:e,context:t})=>e("_value")[t.get("focusedIndex")]||""},entry:df([{guard:"autoFocus",actions:["setInputCount","setFocusIndexToFirst"]},{actions:["setInputCount"]}]),watch({action:e,track:t,context:r,computed:n}){t([()=>r.get("focusedIndex")],()=>{e(["focusInput","selectInputIfNeeded"])}),t([()=>r.get("value").join(",")],()=>{e(["syncInputElements","dispatchInputEvent"])}),t([()=>n("isValueComplete")],()=>{e(["invokeOnComplete","blurFocusedInputIfNeeded"])})},on:{"VALUE.SET":[{guard:"hasIndex",actions:["setValueAtIndex"]},{actions:["setValue"]}],"VALUE.CLEAR":{actions:["clearValue","setFocusIndexToFirst"]}},states:{idle:{on:{"INPUT.FOCUS":{target:"focused",actions:["setFocusedIndex"]}}},focused:{on:{"INPUT.CHANGE":{actions:["setFocusedValue","syncInputValue","setNextFocusedIndex"]},"INPUT.PASTE":{actions:["setPastedValue","setLastValueFocusIndex"]},"INPUT.FOCUS":{actions:["setFocusedIndex"]},"INPUT.BLUR":{target:"idle",actions:["clearFocusedIndex"]},"INPUT.DELETE":{guard:"hasValue",actions:["clearFocusedValue"]},"INPUT.ARROW_LEFT":{actions:["setPrevFocusedIndex"]},"INPUT.ARROW_RIGHT":{actions:["setNextFocusedIndex"]},"INPUT.BACKSPACE":[{guard:"hasValue",actions:["clearFocusedValue"]},{actions:["setPrevFocusedIndex","clearFocusedValue"]}],"INPUT.ENTER":{guard:"isValueComplete",actions:["requestFormSubmit"]},"VALUE.INVALID":{actions:["invokeOnInvalid"]}}}},implementations:{guards:{autoFocus:({prop:e})=>!!e("autoFocus"),hasValue:({context:e})=>""!==e.get("value")[e.get("focusedIndex")],isValueComplete:({computed:e})=>e("isValueComplete"),hasIndex:({event:e})=>void 0!==e.index},actions:{dispatchInputEvent({computed:e,scope:t}){Kr(lf(t),{value:e("valueAsString")})},setInputCount({scope:e,context:t,prop:r}){if(r("count"))return;const n=af(e);t.set("count",n.length)},focusInput({context:e,scope:t}){const r=e.get("focusedIndex");-1!==r&&sf(t,r)?.focus({preventScroll:!0})},selectInputIfNeeded({context:e,prop:t,scope:r}){const n=e.get("focusedIndex");t("selectOnFocus")&&-1!==n&&ln(()=>{sf(r,n)?.select()})},invokeOnComplete({computed:e,prop:t}){e("isValueComplete")&&t("onValueComplete")?.({value:e("_value"),valueAsString:e("valueAsString")})},invokeOnInvalid({context:e,event:t,prop:r}){r("onValueInvalid")?.({value:t.value,index:e.get("focusedIndex")})},clearFocusedIndex({context:e}){e.set("focusedIndex",-1)},setFocusedIndex({context:e,event:t}){e.set("focusedIndex",t.index)},setValue({context:e,event:t}){const r=hf(t.value,e.get("count"));e.set("value",r)},setFocusedValue({context:e,event:t,computed:r,flush:n}){const o=r("focusedValue"),a=e.get("focusedIndex"),i=pf(o,t.value);n(()=>{e.set("value",Qt(r("_value"),a,i))})},revertInputValue({context:e,computed:t,scope:r}){const n=sf(r,e.get("focusedIndex"));cf(n,t("focusedValue"))},syncInputValue({context:e,event:t,scope:r}){const n=e.get("value"),o=sf(r,t.index);cf(o,n[t.index])},syncInputElements({context:e,scope:t}){const r=af(t),n=e.get("value");r.forEach((e,t)=>{cf(e,n[t])})},setPastedValue({context:e,event:t,computed:r,flush:n}){ln(()=>{const o=r("valueAsString"),a=e.get("focusedIndex"),i=r("valueLength"),s=r("filledValueLength"),l=Math.min(a,s),c=hf(`${l>0?o.substring(0,a):""}${t.value.substring(0,i-l)}`.split(""),i);n(()=>{e.set("value",c)})})},setValueAtIndex({context:e,event:t,computed:r}){const n=pf(r("focusedValue"),t.value);e.set("value",Qt(r("_value"),t.index,n))},clearValue({context:e}){const t=Array.from({length:e.get("count")}).fill("");e.set("value",t)},clearFocusedValue({context:e,computed:t}){const r=e.get("focusedIndex");-1!==r&&e.set("value",Qt(t("_value"),r,""))},setFocusIndexToFirst({context:e}){e.set("focusedIndex",0)},setNextFocusedIndex({context:e,computed:t}){e.set("focusedIndex",Math.min(e.get("focusedIndex")+1,t("valueLength")-1))},setPrevFocusedIndex({context:e}){e.set("focusedIndex",Math.max(e.get("focusedIndex")-1,0))},setLastValueFocusIndex({context:e,computed:t}){ln(()=>{e.set("focusedIndex",Math.min(t("filledValueLength"),t("valueLength")-1))})},blurFocusedInputIfNeeded({context:e,prop:t,scope:r}){t("blurOnComplete")&&ln(()=>{sf(r,e.get("focusedIndex"))?.blur()})},requestFormSubmit({computed:e,prop:t,scope:r}){if(!t("name")||!e("isValueComplete"))return;const n=lf(r);n?.form?.requestSubmit()}}}}),or(Qn()(["autoFocus","blurOnComplete","count","defaultValue","dir","disabled","form","getRootNode","id","ids","invalid","mask","name","onValueChange","onValueComplete","onValueInvalid","otp","pattern","placeholder","readOnly","required","selectOnFocus","translations","type","value"]));const{variants:gf,defaultVariants:ff}=gs,mf={className:"chakra-pin-input",slots:nf.keys(),base:{input:{...gs.base,textAlign:"center",width:"var(--input-height)"},control:{display:"inline-flex",gap:"2",isolation:"isolate"}},variants:{size:Cg(gf.size,(e,t)=>[e,{input:{...t,px:"1"}}]),variant:Cg(gf.variant,(e,t)=>[e,{input:t}]),attached:{true:{control:{gap:"0",spaceX:"-1px"},input:{_notFirst:{borderStartRadius:"0"},_notLast:{borderEndRadius:"0"},_focusVisible:{zIndex:"1"}}}}},defaultVariants:ff},vf={className:"chakra-popover",slots:gh.keys(),base:{content:{position:"relative",display:"flex",flexDirection:"column",textStyle:"sm","--popover-bg":"colors.bg.panel",bg:"var(--popover-bg)",boxShadow:"lg","--popover-size":"sizes.xs","--popover-mobile-size":"calc(100dvw - 1rem)",width:{base:"min(var(--popover-mobile-size), var(--popover-size))",sm:"var(--popover-size)"},borderRadius:"l3","--popover-z-index":"zIndex.popover",zIndex:"calc(var(--popover-z-index) + var(--layer-index, 0))",outline:"0",transformOrigin:"var(--transform-origin)",maxHeight:"var(--available-height)",_open:{animationStyle:"scale-fade-in",animationDuration:"fast"},_closed:{animationStyle:"scale-fade-out",animationDuration:"faster"}},header:{paddingInline:"var(--popover-padding)",paddingTop:"var(--popover-padding)"},body:{padding:"var(--popover-padding)",flex:"1"},footer:{display:"flex",alignItems:"center",paddingInline:"var(--popover-padding)",paddingBottom:"var(--popover-padding)"},arrow:{"--arrow-size":"sizes.3","--arrow-background":"var(--popover-bg)"},arrowTip:{borderTopWidth:"1px",borderInlineStartWidth:"1px"}},variants:{size:{xs:{content:{"--popover-padding":"spacing.3"}},sm:{content:{"--popover-padding":"spacing.4"}},md:{content:{"--popover-padding":"spacing.5"}},lg:{content:{"--popover-padding":"spacing.6"}}}},defaultVariants:{size:"md"}};var bf=lo("progress").parts("root","label","track","range","valueText","view","circle","circleTrack","circleRange");bf.build(),jn(({prop:e})=>[e("locale"),e("formatOptions")],(e,t)=>new Intl.NumberFormat(e,t));or(Qn()(["dir","getRootNode","id","ids","max","min","orientation","translations","value","onValueChange","defaultValue","formatOptions","locale"]));const xf={slots:bf.keys(),className:"chakra-progress",base:{root:{textStyle:"sm",position:"relative"},track:{overflow:"hidden",position:"relative"},range:{display:"flex",alignItems:"center",justifyContent:"center",transitionProperty:"width, height",transitionDuration:"slow",height:"100%",bgColor:"var(--track-color)",_indeterminate:{"--animate-from-x":"-40%","--animate-to-x":"100%",position:"absolute",willChange:"left",minWidth:"50%",animation:"position 1s ease infinite normal none running",backgroundImage:"linear-gradient(to right, transparent 0%, var(--track-color) 50%, transparent 100%)"}},label:{display:"inline-flex",fontWeight:"medium",alignItems:"center",gap:"1"},valueText:{textStyle:"xs",lineHeight:"1",fontWeight:"medium"}},variants:{variant:{outline:{track:{shadow:"inset",bgColor:"bg.muted"},range:{bgColor:"colorPalette.solid"}},subtle:{track:{bgColor:"colorPalette.muted"},range:{bgColor:"colorPalette.solid/72"}}},shape:{square:{},rounded:{track:{borderRadius:"l1"}},full:{track:{borderRadius:"full"}}},striped:{true:{range:{backgroundImage:"linear-gradient(45deg, var(--stripe-color) 25%, transparent 25%, transparent 50%, var(--stripe-color) 50%, var(--stripe-color) 75%, transparent 75%, transparent)",backgroundSize:"var(--stripe-size) var(--stripe-size)","--stripe-size":"1rem","--stripe-color":{_light:"rgba(255, 255, 255, 0.3)",_dark:"rgba(0, 0, 0, 0.3)"}}}},animated:{true:{range:{"--animate-from":"var(--stripe-size)",animation:"bg-position 1s linear infinite"}}},size:{xs:{track:{h:"1.5"}},sm:{track:{h:"2"}},md:{track:{h:"2.5"}},lg:{track:{h:"3"}},xl:{track:{h:"4"}}}},defaultVariants:{variant:"outline",size:"md",shape:"rounded"}},yf={className:"chakra-progress-circle",slots:bf.keys(),base:{root:{display:"inline-flex",textStyle:"sm",position:"relative"},circle:{_indeterminate:{animation:"spin 2s linear infinite"}},circleTrack:{"--track-color":"colors.colorPalette.muted",stroke:"var(--track-color)"},circleRange:{stroke:"colorPalette.solid",transitionProperty:"stroke-dashoffset, stroke-dasharray",transitionDuration:"0.6s",_indeterminate:{animation:"circular-progress 1.5s linear infinite"}},label:{display:"inline-flex"},valueText:{lineHeight:"1",fontWeight:"medium",letterSpacing:"tight",fontVariantNumeric:"tabular-nums"}},variants:{size:{xs:{circle:{"--size":"24px","--thickness":"4px"},valueText:{textStyle:"2xs"}},sm:{circle:{"--size":"32px","--thickness":"5px"},valueText:{textStyle:"2xs"}},md:{circle:{"--size":"40px","--thickness":"6px"},valueText:{textStyle:"xs"}},lg:{circle:{"--size":"48px","--thickness":"7px"},valueText:{textStyle:"sm"}},xl:{circle:{"--size":"64px","--thickness":"8px"},valueText:{textStyle:"sm"}}}},defaultVariants:{size:"md"}};var wf=(e=>(e[e.Border=-1]="Border",e[e.Data=0]="Data",e[e.Function=1]="Function",e[e.Position=2]="Position",e[e.Timing=3]="Timing",e[e.Alignment=4]="Alignment",e))(wf||{}),Cf=Object.defineProperty,kf=(e,t,r)=>(((e,t,r)=>{t in e?Cf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(e,"symbol"!=typeof t?t+"":t,r),r);const Sf=[1,0],Ef=[2,3],If=[3,2],Pf={L:[0,1],M:Sf,Q:Ef,H:If},Rf=/^[0-9]*$/,Tf=/^[A-Z0-9 $%*+.\/:-]*$/,Of="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",Nf=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],Vf=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]];class Af{constructor(e,t,r,n){if(this.version=e,this.ecc=t,kf(this,"size"),kf(this,"mask"),kf(this,"modules",[]),kf(this,"types",[]),e<1||e>40)throw new RangeError("Version value out of range");if(n<-1||n>7)throw new RangeError("Mask value out of range");this.size=4*e+17;const o=Array.from({length:this.size},()=>!1);for(let e=0;e<this.size;e++)this.modules.push(o.slice()),this.types.push(o.map(()=>0));this.drawFunctionPatterns();const a=this.addEccAndInterleave(r);if(this.drawCodewords(a),-1===n){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);const r=this.getPenaltyScore();r<e&&(n=t,e=r),this.applyMask(t)}}this.mask=n,this.applyMask(n),this.drawFormatBits(n)}getModule(e,t){return e>=0&&e<this.size&&t>=0&&t<this.size&&this.modules[t][e]}drawFunctionPatterns(){for(let e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0,wf.Timing),this.setFunctionModule(e,6,e%2==0,wf.Timing);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const e=this.getAlignmentPatternPositions(),t=e.length;for(let r=0;r<t;r++)for(let n=0;n<t;n++)0===r&&0===n||0===r&&n===t-1||r===t-1&&0===n||this.drawAlignmentPattern(e[r],e[n]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){const t=this.ecc[1]<<3|e;let r=t;for(let e=0;e<10;e++)r=r<<1^1335*(r>>>9);const n=21522^(t<<10|r);for(let e=0;e<=5;e++)this.setFunctionModule(8,e,_f(n,e));this.setFunctionModule(8,7,_f(n,6)),this.setFunctionModule(8,8,_f(n,7)),this.setFunctionModule(7,8,_f(n,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,_f(n,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,_f(n,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,_f(n,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^7973*(e>>>11);const t=this.version<<12|e;for(let e=0;e<18;e++){const r=_f(t,e),n=this.size-11+e%3,o=Math.floor(e/3);this.setFunctionModule(n,o,r),this.setFunctionModule(o,n,r)}}drawFinderPattern(e,t){for(let r=-4;r<=4;r++)for(let n=-4;n<=4;n++){const o=Math.max(Math.abs(n),Math.abs(r)),a=e+n,i=t+r;a>=0&&a<this.size&&i>=0&&i<this.size&&this.setFunctionModule(a,i,2!==o&&4!==o,wf.Position)}}drawAlignmentPattern(e,t){for(let r=-2;r<=2;r++)for(let n=-2;n<=2;n++)this.setFunctionModule(e+n,t+r,1!==Math.max(Math.abs(n),Math.abs(r)),wf.Alignment)}setFunctionModule(e,t,r,n=wf.Function){this.modules[t][e]=r,this.types[t][e]=n}addEccAndInterleave(e){const t=this.version,r=this.ecc;if(e.length!==Yf(t,r))throw new RangeError("Invalid argument");const n=Vf[r[0]][t],o=Nf[r[0]][t],a=Math.floor(Kf(t)/8),i=n-a%n,s=Math.floor(a/n),l=[],c=function(e){if(e<1||e>255)throw new RangeError("Degree out of range");const t=[];for(let r=0;r<e-1;r++)t.push(0);t.push(1);let r=1;for(let n=0;n<e;n++){for(let e=0;e<t.length;e++)t[e]=Zf(t[e],r),e+1<t.length&&(t[e]^=t[e+1]);r=Zf(r,2)}return t}(o);for(let t=0,r=0;t<n;t++){const n=e.slice(r,r+s-o+(t<i?0:1));r+=n.length;const a=Xf(n,c);t<i&&n.push(0),l.push(n.concat(a))}const d=[];for(let e=0;e<l[0].length;e++)l.forEach((t,r)=>{(e!==s-o||r>=i)&&d.push(t[e])});return d}drawCodewords(e){if(e.length!==Math.floor(Kf(this.version)/8))throw new RangeError("Invalid argument");let t=0;for(let r=this.size-1;r>=1;r-=2){6===r&&(r=5);for(let n=0;n<this.size;n++)for(let o=0;o<2;o++){const a=r-o,i=r+1&2?n:this.size-1-n;!this.types[i][a]&&t<8*e.length&&(this.modules[i][a]=_f(e[t>>>3],7-(7&t)),t++)}}}applyMask(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(let t=0;t<this.size;t++)for(let r=0;r<this.size;r++){let n;switch(e){case 0:n=(r+t)%2==0;break;case 1:n=t%2==0;break;case 2:n=r%3==0;break;case 3:n=(r+t)%3==0;break;case 4:n=(Math.floor(r/3)+Math.floor(t/2))%2==0;break;case 5:n=r*t%2+r*t%3==0;break;case 6:n=(r*t%2+r*t%3)%2==0;break;case 7:n=((r+t)%2+r*t%3)%2==0;break;default:throw new Error("Unreachable")}!this.types[t][r]&&n&&(this.modules[t][r]=!this.modules[t][r])}}getPenaltyScore(){let e=0;for(let t=0;t<this.size;t++){let r=!1,n=0;const o=[0,0,0,0,0,0,0];for(let a=0;a<this.size;a++)this.modules[t][a]===r?(n++,5===n?e+=3:n>5&&e++):(this.finderPenaltyAddHistory(n,o),r||(e+=40*this.finderPenaltyCountPatterns(o)),r=this.modules[t][a],n=1);e+=40*this.finderPenaltyTerminateAndCount(r,n,o)}for(let t=0;t<this.size;t++){let r=!1,n=0;const o=[0,0,0,0,0,0,0];for(let a=0;a<this.size;a++)this.modules[a][t]===r?(n++,5===n?e+=3:n>5&&e++):(this.finderPenaltyAddHistory(n,o),r||(e+=40*this.finderPenaltyCountPatterns(o)),r=this.modules[a][t],n=1);e+=40*this.finderPenaltyTerminateAndCount(r,n,o)}for(let t=0;t<this.size-1;t++)for(let r=0;r<this.size-1;r++){const n=this.modules[t][r];n===this.modules[t][r+1]&&n===this.modules[t+1][r]&&n===this.modules[t+1][r+1]&&(e+=3)}let t=0;for(const e of this.modules)t=e.reduce((e,t)=>e+(t?1:0),t);const r=this.size*this.size;return e+=10*(Math.ceil(Math.abs(20*t-10*r)/r)-1),e}getAlignmentPatternPositions(){if(1===this.version)return[];{const e=Math.floor(this.version/7)+2,t=32===this.version?26:2*Math.ceil((4*this.version+4)/(2*e-2)),r=[6];for(let n=this.size-7;r.length<e;n-=t)r.splice(1,0,n);return r}}finderPenaltyCountPatterns(e){const t=e[1],r=t>0&&e[2]===t&&e[3]===3*t&&e[4]===t&&e[5]===t;return(r&&e[0]>=4*t&&e[6]>=t?1:0)+(r&&e[6]>=4*t&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,r){return e&&(this.finderPenaltyAddHistory(t,r),t=0),t+=this.size,this.finderPenaltyAddHistory(t,r),this.finderPenaltyCountPatterns(r)}finderPenaltyAddHistory(e,t){0===t[0]&&(e+=this.size),t.pop(),t.unshift(e)}}function zf(e,t,r){if(t<0||t>31||e>>>t!==0)throw new RangeError("Value out of range");for(let n=t-1;n>=0;n--)r.push(e>>>n&1)}function _f(e,t){return!!(e>>>t&1)}class Ff{constructor(e,t,r){if(this.mode=e,this.numChars=t,this.bitData=r,t<0)throw new RangeError("Invalid argument");this.bitData=r.slice()}getData(){return this.bitData.slice()}}const Lf=[1,10,12,14],Df=[2,9,11,13],jf=[4,8,16,16];function Mf(e,t){return e[Math.floor((t+7)/17)+1]}function Wf(e){const t=[];for(const r of e)zf(r,8,t);return new Ff(jf,e.length,t)}function $f(e){if(!Hf(e))throw new RangeError("String contains non-numeric characters");const t=[];for(let r=0;r<e.length;){const n=Math.min(e.length-r,3);zf(Number.parseInt(e.substring(r,r+n),10),3*n+1,t),r+=n}return new Ff(Lf,e.length,t)}function Bf(e){if(!Gf(e))throw new RangeError("String contains unencodable characters in alphanumeric mode");const t=[];let r;for(r=0;r+2<=e.length;r+=2){let n=45*Of.indexOf(e.charAt(r));n+=Of.indexOf(e.charAt(r+1)),zf(n,11,t)}return r<e.length&&zf(Of.indexOf(e.charAt(r)),6,t),new Ff(Df,e.length,t)}function Hf(e){return Rf.test(e)}function Gf(e){return Tf.test(e)}function Uf(e,t){let r=0;for(const n of e){const e=Mf(n.mode,t);if(n.numChars>=1<<e)return Number.POSITIVE_INFINITY;r+=4+e+n.bitData.length}return r}function qf(e){e=encodeURI(e);const t=[];for(let r=0;r<e.length;r++)"%"!==e.charAt(r)?t.push(e.charCodeAt(r)):(t.push(Number.parseInt(e.substring(r+1,r+3),16)),r+=2);return t}function Kf(e){if(e<1||e>40)throw new RangeError("Version number out of range");let t=(16*e+128)*e+64;if(e>=2){const r=Math.floor(e/7)+2;t-=(25*r-10)*r-55,e>=7&&(t-=36)}return t}function Yf(e,t){return Math.floor(Kf(e)/8)-Nf[t[0]][e]*Vf[t[0]][e]}function Xf(e,t){const r=t.map(e=>0);for(const n of e){const e=n^r.shift();r.push(0),t.forEach((t,n)=>r[n]^=Zf(t,e))}return r}function Zf(e,t){if(e>>>8!=0||t>>>8!=0)throw new RangeError("Byte out of range");let r=0;for(let n=7;n>=0;n--)r=r<<1^285*(r>>>7),r^=(t>>>n&1)*e;return r}var Jf=lo("qr-code").parts("root","frame","pattern","overlay","downloadTrigger");Jf.build();jn(({context:e,prop:t})=>[e.get("value"),t("encoding")],(e,t)=>function(e,t){const{ecc:r="L",boostEcc:n=!1,minVersion:o=1,maxVersion:a=40,maskPattern:i=-1,border:s=1}=t||{},l="string"==typeof e?""===(c=e)?[]:Hf(c)?[$f(c)]:Gf(c)?[Bf(c)]:[Wf(qf(c))]:Array.isArray(e)?[Wf(e)]:void 0;var c;if(!l)throw new Error("uqr only supports encoding string and binary data, but got: "+typeof e);const d=function(e,t,r=1,n=40,o=-1,a=!0){if(!(1<=r&&r<=n&&n<=40)||o<-1||o>7)throw new RangeError("Invalid value");let i,s;for(i=r;;i++){const r=8*Yf(i,t),o=Uf(e,i);if(o<=r){s=o;break}if(i>=n)throw new RangeError("Data too long")}for(const e of[Sf,Ef,If])a&&s<=8*Yf(i,e)&&(t=e);const l=[];for(const t of e){zf(t.mode[0],4,l),zf(t.numChars,Mf(t.mode,i),l);for(const e of t.getData())l.push(e)}const c=8*Yf(i,t);zf(0,Math.min(4,c-l.length),l),zf(0,(8-l.length%8)%8,l);for(let e=236;l.length<c;e^=253)zf(e,8,l);const d=Array.from({length:Math.ceil(l.length/8)},()=>0);return l.forEach((e,t)=>d[t>>>3]|=e<<7-(7&t)),new Af(i,t,d,o)}(l,Pf[r],o,a,i,n),u=function(e,t=1){if(!t)return e;const{size:r}=e,n=r+2*t;e.size=n,e.data.forEach(e=>{for(let r=0;r<t;r++)e.unshift(!1),e.push(!1)});for(let r=0;r<t;r++)e.data.unshift(Array.from({length:n},e=>!1)),e.data.push(Array.from({length:n},e=>!1));const o=wf.Border;e.types.forEach(e=>{for(let r=0;r<t;r++)e.unshift(o),e.push(o)});for(let r=0;r<t;r++)e.types.unshift(Array.from({length:n},e=>o)),e.types.push(Array.from({length:n},e=>o));return e}({version:d.version,maskPattern:d.mask,size:d.size,data:d.modules,types:d.types},s);return t?.invert&&(u.data=u.data.map(e=>e.map(e=>!e))),t?.onEncoded?.(u),u}(e,t)),or(Qn()(["ids","defaultValue","value","id","encoding","dir","getRootNode","onValueChange","pixelSize"]));const Qf={slots:Jf.keys(),className:"chakra-qr-code",base:{root:{position:"relative",width:"fit-content","--qr-code-overlay-size":"calc(var(--qr-code-size) / 3)"},frame:{width:"var(--qr-code-size)",height:"var(--qr-code-size)",fill:"currentColor"},overlay:{display:"flex",alignItems:"center",justifyContent:"center",width:"var(--qr-code-overlay-size)",height:"var(--qr-code-overlay-size)",padding:"1",bg:"bg",rounded:"l1"}},variants:{size:{"2xs":{root:{"--qr-code-size":"40px"}},xs:{root:{"--qr-code-size":"64px"}},sm:{root:{"--qr-code-size":"80px"}},md:{root:{"--qr-code-size":"120px"}},lg:{root:{"--qr-code-size":"160px"}},xl:{root:{"--qr-code-size":"200px"}},"2xl":{root:{"--qr-code-size":"240px"}},full:{root:{"--qr-code-size":"100%"}}}},defaultVariants:{size:"md"}},em={className:"chakra-radio-card",slots:mh.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",isolation:"isolate"},item:{flex:"1",display:"flex",flexDirection:"column",userSelect:"none",position:"relative",borderRadius:"l2",_focus:{bg:"colorPalette.muted/20"},_disabled:{opacity:"0.8",borderColor:"border.disabled"},_checked:{zIndex:"1"}},label:{display:"inline-flex",fontWeight:"medium",textStyle:"sm",_disabled:{opacity:"0.5"}},itemText:{fontWeight:"medium",flex:"1"},itemDescription:{opacity:"0.64",textStyle:"sm"},itemControl:{display:"inline-flex",flex:"1",pos:"relative",rounded:"inherit",justifyContent:"var(--radio-card-justify)",alignItems:"var(--radio-card-align)",_disabled:{bg:"bg.muted"}},itemIndicator:fs.base,itemAddon:{roundedBottom:"inherit",_disabled:{color:"fg.muted"}},itemContent:{display:"flex",flexDirection:"column",flex:"1",gap:"1",justifyContent:"var(--radio-card-justify)",alignItems:"var(--radio-card-align)"}},variants:{size:{sm:{item:{textStyle:"sm"},itemControl:{padding:"3",gap:"1.5"},itemAddon:{px:"3",py:"1.5",borderTopWidth:"1px"},itemIndicator:fs.variants?.size.sm},md:{item:{textStyle:"sm"},itemControl:{padding:"4",gap:"2.5"},itemAddon:{px:"4",py:"2",borderTopWidth:"1px"},itemIndicator:fs.variants?.size.md},lg:{item:{textStyle:"md"},itemControl:{padding:"4",gap:"3.5"},itemAddon:{px:"4",py:"2",borderTopWidth:"1px"},itemIndicator:fs.variants?.size.lg}},variant:{surface:{item:{borderWidth:"1px",_checked:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"colorPalette.muted"}},itemIndicator:fs.variants?.variant.solid},subtle:{item:{bg:"bg.muted"},itemControl:{_checked:{bg:"colorPalette.muted",color:"colorPalette.fg"}},itemIndicator:fs.variants?.variant.outline},outline:{item:{borderWidth:"1px",_checked:{boxShadow:"0 0 0 1px var(--shadow-color)",boxShadowColor:"colorPalette.solid",borderColor:"colorPalette.solid"}},itemIndicator:fs.variants?.variant.solid},solid:{item:{borderWidth:"1px",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},itemIndicator:fs.variants?.variant.inverted}},justify:{start:{item:{"--radio-card-justify":"flex-start"}},end:{item:{"--radio-card-justify":"flex-end"}},center:{item:{"--radio-card-justify":"center"}}},align:{start:{item:{"--radio-card-align":"flex-start"},itemControl:{textAlign:"start"}},end:{item:{"--radio-card-align":"flex-end"},itemControl:{textAlign:"end"}},center:{item:{"--radio-card-align":"center"},itemControl:{textAlign:"center"}}},orientation:{vertical:{itemControl:{flexDirection:"column"}},horizontal:{itemControl:{flexDirection:"row"}}}},defaultVariants:{size:"md",variant:"outline",align:"start",orientation:"horizontal"}},tm={className:"chakra-radio-group",slots:fh.keys(),base:{item:{display:"inline-flex",alignItems:"center",position:"relative",fontWeight:"medium",_disabled:{cursor:"disabled"}},itemControl:fs.base,label:{userSelect:"none",textStyle:"sm",_disabled:{opacity:"0.5"}}},variants:{variant:{outline:{itemControl:fs.variants?.variant?.outline},subtle:{itemControl:fs.variants?.variant?.subtle},solid:{itemControl:fs.variants?.variant?.solid}},size:{xs:{item:{textStyle:"xs",gap:"1.5"},itemControl:fs.variants?.size?.xs},sm:{item:{textStyle:"sm",gap:"2"},itemControl:fs.variants?.size?.sm},md:{item:{textStyle:"sm",gap:"2.5"},itemControl:fs.variants?.size?.md},lg:{item:{textStyle:"md",gap:"3"},itemControl:fs.variants?.size?.lg}}},defaultVariants:{size:"md",variant:"solid"}},rm={className:"chakra-rating-group",slots:vh.keys(),base:{root:{display:"inline-flex"},control:{display:"inline-flex",alignItems:"center"},item:{display:"inline-flex",alignItems:"center",justifyContent:"center",userSelect:"none"},itemIndicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"1em",height:"1em",position:"relative","--clip-path":{base:"inset(0 50% 0 0)",_rtl:"inset(0 0 0 50%)"},_icon:{stroke:"currentColor",width:"100%",height:"100%",display:"inline-block",flexShrink:0,position:"absolute",left:0,top:0},"& [data-bg]":{color:"bg.emphasized"},"& [data-fg]":{color:"transparent"},"&[data-highlighted]:not([data-half])":{"& [data-fg]":{color:"colorPalette.solid"}},"&[data-half]":{"& [data-fg]":{color:"colorPalette.solid",clipPath:"var(--clip-path)"}}}},variants:{size:{xs:{item:{textStyle:"sm"}},sm:{item:{textStyle:"md"}},md:{item:{textStyle:"xl"}},lg:{item:{textStyle:"2xl"}}}},defaultVariants:{size:"md"}},nm=ep.rename("segment-group"),om=(nm.build(),{className:"chakra-segment-group",slots:nm.keys(),base:{root:{"--segment-radius":"radii.l2",borderRadius:"l2",display:"inline-flex",boxShadow:"inset",minW:"max-content",textAlign:"center",position:"relative",isolation:"isolate",bg:"bg.muted",_vertical:{flexDirection:"column"}},item:{display:"flex",alignItems:"center",justifyContent:"center",userSelect:"none",fontSize:"sm",position:"relative",color:"fg",borderRadius:"var(--segment-radius)",_disabled:{opacity:"0.5"},"&:has(input:focus-visible)":{focusRing:"outside"},_before:{content:'""',position:"absolute",bg:"border",transition:"opacity 0.2s"},_horizontal:{_before:{insetInlineStart:0,insetBlock:"1.5",width:"1px"}},_vertical:{_before:{insetBlockStart:0,insetInline:"1.5",height:"1px"}},"& + &[data-state=checked], &[data-state=checked] + &, &:first-of-type":{_before:{opacity:"0"}},"&[data-state=checked][data-ssr]":{shadow:"sm",bg:"bg",borderRadius:"var(--segment-radius)"}},indicator:{shadow:"sm",pos:"absolute",bg:{_light:"bg",_dark:"bg.emphasized"},width:"var(--width)",height:"var(--height)",top:"var(--top)",left:"var(--left)",zIndex:-1,borderRadius:"var(--segment-radius)"}},variants:{size:{xs:{item:{textStyle:"xs",px:"3",gap:"1",height:"6"}},sm:{item:{textStyle:"sm",px:"4",gap:"2",height:"8"}},md:{item:{textStyle:"sm",px:"4",gap:"2",height:"10"}},lg:{item:{textStyle:"md",px:"4.5",gap:"3",height:"11"}}}},defaultVariants:{size:"md"}}),am={className:"chakra-slider",slots:yh.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1",textStyle:"sm",position:"relative",isolation:"isolate",touchAction:"none"},label:{fontWeight:"medium",textStyle:"sm"},control:{display:"inline-flex",alignItems:"center",position:"relative"},track:{overflow:"hidden",borderRadius:"full",flex:"1"},range:{width:"inherit",height:"inherit",_disabled:{bg:"border.emphasized!"}},markerGroup:{position:"absolute!",zIndex:"1"},marker:{"--marker-bg":{base:"white",_underValue:"colors.bg"},display:"flex",alignItems:"center",gap:"calc(var(--slider-thumb-size) / 2)",color:"fg.muted",textStyle:"xs"},markerIndicator:{width:"var(--slider-marker-size)",height:"var(--slider-marker-size)",borderRadius:"full",bg:"var(--marker-bg)"},thumb:{width:"var(--slider-thumb-size)",height:"var(--slider-thumb-size)",display:"flex",alignItems:"center",justifyContent:"center",outline:0,zIndex:"2",borderRadius:"full",_focusVisible:{ring:"2px",ringColor:"colorPalette.focusRing",ringOffset:"2px",ringOffsetColor:"bg"}}},variants:{size:{sm:{root:{"--slider-thumb-size":"sizes.4","--slider-track-size":"sizes.1.5","--slider-marker-center":"6px","--slider-marker-size":"sizes.1","--slider-marker-inset":"3px"}},md:{root:{"--slider-thumb-size":"sizes.5","--slider-track-size":"sizes.2","--slider-marker-center":"8px","--slider-marker-size":"sizes.1","--slider-marker-inset":"4px"}},lg:{root:{"--slider-thumb-size":"sizes.6","--slider-track-size":"sizes.2.5","--slider-marker-center":"9px","--slider-marker-size":"sizes.1.5","--slider-marker-inset":"5px"}}},variant:{outline:{track:{shadow:"inset",bg:"bg.emphasized/72"},range:{bg:"colorPalette.solid"},thumb:{borderWidth:"2px",borderColor:"colorPalette.solid",bg:"bg",_disabled:{bg:"border.emphasized",borderColor:"border.emphasized"}}},solid:{track:{bg:"colorPalette.subtle",_disabled:{bg:"bg.muted"}},range:{bg:"colorPalette.solid"},thumb:{bg:"colorPalette.solid",_disabled:{bg:"border.emphasized"}}}},orientation:{vertical:{root:{display:"inline-flex"},control:{flexDirection:"column",height:"100%",minWidth:"var(--slider-thumb-size)","&[data-has-mark-label], &:has(.chakra-slider__marker-label)":{marginEnd:"4"}},track:{width:"var(--slider-track-size)"},thumb:{left:"50%",translate:"-50% 0"},markerGroup:{insetStart:"var(--slider-marker-center)",insetBlock:"var(--slider-marker-inset)"},marker:{flexDirection:"row"}},horizontal:{control:{flexDirection:"row",width:"100%",minHeight:"var(--slider-thumb-size)","&[data-has-mark-label], &:has(.chakra-slider__marker-label)":{marginBottom:"4"}},track:{height:"var(--slider-track-size)"},thumb:{top:"50%",translate:"0 -50%"},markerGroup:{top:"var(--slider-marker-center)",insetInline:"var(--slider-marker-inset)"},marker:{flexDirection:"column"}}}},defaultVariants:{size:"md",variant:"outline",orientation:"horizontal"}},im={className:"chakra-stat",slots:wh.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1",position:"relative",flex:"1"},label:{display:"inline-flex",gap:"1.5",alignItems:"center",color:"fg.muted",textStyle:"sm"},helpText:{color:"fg.muted",textStyle:"xs"},valueUnit:{color:"fg.muted",textStyle:"xs",fontWeight:"initial",letterSpacing:"initial"},valueText:{verticalAlign:"baseline",fontWeight:"semibold",letterSpacing:"tight",fontFeatureSettings:"pnum",fontVariantNumeric:"proportional-nums",display:"inline-flex",gap:"1"},indicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",marginEnd:1,"& :where(svg)":{w:"1em",h:"1em"},"&[data-type=up]":{color:"fg.success"},"&[data-type=down]":{color:"fg.error"}}},variants:{size:{sm:{valueText:{textStyle:"xl"}},md:{valueText:{textStyle:"2xl"}},lg:{valueText:{textStyle:"3xl"}}}},defaultVariants:{size:"md"}},sm={className:"chakra-status",slots:Ch.keys(),base:{root:{display:"inline-flex",alignItems:"center",gap:"2"},indicator:{width:"0.64em",height:"0.64em",flexShrink:0,borderRadius:"full",forcedColorAdjust:"none",bg:"colorPalette.solid"}},variants:{size:{sm:{root:{textStyle:"xs"}},md:{root:{textStyle:"sm"}},lg:{root:{textStyle:"md"}}}},defaultVariants:{size:"md"}},lm={className:"chakra-steps",slots:kh.keys(),base:{root:{display:"flex",width:"full"},list:{display:"flex",justifyContent:"space-between","--steps-gutter":"spacing.3","--steps-thickness":"2px"},title:{fontWeight:"medium",color:"fg"},description:{color:"fg.muted"},separator:{bg:"border",flex:"1"},indicator:{display:"flex",justifyContent:"center",alignItems:"center",flexShrink:"0",borderRadius:"full",fontWeight:"medium",width:"var(--steps-size)",height:"var(--steps-size)",_icon:{flexShrink:"0",width:"var(--steps-icon-size)",height:"var(--steps-icon-size)"}},item:{position:"relative",display:"flex",gap:"3",flex:"1 0 0","&:last-of-type":{flex:"initial","& [data-part=separator]":{display:"none"}}},trigger:{display:"flex",alignItems:"center",gap:"3",textAlign:"start",focusVisibleRing:"outside",borderRadius:"l2"},content:{focusVisibleRing:"outside"}},variants:{orientation:{vertical:{root:{flexDirection:"row",height:"100%"},list:{flexDirection:"column",alignItems:"flex-start"},separator:{position:"absolute",width:"var(--steps-thickness)",height:"100%",maxHeight:"calc(100% - var(--steps-size) - var(--steps-gutter) * 2)",top:"calc(var(--steps-size) + var(--steps-gutter))",insetStart:"calc(var(--steps-size) / 2 - 1px)"},item:{alignItems:"flex-start"}},horizontal:{root:{flexDirection:"column",width:"100%"},list:{flexDirection:"row",alignItems:"center"},separator:{width:"100%",height:"var(--steps-thickness)",marginX:"var(--steps-gutter)"},item:{alignItems:"center"}}},variant:{solid:{indicator:{_incomplete:{borderWidth:"var(--steps-thickness)"},_current:{bg:"colorPalette.muted",borderWidth:"var(--steps-thickness)",borderColor:"colorPalette.solid",color:"colorPalette.fg"},_complete:{bg:"colorPalette.solid",borderColor:"colorPalette.solid",color:"colorPalette.contrast"}},separator:{_complete:{bg:"colorPalette.solid"}}},subtle:{indicator:{_incomplete:{bg:"bg.muted"},_current:{bg:"colorPalette.muted",color:"colorPalette.fg"},_complete:{bg:"colorPalette.emphasized",color:"colorPalette.fg"}},separator:{_complete:{bg:"colorPalette.emphasized"}}}},size:{xs:{root:{gap:"2.5"},list:{"--steps-size":"sizes.6","--steps-icon-size":"sizes.3.5",textStyle:"xs"},title:{textStyle:"sm"}},sm:{root:{gap:"3"},list:{"--steps-size":"sizes.8","--steps-icon-size":"sizes.4",textStyle:"xs"},title:{textStyle:"sm"}},md:{root:{gap:"4"},list:{"--steps-size":"sizes.10","--steps-icon-size":"sizes.4",textStyle:"sm"},title:{textStyle:"sm"}},lg:{root:{gap:"6"},list:{"--steps-size":"sizes.11","--steps-icon-size":"sizes.5",textStyle:"md"},title:{textStyle:"md"}}}},defaultVariants:{size:"md",variant:"solid",orientation:"horizontal"}},cm={slots:Sh.keys(),className:"chakra-switch",base:{root:{display:"inline-flex",gap:"2.5",alignItems:"center",position:"relative",verticalAlign:"middle","--switch-diff":"calc(var(--switch-width) - var(--switch-height))","--switch-x":{base:"var(--switch-diff)",_rtl:"calc(var(--switch-diff) * -1)"}},label:{lineHeight:"1",userSelect:"none",fontSize:"sm",fontWeight:"medium",_disabled:{opacity:"0.5"}},indicator:{position:"absolute",height:"var(--switch-height)",width:"var(--switch-height)",fontSize:"var(--switch-indicator-font-size)",fontWeight:"medium",flexShrink:0,userSelect:"none",display:"grid",placeContent:"center",transition:"inset-inline-start 0.12s ease",insetInlineStart:"calc(var(--switch-x) - 2px)",_checked:{insetInlineStart:"2px"}},control:{display:"inline-flex",gap:"0.5rem",flexShrink:0,justifyContent:"flex-start",cursor:"switch",borderRadius:"full",position:"relative",width:"var(--switch-width)",height:"var(--switch-height)",transition:"backgrounds",_disabled:{opacity:"0.5",cursor:"not-allowed"},_invalid:{outline:"2px solid",outlineColor:"border.error",outlineOffset:"2px"}},thumb:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,transitionProperty:"translate",transitionDuration:"fast",borderRadius:"inherit",_checked:{translate:"var(--switch-x) 0"}}},variants:{variant:{solid:{control:{borderRadius:"full",bg:"bg.emphasized",focusVisibleRing:"outside",_checked:{bg:"colorPalette.solid"}},thumb:{bg:"white",width:"var(--switch-height)",height:"var(--switch-height)",scale:"0.8",boxShadow:"sm",_checked:{bg:"colorPalette.contrast"}}},raised:{control:{borderRadius:"full",height:"calc(var(--switch-height) / 2)",bg:"bg.muted",boxShadow:"inset",_checked:{bg:"colorPalette.solid/60"}},thumb:{width:"var(--switch-height)",height:"var(--switch-height)",position:"relative",top:"calc(var(--switch-height) * -0.25)",bg:"white",boxShadow:"xs",focusVisibleRing:"outside",_checked:{bg:"colorPalette.solid"}}}},size:{xs:{root:{"--switch-width":"sizes.6","--switch-height":"sizes.3","--switch-indicator-font-size":"fontSizes.xs"}},sm:{root:{"--switch-width":"sizes.8","--switch-height":"sizes.4","--switch-indicator-font-size":"fontSizes.xs"}},md:{root:{"--switch-width":"sizes.10","--switch-height":"sizes.5","--switch-indicator-font-size":"fontSizes.sm"}},lg:{root:{"--switch-width":"sizes.12","--switch-height":"sizes.6","--switch-indicator-font-size":"fontSizes.md"}}}},defaultVariants:{variant:"solid",size:"md"}},dm={className:"chakra-table",slots:Eh.keys(),base:{root:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full",textAlign:"start",verticalAlign:"top"},row:{_selected:{bg:"colorPalette.subtle"}},cell:{textAlign:"start",alignItems:"center"},columnHeader:{fontWeight:"medium",textAlign:"start",color:"fg"},caption:{fontWeight:"medium",textStyle:"xs"},footer:{fontWeight:"medium"}},variants:{interactive:{true:{body:{"& tr":{_hover:{bg:"colorPalette.subtle"}}}}},stickyHeader:{true:{header:{"& :where(tr)":{top:"var(--table-sticky-offset, 0)",position:"sticky",zIndex:1}}}},striped:{true:{row:{"&:nth-of-type(odd) td":{bg:"bg.muted"}}}},showColumnBorder:{true:{columnHeader:{"&:not(:last-of-type)":{borderInlineEndWidth:"1px"}},cell:{"&:not(:last-of-type)":{borderInlineEndWidth:"1px"}}}},variant:{line:{columnHeader:{borderBottomWidth:"1px"},cell:{borderBottomWidth:"1px"},row:{bg:"bg"}},outline:{root:{boxShadow:"0 0 0 1px {colors.border}",overflow:"hidden"},columnHeader:{borderBottomWidth:"1px"},header:{bg:"bg.muted"},row:{"&:not(:last-of-type)":{borderBottomWidth:"1px"}},footer:{borderTopWidth:"1px"}}},size:{sm:{root:{textStyle:"sm"},columnHeader:{px:"2",py:"2"},cell:{px:"2",py:"2"}},md:{root:{textStyle:"sm"},columnHeader:{px:"3",py:"3"},cell:{px:"3",py:"3"}},lg:{root:{textStyle:"md"},columnHeader:{px:"4",py:"3"},cell:{px:"4",py:"3"}}}},defaultVariants:{variant:"line",size:"md"}},um={slots:Ph.keys(),className:"chakra-tabs",base:{root:{"--tabs-trigger-radius":"radii.l2",position:"relative",_horizontal:{display:"block"},_vertical:{display:"flex"}},list:{display:"inline-flex",position:"relative",isolation:"isolate","--tabs-indicator-shadow":"shadows.xs","--tabs-indicator-bg":"colors.bg",minH:"var(--tabs-height)",_horizontal:{flexDirection:"row"},_vertical:{flexDirection:"column"}},trigger:{outline:"0",minW:"var(--tabs-height)",height:"var(--tabs-height)",display:"flex",alignItems:"center",fontWeight:"medium",position:"relative",cursor:"button",gap:"2",_focusVisible:{zIndex:1,outline:"2px solid",outlineColor:"colorPalette.focusRing"},_disabled:{cursor:"not-allowed",opacity:.5}},content:{focusVisibleRing:"inside",_horizontal:{width:"100%",pt:"var(--tabs-content-padding)"},_vertical:{height:"100%",ps:"var(--tabs-content-padding)"}},indicator:{width:"var(--width)",height:"var(--height)",borderRadius:"var(--tabs-indicator-radius)",bg:"var(--tabs-indicator-bg)",shadow:"var(--tabs-indicator-shadow)",zIndex:-1}},variants:{fitted:{true:{list:{display:"flex"},trigger:{flex:1,textAlign:"center",justifyContent:"center"}}},justify:{start:{list:{justifyContent:"flex-start"}},center:{list:{justifyContent:"center"}},end:{list:{justifyContent:"flex-end"}}},size:{sm:{root:{"--tabs-height":"sizes.9","--tabs-content-padding":"spacing.3"},trigger:{py:"1",px:"3",textStyle:"sm"}},md:{root:{"--tabs-height":"sizes.10","--tabs-content-padding":"spacing.4"},trigger:{py:"2",px:"4",textStyle:"sm"}},lg:{root:{"--tabs-height":"sizes.11","--tabs-content-padding":"spacing.4.5"},trigger:{py:"2",px:"4.5",textStyle:"md"}}},variant:{line:{list:{display:"flex",borderColor:"border",_horizontal:{borderBottomWidth:"1px"},_vertical:{borderEndWidth:"1px"}},trigger:{color:"fg.muted",_disabled:{_active:{bg:"initial"}},_selected:{color:"fg",_horizontal:{layerStyle:"indicator.bottom","--indicator-offset-y":"-1px","--indicator-color":"colors.colorPalette.solid"},_vertical:{layerStyle:"indicator.end","--indicator-offset-x":"-1px"}}}},subtle:{trigger:{borderRadius:"var(--tabs-trigger-radius)",color:"fg.muted",_selected:{bg:"colorPalette.subtle",color:"colorPalette.fg"}}},enclosed:{list:{bg:"bg.muted",padding:"1",borderRadius:"l3",minH:"calc(var(--tabs-height) - 4px)"},trigger:{justifyContent:"center",color:"fg.muted",borderRadius:"var(--tabs-trigger-radius)",_selected:{bg:"bg",color:"colorPalette.fg",shadow:"xs"}}},outline:{list:{"--line-thickness":"1px","--line-offset":"calc(var(--line-thickness) * -1)",borderColor:"border",display:"flex",_horizontal:{_before:{content:'""',position:"absolute",bottom:"0px",width:"100%",borderBottomWidth:"var(--line-thickness)",borderBottomColor:"border"}},_vertical:{_before:{content:'""',position:"absolute",insetInline:"var(--line-offset)",height:"calc(100% - calc(var(--line-thickness) * 2))",borderEndWidth:"var(--line-thickness)",borderEndColor:"border"}}},trigger:{color:"fg.muted",borderWidth:"1px",borderColor:"transparent",_selected:{bg:"currentBg",color:"colorPalette.fg"},_horizontal:{borderTopRadius:"var(--tabs-trigger-radius)",marginBottom:"var(--line-offset)",marginEnd:{_notLast:"var(--line-offset)"},_selected:{borderColor:"border",borderBottomColor:"transparent"}},_vertical:{borderStartRadius:"var(--tabs-trigger-radius)",marginEnd:"var(--line-offset)",marginBottom:{_notLast:"var(--line-offset)"},_selected:{borderColor:"border",borderEndColor:"transparent"}}}},plain:{trigger:{color:"fg.muted",_selected:{color:"colorPalette.fg"},borderRadius:"var(--tabs-trigger-radius)","&[data-selected][data-ssr]":{bg:"var(--tabs-indicator-bg)",shadow:"var(--tabs-indicator-shadow)",borderRadius:"var(--tabs-indicator-radius)"}}}}},defaultVariants:{size:"md",variant:"line"}},pm=cs.variants?.variant,hm={slots:Rh.keys(),className:"chakra-tag",base:{root:{display:"inline-flex",alignItems:"center",verticalAlign:"top",maxWidth:"100%",userSelect:"none",borderRadius:"l2",focusVisibleRing:"outside"},label:{lineClamp:"1"},closeTrigger:{display:"flex",alignItems:"center",justifyContent:"center",outline:"0",borderRadius:"l1",color:"currentColor",focusVisibleRing:"inside",focusRingWidth:"2px"},startElement:{flexShrink:0,boxSize:"var(--tag-element-size)",ms:"var(--tag-element-offset)","&:has([data-scope=avatar])":{boxSize:"var(--tag-avatar-size)",ms:"calc(var(--tag-element-offset) * 1.5)"},_icon:{boxSize:"100%"}},endElement:{flexShrink:0,boxSize:"var(--tag-element-size)",me:"var(--tag-element-offset)",_icon:{boxSize:"100%"},"&:has(button)":{ms:"calc(var(--tag-element-offset) * -1)"}}},variants:{size:{sm:{root:{px:"1.5",minH:"4.5",gap:"1","--tag-avatar-size":"spacing.3","--tag-element-size":"spacing.3","--tag-element-offset":"-2px"},label:{textStyle:"xs"}},md:{root:{px:"1.5",minH:"5",gap:"1","--tag-avatar-size":"spacing.3.5","--tag-element-size":"spacing.3.5","--tag-element-offset":"-2px"},label:{textStyle:"xs"}},lg:{root:{px:"2",minH:"6",gap:"1.5","--tag-avatar-size":"spacing.4.5","--tag-element-size":"spacing.4","--tag-element-offset":"-3px"},label:{textStyle:"sm"}},xl:{root:{px:"2.5",minH:"8",gap:"1.5","--tag-avatar-size":"spacing.6","--tag-element-size":"spacing.4.5","--tag-element-offset":"-4px"},label:{textStyle:"sm"}}},variant:{subtle:{root:pm?.subtle},solid:{root:pm?.solid},outline:{root:pm?.outline},surface:{root:pm?.surface}}},defaultVariants:{size:"md",variant:"surface"}},gm={slots:Th.keys(),className:"chakra-timeline",base:{root:{display:"flex",flexDirection:"column",width:"full","--timeline-thickness":"1px","--timeline-gutter":"4px"},item:{display:"flex",position:"relative",alignItems:"flex-start",flexShrink:0,gap:"4",_last:{"& :where(.chakra-timeline__separator)":{display:"none"}}},separator:{position:"absolute",borderStartWidth:"var(--timeline-thickness)",ms:"calc(-1 * var(--timeline-thickness) / 2)",insetInlineStart:"calc(var(--timeline-indicator-size) / 2)",insetBlock:"0",borderColor:"border"},indicator:{outline:"2px solid {colors.bg}",position:"relative",flexShrink:"0",boxSize:"var(--timeline-indicator-size)",fontSize:"var(--timeline-font-size)",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"full",fontWeight:"medium"},connector:{alignSelf:"stretch",position:"relative"},content:{pb:"6",display:"flex",flexDirection:"column",width:"full",gap:"2"},title:{display:"flex",fontWeight:"medium",flexWrap:"wrap",gap:"1.5",alignItems:"center",mt:"var(--timeline-margin)"},description:{color:"fg.muted",textStyle:"xs"}},variants:{variant:{subtle:{indicator:{bg:"colorPalette.muted"}},solid:{indicator:{bg:"colorPalette.solid",color:"colorPalette.contrast"}},outline:{indicator:{bg:"currentBg",borderWidth:"1px",borderColor:"colorPalette.muted"}},plain:{}},size:{sm:{root:{"--timeline-indicator-size":"sizes.4","--timeline-font-size":"fontSizes.2xs"},title:{textStyle:"xs"}},md:{root:{"--timeline-indicator-size":"sizes.5","--timeline-font-size":"fontSizes.xs"},title:{textStyle:"sm"}},lg:{root:{"--timeline-indicator-size":"sizes.6","--timeline-font-size":"fontSizes.xs"},title:{mt:"0.5",textStyle:"sm"}},xl:{root:{"--timeline-indicator-size":"sizes.8","--timeline-font-size":"fontSizes.sm"},title:{mt:"1.5",textStyle:"sm"}}}},defaultVariants:{size:"md",variant:"solid"}},fm={slots:Ih.keys(),className:"chakra-toast",base:{root:{width:"full",display:"flex",alignItems:"flex-start",position:"relative",gap:"3",py:"4",ps:"4",pe:"6",borderRadius:"l2",translate:"var(--x) var(--y)",scale:"var(--scale)",zIndex:"var(--z-index)",height:"var(--height)",opacity:"var(--opacity)",willChange:"translate, opacity, scale",transition:"translate 400ms, scale 400ms, opacity 400ms, height 400ms, box-shadow 200ms",transitionTimingFunction:"cubic-bezier(0.21, 1.02, 0.73, 1)",_closed:{transition:"translate 400ms, scale 400ms, opacity 200ms",transitionTimingFunction:"cubic-bezier(0.06, 0.71, 0.55, 1)"},bg:"bg.panel",color:"fg",boxShadow:"xl","--toast-trigger-bg":"colors.bg.muted","&[data-type=warning]":{bg:"orange.solid",color:"orange.contrast","--toast-trigger-bg":"{white/10}","--toast-border-color":"{white/40}"},"&[data-type=success]":{bg:"green.solid",color:"green.contrast","--toast-trigger-bg":"{white/10}","--toast-border-color":"{white/40}"},"&[data-type=error]":{bg:"red.solid",color:"red.contrast","--toast-trigger-bg":"{white/10}","--toast-border-color":"{white/40}"}},title:{fontWeight:"medium",textStyle:"sm",marginEnd:"2"},description:{display:"inline",textStyle:"sm",opacity:"0.8"},indicator:{flexShrink:"0",boxSize:"5"},actionTrigger:{textStyle:"sm",fontWeight:"medium",height:"8",px:"3",borderRadius:"l2",alignSelf:"center",borderWidth:"1px",borderColor:"var(--toast-border-color, inherit)",transition:"background 200ms",_hover:{bg:"var(--toast-trigger-bg)"}},closeTrigger:{position:"absolute",top:"1",insetEnd:"1",padding:"1",display:"inline-flex",alignItems:"center",justifyContent:"center",color:"{currentColor/60}",borderRadius:"l2",textStyle:"md",transition:"background 200ms",_icon:{boxSize:"1em"}}}},mm=(Symbol(),Symbol()),vm=Object.getPrototypeOf,bm=new WeakMap,xm=(e,t=!0)=>{bm.set(e,t)};function ym(e,t){const r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:void 0;return r?(r[e]||(r[e]=t()),r[e]):t()}var wm=ym("__zag__refSet",()=>new WeakSet),Cm=e=>null!==e&&"object"==typeof e,km=e=>Cm(e)&&!wm.has(e)&&(Array.isArray(e)||!(Symbol.iterator in e))&&!(e=>(e=>"object"==typeof e&&null!==e&&"$$typeof"in e&&"props"in e)(e)||(e=>"object"==typeof e&&null!==e&&"__v_isVNode"in e)(e)||(e=>"object"==typeof e&&null!==e&&"nodeType"in e&&"string"==typeof e.nodeName)(e))(e)&&!(e instanceof WeakMap)&&!(e instanceof WeakSet)&&!(e instanceof Error)&&!(e instanceof Number)&&!(e instanceof Date)&&!(e instanceof String)&&!(e instanceof RegExp)&&!(e instanceof ArrayBuffer)&&!(e instanceof Promise),Sm=ym("__zag__proxyStateMap",()=>new WeakMap),[Em]=((e=Object.is,t=(e,t)=>new Proxy(e,t),r=new WeakMap,n=(e,t)=>{const n=r.get(e);if(n?.[0]===t)return n[1];const o=Array.isArray(e)?[]:Object.create(Object.getPrototypeOf(e));return xm(o,!0),r.set(e,[t,o]),Reflect.ownKeys(e).forEach(t=>{const r=Reflect.get(e,t);wm.has(r)?(xm(r,!1),o[t]=r):Sm.has(r)?o[t]=function(e){const t=Sm.get(e),[r,n,o]=t;return o(r,n())}(r):o[t]=r}),Object.freeze(o)},o=new WeakMap,a=[1,1],i=r=>{if(!Cm(r))throw new Error("object required");const i=o.get(r);if(i)return i;let s=a[0];const l=new Set,c=(e,t=++a[0])=>{s!==t&&(s=t,l.forEach(r=>r(e,t)))};let d=a[1];const u=e=>(t,r)=>{const n=[...t];n[1]=[e,...n[1]],c(n,r)},p=new Map,h=e=>{const t=p.get(e);t&&(p.delete(e),t[1]?.())},g=Array.isArray(r)?[]:Object.create(Object.getPrototypeOf(r)),f={deleteProperty(e,t){const r=Reflect.get(e,t);h(t);const n=Reflect.deleteProperty(e,t);return n&&c(["delete",[t],r]),n},set(t,r,n,a){const i=Reflect.has(t,r),s=Reflect.get(t,r,a);if(i&&(e(s,n)||o.has(n)&&e(s,o.get(n))))return!0;var d;h(r),Cm(n)&&(n=(e=>e&&(bm.has(e)?bm.get(e):vm(e)===Object.prototype||vm(e)===Array.prototype))(d=n)&&d[mm]||n);let g=n;if(Object.getOwnPropertyDescriptor(t,r)?.set);else{!Sm.has(n)&&km(n)&&(g=Im(n));const e=!wm.has(g)&&Sm.get(g);e&&((e,t)=>{if(l.size){const r=t[3](u(e));p.set(e,[t,r])}else p.set(e,[t])})(r,e)}return Reflect.set(t,r,g,a),c(["set",[r],n,s]),!0}},m=t(g,f);o.set(r,m);const v=[g,(e=++a[1])=>(d===e||l.size||(d=e,p.forEach(([t])=>{const r=t[1](e);r>s&&(s=r)})),s),n,e=>(l.add(e),1===l.size&&p.forEach(([e,t],r)=>{const n=e[3](u(r));p.set(r,[e,n])}),()=>{l.delete(e),0===l.size&&p.forEach(([e,t],r)=>{t&&(t(),p.set(r,[e]))})})];return Sm.set(m,v),Reflect.ownKeys(r).forEach(e=>{const t=Object.getOwnPropertyDescriptor(r,e);t.get||t.set?Object.defineProperty(g,e,t):m[e]=r[e]}),m})=>[i,Sm,wm,e,t,km,r,n,o,a])();function Im(e={}){return Em(e)}var Pm=lo("tooltip").parts("trigger","arrow","arrowTip","positioner","content"),{and:Rm,not:Tm}=(Pm.build(),Im({id:null}),{and:(...e)=>function(t){return e.every(e=>t.guard(e))},or:(...e)=>function(t){return e.some(e=>t.guard(e))},not:e=>function(t){return!t.guard(e)}});or((Rm("noVisibleTooltip",Tm("hasPointerMoveOpened")),Tm("hasPointerMoveOpened"),Qn()(["aria-label","closeDelay","closeOnEscape","closeOnPointerDown","closeOnScroll","closeOnClick","dir","disabled","getRootNode","id","ids","interactive","onOpenChange","defaultOpen","open","openDelay","positioning"])));const Om={slots:Pm.keys(),className:"chakra-tooltip",base:{content:{"--tooltip-bg":"colors.bg.inverted",bg:"var(--tooltip-bg)",color:"fg.inverted",px:"2.5",py:"1",borderRadius:"l2",fontWeight:"medium",textStyle:"xs",boxShadow:"md",maxW:"xs",zIndex:"tooltip",transformOrigin:"var(--transform-origin)",_open:{animationStyle:"scale-fade-in",animationDuration:"fast"},_closed:{animationStyle:"scale-fade-out",animationDuration:"fast"}},arrow:{"--arrow-size":"sizes.2","--arrow-background":"var(--tooltip-bg)"},arrowTip:{borderTopWidth:"1px",borderInlineStartWidth:"1px",borderColor:"var(--tooltip-bg)"}}};var Nm=lo("tree-view").parts("branch","branchContent","branchControl","branchIndentGuide","branchIndicator","branchText","branchTrigger","item","itemIndicator","itemText","label","nodeCheckbox","root","tree"),Vm=(Nm.build(),e=>new js(e));Vm.empty=()=>new js({rootNode:{children:[]}});var{and:Am}={and:(...e)=>function(t){return e.every(e=>t.guard(e))},or:(...e)=>function(t){return e.some(e=>t.guard(e))},not:e=>function(t){return!t.guard(e)}},zm=(or((Am("isMultipleSelection","moveFocus"),Am("isShiftKey","isMultipleSelection"),Am("isShiftKey","isMultipleSelection"),Am("isBranchFocused","isBranchExpanded"),Am("isShiftKey","isMultipleSelection"),Am("isShiftKey","isMultipleSelection"),Am("isCtrlKey","isMultipleSelection"),Am("isShiftKey","isMultipleSelection"),Am("isCtrlKey","isMultipleSelection"),Am("isShiftKey","isMultipleSelection"),Qn()(["ids","collection","dir","expandedValue","expandOnClick","defaultFocusedValue","focusedValue","getRootNode","id","onExpandedChange","onFocusChange","onSelectionChange","checkedValue","selectedValue","selectionMode","typeahead","defaultExpandedValue","defaultSelectedValue","defaultCheckedValue","onCheckedChange","onLoadChildrenComplete","onLoadChildrenError","loadChildren"]))),Qn()(["node","indexPath"]));or(zm);const _m={display:"flex",alignItems:"center",gap:"var(--tree-item-gap)",rounded:"l2",userSelect:"none",position:"relative","--tree-depth":"calc(var(--depth) - 1)","--tree-indentation-offset":"calc(var(--tree-indentation) * var(--tree-depth))","--tree-icon-offset":"calc(var(--tree-icon-size) * var(--tree-depth) * 0.5)","--tree-offset":"calc(var(--tree-padding-inline) + var(--tree-indentation-offset) + var(--tree-icon-offset))",ps:"var(--tree-offset)",pe:"var(--tree-padding-inline)",py:"var(--tree-padding-block)",focusVisibleRing:"inside",focusRingColor:"border.emphasized",focusRingWidth:"2px","&:hover, &:focus-visible":{bg:"bg.muted"},_disabled:{layerStyle:"disabled"}},Fm={flex:"1"},Lm={_selected:{bg:"colorPalette.subtle",color:"colorPalette.fg"}},Dm={_selected:{layerStyle:"fill.solid"}},jm={accordion:Nh,actionBar:Vh,alert:Ah,avatar:_h,blockquote:Fh,breadcrumb:Lh,card:Dh,checkbox:Yh,checkboxCard:Xh,collapsible:rg,dataList:ag,dialog:ig,drawer:sg,editable:cg,emptyState:dg,field:ug,fieldset:pg,fileUpload:hg,hoverCard:vg,list:bg,menu:xg,nativeSelect:wg,numberInput:rf,pinInput:mf,popover:vf,progress:xf,progressCircle:yf,radioCard:em,radioGroup:tm,ratingGroup:rm,segmentGroup:om,select:yg,combobox:og,slider:am,stat:im,steps:lm,switch:cm,table:dm,tabs:um,tag:hm,toast:fm,tooltip:Om,status:sm,timeline:gm,colorPicker:ng,qrCode:Qf,treeView:{slots:Nm.keys(),className:"chakra-tree-view",base:{root:{width:"full",display:"flex",flexDirection:"column",gap:"2"},tree:{display:"flex",flexDirection:"column","--tree-item-gap":"spacing.2",_icon:{boxSize:"var(--tree-icon-size)"}},label:{fontWeight:"medium",textStyle:"sm"},branch:{position:"relative"},branchContent:{position:"relative"},branchIndentGuide:{height:"100%",width:"1px",bg:"border",position:"absolute","--tree-depth":"calc(var(--depth) - 1)","--tree-indentation-offset":"calc(var(--tree-indentation) * var(--tree-depth))","--tree-offset":"calc(var(--tree-padding-inline) + var(--tree-indentation-offset))","--tree-icon-offset":"calc(var(--tree-icon-size) * 0.5 * var(--depth))",insetInlineStart:"calc(var(--tree-offset) + var(--tree-icon-offset))",zIndex:"1"},branchIndicator:{color:"fg.muted",transformOrigin:"center",transitionDuration:"normal",transitionProperty:"transform",transitionTimingFunction:"default",_open:{transform:"rotate(90deg)"}},branchTrigger:{display:"inline-flex",alignItems:"center",justifyContent:"center"},branchControl:_m,item:_m,itemText:Fm,branchText:Fm,nodeCheckbox:{display:"inline-flex"}},variants:{size:{md:{tree:{textStyle:"sm","--tree-indentation":"spacing.4","--tree-padding-inline":"spacing.3","--tree-padding-block":"spacing.1.5","--tree-icon-size":"spacing.4"}},sm:{tree:{textStyle:"sm","--tree-indentation":"spacing.4","--tree-padding-inline":"spacing.3","--tree-padding-block":"spacing.1","--tree-icon-size":"spacing.3"}},xs:{tree:{textStyle:"xs","--tree-indentation":"spacing.4","--tree-padding-inline":"spacing.2","--tree-padding-block":"spacing.1","--tree-icon-size":"spacing.3"}}},variant:{subtle:{branchControl:Lm,item:Lm},solid:{branchControl:Dm,item:Dm}},animateContent:{true:{branchContent:{_open:{animationName:"expand-height, fade-in",animationDuration:"moderate"},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate"}}}}},defaultVariants:{size:"md",variant:"subtle"}}},Mm=xa.animations({spin:{value:"spin 1s linear infinite"},ping:{value:"ping 1s cubic-bezier(0, 0, 0.2, 1) infinite"},pulse:{value:"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite"},bounce:{value:"bounce 1s infinite"}}),Wm=xa.aspectRatios({square:{value:"1 / 1"},landscape:{value:"4 / 3"},portrait:{value:"3 / 4"},wide:{value:"16 / 9"},ultrawide:{value:"18 / 5"},golden:{value:"1.618 / 1"}}),$m=xa.blurs({none:{value:" "},sm:{value:"4px"},md:{value:"8px"},lg:{value:"12px"},xl:{value:"16px"},"2xl":{value:"24px"},"3xl":{value:"40px"},"4xl":{value:"64px"}}),Bm=xa.borders({xs:{value:"0.5px solid"},sm:{value:"1px solid"},md:{value:"2px solid"},lg:{value:"4px solid"},xl:{value:"8px solid"}}),Hm=xa.colors({transparent:{value:"transparent"},current:{value:"currentColor"},black:{value:"#09090B"},white:{value:"#FFFFFF"},whiteAlpha:{50:{value:"rgba(255, 255, 255, 0.04)"},100:{value:"rgba(255, 255, 255, 0.06)"},200:{value:"rgba(255, 255, 255, 0.08)"},300:{value:"rgba(255, 255, 255, 0.16)"},400:{value:"rgba(255, 255, 255, 0.24)"},500:{value:"rgba(255, 255, 255, 0.36)"},600:{value:"rgba(255, 255, 255, 0.48)"},700:{value:"rgba(255, 255, 255, 0.64)"},800:{value:"rgba(255, 255, 255, 0.80)"},900:{value:"rgba(255, 255, 255, 0.92)"},950:{value:"rgba(255, 255, 255, 0.95)"}},blackAlpha:{50:{value:"rgba(0, 0, 0, 0.04)"},100:{value:"rgba(0, 0, 0, 0.06)"},200:{value:"rgba(0, 0, 0, 0.08)"},300:{value:"rgba(0, 0, 0, 0.16)"},400:{value:"rgba(0, 0, 0, 0.24)"},500:{value:"rgba(0, 0, 0, 0.36)"},600:{value:"rgba(0, 0, 0, 0.48)"},700:{value:"rgba(0, 0, 0, 0.64)"},800:{value:"rgba(0, 0, 0, 0.80)"},900:{value:"rgba(0, 0, 0, 0.92)"},950:{value:"rgba(0, 0, 0, 0.95)"}},gray:{50:{value:"#fafafa"},100:{value:"#f4f4f5"},200:{value:"#e4e4e7"},300:{value:"#d4d4d8"},400:{value:"#a1a1aa"},500:{value:"#71717a"},600:{value:"#52525b"},700:{value:"#3f3f46"},800:{value:"#27272a"},900:{value:"#18181b"},950:{value:"#111111"}},red:{50:{value:"#fef2f2"},100:{value:"#fee2e2"},200:{value:"#fecaca"},300:{value:"#fca5a5"},400:{value:"#f87171"},500:{value:"#ef4444"},600:{value:"#dc2626"},700:{value:"#991919"},800:{value:"#511111"},900:{value:"#300c0c"},950:{value:"#1f0808"}},orange:{50:{value:"#fff7ed"},100:{value:"#ffedd5"},200:{value:"#fed7aa"},300:{value:"#fdba74"},400:{value:"#fb923c"},500:{value:"#f97316"},600:{value:"#ea580c"},700:{value:"#92310a"},800:{value:"#6c2710"},900:{value:"#3b1106"},950:{value:"#220a04"}},yellow:{50:{value:"#fefce8"},100:{value:"#fef9c3"},200:{value:"#fef08a"},300:{value:"#fde047"},400:{value:"#facc15"},500:{value:"#eab308"},600:{value:"#ca8a04"},700:{value:"#845209"},800:{value:"#713f12"},900:{value:"#422006"},950:{value:"#281304"}},green:{50:{value:"#f0fdf4"},100:{value:"#dcfce7"},200:{value:"#bbf7d0"},300:{value:"#86efac"},400:{value:"#4ade80"},500:{value:"#22c55e"},600:{value:"#16a34a"},700:{value:"#116932"},800:{value:"#124a28"},900:{value:"#042713"},950:{value:"#03190c"}},teal:{50:{value:"#f0fdfa"},100:{value:"#ccfbf1"},200:{value:"#99f6e4"},300:{value:"#5eead4"},400:{value:"#2dd4bf"},500:{value:"#14b8a6"},600:{value:"#0d9488"},700:{value:"#0c5d56"},800:{value:"#114240"},900:{value:"#032726"},950:{value:"#021716"}},blue:{50:{value:"#eff6ff"},100:{value:"#dbeafe"},200:{value:"#bfdbfe"},300:{value:"#a3cfff"},400:{value:"#60a5fa"},500:{value:"#3b82f6"},600:{value:"#2563eb"},700:{value:"#173da6"},800:{value:"#1a3478"},900:{value:"#14204a"},950:{value:"#0c142e"}},cyan:{50:{value:"#ecfeff"},100:{value:"#cffafe"},200:{value:"#a5f3fc"},300:{value:"#67e8f9"},400:{value:"#22d3ee"},500:{value:"#06b6d4"},600:{value:"#0891b2"},700:{value:"#0c5c72"},800:{value:"#134152"},900:{value:"#072a38"},950:{value:"#051b24"}},purple:{50:{value:"#faf5ff"},100:{value:"#f3e8ff"},200:{value:"#e9d5ff"},300:{value:"#d8b4fe"},400:{value:"#c084fc"},500:{value:"#a855f7"},600:{value:"#9333ea"},700:{value:"#641ba3"},800:{value:"#4a1772"},900:{value:"#2f0553"},950:{value:"#1a032e"}},pink:{50:{value:"#fdf2f8"},100:{value:"#fce7f3"},200:{value:"#fbcfe8"},300:{value:"#f9a8d4"},400:{value:"#f472b6"},500:{value:"#ec4899"},600:{value:"#db2777"},700:{value:"#a41752"},800:{value:"#6d0e34"},900:{value:"#45061f"},950:{value:"#2c0514"}}}),Gm=xa.cursor({button:{value:"pointer"},checkbox:{value:"default"},disabled:{value:"not-allowed"},menuitem:{value:"default"},option:{value:"default"},radio:{value:"default"},slider:{value:"default"},switch:{value:"pointer"}}),Um=xa.durations({fastest:{value:"50ms"},faster:{value:"100ms"},fast:{value:"150ms"},moderate:{value:"200ms"},slow:{value:"300ms"},slower:{value:"400ms"},slowest:{value:"500ms"}}),qm=xa.easings({"ease-in":{value:"cubic-bezier(0.42, 0, 1, 1)"},"ease-out":{value:"cubic-bezier(0, 0, 0.58, 1)"},"ease-in-out":{value:"cubic-bezier(0.42, 0, 0.58, 1)"},"ease-in-smooth":{value:"cubic-bezier(0.32, 0.72, 0, 1)"}}),Km=xa.fontSizes({"2xs":{value:"0.625rem"},xs:{value:"0.75rem"},sm:{value:"0.875rem"},md:{value:"1rem"},lg:{value:"1.125rem"},xl:{value:"1.25rem"},"2xl":{value:"1.5rem"},"3xl":{value:"1.875rem"},"4xl":{value:"2.25rem"},"5xl":{value:"3rem"},"6xl":{value:"3.75rem"},"7xl":{value:"4.5rem"},"8xl":{value:"6rem"},"9xl":{value:"8rem"}}),Ym=xa.fontWeights({thin:{value:"100"},extralight:{value:"200"},light:{value:"300"},normal:{value:"400"},medium:{value:"500"},semibold:{value:"600"},bold:{value:"700"},extrabold:{value:"800"},black:{value:"900"}}),Xm='-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',Zm=xa.fonts({heading:{value:`Inter, ${Xm}`},body:{value:`Inter, ${Xm}`},mono:{value:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'}}),Jm=xa.letterSpacings({tighter:{value:"-0.05em"},tight:{value:"-0.025em"},wide:{value:"0.025em"},wider:{value:"0.05em"},widest:{value:"0.1em"}}),Qm=xa.lineHeights({shorter:{value:1.25},short:{value:1.375},moderate:{value:1.5},tall:{value:1.625},taller:{value:2}}),ev=xa.radii({none:{value:"0"},"2xs":{value:"0.0625rem"},xs:{value:"0.125rem"},sm:{value:"0.25rem"},md:{value:"0.375rem"},lg:{value:"0.5rem"},xl:{value:"0.75rem"},"2xl":{value:"1rem"},"3xl":{value:"1.5rem"},"4xl":{value:"2rem"},full:{value:"9999px"}}),tv=xa.spacing({.5:{value:"0.125rem"},1:{value:"0.25rem"},1.5:{value:"0.375rem"},2:{value:"0.5rem"},2.5:{value:"0.625rem"},3:{value:"0.75rem"},3.5:{value:"0.875rem"},4:{value:"1rem"},4.5:{value:"1.125rem"},5:{value:"1.25rem"},6:{value:"1.5rem"},7:{value:"1.75rem"},8:{value:"2rem"},9:{value:"2.25rem"},10:{value:"2.5rem"},11:{value:"2.75rem"},12:{value:"3rem"},14:{value:"3.5rem"},16:{value:"4rem"},20:{value:"5rem"},24:{value:"6rem"},28:{value:"7rem"},32:{value:"8rem"},36:{value:"9rem"},40:{value:"10rem"},44:{value:"11rem"},48:{value:"12rem"},52:{value:"13rem"},56:{value:"14rem"},60:{value:"15rem"},64:{value:"16rem"},72:{value:"18rem"},80:{value:"20rem"},96:{value:"24rem"}}),rv=xa.sizes({"3xs":{value:"14rem"},"2xs":{value:"16rem"},xs:{value:"20rem"},sm:{value:"24rem"},md:{value:"28rem"},lg:{value:"32rem"},xl:{value:"36rem"},"2xl":{value:"42rem"},"3xl":{value:"48rem"},"4xl":{value:"56rem"},"5xl":{value:"64rem"},"6xl":{value:"72rem"},"7xl":{value:"80rem"},"8xl":{value:"90rem"}}),nv=xa.sizes({max:{value:"max-content"},min:{value:"min-content"},fit:{value:"fit-content"},prose:{value:"60ch"},full:{value:"100%"},dvh:{value:"100dvh"},svh:{value:"100svh"},lvh:{value:"100lvh"},dvw:{value:"100dvw"},svw:{value:"100svw"},lvw:{value:"100lvw"},vw:{value:"100vw"},vh:{value:"100vh"}}),ov=xa.sizes({"1/2":{value:"50%"},"1/3":{value:"33.333333%"},"2/3":{value:"66.666667%"},"1/4":{value:"25%"},"3/4":{value:"75%"},"1/5":{value:"20%"},"2/5":{value:"40%"},"3/5":{value:"60%"},"4/5":{value:"80%"},"1/6":{value:"16.666667%"},"2/6":{value:"33.333333%"},"3/6":{value:"50%"},"4/6":{value:"66.666667%"},"5/6":{value:"83.333333%"},"1/12":{value:"8.333333%"},"2/12":{value:"16.666667%"},"3/12":{value:"25%"},"4/12":{value:"33.333333%"},"5/12":{value:"41.666667%"},"6/12":{value:"50%"},"7/12":{value:"58.333333%"},"8/12":{value:"66.666667%"},"9/12":{value:"75%"},"10/12":{value:"83.333333%"},"11/12":{value:"91.666667%"}}),av=xa.sizes({...rv,...tv,...ov,...nv}),iv=xa.zIndex({hide:{value:-1},base:{value:0},docked:{value:10},dropdown:{value:1e3},sticky:{value:1100},banner:{value:1200},overlay:{value:1300},modal:{value:1400},popover:{value:1500},skipNav:{value:1600},toast:{value:1700},tooltip:{value:1800},max:{value:2147483647}}),sv=wa(as,{preflight:!0,cssVarsPrefix:"chakra",cssVarsRoot:":where(html, .chakra-theme)",globalCss:ls,theme:{breakpoints:{sm:"480px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},keyframes:{spin:{"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}},pulse:{"50%":{opacity:"0.5"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}},"bg-position":{from:{backgroundPosition:"var(--animate-from, 1rem) 0"},to:{backgroundPosition:"var(--animate-to, 0) 0"}},position:{from:{insetInlineStart:"var(--animate-from-x)",insetBlockStart:"var(--animate-from-y)"},to:{insetInlineStart:"var(--animate-to-x)",insetBlockStart:"var(--animate-to-y)"}},"circular-progress":{"0%":{strokeDasharray:"1, 400",strokeDashoffset:"0"},"50%":{strokeDasharray:"400, 400",strokeDashoffset:"-100%"},"100%":{strokeDasharray:"400, 400",strokeDashoffset:"-260%"}},"expand-height":{from:{height:"0"},to:{height:"var(--height)"}},"collapse-height":{from:{height:"var(--height)"},to:{height:"0"}},"expand-width":{from:{width:"0"},to:{width:"var(--width)"}},"collapse-width":{from:{height:"var(--width)"},to:{height:"0"}},"fade-in":{from:{opacity:0},to:{opacity:1}},"fade-out":{from:{opacity:1},to:{opacity:0}},"slide-from-left-full":{from:{translate:"-100% 0"},to:{translate:"0 0"}},"slide-from-right-full":{from:{translate:"100% 0"},to:{translate:"0 0"}},"slide-from-top-full":{from:{translate:"0 -100%"},to:{translate:"0 0"}},"slide-from-bottom-full":{from:{translate:"0 100%"},to:{translate:"0 0"}},"slide-to-left-full":{from:{translate:"0 0"},to:{translate:"-100% 0"}},"slide-to-right-full":{from:{translate:"0 0"},to:{translate:"100% 0"}},"slide-to-top-full":{from:{translate:"0 0"},to:{translate:"0 -100%"}},"slide-to-bottom-full":{from:{translate:"0 0"},to:{translate:"0 100%"}},"slide-from-top":{"0%":{translate:"0 -0.5rem"},to:{translate:"0"}},"slide-from-bottom":{"0%":{translate:"0 0.5rem"},to:{translate:"0"}},"slide-from-left":{"0%":{translate:"-0.5rem 0"},to:{translate:"0"}},"slide-from-right":{"0%":{translate:"0.5rem 0"},to:{translate:"0"}},"slide-to-top":{"0%":{translate:"0"},to:{translate:"0 -0.5rem"}},"slide-to-bottom":{"0%":{translate:"0"},to:{translate:"0 0.5rem"}},"slide-to-left":{"0%":{translate:"0"},to:{translate:"-0.5rem 0"}},"slide-to-right":{"0%":{translate:"0"},to:{translate:"0.5rem 0"}},"scale-in":{from:{scale:"0.95"},to:{scale:"1"}},"scale-out":{from:{scale:"1"},to:{scale:"0.95"}}},tokens:{aspectRatios:Wm,animations:Mm,blurs:$m,borders:Bm,colors:Hm,durations:Um,easings:qm,fonts:Zm,fontSizes:Km,fontWeights:Ym,letterSpacings:Jm,lineHeights:Qm,radii:ev,spacing:tv,sizes:av,zIndex:iv,cursor:Gm},semanticTokens:{colors:vs,shadows:xs,radii:bs},recipes:ms,slotRecipes:jm,textStyles:{"2xs":{value:{fontSize:"2xs",lineHeight:"0.75rem"}},xs:{value:{fontSize:"xs",lineHeight:"1rem"}},sm:{value:{fontSize:"sm",lineHeight:"1.25rem"}},md:{value:{fontSize:"md",lineHeight:"1.5rem"}},lg:{value:{fontSize:"lg",lineHeight:"1.75rem"}},xl:{value:{fontSize:"xl",lineHeight:"1.875rem"}},"2xl":{value:{fontSize:"2xl",lineHeight:"2rem"}},"3xl":{value:{fontSize:"3xl",lineHeight:"2.375rem"}},"4xl":{value:{fontSize:"4xl",lineHeight:"2.75rem",letterSpacing:"-0.025em"}},"5xl":{value:{fontSize:"5xl",lineHeight:"3.75rem",letterSpacing:"-0.025em"}},"6xl":{value:{fontSize:"6xl",lineHeight:"4.5rem",letterSpacing:"-0.025em"}},"7xl":{value:{fontSize:"7xl",lineHeight:"5.75rem",letterSpacing:"-0.025em"}},none:{value:{}},label:{value:{fontSize:"sm",lineHeight:"1.25rem",fontWeight:"medium"}}},layerStyles:{"fill.muted":{value:{background:"colorPalette.muted",color:"colorPalette.fg"}},"fill.subtle":{value:{background:"colorPalette.subtle",color:"colorPalette.fg"}},"fill.surface":{value:{background:"colorPalette.subtle",color:"colorPalette.fg",boxShadow:"0 0 0px 1px var(--shadow-color)",boxShadowColor:"colorPalette.muted"}},"fill.solid":{value:{background:"colorPalette.solid",color:"colorPalette.contrast"}},"outline.subtle":{value:{color:"colorPalette.fg",boxShadow:"inset 0 0 0px 1px var(--shadow-color)",boxShadowColor:"colorPalette.subtle"}},"outline.solid":{value:{borderWidth:"1px",borderColor:"colorPalette.solid",color:"colorPalette.fg"}},"indicator.bottom":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",bottom:"var(--indicator-offset-y, 0)",insetInline:"var(--indicator-offset-x, 0)",height:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},"indicator.top":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",top:"var(--indicator-offset-y, 0)",insetInline:"var(--indicator-offset-x, 0)",height:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},"indicator.start":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",insetInlineStart:"var(--indicator-offset-x, 0)",insetBlock:"var(--indicator-offset-y, 0)",width:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},"indicator.end":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",insetInlineEnd:"var(--indicator-offset-x, 0)",insetBlock:"var(--indicator-offset-y, 0)",width:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},disabled:{value:{opacity:"0.5",cursor:"not-allowed"}},none:{value:{}}},animationStyles:{"slide-fade-in":{value:{transformOrigin:"var(--transform-origin)","&[data-placement^=top]":{animationName:"slide-from-bottom, fade-in"},"&[data-placement^=bottom]":{animationName:"slide-from-top, fade-in"},"&[data-placement^=left]":{animationName:"slide-from-right, fade-in"},"&[data-placement^=right]":{animationName:"slide-from-left, fade-in"}}},"slide-fade-out":{value:{transformOrigin:"var(--transform-origin)","&[data-placement^=top]":{animationName:"slide-to-bottom, fade-out"},"&[data-placement^=bottom]":{animationName:"slide-to-top, fade-out"},"&[data-placement^=left]":{animationName:"slide-to-right, fade-out"},"&[data-placement^=right]":{animationName:"slide-to-left, fade-out"}}},"scale-fade-in":{value:{transformOrigin:"var(--transform-origin)",animationName:"scale-in, fade-in"}},"scale-fade-out":{value:{transformOrigin:"var(--transform-origin)",animationName:"scale-out, fade-out"}}}}}),lv=(Xi(sv),Xi(sv,{theme:{tokens:{colors:{purple:{50:{value:"#eef2ff"},100:{value:"#e0e7ff"},200:{value:"#c7d2fe"},300:{value:"#a5b4fc"},400:{value:"#818cf8"},500:{value:"#6366f1"},600:{value:"#6366f1"},700:{value:"#4f46e5"},800:{value:"#4338ca"},900:{value:"#3730a3"},950:{value:"#1e1b4b"}}}}}}));function cv(e){return(0,n.createElement)(Ze,{value:lv,...e})}var dv=lo("toast").parts("group","root","title","description","actionTrigger","closeTrigger").build(),uv=e=>`toast-group:${e}`,pv=(e,t)=>e.getById(`toast-group:${t}`),hv=e=>`toast:${e.id}`,gv=e=>e.getById(hv(e)),fv=e=>`toast:${e.id}:title`,mv=e=>`toast:${e.id}:description`,vv={info:5e3,error:5e3,success:2e3,loading:1/0,DEFAULT:5e3};function bv(e,t){return e??vv[t]??vv.DEFAULT}function xv(e,t){const{prop:r,computed:n,context:o}=e,{offsets:a,gap:i}=r("store").attrs,s=o.get("heights"),l=(e=>"string"==typeof e?{left:e,right:e,bottom:e,top:e}:e)(a),c="rtl"===r("dir"),d=t.replace("-start",c?"-right":"-left").replace("-end",c?"-left":"-right"),u=d.includes("right"),p=d.includes("left"),h={position:"fixed",pointerEvents:n("count")>0?void 0:"none",display:"flex",flexDirection:"column","--gap":`${i}px`,"--first-height":`${s[0]?.height||0}px`,zIndex:pr};let g="center";if(u&&(g="flex-end"),p&&(g="flex-start"),h.alignItems=g,d.includes("top")){const e=l.top;h.top=`max(env(safe-area-inset-top, 0px), ${e})`}if(d.includes("bottom")){const e=l.bottom;h.bottom=`max(env(safe-area-inset-bottom, 0px), ${e})`}if(!d.includes("left")){const e=l.right;h.insetInlineEnd=`calc(env(safe-area-inset-right, 0px) + ${e})`}if(!d.includes("right")){const e=l.left;h.insetInlineStart=`calc(env(safe-area-inset-left, 0px) + ${e})`}return h}function yv(e,t){const{prop:r,context:n,computed:o}=e,a=r("parent"),i=a.computed("placement"),{gap:s}=a.prop("store").attrs,[l]=i.split("-"),c=n.get("mounted"),d=n.get("remainingTime"),u=o("height"),p=o("frontmost"),h=!p,g=!r("stacked"),f=r("stacked"),m="loading"===r("type")?Number.MAX_SAFE_INTEGER:d,v=o("heightIndex")*s+o("heightBefore"),b={position:"absolute",pointerEvents:"auto","--opacity":"0","--remove-delay":`${r("removeDelay")}ms`,"--duration":`${m}ms`,"--initial-height":`${u}px`,"--offset":`${v}px`,"--index":r("index"),"--z-index":o("zIndex"),"--lift-amount":"calc(var(--lift) * var(--gap))","--y":"100%","--x":"0"},x=e=>Object.assign(b,e);return"top"===l?x({top:"0","--sign":"-1","--y":"-100%","--lift":"1"}):"bottom"===l&&x({bottom:"0","--sign":"1","--y":"100%","--lift":"-1"}),c&&(x({"--y":"0","--opacity":"1"}),f&&x({"--y":"calc(var(--lift) * var(--offset))","--height":"var(--initial-height)"})),t||x({"--opacity":"0",pointerEvents:"none"}),h&&g&&(x({"--base-scale":"var(--index) * 0.05 + 1","--y":"calc(var(--lift-amount) * var(--index))","--scale":"calc(-1 * var(--base-scale))","--height":"var(--first-height)"}),t||x({"--y":"calc(var(--sign) * 40%)"})),h&&f&&!t&&x({"--y":"calc(var(--lift) * var(--offset) + var(--lift) * -100%)"}),p&&!t&&x({"--y":"calc(var(--lift) * -100%)"}),b}function wv(e,t){const{computed:r}=e,n={position:"absolute",inset:"0",scale:"1 2",pointerEvents:t?"none":"auto"};var o;return r("frontmost")&&!t&&(o={height:"calc(var(--initial-height) + 80%)"},Object.assign(n,o)),n}var Cv={props:({props:e})=>({dir:"ltr",id:Ft(),...e,store:e.store}),initialState:({prop:e})=>e("store").attrs.overlap?"overlap":"stack",refs:()=>({lastFocusedEl:null,isFocusWithin:!1,dismissableCleanup:void 0}),context:({bindable:e})=>({toasts:e(()=>({defaultValue:[],sync:!0,hash:e=>e.map(e=>e.id).join(",")})),heights:e(()=>({defaultValue:[],sync:!0}))}),computed:{count:({context:e})=>e.get("toasts").length,overlap:({prop:e})=>e("store").attrs.overlap,placement:({prop:e})=>e("store").attrs.placement},effects:["subscribeToStore","trackDocumentVisibility","trackHotKeyPress"],watch({track:e,context:t,action:r}){e([()=>t.hash("toasts")],()=>{queueMicrotask(()=>{r(["collapsedIfEmpty","setDismissableBranch"])})})},exit:["clearDismissableBranch","clearLastFocusedEl"],on:{"DOC.HOTKEY":{actions:["focusRegionEl"]},"REGION.BLUR":[{guard:"isOverlapping",target:"overlap",actions:["collapseToasts","resumeToasts","restoreLastFocusedEl"]},{target:"stack",actions:["resumeToasts","restoreLastFocusedEl"]}],"TOAST.REMOVE":{actions:["removeToast","removeHeight"]},"TOAST.PAUSE":{actions:["pauseToasts"]}},states:{stack:{on:{"REGION.POINTER_LEAVE":[{guard:"isOverlapping",target:"overlap",actions:["resumeToasts","collapseToasts"]},{actions:["resumeToasts"]}],"REGION.OVERLAP":{target:"overlap",actions:["collapseToasts"]},"REGION.FOCUS":{actions:["setLastFocusedEl","pauseToasts"]},"REGION.POINTER_ENTER":{actions:["pauseToasts"]}}},overlap:{on:{"REGION.STACK":{target:"stack",actions:["expandToasts"]},"REGION.POINTER_ENTER":{target:"stack",actions:["pauseToasts","expandToasts"]},"REGION.FOCUS":{target:"stack",actions:["setLastFocusedEl","pauseToasts","expandToasts"]}}}},implementations:{guards:{isOverlapping:({computed:e})=>e("overlap")},effects:{subscribeToStore:({context:e,prop:t})=>t("store").subscribe(t=>{t.dismiss?e.set("toasts",e=>e.filter(e=>e.id!==t.id)):e.set("toasts",e=>{const r=e.findIndex(e=>e.id===t.id);return-1!==r?[...e.slice(0,r),{...e[r],...t},...e.slice(r+1)]:[t,...e]})}),trackHotKeyPress:({prop:e,send:t})=>Hr(document,"keydown",r=>{const{hotkey:n}=e("store").attrs;n.every(e=>r[e]||r.code===e)&&t({type:"DOC.HOTKEY"})},{capture:!0}),trackDocumentVisibility({prop:e,send:t,scope:r}){const{pauseOnPageIdle:n}=e("store").attrs;if(!n)return;const o=r.getDoc();return Hr(o,"visibilitychange",()=>{const e="hidden"===o.visibilityState;t({type:e?"PAUSE_ALL":"RESUME_ALL"})})}},actions:{setDismissableBranch({refs:e,context:t,computed:r,scope:n}){const o=t.get("toasts"),a=r("placement"),i=o.length>0;if(!i)return void e.get("dismissableCleanup")?.();if(i&&e.get("dismissableCleanup"))return;const s=function(e,t={}){const{defer:r}=t,n=r?ln:e=>e(),o=[];return o.push(n(()=>{const t=Pt(e)?e():e;t?(Hc.addBranch(t),o.push(()=>{Hc.removeBranch(t)})):ir("[@zag-js/dismissable] branch node is `null` or `undefined`")})),()=>{o.forEach(e=>e?.())}}(()=>pv(n,a),{defer:!0});e.set("dismissableCleanup",s)},clearDismissableBranch({refs:e}){e.get("dismissableCleanup")?.()},focusRegionEl({scope:e,computed:t}){queueMicrotask(()=>{pv(e,t("placement"))?.focus()})},pauseToasts({prop:e}){e("store").pause()},resumeToasts({prop:e}){e("store").resume()},expandToasts({prop:e}){e("store").expand()},collapseToasts({prop:e}){e("store").collapse()},removeToast({prop:e,event:t}){e("store").remove(t.id)},removeHeight({event:e,context:t}){null!=e?.id&&queueMicrotask(()=>{t.set("heights",t=>t.filter(t=>t.id!==e.id))})},collapsedIfEmpty({send:e,computed:t}){!t("overlap")||t("count")>1||e({type:"REGION.OVERLAP"})},setLastFocusedEl({refs:e,event:t}){!e.get("isFocusWithin")&&t.target&&(e.set("isFocusWithin",!0),e.set("lastFocusedEl",t.target))},restoreLastFocusedEl({refs:e}){e.get("lastFocusedEl")&&(e.get("lastFocusedEl")?.focus({preventScroll:!0}),e.set("lastFocusedEl",null),e.set("isFocusWithin",!1))},clearLastFocusedEl({refs:e}){e.get("lastFocusedEl")&&(e.get("lastFocusedEl")?.focus({preventScroll:!0}),e.set("lastFocusedEl",null),e.set("isFocusWithin",!1))}}}},{not:kv}={and:(...e)=>function(t){return e.every(e=>t.guard(e))},or:(...e)=>function(t){return e.some(e=>t.guard(e))},not:e=>function(t){return!t.guard(e)}},Sv={props:({props:e})=>(function(e,t,r){let n=[];for(const t of["id","type","parent","removeDelay"])null==e[t]&&n.push(t);if(n.length>0)throw new Error(`[zag-js${r?` > ${r}`:""}] missing required props: ${n.join(", ")}`)}(e,0,"toast"),{closable:!0,...e,duration:bv(e.duration,e.type)}),initialState:({prop:e})=>"loading"===e("type")||e("duration")===1/0?"visible:persist":"visible",context:({prop:e,bindable:t})=>({remainingTime:t(()=>({defaultValue:bv(e("duration"),e("type"))})),createdAt:t(()=>({defaultValue:Date.now()})),mounted:t(()=>({defaultValue:!1})),initialHeight:t(()=>({defaultValue:0}))}),refs:()=>({closeTimerStartTime:Date.now(),lastCloseStartTimerStartTime:0}),computed:{zIndex:({prop:e})=>{const t=e("parent").context.get("toasts"),r=t.findIndex(t=>t.id===e("id"));return t.length-r},height:({prop:e})=>{const t=e("parent").context.get("heights").find(t=>t.id===e("id"));return t?.height??0},heightIndex:({prop:e})=>e("parent").context.get("heights").findIndex(t=>t.id===e("id")),frontmost:({prop:e})=>0===e("index"),heightBefore:({prop:e})=>{const t=e("parent").context.get("heights"),r=t.findIndex(t=>t.id===e("id"));return t.reduce((e,t,n)=>n>=r?e:e+t.height,0)},shouldPersist:({prop:e})=>"loading"===e("type")||e("duration")===1/0},watch({track:e,prop:t,send:r}){e([()=>t("message")],()=>{const e=t("message");e&&r({type:e,src:"programmatic"})}),e([()=>t("type"),()=>t("duration")],()=>{r({type:"UPDATE"})})},on:{UPDATE:[{guard:"shouldPersist",target:"visible:persist",actions:["resetCloseTimer"]},{target:"visible:updating",actions:["resetCloseTimer"]}],MEASURE:{actions:["measureHeight"]}},entry:["setMounted","measureHeight","invokeOnVisible"],effects:["trackHeight"],states:{"visible:updating":{tags:["visible","updating"],effects:["waitForNextTick"],on:{SHOW:{target:"visible"}}},"visible:persist":{tags:["visible","paused"],on:{RESUME:{guard:kv("isLoadingType"),target:"visible",actions:["setCloseTimer"]},DISMISS:{target:"dismissing"}}},visible:{tags:["visible"],effects:["waitForDuration"],on:{DISMISS:{target:"dismissing"},PAUSE:{target:"visible:persist",actions:["syncRemainingTime"]}}},dismissing:{entry:["invokeOnDismiss"],effects:["waitForRemoveDelay"],on:{REMOVE:{target:"unmounted",actions:["notifyParentToRemove"]}}},unmounted:{entry:["invokeOnUnmount"]}},implementations:{effects:{waitForRemoveDelay:({prop:e,send:t})=>ar(()=>{t({type:"REMOVE",src:"timer"})},e("removeDelay")),waitForDuration({send:e,context:t,computed:r}){if(!r("shouldPersist"))return ar(()=>{e({type:"DISMISS",src:"timer"})},t.get("remainingTime"))},waitForNextTick:({send:e})=>ar(()=>{e({type:"SHOW",src:"timer"})},0),trackHeight({scope:e,prop:t}){let r;return ln(()=>{const n=gv(e);if(!n)return;const o=new(e.getWin().MutationObserver)(()=>{const e=n.style.height;n.style.height="auto";const r=n.getBoundingClientRect().height;n.style.height=e;const o={id:t("id"),height:r};Ev(t("parent"),o)});o.observe(n,{childList:!0,subtree:!0,characterData:!0}),r=()=>o.disconnect()}),()=>r?.()}},guards:{isLoadingType:({prop:e})=>"loading"===e("type"),shouldPersist:({computed:e})=>e("shouldPersist")},actions:{setMounted({context:e}){ln(()=>{e.set("mounted",!0)})},measureHeight({scope:e,prop:t,context:r}){queueMicrotask(()=>{const n=gv(e);if(!n)return;const o=n.style.height;n.style.height="auto";const a=n.getBoundingClientRect().height;n.style.height=o,r.set("initialHeight",a);const i={id:t("id"),height:a};Ev(t("parent"),i)})},setCloseTimer({refs:e}){e.set("closeTimerStartTime",Date.now())},resetCloseTimer({context:e,refs:t,prop:r}){t.set("closeTimerStartTime",Date.now()),e.set("remainingTime",bv(r("duration"),r("type")))},syncRemainingTime({context:e,refs:t}){e.set("remainingTime",e=>{const r=t.get("closeTimerStartTime"),n=Date.now()-r;return t.set("lastCloseStartTimerStartTime",Date.now()),e-n})},notifyParentToRemove({prop:e}){e("parent").send({type:"TOAST.REMOVE",id:e("id")})},invokeOnDismiss({prop:e,event:t}){e("onStatusChange")?.({status:"dismissing",src:t.src})},invokeOnUnmount({prop:e}){e("onStatusChange")?.({status:"unmounted"})},invokeOnVisible({prop:e}){e("onStatusChange")?.({status:"visible"})}}}};function Ev(e,t){const{id:r,height:n}=t;e.context.set("heights",e=>e.find(e=>e.id===r)?e.map(e=>e.id===r?{...e,height:n}:e):[{id:r,height:n},...e])}var Iv=e=>e&&"object"==typeof e&&"ok"in e&&"boolean"==typeof e.ok&&"status"in e&&"number"==typeof e.status,Pv={connect:function(e,t){const{context:r,prop:n,send:o,refs:a,computed:i}=e;return{getCount:()=>r.get("toasts").length,getToasts:()=>r.get("toasts"),getGroupProps(r={}){const{label:s="Notifications"}=r,{hotkey:l}=n("store").attrs,c=l.join("+").replace(/Key/g,"").replace(/Digit/g,""),d=i("placement"),[u,p="center"]=d.split("-");return t.element({...dv.group.attrs,dir:n("dir"),tabIndex:-1,"aria-label":`${d} ${s} ${c}`,id:uv(d),"data-placement":d,"data-side":u,"data-align":p,"aria-live":"polite",role:"region",style:xv(e,d),onMouseMove(){o({type:"REGION.POINTER_ENTER",placement:d})},onMouseLeave(){o({type:"REGION.POINTER_LEAVE",placement:d})},onFocus(e){o({type:"REGION.FOCUS",target:e.relatedTarget})},onBlur(e){a.get("isFocusWithin")&&!yr(e.currentTarget,e.relatedTarget)&&queueMicrotask(()=>o({type:"REGION.BLUR"}))}})},subscribe:e=>n("store").subscribe(()=>e(r.get("toasts")))}},machine:Cv};const Rv=e=>{const{children:t,disabled:r}=e,[a,i]=(0,n.useState)(e.container?.current),s=(0,n.useSyncExternalStore)(Ov,()=>!1,()=>!0),{getRootNode:l}=Po();if((0,n.useEffect)(()=>{i(()=>e.container?.current)},[e.container]),s||r)return(0,o.jsx)(o.Fragment,{children:t});const c=a??Tv(l);return(0,o.jsx)(o.Fragment,{children:n.Children.map(t,e=>(0,Jn.createPortal)(e,c))})},Tv=e=>{const t=e?.(),r=t.getRootNode();return br(r)?r:wr(t).body},Ov=()=>()=>{},[Nv,Vv]=$n({name:"ToastContext",hookName:"useToastContext",providerName:"<ToastProvider />"}),Av=(0,n.forwardRef)((e,t)=>{const{toaster:r,children:a,...i}=e,s=To(),l=Po(),c=no(Pv.machine,{store:r,id:(0,n.useId)(),dir:s?.dir,getRootNode:l?.getRootNode}),d=Pv.connect(c,so),u=Dn(d.getGroupProps(),i);return(0,o.jsx)(Kn.div,{...u,ref:t,children:d.getToasts().map((e,t)=>(0,o.jsx)(zv,{value:e,parent:c,index:t,children:e=>a(e)},e.id))})});Av.displayName="Toaster";const zv=e=>{const t=Po(),r={...e.value,parent:e.parent,index:e.index,getRootNode:t.getRootNode},n=function(e,t){const{state:r,send:n,prop:o,scope:a,context:i,computed:s}=e,l=r.hasTag("visible"),c=r.hasTag("paused"),d=i.get("mounted"),u=s("frontmost"),p=o("parent").computed("placement"),h=o("type"),g=o("stacked"),f=o("title"),m=o("description"),v=o("action"),[b,x="center"]=p.split("-");return{type:h,title:f,description:m,placement:p,visible:l,paused:c,closable:!!o("closable"),pause(){n({type:"PAUSE"})},resume(){n({type:"RESUME"})},dismiss(){n({type:"DISMISS",src:"programmatic"})},getRootProps:()=>t.element({...dv.root.attrs,dir:o("dir"),id:hv(a),"data-state":l?"open":"closed","data-type":h,"data-placement":p,"data-align":x,"data-side":b,"data-mounted":hr(d),"data-paused":hr(c),"data-first":hr(u),"data-sibling":hr(!u),"data-stack":hr(g),"data-overlap":hr(!g),role:"status","aria-atomic":"true","aria-describedby":m?mv(a):void 0,"aria-labelledby":f?fv(a):void 0,tabIndex:0,style:yv(e,l),onKeyDown(e){e.defaultPrevented||"Escape"==e.key&&(n({type:"DISMISS",src:"keyboard"}),e.preventDefault())}}),getGhostBeforeProps:()=>t.element({"data-ghost":"before",style:wv(e,l)}),getGhostAfterProps:()=>t.element({"data-ghost":"after",style:{position:"absolute",left:"0",height:"calc(var(--gap) + 2px)",bottom:"100%",width:"100%"}}),getTitleProps:()=>t.element({...dv.title.attrs,id:fv(a)}),getDescriptionProps:()=>t.element({...dv.description.attrs,id:mv(a)}),getActionTriggerProps:()=>t.button({...dv.actionTrigger.attrs,type:"button",onClick(e){e.defaultPrevented||(v?.onClick?.(),n({type:"DISMISS",src:"user"}))}}),getCloseTriggerProps(){return t.button({id:(e=a,`toast${e.id}:close`),...dv.closeTrigger.attrs,type:"button","aria-label":"Dismiss notification",onClick(e){e.defaultPrevented||n({type:"DISMISS",src:"user"})}});var e}}}(no(Sv,{...r}),so);return(0,o.jsx)(Nv,{value:n,children:e.children(e.value)})};zv.displayName="ToastActor";const _v=(0,n.forwardRef)((e,t)=>{const r=Vv(),n=Dn(r.getRootProps(),e);return(0,o.jsxs)("div",{...n,ref:t,children:[(0,o.jsx)("div",{...r.getGhostBeforeProps()}),e.children,(0,o.jsx)("div",{...r.getGhostAfterProps()})]})});_v.displayName="ToastRoot";const Fv=(0,n.forwardRef)((e,t)=>{const r=Dn(Vv().getCloseTriggerProps(),e);return(0,o.jsx)(Kn.button,{...r,ref:t})});Fv.displayName="ToastCloseTrigger";const Lv=(0,n.forwardRef)((e,t)=>{const r=Dn(Vv().getTitleProps(),e);return(0,o.jsx)(Kn.div,{...r,ref:t})});Lv.displayName="ToastTitle";const Dv=(0,n.forwardRef)((e,t)=>{const r=Dn(Vv().getDescriptionProps(),e);return(0,o.jsx)(Kn.div,{...r,ref:t})});Dv.displayName="ToastDescription";const jv=(0,n.forwardRef)((e,t)=>{const r=Dn(Vv().getActionTriggerProps(),e);return(0,o.jsx)(Kn.button,{...r,ref:t})});jv.displayName="ToastActionTrigger";const Mv=e=>(0,o.jsx)(ct.svg,{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:(0,o.jsx)("path",{d:"M20 6 9 17l-5-5"})}),Wv=e=>(0,o.jsx)(ct.svg,{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:(0,o.jsx)("path",{d:"m18 15-6-6-6 6"})}),$v=e=>(0,o.jsx)(ct.svg,{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:(0,o.jsx)("path",{d:"m6 9 6 6 6-6"})}),Bv=e=>(0,o.jsx)(ct.svg,{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",...e,children:(0,o.jsx)("path",{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11.0026 16L6.75999 11.7574L8.17421 10.3431L11.0026 13.1716L16.6595 7.51472L18.0737 8.92893L11.0026 16Z"})}),Hv=e=>(0,o.jsx)(ct.svg,{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",...e,children:(0,o.jsx)("path",{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 15H13V17H11V15ZM11 7H13V13H11V7Z"})}),Gv=e=>(0,o.jsx)(ct.svg,{viewBox:"0 0 24 24",fill:"currentColor",stroke:"currentColor",strokeWidth:"0",...e,children:(0,o.jsx)("path",{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 7H13V9H11V7ZM11 11H13V17H11V11Z"})}),Uv=e=>(0,o.jsx)(ct.svg,{viewBox:"0 0 24 24",fill:"currentColor",...e,children:(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.7071 6.70711C19.0976 6.31658 19.0976 5.68342 18.7071 5.29289C18.3166 4.90237 17.6834 4.90237 17.2929 5.29289L12 10.5858L6.70711 5.29289C6.31658 4.90237 5.68342 4.90237 5.29289 5.29289C4.90237 5.68342 4.90237 6.31658 5.29289 6.70711L10.5858 12L5.29289 17.2929C4.90237 17.6834 4.90237 18.3166 5.29289 18.7071C5.68342 19.0976 6.31658 19.0976 6.70711 18.7071L12 13.4142L17.2929 18.7071C17.6834 19.0976 18.3166 19.0976 18.7071 18.7071C19.0976 18.3166 19.0976 17.6834 18.7071 17.2929L13.4142 12L18.7071 6.70711Z"})}),qv=e=>(0,o.jsxs)(ct.svg,{stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",...e,children:[(0,o.jsx)("path",{d:"m2 22 1-1h3l9-9"}),(0,o.jsx)("path",{d:"M3 21v-3l9-9"}),(0,o.jsx)("path",{d:"m15 6 3.4-3.4a2.1 2.1 0 1 1 3 3L18 9l.4.4a2.1 2.1 0 1 1-3 3l-3.8-3.8a2.1 2.1 0 1 1 3-3l.4.4Z"})]}),{withProvider:Kv,withContext:Yv,useStyles:Xv}=Go({key:"toast"}),Zv=ct(Av,{},{forwardAsChild:!0}),Jv=Kv(_v,"root",{forwardAsChild:!0}),Qv=Yv(Fv,"closeTrigger",{forwardAsChild:!0,defaultProps:{children:(0,o.jsx)(Uv,{})}}),eb=Yv(Lv,"title",{forwardAsChild:!0}),tb=Yv(Dv,"description",{forwardAsChild:!0}),rb=Yv(jv,"actionTrigger",{forwardAsChild:!0}),nb={warning:Hv,success:Bv,error:Hv},ob=(0,n.forwardRef)(function(e,t){const r=Vv(),n=Xv(),a=nb[r.type];return a?(0,o.jsx)(a,{ref:t,...e,css:[n.indicator,e.css]}):null}),{withContext:ab,PropsProvider:ib}=ra({key:"spinner"}),sb=ab("span"),lb=(0,n.forwardRef)(function(e,t){const{direction:r="column",align:a,justify:i,gap:s="0.5rem",wrap:l,children:c,separator:d,className:u,...p}=e,h=(0,n.useMemo)(()=>function(e){const{gap:t,direction:r}=e,n={column:{marginY:t,marginX:0,borderInlineStartWidth:0,borderTopWidth:"1px"},"column-reverse":{marginY:t,marginX:0,borderInlineStartWidth:0,borderTopWidth:"1px"},row:{marginX:t,marginY:0,borderInlineStartWidth:"1px",borderTopWidth:0},"row-reverse":{marginX:t,marginY:0,borderInlineStartWidth:"1px",borderTopWidth:0}};return{"&":Oa(r,e=>n[e])}}({gap:s,direction:r}),[s,r]),g=(0,n.useMemo)(()=>d?function(e){return n.Children.toArray(e).filter(e=>(0,n.isValidElement)(e))}(c).map((e,t,r)=>{const a=void 0!==e.key?e.key:t,i=(0,n.cloneElement)(d,{css:[h,d.props.css]});return(0,o.jsxs)(n.Fragment,{children:[e,t===r.length-1?null:i]},a)}):c,[c,d,h]);return(0,o.jsx)(ct.div,{ref:t,display:"flex",alignItems:a,justifyContent:i,flexDirection:r,flexWrap:l,gap:d?void 0:s,className:je("chakra-stack",u),...p,children:g})}),cb=function(e){const t=(e=>({placement:"bottom",overlap:!1,max:24,gap:16,offsets:"1rem",hotkey:["altKey","KeyT"],removeDelay:200,pauseOnPageIdle:!0,...nr(e)}))(e);let r=[],n=[],o=new Set,a=[];const i=e=>(r.forEach(t=>t(e)),e),s=e=>{const r=e.id??`toast:${Ft()}`,s=n.find(e=>e.id===r);return o.has(r)&&o.delete(r),s?n=n.map(t=>t.id===r?i({...t,...e,id:r}):t):(e=>{n.length>=t.max?a.push(e):(i(e),n.unshift(e))})({id:r,duration:t.duration,removeDelay:t.removeDelay,type:"info",...e,stacked:!t.overlap,gap:t.gap}),r},l=e=>(o.add(e),e?(r.forEach(t=>t({id:e,dismiss:!0})),n=n.filter(t=>t.id!==e),(()=>{for(;a.length>0&&n.length<t.max;){const e=a.shift();e&&(i(e),n.unshift(e))}})()):(n.forEach(e=>{r.forEach(t=>t({id:e.id,dismiss:!0}))}),n=[],a=[]),e);return{attrs:t,subscribe:e=>(r.push(e),()=>{const t=r.indexOf(e);r.splice(t,1)}),create:s,update:(e,t)=>s({id:e,...t}),remove:l,dismiss:e=>{n=null!=e?n.map(t=>t.id===e?i({...t,message:"DISMISS"}):t):n.map(e=>i({...e,message:"DISMISS"}))},error:e=>s({...e,type:"error"}),success:e=>s({...e,type:"success"}),info:e=>s({...e,type:"info"}),warning:e=>s({...e,type:"warning"}),loading:e=>s({...e,type:"loading"}),getVisibleToasts:()=>n.filter(e=>!o.has(e.id)),getCount:()=>n.length,promise:(e,t,r={})=>{if(!t||!t.loading)return void ir("[zag-js > toast] toaster.promise() requires at least a 'loading' option to be specified");const n=s({...r,...t.loading,promise:e,type:"loading"});let o,a=!0;const i=Vt(e).then(async e=>{if(o=["resolve",e],Iv(e)&&!e.ok){a=!1;const o=Vt(t.error,`HTTP Error! status: ${e.status}`);s({...r,...o,id:n,type:"error"})}else if(void 0!==t.success){a=!1;const o=Vt(t.success,e);s({...r,...o,id:n,type:"success"})}}).catch(async e=>{if(o=["reject",e],void 0!==t.error){a=!1;const o=Vt(t.error,e);s({...r,...o,id:n,type:"error"})}}).finally(()=>{a&&l(n),t.finally?.()});return{id:n,unwrap:()=>new Promise((e,t)=>i.then(()=>"reject"===o[0]?t(o[1]):e(o[1])).catch(t))}},pause:e=>{n=null!=e?n.map(t=>t.id===e?i({...t,message:"PAUSE"}):t):n.map(e=>i({...e,message:"PAUSE"}))},resume:e=>{n=null!=e?n.map(t=>t.id===e?i({...t,message:"RESUME"}):t):n.map(e=>i({...e,message:"RESUME"}))},isVisible:e=>!o.has(e)&&!!n.find(t=>t.id===e),isDismissed:e=>o.has(e),expand:()=>{n=n.map(e=>i({...e,stacked:!0}))},collapse:()=>{n=n.map(e=>i({...e,stacked:!1}))}}}({placement:"bottom-end",pauseOnPageIdle:!0}),db=()=>(0,n.createElement)(Rv,null,(0,n.createElement)(Zv,{toaster:cb,insetInline:{mdDown:"4"}},e=>(0,n.createElement)(Jv,{width:{md:"sm"}},"loading"===e.type?(0,n.createElement)(sb,{size:"sm",color:"blue.solid"}):(0,n.createElement)(ob,null),(0,n.createElement)(lb,{gap:"1",flex:"1",maxWidth:"100%"},e.title&&(0,n.createElement)(eb,null,e.title),e.description&&(0,n.createElement)(tb,null,e.description)),e.action&&(0,n.createElement)(rb,null,e.action.label),e.closable&&(0,n.createElement)(Qv,null)))),ub=e=>e?"":void 0,pb=ct("span"),hb=ct("div",{base:{position:"absolute",display:"flex",alignItems:"center",justifyContent:"center"},variants:{axis:{horizontal:{insetStart:"50%",translate:"-50%",_rtl:{translate:"50%"}},vertical:{top:"50%",translate:"0 -50%"},both:{insetStart:"50%",top:"50%",translate:"-50% -50%",_rtl:{translate:"50% -50%"}}}},defaultVariants:{axis:"both"}});hb.displayName="AbsoluteCenter";const gb=n.forwardRef(function(e,t){const{spinner:r=(0,o.jsx)(sb,{size:"inherit",borderWidth:"0.125em",color:"inherit"}),spinnerPlacement:n="start",children:a,text:i,visible:s=!0,...l}=e;return s?i?(0,o.jsxs)(pb,{ref:t,display:"contents",...l,children:["start"===n&&r,i,"end"===n&&r]}):r?(0,o.jsxs)(pb,{ref:t,display:"contents",...l,children:[(0,o.jsx)(hb,{display:"inline-flex",children:r}),(0,o.jsx)(pb,{visibility:"hidden",display:"contents",children:a})]}):(0,o.jsx)(pb,{ref:t,display:"contents",...l,children:a}):a}),{useRecipeResult:fb,PropsProvider:mb,usePropsContext:vb}=ra({key:"button"}),bb=(0,n.forwardRef)(function(e,t){const r=vb(),a=(0,n.useMemo)(()=>Le(r,e),[r,e]),i=fb(a),{loading:s,loadingText:l,children:c,spinner:d,spinnerPlacement:u,...p}=i.props;return(0,o.jsx)(ct.button,{type:"button",ref:t,...p,"data-loading":ub(s),disabled:s||p.disabled,className:je(i.className,a.className),css:[i.styles,a.css],children:!a.asChild&&s?(0,o.jsx)(gb,{spinner:d,text:l,spinnerPlacement:u,children:c}):c})}),xb=mb,{withProvider:yb,withContext:wb,useStyles:Cb,PropsProvider:kb}=Go({key:"card"}),Sb=yb("div","root"),Eb=wb("div","body"),Ib=(wb("div","header"),wb("div","footer")),Pb=wb("h3","title"),Rb=wb("p","description"),Tb=(0,n.forwardRef)(function(e,t){return(0,o.jsx)(lb,{align:"center",...e,direction:"row",ref:t})}),[Ob,Nb]=$n({name:"SwitchContext",hookName:"useSwitchContext",providerName:"<SwitchProvider />"}),Vb=(0,n.forwardRef)((e,t)=>{const[{value:r},n]=(e=>["value"].reduce((e,t)=>{const[r,n]=e,o=t;return void 0!==n[o]&&(r[o]=n[o]),delete n[o],[r,n]},[{},{...e}]))(e),a=Dn(r.getRootProps(),n);return(0,o.jsx)(Ob,{value:r,children:(0,o.jsx)(Kn.label,{...a,ref:t})})});Vb.displayName="SwitchRootProvider";const[Ab,zb]=$n({name:"FieldContext",hookName:"useFieldContext",providerName:"<FieldProvider />",strict:!1}),_b=(0,n.forwardRef)((e,t)=>{const[r,a]=(e=>["checked","defaultChecked","disabled","form","id","ids","invalid","label","name","onCheckedChange","readOnly","required","value"].reduce((e,t)=>{const[r,n]=e,o=t;return void 0!==n[o]&&(r[o]=n[o]),delete n[o],[r,n]},[{},{...e}]))(e),i=(e=>{const t=(0,n.useId)(),{getRootNode:r}=Po(),{dir:o}=To(),a=zb(),i={id:t,ids:{label:a?.ids.label,hiddenInput:a?.ids.control},dir:o,disabled:a?.disabled,readOnly:a?.readOnly,invalid:a?.invalid,required:a?.required,getRootNode:r,...e};return function(e,t){const{context:r,send:n,prop:o,scope:a}=e,i=o("disabled"),s=o("readOnly"),l=!!r.get("checked"),c=!i&&r.get("focused"),d=!i&&r.get("focusVisible"),u={"data-active":hr(r.get("active")),"data-focus":hr(c),"data-focus-visible":hr(d),"data-readonly":hr(s),"data-hover":hr(r.get("hovered")),"data-disabled":hr(i),"data-state":l?"checked":"unchecked","data-invalid":hr(o("invalid"))};return{checked:l,disabled:i,focused:c,setChecked(e){n({type:"CHECKED.SET",checked:e,isTrusted:!1})},toggleChecked(){n({type:"CHECKED.TOGGLE",checked:l,isTrusted:!1})},getRootProps:()=>t.label({...Bp.root.attrs,...u,dir:o("dir"),id:Hp(a),htmlFor:Up(a),onPointerMove(){i||n({type:"CONTEXT.SET",context:{hovered:!0}})},onPointerLeave(){i||n({type:"CONTEXT.SET",context:{hovered:!1}})},onClick(e){i||(Vr(e)===qp(a)&&e.stopPropagation(),Nr()&&qp(a)?.focus())}}),getLabelProps:()=>t.element({...Bp.label.attrs,...u,dir:o("dir"),id:Gp(a)}),getThumbProps(){return t.element({...Bp.thumb.attrs,...u,dir:o("dir"),id:(e=a,e.ids?.thumb??`switch:${e.id}:thumb`),"aria-hidden":!0});var e},getControlProps(){return t.element({...Bp.control.attrs,...u,dir:o("dir"),id:(e=a,e.ids?.control??`switch:${e.id}:control`),"aria-hidden":!0});var e},getHiddenInputProps:()=>t.input({id:Up(a),type:"checkbox",required:o("required"),defaultChecked:l,disabled:i,"aria-labelledby":Gp(a),"aria-invalid":o("invalid"),name:o("name"),form:o("form"),value:o("value"),style:Nn,onFocus(){const e=Ju();n({type:"CONTEXT.SET",context:{focused:!0,focusVisible:e}})},onBlur(){n({type:"CONTEXT.SET",context:{focused:!1,focusVisible:!1}})},onClick(e){if(s)return void e.preventDefault();const t=e.currentTarget.checked;n({type:"CHECKED.SET",checked:t,isTrusted:!0})}})}}(no(Yp,i),so)})(r),s=Dn(i.getRootProps(),a);return(0,o.jsx)(Ob,{value:i,children:(0,o.jsx)(Kn.label,{...s,ref:t})})});_b.displayName="SwitchRoot";const Fb=(0,n.forwardRef)((e,t)=>{const r=Dn(Nb().getLabelProps(),e);return(0,o.jsx)(Kn.span,{...r,ref:t})});Fb.displayName="SwitchLabel";const Lb=(0,n.forwardRef)((e,t)=>{const r=Dn(Nb().getThumbProps(),e);return(0,o.jsx)(Kn.span,{...r,ref:t})});Lb.displayName="SwitchThumb";const Db=(0,n.forwardRef)((e,t)=>{const r=Dn(Nb().getControlProps(),e);return(0,o.jsx)(Kn.span,{...r,ref:t})});Db.displayName="SwitchControl";const jb=(0,n.forwardRef)((e,t)=>{const r=Dn(Nb().getHiddenInputProps(),e),n=zb();return(0,o.jsx)(Kn.input,{"aria-describedby":n?.ariaDescribedby,...r,ref:t})});jb.displayName="SwitchHiddenInput";const{withProvider:Mb,withContext:Wb,useStyles:$b,PropsProvider:Bb}=Go({key:"switch"}),Hb=(Mb(Vb,"root",{forwardAsChild:!0}),Mb(_b,"root",{forwardAsChild:!0})),Gb=Wb(Fb,"label",{forwardAsChild:!0}),Ub=Wb(Lb,"thumb",{forwardAsChild:!0}),qb=Wb(Db,"control",{forwardAsChild:!0,defaultProps:{children:(0,o.jsx)(Ub,{})}}),Kb=((0,n.forwardRef)(function(e,t){const r=Nb(),n=$b(),{fallback:a,children:i,...s}=e;return(0,o.jsx)(ct.span,{ref:t,"data-checked":ub(r.checked),...s,css:[n.indicator,e.css],children:r.checked?i:a})}),(0,n.forwardRef)(function(e,t){const r=Nb(),{fallback:n,children:a,...i}=e;return(0,o.jsx)(ct.span,{ref:t,"data-checked":ub(r.checked),...i,children:r.checked?a:n})}),jb),[Yb,Xb]=Ke({name:"AlertStatusContext",hookName:"useAlertStatusContext",providerName:"<Alert />"}),{withProvider:Zb,withContext:Jb,useStyles:Qb,PropsProvider:ex}=Go({key:"alert"}),tx=Zb("div","root",{forwardAsChild:!0,wrapElement:(e,t)=>(0,o.jsx)(Yb,{value:{status:t.status||"info"},children:e})}),rx=(Jb("div","title"),Jb("div","description")),nx=Jb("div","content"),ox={info:Gv,warning:Hv,success:Bv,error:Hv,neutral:Gv},ax=(0,n.forwardRef)(function(e,t){const r=Xb(),a=Qb(),i="string"==typeof r.status?ox[r.status]:n.Fragment,{children:s=(0,o.jsx)(i,{}),...l}=e;return(0,o.jsx)(ct.span,{ref:t,...l,css:[a.indicator,e.css],children:s})}),ix=(0,pt.createContext)(),sx=(0,pt.createContext)(),lx=(0,n.forwardRef)(function(e,t){const{templateAreas:r,column:n,row:a,autoFlow:i,autoRows:s,templateRows:l,autoColumns:c,templateColumns:d,inline:u,...p}=e;return(0,o.jsx)(ct.div,{...p,ref:t,css:[{display:u?"inline-grid":"grid",gridTemplateAreas:r,gridAutoColumns:c,gridColumn:n,gridRow:a,gridAutoFlow:i,gridAutoRows:s,gridTemplateRows:l,gridTemplateColumns:d},e.css]})}),cx=(0,n.forwardRef)(function(e,t){const{columns:r,minChildWidth:n,...a}=e,i=Xe(),s=n?function(e,t){return Oa(e,e=>{const r=t.tokens.getVar(`sizes.${e}`,"number"==typeof(n=e)?`${n}px`:n);var n;return null===e?null:`repeat(auto-fit, minmax(${r}, 1fr))`})}(n,i):Oa(r,e=>null===e?null:`repeat(${e}, minmax(0, 1fr))`);return(0,o.jsx)(lx,{ref:t,templateColumns:s,...a})}),[dx,ux]=$n({name:"CollapsibleContext",hookName:"useCollapsibleContext",providerName:"<CollapsibleProvider />"}),px=(0,n.forwardRef)((e,t)=>{const[{value:r},n]=(e=>["value"].reduce((e,t)=>{const[r,n]=e,o=t;return void 0!==n[o]&&(r[o]=n[o]),delete n[o],[r,n]},[{},{...e}]))(e),a=Dn(r.getRootProps(),n);return(0,o.jsx)(dx,{value:r,children:(0,o.jsx)(Kn.div,{...a,ref:t})})});px.displayName="CollapsibleRootProvider";const hx=(0,n.forwardRef)((e,t)=>{const[r,a]=(e=>(e=>["defaultOpen","disabled","id","ids","lazyMount","onExitComplete","onOpenChange","open","unmountOnExit"].reduce((e,t)=>{const[r,n]=e,o=t;return void 0!==n[o]&&(r[o]=n[o]),delete n[o],[r,n]},[{},{...e}]))(e))(e),i=((e={})=>{const{lazyMount:t,unmountOnExit:r,...o}=e,a=(0,n.useId)(),i=(0,n.useRef)(!1),{dir:s}=To(),{getRootNode:l}=Po(),c={id:a,dir:s,getRootNode:l,...o},d=function(e,t){const{state:r,send:n,context:o,scope:a,prop:i}=e,s=r.matches("open")||r.matches("closing"),l=r.matches("open"),{width:c,height:d}=o.get("size"),u=!!i("disabled"),p=!o.get("initial")&&l,h="ltr";return{disabled:u,visible:s,open:l,measureSize(){n({type:"size.measure"})},setOpen(e){r.matches("open")!==e&&n({type:e?"open":"close"})},getRootProps(){return t.element({...Jh.root.attrs,"data-state":l?"open":"closed",dir:h,id:(e=a,e.ids?.root??`collapsible:${e.id}`)});var e},getContentProps:()=>t.element({...Jh.content.attrs,"data-collapsible":"","data-state":p?void 0:l?"open":"closed",id:Qh(a),"data-disabled":hr(u),hidden:!s,style:{"--height":null!=d?`${d}px`:void 0,"--width":null!=c?`${c}px`:void 0}}),getTriggerProps(){return t.element({...Jh.trigger.attrs,id:(e=a,e.ids?.trigger??`collapsible:${e.id}:trigger`),dir:h,type:"button","data-state":l?"open":"closed","data-disabled":hr(u),"aria-controls":Qh(a),"aria-expanded":s||!1,onClick(e){e.defaultPrevented||u||n({type:l?"close":"open"})}});var e},getIndicatorProps:()=>t.element({...Jh.indicator.attrs,dir:h,"data-state":l?"open":"closed","data-disabled":hr(u)})}}(no(tg,c),so);d.visible&&(i.current=!0);const u=!d.visible&&!i.current&&t||r&&!d.visible&&i.current;return{...d,isUnmounted:u}})(r),s=Dn(i.getRootProps(),a);return(0,o.jsx)(dx,{value:i,children:(0,o.jsx)(Kn.div,{...s,ref:t})})});hx.displayName="CollapsibleRoot";const gx=(0,n.forwardRef)((e,t)=>{const r=Dn(ux().getTriggerProps(),e);return(0,o.jsx)(Kn.button,{...r,ref:t})});gx.displayName="CollapsibleTrigger";const fx=(0,n.forwardRef)((e,t)=>{const r=ux();if(r.isUnmounted)return null;const n=Dn(r.getContentProps(),e);return(0,o.jsx)(Kn.div,{...n,ref:t})});fx.displayName="CollapsibleContent";const{withProvider:mx,withContext:vx,useStyles:bx,PropsProvider:xx}=Go({key:"collapsible"}),yx=(mx(px,"root",{forwardAsChild:!0}),mx(hx,"root",{forwardAsChild:!0})),wx=(vx(gx,"trigger",{forwardAsChild:!0}),vx(fx,"content",{forwardAsChild:!0})),{useRecipeResult:Cx,PropsProvider:kx}=ra({key:"icon"}),Sx=n.forwardRef(function(e,t){const{styles:r,className:n,props:a}=Cx({asChild:!e.as,...e});return(0,o.jsx)(ct.svg,{ref:t,focusable:!1,"aria-hidden":"true",...a,css:[r,e.css],className:je(n,e.className)})}),Ex=(0,n.forwardRef)(function(e,t){return(0,o.jsx)(lb,{align:"center",...e,direction:"column",ref:t})}),Ix=ct("div",{base:{display:"inline-flex",gap:"0.5rem",isolation:"isolate",position:"relative","& [data-group-item]":{_focusVisible:{zIndex:1}}},variants:{orientation:{horizontal:{flexDirection:"row"},vertical:{flexDirection:"column"}},attached:{true:{gap:"0!"}},grow:{true:{display:"flex","& > *":{flex:1}}},stacking:{"first-on-top":{"& > [data-group-item]":{zIndex:"calc(var(--group-count) - var(--group-index))"}},"last-on-top":{"& > [data-group-item]":{zIndex:"var(--group-index)"}}}},compoundVariants:[{orientation:"horizontal",attached:!0,css:{"& > *[data-first]":{borderEndRadius:"0!",marginEnd:"-1px"},"& > *[data-between]":{borderRadius:"0!",marginEnd:"-1px"},"& > *[data-last]":{borderStartRadius:"0!"}}},{orientation:"vertical",attached:!0,css:{"& > *[data-first]":{borderBottomRadius:"0!",marginBottom:"-1px"},"& > *[data-between]":{borderRadius:"0!",marginBottom:"-1px"},"& > *[data-last]":{borderTopRadius:"0!"}}}],defaultVariants:{orientation:"horizontal"}}),Px=(0,n.memo)((0,n.forwardRef)(function(e,t){const{align:r="center",justify:a="flex-start",children:i,wrap:s,skip:l,...c}=e,d=(0,n.useMemo)(()=>{let e=n.Children.toArray(i).filter(n.isValidElement);if(1===e.length)return e;const t=e.filter(e=>!l?.(e)),r=t.length;return 1===t.length?e:e.map(e=>{const o=e.props;if(l?.(e))return e;const a=t.indexOf(e);return(0,n.cloneElement)(e,{...o,"data-group-item":"","data-first":ub(0===a),"data-last":ub(a===r-1),"data-between":ub(a>0&&a<r-1),style:{"--group-count":r,"--group-index":a,...o?.style??{}}})})},[i,l]);return(0,o.jsx)(Ix,{ref:t,alignItems:r,justifyContent:a,flexWrap:s,...c,className:je("chakra-group",e.className),children:d})})),Rx=(0,n.forwardRef)(function(e,t){const r=ta({key:"button"}),[a,i]=(0,n.useMemo)(()=>r.splitVariantProps(e),[e,r]);return(0,o.jsx)(xb,{value:a,children:(0,o.jsx)(Px,{ref:t,...i})})}),Tx=e=>{const t=(e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,r)=>r?r.toUpperCase():t.toLowerCase()))(e);return t.charAt(0).toUpperCase()+t.slice(1)},Ox=(...e)=>e.filter((e,t,r)=>Boolean(e)&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim(),Nx=e=>{for(const t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0};var Vx={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const Ax=(0,n.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:o,className:a="",children:i,iconNode:s,...l},c)=>(0,n.createElement)("svg",{ref:c,...Vx,width:t,height:t,stroke:e,strokeWidth:o?24*Number(r)/Number(t):r,className:Ox("lucide",a),...!i&&!Nx(l)&&{"aria-hidden":"true"},...l},[...s.map(([e,t])=>(0,n.createElement)(e,t)),...Array.isArray(i)?i:[i]])),zx=(e,t)=>{const r=(0,n.forwardRef)(({className:r,...o},a)=>{return(0,n.createElement)(Ax,{ref:a,iconNode:t,className:Ox(`lucide-${i=Tx(e),i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,r),...o});var i});return r.displayName=Tx(e),r},Fx=zx("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);r(942);const Lx=window.lodash,Dx=window.wp.components,[jx,Mx]=$n({name:"CheckboxContext",hookName:"useCheckboxContext",providerName:"<CheckboxProvider />"}),Wx=(0,n.forwardRef)((e,t)=>{const[{value:r},n]=(e=>["value"].reduce((e,t)=>{const[r,n]=e,o=t;return void 0!==n[o]&&(r[o]=n[o]),delete n[o],[r,n]},[{},{...e}]))(e),a=Dn(r.getRootProps(),n);return(0,o.jsx)(jx,{value:r,children:(0,o.jsx)(Kn.label,{...a,ref:t})})});Wx.displayName="CheckboxRootProvider";const[$x,Bx]=$n({name:"CheckboxGroupContext",hookName:"useCheckboxGroupContext",providerName:"<CheckboxGroupProvider />",strict:!1}),Hx=(0,n.forwardRef)((e,t)=>{const[r,a]=(e=>["checked","defaultChecked","disabled","form","id","ids","invalid","name","onCheckedChange","readOnly","required","value"].reduce((e,t)=>{const[r,n]=e,o=t;return void 0!==n[o]&&(r[o]=n[o]),delete n[o],[r,n]},[{},{...e}]))(e),i=((e={})=>{const t=Bx(),r=zb(),o=(0,n.useMemo)(()=>Dn(e,t?.getItemProps({value:e.value})??{}),[e,t]),a=(0,n.useId)(),{getRootNode:i}=Po(),{dir:s}=To(),l={id:a,ids:{label:r?.ids.label,hiddenInput:r?.ids.control},dir:s,disabled:r?.disabled,readOnly:r?.readOnly,invalid:r?.invalid,required:r?.required,getRootNode:i,...o};return function(e,t){const{send:r,context:n,prop:o,computed:a,scope:i}=e,s=o("disabled"),l=o("readOnly"),c=o("invalid"),d=!s&&n.get("focused"),u=!s&&n.get("focusVisible"),p=a("checked"),h=a("indeterminate"),g={"data-active":hr(n.get("active")),"data-focus":hr(d),"data-focus-visible":hr(u),"data-readonly":hr(l),"data-hover":hr(n.get("hovered")),"data-disabled":hr(s),"data-state":h?"indeterminate":p?"checked":"unchecked","data-invalid":hr(c)};return{checked:p,disabled:s,indeterminate:h,focused:d,checkedState:p,setChecked(e){r({type:"CHECKED.SET",checked:e,isTrusted:!1})},toggleChecked(){r({type:"CHECKED.TOGGLE",checked:p,isTrusted:!1})},getRootProps:()=>t.label({...Mh.root.attrs,...g,dir:o("dir"),id:Wh(i),htmlFor:Bh(i),onPointerMove(){s||r({type:"CONTEXT.SET",context:{hovered:!0}})},onPointerLeave(){s||r({type:"CONTEXT.SET",context:{hovered:!1}})},onClick(e){Vr(e)===Hh(i)&&e.stopPropagation()}}),getLabelProps:()=>t.element({...Mh.label.attrs,...g,dir:o("dir"),id:$h(i)}),getControlProps(){return t.element({...Mh.control.attrs,...g,dir:o("dir"),id:(e=i,e.ids?.control??`checkbox:${e.id}:control`),"aria-hidden":!0});var e},getIndicatorProps:()=>t.element({...Mh.indicator.attrs,...g,dir:o("dir"),hidden:!h&&!p}),getHiddenInputProps:()=>t.input({id:Bh(i),type:"checkbox",required:o("required"),defaultChecked:p,disabled:s,"aria-labelledby":$h(i),"aria-invalid":c,name:o("name"),form:o("form"),value:o("value"),style:Nn,onFocus(){const e=Ju();r({type:"CONTEXT.SET",context:{focused:!0,focusVisible:e}})},onBlur(){r({type:"CONTEXT.SET",context:{focused:!1,focusVisible:!1}})},onClick(e){if(l)return void e.preventDefault();const t=e.currentTarget.checked;r({type:"CHECKED.SET",checked:t,isTrusted:!0})}})}}(no(Uh,l),so)})(r),s=Dn(i.getRootProps(),a);return(0,o.jsx)(jx,{value:i,children:(0,o.jsx)(Kn.label,{...s,ref:t})})});Hx.displayName="CheckboxRoot";const Gx=(0,n.forwardRef)((e,t)=>{const r=Dn(Mx().getLabelProps(),e);return(0,o.jsx)(Kn.span,{...r,ref:t})});Gx.displayName="CheckboxLabel";const Ux=(0,n.forwardRef)((e,t)=>{const r=Dn(Mx().getControlProps(),e);return(0,o.jsx)(Kn.div,{...r,ref:t})});Ux.displayName="CheckboxControl";const qx=(0,n.forwardRef)((e,t)=>{const[r,a]=(e=>["defaultValue","value","onValueChange","disabled","invalid","readOnly","name"].reduce((e,t)=>{const[r,n]=e,o=t;return void 0!==n[o]&&(r[o]=n[o]),delete n[o],[r,n]},[{},{...e}]))(e),i=function(e={}){const{defaultValue:t,value:r,onValueChange:o,disabled:a,readOnly:i,name:s,invalid:l}=e,c=!(a||i),d=Fo(o,{sync:!0}),[u,p]=function(e){const{value:t,onChange:r,defaultValue:o}=e,[a,i]=(0,n.useState)(o),s=void 0!==t;return[s?t:a,(0,n.useCallback)(e=>(s||i(e),r?.(e)),[s,r])]}({value:r,defaultValue:t||[],onChange:d}),h=e=>u.some(t=>String(t)===String(e)),g=e=>{h(e)?m(e):f(e)},f=e=>{c&&(h(e)||p(u.concat(e)))},m=e=>{c&&p(u.filter(t=>String(t)!==String(e)))};return{isChecked:h,value:u,name:s,disabled:!!a,readOnly:!!i,invalid:!!l,setValue:p,addValue:f,toggleValue:g,getItemProps:e=>({checked:null!=e.value?h(e.value):void 0,onCheckedChange(){null!=e.value&&g(e.value)},name:s,disabled:a,readOnly:i,invalid:l})}}(r);return(0,o.jsx)($x,{value:i,children:(0,o.jsx)(Kn.div,{ref:t,role:"group",...a,...Kh.build().group.attrs})})});qx.displayName="CheckboxGroup";const Kx=(0,n.forwardRef)((e,t)=>{const r=Dn(Mx().getHiddenInputProps(),e),n=zb();return(0,o.jsx)(Kn.input,{"aria-describedby":n?.ariaDescribedby,...r,ref:t})});Kx.displayName="CheckboxHiddenInput";const Yx=(0,n.forwardRef)(function(e,t){const r=ta({key:"checkmark",recipe:e.recipe}),[n,a]=r.splitVariantProps(e),{checked:i,indeterminate:s,disabled:l,unstyled:c,children:d,...u}=a,p=c?Bo:r(n);return(0,o.jsx)(ct.svg,{ref:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3px",strokeLinecap:"round",strokeLinejoin:"round","data-state":s?"indeterminate":i?"checked":"unchecked","data-disabled":ub(l),css:[p,e.css],...u,children:s?(0,o.jsx)("path",{d:"M5 12h14"}):i?(0,o.jsx)("polyline",{points:"20 6 9 17 4 12"}):null})}),{withProvider:Xx,withContext:Zx,useStyles:Jx,PropsProvider:Qx}=Go({key:"checkbox"}),ey=(Xx(Wx,"root",{forwardAsChild:!0}),Xx(Hx,"root",{forwardAsChild:!0})),ty=Zx(Gx,"label",{forwardAsChild:!0}),ry=(0,n.forwardRef)(function(e,t){const{checked:r,indeterminate:n,...a}=e,i=Mx(),s=Jx();return r&&i.checked?(0,o.jsx)(ct.svg,{ref:t,asChild:!0,...a,css:[s.indicator,e.css],children:r}):n&&i.indeterminate?(0,o.jsx)(ct.svg,{ref:t,asChild:!0,...a,css:[s.indicator,e.css],children:n}):(0,o.jsx)(Yx,{ref:t,checked:i.checked,indeterminate:i.indeterminate,disabled:i.disabled,unstyled:!0,...a,css:[s.indicator,e.css]})}),ny=Zx(Ux,"control",{forwardAsChild:!0,defaultProps:{children:(0,o.jsx)(ry,{})}}),oy=(ct(qx,{base:{display:"flex",flexDirection:"column",gap:"1.5"}},{forwardAsChild:!0}),Kx),ay="undefined"!=typeof window?n.useLayoutEffect:n.useEffect,[iy,sy]=$n({name:"FieldsetContext",hookName:"useFieldsetContext",providerName:"<FieldsetProvider />",strict:!1}),ly=(0,n.forwardRef)((e,t)=>{const[r,a]=(e=>["id","disabled","invalid"].reduce((e,t)=>{const[r,n]=e,o=t;return void 0!==n[o]&&(r[o]=n[o]),delete n[o],[r,n]},[{},{...e}]))(e),i=((e={})=>{const{disabled:t=!1,invalid:r=!1}=e,o=Po(),a=(0,n.useRef)(!1),i=(0,n.useRef)(!1),s=e.id??(0,n.useId)(),l=(0,n.useRef)(null),c=`fieldset::${s}::error-text`,d=`fieldset::${s}::helper-text`;ay(()=>{const e=l.current;if(!e)return;const t=()=>{const e=o.getRootNode();a.current=!!e.getElementById(c),i.current=!!e.getElementById(d)};t();const r=new(o.getWindow().MutationObserver)(t);return r.observe(e,{childList:!0,subtree:!0}),()=>r.disconnect()},[o,c,d]);const u=(0,n.useMemo)(()=>{const e=[];return a.current&&r&&e.push(c),i.current&&e.push(d),e.join(" ")||void 0},[r,c,d]),p=(0,n.useMemo)(()=>()=>({...wu.root.attrs,ref:l,disabled:t,"data-disabled":hr(t),"data-invalid":hr(r),"aria-describedby":u}),[t,r,u]),h=(0,n.useMemo)(()=>()=>({...wu.legend.attrs,"data-disabled":hr(t),"data-invalid":hr(r)}),[t,r]),g=(0,n.useMemo)(()=>()=>({id:d,...wu.helperText.attrs}),[d]),f=(0,n.useMemo)(()=>()=>({id:c,...wu.errorText.attrs,"aria-live":"polite"}),[c]);return{refs:{rootRef:l},disabled:t,invalid:r,getRootProps:p,getLegendProps:h,getHelperTextProps:g,getErrorTextProps:f}})(r),s=Dn(i.getRootProps(),a);return(0,o.jsx)(iy,{value:i,children:(0,o.jsx)(Kn.fieldset,{...s,ref:Un(t,i.refs.rootRef)})})});ly.displayName="FieldsetRoot";const cy=(0,n.forwardRef)((e,t)=>{const r=sy(),n=Dn(r.getErrorTextProps(),e);return r.invalid?(0,o.jsx)(Kn.span,{...n,ref:t}):null});cy.displayName="FieldsetErrorText";const dy=(0,n.forwardRef)((e,t)=>{const r=Dn(sy().getHelperTextProps(),e);return(0,o.jsx)(Kn.span,{...r,ref:t})});dy.displayName="FieldsetHelperText";const uy=(0,n.forwardRef)((e,t)=>{const r=Dn(sy().getLegendProps(),e);return(0,o.jsx)(Kn.legend,{...r,ref:t})});uy.displayName="FieldsetLegend";const{withProvider:py,withContext:hy}=Go({key:"fieldset"}),gy=py(ly,"root"),fy=(hy(cy,"errorText"),hy(dy,"helperText"),hy(uy,"legend")),[my,vy]=(hy(Kn.div,"content"),$n({name:"RadioGroupContext",hookName:"useRadioGroupContext",providerName:"<RadioGroupProvider />"})),by=(0,n.forwardRef)((e,t)=>{const[{value:r},n]=(e=>["value"].reduce((e,t)=>{const[r,n]=e,o=t;return void 0!==n[o]&&(r[o]=n[o]),delete n[o],[r,n]},[{},{...e}]))(e),a=Dn(r.getRootProps(),n);return(0,o.jsx)(my,{value:r,children:(0,o.jsx)(Kn.div,{...a,ref:t})})});by.displayName="RadioGroupRootProvider";const xy=(0,n.forwardRef)((e,t)=>{const[r,a]=(e=>["defaultValue","disabled","form","id","ids","name","onValueChange","orientation","readOnly","value"].reduce((e,t)=>{const[r,n]=e,o=t;return void 0!==n[o]&&(r[o]=n[o]),delete n[o],[r,n]},[{},{...e}]))(e),i=(e=>{const t=(0,n.useId)(),{getRootNode:r}=Po(),{dir:o}=To(),a={id:t,dir:o,getRootNode:r,...e};return function(e,t){const{context:r,send:n,computed:o,prop:a,scope:i}=e,s=o("isDisabled"),l=a("readOnly");function c(e){const t=r.get("focusedValue")===e.value,n=t&&Ju();return{value:e.value,invalid:!!e.invalid,disabled:!!e.disabled||s,checked:r.get("value")===e.value,focused:t,focusVisible:n,hovered:r.get("hoveredValue")===e.value,active:r.get("activeValue")===e.value}}function d(e){const t=c(e);return{"data-focus":hr(t.focused),"data-focus-visible":hr(t.focusVisible),"data-disabled":hr(t.disabled),"data-readonly":hr(l),"data-state":t.checked?"checked":"unchecked","data-hover":hr(t.hovered),"data-invalid":hr(t.invalid),"data-orientation":a("orientation"),"data-ssr":hr(r.get("ssr"))}}const u=()=>{const e=(t=i,sp(t)?.querySelector("input:not(:disabled):checked")??(e=>sp(e)?.querySelector("input:not(:disabled)"))(i));var t;e?.focus()};return{focus:u,value:r.get("value"),setValue(e){n({type:"SET_VALUE",value:e,isTrusted:!1})},clearValue(){n({type:"SET_VALUE",value:null,isTrusted:!1})},getRootProps:()=>t.element({...tp.root.attrs,role:"radiogroup",id:rp(i),"aria-labelledby":np(i),"data-orientation":a("orientation"),"data-disabled":hr(s),"aria-orientation":a("orientation"),dir:a("dir"),style:{position:"relative"}}),getLabelProps:()=>t.element({...tp.label.attrs,dir:a("dir"),"data-orientation":a("orientation"),"data-disabled":hr(s),id:np(i),onClick:u}),getItemState:c,getItemProps(e){const r=c(e);return t.label({...tp.item.attrs,dir:a("dir"),id:op(i,e.value),htmlFor:ap(i,e.value),...d(e),onPointerMove(){r.disabled||r.hovered||n({type:"SET_HOVERED",value:e.value,hovered:!0})},onPointerLeave(){r.disabled||n({type:"SET_HOVERED",value:null})},onPointerDown(t){r.disabled||_r(t)&&(r.focused&&"mouse"===t.pointerType&&t.preventDefault(),n({type:"SET_ACTIVE",value:e.value,active:!0}))},onPointerUp(){r.disabled||n({type:"SET_ACTIVE",value:null})},onClick(){var t,n;!r.disabled&&Nr()&&(t=i,n=e.value,t.getById(ap(t,n)))?.focus()}})},getItemTextProps(e){return t.element({...tp.itemText.attrs,dir:a("dir"),id:(r=i,n=e.value,r.ids?.itemLabel?.(n)??`radio-group:${r.id}:radio:label:${n}`),...d(e)});var r,n},getItemControlProps(e){const r=c(e);return t.element({...tp.itemControl.attrs,dir:a("dir"),id:(n=i,o=e.value,n.ids?.itemControl?.(o)??`radio-group:${n.id}:radio:control:${o}`),"data-active":hr(r.active),"aria-hidden":!0,...d(e)});var n,o},getItemHiddenInputProps(e){const r=c(e);return t.input({"data-ownedby":rp(i),id:ap(i,e.value),type:"radio",name:a("name")||a("id"),form:a("form"),value:e.value,onClick(t){l?t.preventDefault():t.currentTarget.checked&&n({type:"SET_VALUE",value:e.value,isTrusted:!0})},onBlur(){n({type:"SET_FOCUSED",value:null,focused:!1})},onFocus(){n({type:"SET_FOCUSED",value:e.value,focused:!0})},onKeyDown(t){t.defaultPrevented||" "===t.key&&n({type:"SET_ACTIVE",value:e.value,active:!0})},onKeyUp(e){e.defaultPrevented||" "===e.key&&n({type:"SET_ACTIVE",value:null})},disabled:r.disabled,defaultChecked:r.checked,style:Nn})},getIndicatorProps(){const e=r.get("indicatorRect");return t.element({id:ip(i),...tp.indicator.attrs,dir:a("dir"),hidden:null==r.get("value"),"data-disabled":hr(s),"data-orientation":a("orientation"),style:{"--transition-property":"left, top, width, height","--left":e?.left,"--top":e?.top,"--width":e?.width,"--height":e?.height,position:"absolute",willChange:"var(--transition-property)",transitionProperty:"var(--transition-property)",transitionDuration:r.get("canIndicatorTransition")?"var(--transition-duration, 150ms)":"0ms",transitionTimingFunction:"var(--transition-timing-function)",["horizontal"===a("orientation")?"left":"top"]:"horizontal"===a("orientation")?"var(--left)":"var(--top)"}})}}}(no(dp,a),so)})(r),s=Dn(i.getRootProps(),a);return(0,o.jsx)(my,{value:i,children:(0,o.jsx)(Kn.div,{...s,ref:t})})});xy.displayName="RadioGroupRoot";const yy=(0,n.forwardRef)((e,t)=>{const r=Dn(vy().getLabelProps(),e);return(0,o.jsx)(Kn.label,{...r,ref:t})});yy.displayName="RadioGroupLabel";const[wy,Cy]=$n({name:"RadioGroupItemContext",hookName:"useRadioGroupItemContext",providerName:"<RadioGroupItemProvider />"}),[ky,Sy]=$n({name:"RadioGroupItemPropsContext",hookName:"useRadioGroupItemPropsContext",providerName:"<RadioGroupItemPropsProvider />"}),Ey=(0,n.forwardRef)((e,t)=>{const[r,n]=(e=>["value","disabled","invalid"].reduce((e,t)=>{const[r,n]=e,o=t;return void 0!==n[o]&&(r[o]=n[o]),delete n[o],[r,n]},[{},{...e}]))(e),a=vy(),i=Dn(a.getItemProps(r),n),s=a.getItemState(r);return(0,o.jsx)(wy,{value:s,children:(0,o.jsx)(ky,{value:r,children:(0,o.jsx)(Kn.label,{...i,ref:t})})})});Ey.displayName="RadioGroupItem";const Iy=(0,n.forwardRef)((e,t)=>{const r=vy(),n=Sy(),a=Dn(r.getItemTextProps(n),e);return(0,o.jsx)(Kn.span,{...a,ref:t})});Iy.displayName="RadioGroupItemText";const Py=(0,n.forwardRef)((e,t)=>{const r=vy(),n=Sy(),a=Dn(r.getItemControlProps(n),e);return(0,o.jsx)(Kn.div,{...a,ref:t})});Py.displayName="RadioGroupItemControl";const Ry=e=>e.children(Cy()),Ty=(0,n.forwardRef)((e,t)=>{const r=vy(),n=Sy(),a=Dn(r.getItemHiddenInputProps(n),e);return(0,o.jsx)(Kn.input,{...a,ref:t})});Ty.displayName="RadioGroupItemHiddenInput";const Oy=(0,n.forwardRef)(function(e,t){const r=ta({key:"radiomark",recipe:e.recipe}),[n,a]=r.splitVariantProps(e),{checked:i,disabled:s,unstyled:l,children:c,...d}=a,u=l?Bo:r(n),p={ref:t,"data-checked":ub(i),"data-disabled":ub(s),...d,css:[u,e.css]};return(0,o.jsx)(ct.span,{...p,children:i&&(0,o.jsx)("span",{className:"dot"})})}),{withProvider:Ny,withContext:Vy,useStyles:Ay,PropsProvider:zy}=Go({key:"radioGroup"}),_y=(Ny(by,"root",{forwardAsChild:!0}),Ny(xy,"root",{forwardAsChild:!0})),Fy=(Vy(yy,"label",{forwardAsChild:!0}),Vy(Ey,"item",{forwardAsChild:!0})),Ly=Vy(Iy,"itemText",{forwardAsChild:!0}),Dy=(Vy(Py,"itemControl",{forwardAsChild:!0}),(0,n.forwardRef)(function(e,t){const r=Ay();return(0,o.jsx)(Ry,{children:n=>(0,o.jsx)(Py,{asChild:!0,children:(0,o.jsx)(Oy,{ref:t,unstyled:!0,...e,checked:n.checked,disabled:n.disabled,css:[r.itemControl,e.css]})})})})),jy=Ty,My=e=>(e=>["immediate","lazyMount","onExitComplete","present","skipAnimationOnMount","unmountOnExit"].reduce((e,t)=>{const[r,n]=e,o=t;return void 0!==n[o]&&(r[o]=n[o]),delete n[o],[r,n]},[{},{...e}]))(e),[Wy,$y]=$n({name:"SelectContext",hookName:"useSelectContext",providerName:"<SelectProvider />"}),By=(0,n.forwardRef)((e,t)=>{const[r,n]=My(e),[{value:a},i]=(e=>["value"].reduce((e,t)=>{const[r,n]=e,o=t;return void 0!==n[o]&&(r[o]=n[o]),delete n[o],[r,n]},[{},{...e}]))(n),s=Lo(Dn({present:a.open},r)),l=Dn(a.getRootProps(),i);return(0,o.jsx)(Wy,{value:a,children:(0,o.jsx)(Do,{value:s,children:(0,o.jsx)(Kn.div,{...l,ref:t})})})}),Hy=(0,n.forwardRef)((e,t)=>{const[r,a]=My(e),[i,s]=(e=>["closeOnSelect","collection","composite","defaultHighlightedValue","defaultOpen","defaultValue","deselectable","disabled","form","highlightedValue","id","ids","invalid","loopFocus","multiple","name","onFocusOutside","onHighlightChange","onInteractOutside","onOpenChange","onPointerDownOutside","onSelect","onValueChange","open","positioning","readOnly","required","scrollToIndexFn","value"].reduce((e,t)=>{const[r,n]=e,o=t;return void 0!==n[o]&&(r[o]=n[o]),delete n[o],[r,n]},[{},{...e}]))(a),l=(e=>{const t=(0,n.useId)(),{dir:r}=To(),{getRootNode:o}=Po(),a=zb(),i={id:t,ids:{label:a?.ids.label,hiddenSelect:a?.ids.control},disabled:a?.disabled,readOnly:a?.readOnly,invalid:a?.invalid,required:a?.required,dir:r,getRootNode:o,...e};return Np(no(_p,i),so)})(i),c=Lo(Dn({present:l.open},r)),d=Dn(l.getRootProps(),s);return(0,o.jsx)(Wy,{value:l,children:(0,o.jsx)(Do,{value:c,children:(0,o.jsx)(Kn.div,{...d,ref:t})})})}),Gy=(0,n.forwardRef)((e,t)=>{const r=Dn($y().getTriggerProps(),e);return(0,o.jsx)(Kn.button,{...r,ref:t})});Gy.displayName="SelectTrigger";const Uy=(0,n.forwardRef)((e,t)=>{const r=Dn($y().getPositionerProps(),e);return jo().unmounted?null:(0,o.jsx)(Kn.div,{...r,ref:t})});Uy.displayName="SelectPositioner";const qy=(0,n.forwardRef)((e,t)=>{const r=$y(),n=jo(),a=Dn(r.getContentProps(),n.getPresenceProps(),e);return n.unmounted?null:(0,o.jsx)(Kn.div,{...a,ref:Un(n.ref,t)})});qy.displayName="SelectContent";const Ky=(0,n.forwardRef)((e,t)=>{const{children:r,placeholder:n,...a}=e,i=$y(),s=Dn(i.getValueTextProps(),a);return(0,o.jsx)(Kn.span,{...s,ref:t,children:r||i.valueAsString||n})});Ky.displayName="SelectValueText";const Yy=(0,n.forwardRef)((e,t)=>{const r=Dn($y().getClearTriggerProps(),e);return(0,o.jsx)(Kn.button,{...r,ref:t})});Yy.displayName="SelectClearTrigger";const[Xy,Zy]=$n({name:"SelectItemGroupPropsContext",hookName:"useSelectItemGroupPropsContext",providerName:"<SelectItemGroupPropsProvider />"}),Jy=(0,n.forwardRef)((e,t)=>{const r=(0,n.useId)(),[a,i]=(e=>["id"].reduce((e,t)=>{const[r,n]=e,o=t;return void 0!==n[o]&&(r[o]=n[o]),delete n[o],[r,n]},[{},{...e}]))(e),s={id:r,...a},l=Dn($y().getItemGroupProps(s),i);return(0,o.jsx)(Xy,{value:s,children:(0,o.jsx)(Kn.div,{...l,ref:t})})});Jy.displayName="SelectItemGroup";const Qy=(0,n.forwardRef)((e,t)=>{const r=$y(),n=Zy(),a=Dn(r.getItemGroupLabelProps({htmlFor:n.id}),e);return(0,o.jsx)(Kn.div,{...a,ref:t})});Qy.displayName="SelectItemGroupLabel";const[ew,tw]=$n({name:"SelectItemContext",hookName:"useSelectItemContext",providerName:"<SelectItemProvider />"}),[rw,nw]=$n({name:"SelectItemPropsContext",hookName:"useSelectItemPropsContext",providerName:"<SelectItemPropsProvider />"}),ow=(0,n.forwardRef)((e,t)=>{const[r,n]=(e=>["item","persistFocus"].reduce((e,t)=>{const[r,n]=e,o=t;return void 0!==n[o]&&(r[o]=n[o]),delete n[o],[r,n]},[{},{...e}]))(e),a=$y(),i=Dn(a.getItemProps(r),n),s=a.getItemState(r);return(0,o.jsx)(rw,{value:r,children:(0,o.jsx)(ew,{value:s,children:(0,o.jsx)(Kn.div,{...i,ref:t})})})});ow.displayName="SelectItem";const aw=(0,n.forwardRef)((e,t)=>{const r=$y(),n=nw(),a=Dn(r.getItemTextProps(n),e);return(0,o.jsx)(Kn.span,{...a,ref:t})});aw.displayName="SelectItemText";const iw=(0,n.forwardRef)((e,t)=>{const r=$y(),n=nw(),a=Dn(r.getItemIndicatorProps(n),e);return(0,o.jsx)(Kn.div,{...a,ref:t})});iw.displayName="SelectItemIndicator";const sw=(0,n.forwardRef)((e,t)=>{const r=Dn($y().getIndicatorProps(),e);return(0,o.jsx)(Kn.div,{...r,ref:t})});sw.displayName="SelectIndicator";const lw=(0,n.forwardRef)((e,t)=>{const r=Dn($y().getControlProps(),e);return(0,o.jsx)(Kn.div,{...r,ref:t})});lw.displayName="SelectControl";const cw=(0,n.forwardRef)((e,t)=>{const r=Dn($y().getLabelProps(),e);return(0,o.jsx)(Kn.label,{...r,ref:t})});cw.displayName="SelectLabel";const dw=(0,n.forwardRef)((e,t)=>{const r=$y(),n=Dn(r.getHiddenSelectProps(),e),a=0===r.value.length,i=zb();return(0,o.jsxs)(Kn.select,{"aria-describedby":i?.ariaDescribedby,...n,ref:t,children:[a&&(0,o.jsx)("option",{value:""}),r.collection.items.map((e,t)=>(0,o.jsx)("option",{value:r.collection.getItemValue(e)??"",disabled:r.collection.getItemDisabled(e),children:r.collection.stringifyItem(e)},t))]})});dw.displayName="SelectHiddenSelect";const{withProvider:uw,withContext:pw,useStyles:hw,PropsProvider:gw}=Go({key:"select"}),fw=(uw(By,"root",{forwardAsChild:!0}),uw(Hy,"root",{forwardAsChild:!0,defaultProps:{positioning:{sameWidth:!0}}})),mw=pw(Gy,"trigger",{forwardAsChild:!0}),vw=pw(Uy,"positioner",{forwardAsChild:!0}),bw=pw(qy,"content",{forwardAsChild:!0}),xw=pw(Ky,"valueText",{forwardAsChild:!0}),yw=(pw(Yy,"clearTrigger",{forwardAsChild:!0,defaultProps:{children:(0,o.jsx)(Uv,{boxSize:"1em"})}}),pw(Jy,"itemGroup",{forwardAsChild:!0}),pw(Qy,"itemGroupLabel",{forwardAsChild:!0}),pw(ow,"item",{forwardAsChild:!0})),ww=(pw(aw,"itemText",{forwardAsChild:!0}),pw(iw,"itemIndicator",{forwardAsChild:!0,defaultProps:{children:(0,o.jsx)(Mv,{})}})),Cw=pw("div","indicatorGroup"),kw=pw(sw,"indicator",{forwardAsChild:!0,defaultProps:{children:(0,o.jsx)($v,{})}}),Sw=pw(lw,"control",{forwardAsChild:!0}),Ew=pw(cw,"label",{forwardAsChild:!0}),Iw=dw,Pw=(0,n.forwardRef)((e,t)=>{const[r,a]=(e=>["id","ids","disabled","invalid","readOnly","required"].reduce((e,t)=>{const[r,n]=e,o=t;return void 0!==n[o]&&(r[o]=n[o]),delete n[o],[r,n]},[{},{...e}]))(e),i=((e={})=>{const t=sy(),r=Po(),{ids:o,disabled:a=Boolean(t?.disabled),invalid:i=!1,readOnly:s=!1,required:l=!1}=e,[c,d]=(0,n.useState)(!1),[u,p]=(0,n.useState)(!1),h=e.id??(0,n.useId)(),g=(0,n.useRef)(null),f=o?.control??`field::${h}`,m=o?.errorText??`field::${h}::error-text`,v=o?.helperText??`field::${h}::helper-text`,b=o?.label??`field::${h}::label`;ay(()=>{const e=g.current;if(!e)return;const t=()=>{const e=r.getRootNode();d(!!e.getElementById(m)),p(!!e.getElementById(v))};t();const n=new(r.getWindow().MutationObserver)(t);return n.observe(e,{childList:!0,subtree:!0}),()=>n.disconnect()},[r,m,v]);const x=(0,n.useMemo)(()=>{const e=[];return c&&i&&e.push(m),u&&e.push(v),e.join(" ")||void 0},[i,m,v,c,u]),y=(0,n.useMemo)(()=>()=>({...xu.root.attrs,id:f,ref:g,role:"group","data-disabled":hr(a),"data-invalid":hr(i),"data-readonly":hr(s)}),[a,i,s,f]),w=(0,n.useMemo)(()=>()=>({...xu.label.attrs,id:b,"data-disabled":hr(a),"data-invalid":hr(i),"data-readonly":hr(s),htmlFor:h}),[a,i,s,h,b]),C=(0,n.useMemo)(()=>()=>({"aria-describedby":x,"aria-invalid":gr(i),"data-invalid":hr(i),"data-required":hr(l),"data-readonly":hr(s),id:h,required:l,disabled:a,readOnly:s}),[x,i,l,s,h,a]),k=(0,n.useMemo)(()=>()=>({...C(),...xu.input.attrs}),[C]),S=(0,n.useMemo)(()=>()=>({...C(),...xu.textarea.attrs}),[C]),E=(0,n.useMemo)(()=>()=>({...C(),...xu.select.attrs}),[C]),I=(0,n.useMemo)(()=>()=>({id:v,...xu.helperText.attrs,"data-disabled":hr(a)}),[a,v]),P=(0,n.useMemo)(()=>()=>({id:m,...xu.errorText.attrs,"aria-live":"polite"}),[m]),R=(0,n.useMemo)(()=>()=>({"aria-hidden":!0,...xu.requiredIndicator.attrs}),[]);return{ariaDescribedby:x,ids:{root:f,control:h,label:b,errorText:m,helperText:v},refs:{rootRef:g},disabled:a,invalid:i,readOnly:s,required:l,getLabelProps:w,getRootProps:y,getInputProps:k,getTextareaProps:S,getSelectProps:E,getHelperTextProps:I,getErrorTextProps:P,getRequiredIndicatorProps:R}})(r),s=Dn(i.getRootProps(),a);return(0,o.jsx)(Ab,{value:i,children:(0,o.jsx)(Kn.div,{...s,ref:Un(t,i.refs.rootRef)})})});Pw.displayName="FieldRoot";const Rw=(0,n.forwardRef)((e,t)=>{const r=zb(),n=Dn(r?.getLabelProps(),e);return(0,o.jsx)(Kn.label,{...n,ref:t})});Rw.displayName="FieldLabel";const Tw=(0,n.forwardRef)((e,t)=>{const r=zb(),n=Dn(r?.getHelperTextProps(),e);return(0,o.jsx)(Kn.span,{...n,ref:t})});Tw.displayName="FieldHelperText";const Ow=(0,n.forwardRef)((e,t)=>{const r=zb(),n=Dn(r.getErrorTextProps(),e);return r?.invalid?(0,o.jsx)(Kn.span,{...n,ref:t}):null});Ow.displayName="FieldErrorText";const{withProvider:Nw,withContext:Vw,useStyles:Aw,useClassNames:zw,PropsProvider:_w}=Go({key:"field"}),Fw=Nw(Pw,"root",{forwardAsChild:!0}),Lw=Vw(Rw,"label",{forwardAsChild:!0}),Dw=(Vw(Tw,"helperText",{forwardAsChild:!0}),Vw(Ow,"errorText",{forwardAsChild:!0}),function(e){const{viewBox:t="0 0 24 24",d:r,displayName:a,defaultProps:i={}}=e,s=n.Children.toArray(e.path),l=(0,n.forwardRef)((e,n)=>(0,o.jsx)(Sx,{ref:n,asChild:!1,viewBox:t,...i,...e,children:s.length?s:(0,o.jsx)("path",{fill:"currentColor",d:r})}));l.displayName=a}({d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"}),(0,n.forwardRef)(function(e,t){const{fallback:r,children:n="*",...a}=e,i=zb(),s=zw(),l=Aw();return i?.required?(0,o.jsx)(ct.span,{ref:t,"aria-hidden":"true",...a,className:je(s.requiredIndicator,e.className),css:[l.requiredIndicator,e.css],children:n}):r}),(0,n.forwardRef)((e,t)=>{const r=zb(),n=Dn(r?.getInputProps(),e);return(0,o.jsx)(Kn.input,{...n,ref:t})}));Dw.displayName="FieldInput";const{withContext:jw,PropsProvider:Mw}=ra({key:"input"}),Ww=jw(Dw),[$w,Bw]=$n({name:"NumberInputContext",hookName:"useNumberInputContext",providerName:"<NumberInputProvider />"}),Hw=(0,n.forwardRef)((e,t)=>{const[{value:r},n]=(e=>["value"].reduce((e,t)=>{const[r,n]=e,o=t;return void 0!==n[o]&&(r[o]=n[o]),delete n[o],[r,n]},[{},{...e}]))(e),a=Dn(r.getRootProps(),n);return(0,o.jsx)($w,{value:r,children:(0,o.jsx)(Kn.div,{...a,ref:t})})});Hw.displayName="NumberInputRootProvider";const Gw=(0,n.forwardRef)((e,t)=>{const[r,a]=(e=>["allowMouseWheel","allowOverflow","clampValueOnBlur","defaultValue","disabled","focusInputOnChange","form","formatOptions","id","ids","inputMode","invalid","locale","max","min","name","onFocusChange","onValueChange","onValueInvalid","pattern","readOnly","required","spinOnPress","step","translations","value"].reduce((e,t)=>{const[r,n]=e,o=t;return void 0!==n[o]&&(r[o]=n[o]),delete n[o],[r,n]},[{},{...e}]))(e),i=(e=>{const t=(0,n.useId)(),{getRootNode:r}=Po(),{dir:o,locale:a}=To(),i=zb(),s={id:t,ids:{label:i?.ids.label,input:i?.ids.control},disabled:i?.disabled,readOnly:i?.readOnly,required:i?.required,invalid:i?.invalid,dir:o,locale:a,getRootNode:r,...e};return function(e,t){const{state:r,send:n,prop:o,scope:a,computed:i}=e,s=r.hasTag("focus"),l=i("isDisabled"),c=o("readOnly"),d=i("isValueEmpty"),u=i("isOutOfRange")||!!o("invalid"),p=l||!i("canIncrement")||c,h=l||!i("canDecrement")||c,g=o("translations");return{focused:s,invalid:u,empty:d,value:i("formattedValue"),valueAsNumber:i("valueAsNumber"),setValue(e){n({type:"VALUE.SET",value:e})},clearValue(){n({type:"VALUE.CLEAR"})},increment(){n({type:"VALUE.INCREMENT"})},decrement(){n({type:"VALUE.DECREMENT"})},setToMax(){n({type:"VALUE.SET",value:o("max")})},setToMin(){n({type:"VALUE.SET",value:o("min")})},focus(){Gg(a)?.focus()},getRootProps(){return t.element({id:(e=a,e.ids?.root??`number-input:${e.id}`),...Mg.root.attrs,dir:o("dir"),"data-disabled":hr(l),"data-focus":hr(s),"data-invalid":hr(u)});var e},getLabelProps(){return t.label({...Mg.label.attrs,dir:o("dir"),"data-disabled":hr(l),"data-focus":hr(s),"data-invalid":hr(u),id:(e=a,e.ids?.label??`number-input:${e.id}:label`),htmlFor:Wg(a)});var e},getControlProps:()=>t.element({...Mg.control.attrs,dir:o("dir"),role:"group","aria-disabled":l,"data-focus":hr(s),"data-disabled":hr(l),"data-invalid":hr(u),"aria-invalid":gr(u)}),getValueTextProps:()=>t.element({...Mg.valueText.attrs,dir:o("dir"),"data-disabled":hr(l),"data-invalid":hr(u),"data-focus":hr(s)}),getInputProps:()=>t.input({...Mg.input.attrs,dir:o("dir"),name:o("name"),form:o("form"),id:Wg(a),role:"spinbutton",defaultValue:i("formattedValue"),pattern:o("pattern"),inputMode:o("inputMode"),"aria-invalid":gr(u),"data-invalid":hr(u),disabled:l,"data-disabled":hr(l),readOnly:c,required:o("required"),autoComplete:"off",autoCorrect:"off",spellCheck:"false",type:"text","aria-roledescription":"numberfield","aria-valuemin":o("min"),"aria-valuemax":o("max"),"aria-valuenow":Number.isNaN(i("valueAsNumber"))?void 0:i("valueAsNumber"),"aria-valuetext":i("valueText"),onFocus(){n({type:"INPUT.FOCUS"})},onBlur(){n({type:"INPUT.BLUR"})},onInput(e){n({type:"INPUT.CHANGE",target:e.currentTarget,hint:"set"})},onBeforeInput(e){try{const{selectionStart:t,selectionEnd:r,value:n}=e.currentTarget,o=n.slice(0,t)+(e.data??"")+n.slice(r);i("parser").isValidPartialNumber(o)||e.preventDefault()}catch{}},onKeyDown(e){if(e.defaultPrevented)return;if(c)return;if(zr(e))return;const t=$r(e)*o("step"),r={ArrowUp(){n({type:"INPUT.ARROW_UP",step:t}),e.preventDefault()},ArrowDown(){n({type:"INPUT.ARROW_DOWN",step:t}),e.preventDefault()},Home(){Fr(e)||(n({type:"INPUT.HOME"}),e.preventDefault())},End(){Fr(e)||(n({type:"INPUT.END"}),e.preventDefault())},Enter(){n({type:"INPUT.ENTER"})}}[e.key];r?.(e)}}),getDecrementTriggerProps:()=>t.button({...Mg.decrementTrigger.attrs,dir:o("dir"),id:Bg(a),disabled:h,"data-disabled":hr(h),"aria-label":g.decrementLabel,type:"button",tabIndex:-1,"aria-controls":Wg(a),onPointerDown(e){h||_r(e)&&(n({type:"TRIGGER.PRESS_DOWN",hint:"decrement",pointerType:e.pointerType}),"mouse"===e.pointerType&&e.preventDefault(),"touch"===e.pointerType&&e.currentTarget?.focus({preventScroll:!0}))},onPointerUp(e){n({type:"TRIGGER.PRESS_UP",hint:"decrement",pointerType:e.pointerType})},onPointerLeave(){h||n({type:"TRIGGER.PRESS_UP",hint:"decrement"})}}),getIncrementTriggerProps:()=>t.button({...Mg.incrementTrigger.attrs,dir:o("dir"),id:$g(a),disabled:p,"data-disabled":hr(p),"aria-label":g.incrementLabel,type:"button",tabIndex:-1,"aria-controls":Wg(a),onPointerDown(e){!p&&_r(e)&&(n({type:"TRIGGER.PRESS_DOWN",hint:"increment",pointerType:e.pointerType}),"mouse"===e.pointerType&&e.preventDefault(),"touch"===e.pointerType&&e.currentTarget?.focus({preventScroll:!0}))},onPointerUp(e){n({type:"TRIGGER.PRESS_UP",hint:"increment",pointerType:e.pointerType})},onPointerLeave(e){n({type:"TRIGGER.PRESS_UP",hint:"increment",pointerType:e.pointerType})}}),getScrubberProps(){return t.element({...Mg.scrubber.attrs,dir:o("dir"),"data-disabled":hr(l),id:(e=a,e.ids?.scrubber??`number-input:${e.id}:scrubber`),role:"presentation",onMouseDown(e){if(l)return;if(!_r(e))return;const t=Br(e),r=Cr(e.currentTarget).devicePixelRatio;t.x=t.x-Zt(7.5,r),t.y=t.y-Zt(7.5,r),n({type:"SCRUBBER.PRESS_DOWN",point:t}),e.preventDefault()},style:{cursor:l?void 0:"ew-resize"}});var e}}}(no(ef,s),so)})(r),s=Dn(i.getRootProps(),a);return(0,o.jsx)($w,{value:i,children:(0,o.jsx)(Kn.div,{...s,ref:t})})});Gw.displayName="NumberInputRoot";const Uw=(0,n.forwardRef)((e,t)=>{const r=Dn(Bw().getLabelProps(),e);return(0,o.jsx)(Kn.label,{...r,ref:t})});Uw.displayName="NumberInputLabel";const qw=(0,n.forwardRef)((e,t)=>{const r=Dn(Bw().getInputProps(),e),n=zb();return(0,o.jsx)(Kn.input,{"aria-describedby":n?.ariaDescribedby,...r,ref:t})});qw.displayName="NumberInputInput";const Kw=(0,n.forwardRef)((e,t)=>{const r=Dn(Bw().getIncrementTriggerProps(),e);return(0,o.jsx)(Kn.button,{...r,ref:t})});Kw.displayName="NumberInputIncrementTrigger";const Yw=(0,n.forwardRef)((e,t)=>{const r=Dn(Bw().getDecrementTriggerProps(),e);return(0,o.jsx)(Kn.button,{...r,ref:t})});Yw.displayName="NumberInputDecrementTrigger";const Xw=(0,n.forwardRef)((e,t)=>{const r=Dn(Bw().getControlProps(),e);return(0,o.jsx)(Kn.div,{...r,ref:t})});Xw.displayName="NumberInputControl";const Zw=(0,n.forwardRef)((e,t)=>{const r=Dn(Bw().getScrubberProps(),e);return(0,o.jsx)(Kn.div,{...r,ref:t})});Zw.displayName="NumberInputScrubber";const Jw=(0,n.forwardRef)((e,t)=>{const{children:r,...n}=e,a=Bw(),i=Dn(a.getValueTextProps(),n);return(0,o.jsx)(Kn.span,{...i,ref:t,children:r||a.value})});Jw.displayName="NumberInputValueText";const{withProvider:Qw,withContext:eC,useStyles:tC,PropsProvider:rC}=Go({key:"numberInput"}),nC=(Qw(Hw,"root",{forwardAsChild:!0}),Qw(Gw,"root",{forwardAsChild:!0})),oC=(eC(Uw,"label",{forwardAsChild:!0}),eC(qw,"input",{forwardAsChild:!0})),aC=eC(Kw,"incrementTrigger",{forwardAsChild:!0,defaultProps:{children:(0,o.jsx)(Wv,{})}}),iC=eC(Yw,"decrementTrigger",{forwardAsChild:!0,defaultProps:{children:(0,o.jsx)($v,{})}}),sC=eC(Xw,"control",{forwardAsChild:!0,defaultProps:{children:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(aC,{}),(0,o.jsx)(iC,{})]})}}),[lC,cC]=(eC(Zw,"scrubber",{forwardAsChild:!0}),eC(Jw,"valueText",{forwardAsChild:!0}),$n({name:"ColorPickerContext",hookName:"useColorPickerContext",providerName:"<ColorPickerProvider />"})),dC=(0,n.forwardRef)((e,t)=>{const[r,n]=My(e),[{value:a},i]=(e=>["value"].reduce((e,t)=>{const[r,n]=e,o=t;return void 0!==n[o]&&(r[o]=n[o]),delete n[o],[r,n]},[{},{...e}]))(n),s=Lo(Dn({present:a.open},r)),l=Dn(a.getRootProps(),i);return(0,o.jsx)(lC,{value:a,children:(0,o.jsx)(Do,{value:s,children:(0,o.jsx)(Kn.div,{...l,ref:t})})})});dC.displayName="ColorPickerRootProvider";const uC=(0,n.forwardRef)((e,t)=>{const[r,a]=My(e),[i,s]=(e=>["closeOnSelect","defaultOpen","defaultValue","defaultFormat","disabled","format","id","ids","initialFocusEl","invalid","name","name","onFocusOutside","onFormatChange","onInteractOutside","onOpenChange","onPointerDownOutside","onValueChange","onValueChangeEnd","open","openAutoFocus","positioning","readOnly","required","inline","value"].reduce((e,t)=>{const[r,n]=e,o=t;return void 0!==n[o]&&(r[o]=n[o]),delete n[o],[r,n]},[{},{...e}]))(a),l=(e=>{const t=(0,n.useId)(),{getRootNode:r}=Po(),{dir:o}=To(),a=zb(),i={id:t,ids:{label:a?.ids.label,input:a?.ids.control},dir:o,disabled:a?.disabled,invalid:a?.invalid,readOnly:a?.readOnly,required:a?.required,getRootNode:r,...e};return function(e,t){const{context:r,send:n,prop:o,computed:a,state:i,scope:s}=e,l=r.get("value"),c=r.get("format"),d=a("areaValue"),u=a("valueAsString"),p=a("disabled"),h=a("interactive"),g=i.hasTag("dragging"),f=i.hasTag("open"),m=i.hasTag("focused"),v=e=>{const t=d.getChannels();return{xChannel:e.xChannel??t[1],yChannel:e.yChannel??t[2]}},b=r.get("currentPlacement"),x=Ic({...o("positioning"),placement:b});function y(e){const t=Fd(e.value).toFormat(r.get("format"));return{value:t,valueAsString:t.toString("hex"),checked:t.isEqual(l),disabled:e.disabled||!h}}return{dragging:g,open:f,valueAsString:u,value:l,inline:!!o("inline"),setOpen(e){o("inline")||i.hasTag("open")!==e&&n({type:e?"OPEN":"CLOSE"})},setValue(e){n({type:"VALUE.SET",value:Fd(e),src:"set-color"})},getChannelValue:e=>eu(l,e),getChannelValueText:(e,t)=>l.formatChannelValue(e,t),setChannelValue(e,t){const r=l.withChannelValue(e,t);n({type:"VALUE.SET",value:r,src:"set-channel"})},format:r.get("format"),setFormat(e){const t=l.toFormat(e);n({type:"VALUE.SET",value:t,src:"set-format"})},alpha:l.getChannelValue("alpha"),setAlpha(e){const t=l.withChannelValue("alpha",e);n({type:"VALUE.SET",value:t,src:"set-alpha"})},getRootProps(){return t.element({...Dd.root.attrs,dir:o("dir"),id:(e=s,e.ids?.root??`color-picker:${e.id}`),"data-disabled":hr(p),"data-readonly":hr(o("readOnly")),"data-invalid":hr(o("invalid")),style:{"--value":l.toString("css")}});var e},getLabelProps:()=>t.element({...Dd.label.attrs,dir:o("dir"),id:jd(s),htmlFor:Md(s),"data-disabled":hr(p),"data-readonly":hr(o("readOnly")),"data-invalid":hr(o("invalid")),"data-focus":hr(m),onClick(e){e.preventDefault();const t=kn(Zd(s),"[data-channel=hex]");t?.focus({preventScroll:!0})}}),getControlProps:()=>t.element({...Dd.control.attrs,id:Wd(s),dir:o("dir"),"data-disabled":hr(p),"data-readonly":hr(o("readOnly")),"data-invalid":hr(o("invalid")),"data-state":f?"open":"closed","data-focus":hr(m)}),getTriggerProps:()=>t.button({...Dd.trigger.attrs,id:$d(s),dir:o("dir"),disabled:p,"aria-label":`select color. current color is ${u}`,"aria-controls":Bd(s),"aria-labelledby":jd(s),"data-disabled":hr(p),"data-readonly":hr(o("readOnly")),"data-invalid":hr(o("invalid")),"data-placement":b,"aria-expanded":hr(f),"data-state":f?"open":"closed","data-focus":hr(m),type:"button",onClick(){h&&n({type:"TRIGGER.CLICK"})},onBlur(){h&&n({type:"TRIGGER.BLUR"})},style:{position:"relative"}}),getPositionerProps:()=>t.element({...Dd.positioner.attrs,id:Hd(s),dir:o("dir"),style:x.floating}),getContentProps:()=>t.element({...Dd.content.attrs,id:Bd(s),dir:o("dir"),tabIndex:-1,"data-placement":b,"data-state":f?"open":"closed",hidden:!f}),getValueTextProps:()=>t.element({...Dd.valueText.attrs,dir:o("dir"),"data-disabled":hr(p),"data-focus":hr(m)}),getAreaProps(e={}){const{xChannel:r,yChannel:a}=v(e),{areaStyles:i}=wd(d,{xChannel:r,yChannel:a,dir:o("dir")});return t.element({...Dd.area.attrs,id:Gd(s),role:"group","data-invalid":hr(o("invalid")),"data-disabled":hr(p),"data-readonly":hr(o("readOnly")),onPointerDown(e){if(!h)return;if(!_r(e))return;if(Fr(e))return;const t=Br(e);n({type:"AREA.POINTER_DOWN",point:t,channel:{xChannel:r,yChannel:a},id:"area"}),e.preventDefault()},style:{position:"relative",touchAction:"none",forcedColorAdjust:"none",...i}})},getAreaBackgroundProps(e={}){const{xChannel:r,yChannel:n}=v(e),{areaGradientStyles:a}=wd(d,{xChannel:r,yChannel:n,dir:o("dir")});return t.element({...Dd.areaBackground.attrs,id:(i=s,i.ids?.areaGradient??`color-picker:${i.id}:area-gradient`),"data-invalid":hr(o("invalid")),"data-disabled":hr(p),"data-readonly":hr(o("readOnly")),style:{position:"relative",touchAction:"none",forcedColorAdjust:"none",...a}});var i},getAreaThumbProps(e={}){const{xChannel:r,yChannel:a}=v(e),i={xChannel:r,yChannel:a},l=d.getChannelValuePercent(r),c=1-d.getChannelValuePercent(a),u=d.getChannelValue(r),g=d.getChannelValue(a),f=d.withChannelValue("alpha",1).toString("css");return t.element({...Dd.areaThumb.attrs,id:Ud(s),dir:o("dir"),tabIndex:p?void 0:0,"data-disabled":hr(p),"data-invalid":hr(o("invalid")),"data-readonly":hr(o("readOnly")),role:"slider","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":u,"aria-label":`${r} and ${a}`,"aria-roledescription":"2d slider","aria-valuetext":`${r} ${u}, ${a} ${g}`,style:{position:"absolute",left:100*l+"%",top:100*c+"%",transform:"translate(-50%, -50%)",touchAction:"none",forcedColorAdjust:"none","--color":f,background:f},onFocus(){h&&n({type:"AREA.FOCUS",id:"area",channel:i})},onKeyDown(e){if(e.defaultPrevented)return;if(!h)return;const t=$r(e),r={ArrowUp(){n({type:"AREA.ARROW_UP",channel:i,step:t})},ArrowDown(){n({type:"AREA.ARROW_DOWN",channel:i,step:t})},ArrowLeft(){n({type:"AREA.ARROW_LEFT",channel:i,step:t})},ArrowRight(){n({type:"AREA.ARROW_RIGHT",channel:i,step:t})},PageUp(){n({type:"AREA.PAGE_UP",channel:i,step:t})},PageDown(){n({type:"AREA.PAGE_DOWN",channel:i,step:t})},Escape(e){e.stopPropagation()}}[jr(e,{dir:o("dir")})];r&&(r(e),e.preventDefault())}})},getTransparencyGridProps(e={}){const{size:r="12px"}=e;return t.element({...Dd.transparencyGrid.attrs,style:{"--size":r,width:"100%",height:"100%",position:"absolute",backgroundColor:"#fff",backgroundImage:"conic-gradient(#eeeeee 0 25%, transparent 0 50%, #eeeeee 0 75%, transparent 0)",backgroundSize:"var(--size) var(--size)",inset:"0px",zIndex:"auto",pointerEvents:"none"}})},getChannelSliderProps(e){const{orientation:r="horizontal",channel:o,format:a}=e;return t.element({...Dd.channelSlider.attrs,"data-channel":o,"data-orientation":r,role:"presentation",onPointerDown(e){if(!h)return;if(!_r(e))return;if(Fr(e))return;const t=Br(e);n({type:"CHANNEL_SLIDER.POINTER_DOWN",channel:o,format:a,point:t,id:o,orientation:r}),e.preventDefault()},style:{position:"relative",touchAction:"none"}})},getChannelSliderTrackProps(e){const{orientation:r="horizontal",channel:n,format:a}=e,i=a?l.toFormat(a):d;return t.element({...Dd.channelSliderTrack.attrs,id:qd(s,n),role:"group","data-channel":n,"data-orientation":r,style:{position:"relative",forcedColorAdjust:"none",backgroundImage:tu({orientation:r,channel:n,dir:o("dir"),value:i})}})},getChannelSliderLabelProps(e){const{channel:r}=e;return t.element({...Dd.channelSliderLabel.attrs,"data-channel":r,onClick(e){if(!h)return;e.preventDefault();const t=Kd(s,r);s.getById(t)?.focus({preventScroll:!0})},style:{userSelect:"none",WebkitUserSelect:"none"}})},getChannelSliderValueTextProps:e=>t.element({...Dd.channelSliderValueText.attrs,"data-channel":e.channel}),getChannelSliderThumbProps(e){const{orientation:r="horizontal",channel:a,format:i}=e,c=i?l.toFormat(i):d,u=c.getChannelRange(a),g=c.getChannelValue(a),f=(g-u.minValue)/(u.maxValue-u.minValue),m="horizontal"===r?{left:100*f+"%",top:"50%"}:{top:100*f+"%",left:"50%"};return t.element({...Dd.channelSliderThumb.attrs,id:Kd(s,a),role:"slider","aria-label":a,tabIndex:p?void 0:0,"data-channel":a,"data-disabled":hr(p),"data-orientation":r,"aria-disabled":hr(p),"aria-orientation":r,"aria-valuemax":u.maxValue,"aria-valuemin":u.minValue,"aria-valuenow":g,"aria-valuetext":`${a} ${g}`,style:{forcedColorAdjust:"none",position:"absolute",background:Qd(d,a).toString("css"),...m},onFocus(){h&&n({type:"CHANNEL_SLIDER.FOCUS",channel:a})},onKeyDown(e){if(e.defaultPrevented)return;if(!h)return;const t=$r(e)*u.step,r={ArrowUp(){n({type:"CHANNEL_SLIDER.ARROW_UP",channel:a,step:t})},ArrowDown(){n({type:"CHANNEL_SLIDER.ARROW_DOWN",channel:a,step:t})},ArrowLeft(){n({type:"CHANNEL_SLIDER.ARROW_LEFT",channel:a,step:t})},ArrowRight(){n({type:"CHANNEL_SLIDER.ARROW_RIGHT",channel:a,step:t})},PageUp(){n({type:"CHANNEL_SLIDER.PAGE_UP",channel:a})},PageDown(){n({type:"CHANNEL_SLIDER.PAGE_DOWN",channel:a})},Home(){n({type:"CHANNEL_SLIDER.HOME",channel:a})},End(){n({type:"CHANNEL_SLIDER.END",channel:a})},Escape(e){e.stopPropagation()}}[jr(e,{dir:o("dir")})];r&&(r(e),e.preventDefault())}})},getChannelInputProps(e){const{channel:r}=e,a="hex"===r||"css"===r,i=function(e,t){switch(t){case"hex":const r=_d("#000000"),n=_d("#FFFFFF");return{minValue:r.toHexInt(),maxValue:n.toHexInt(),pageSize:10,step:1};case"css":return;case"hue":case"saturation":case"lightness":return e.toFormat("hsla").getChannelRange(t);case"brightness":return e.toFormat("hsba").getChannelRange(t);case"red":case"green":case"blue":return e.toFormat("rgba").getChannelRange(t);default:return e.getChannelRange(t)}}(l,r);return t.input({...Dd.channelInput.attrs,dir:o("dir"),type:a?"text":"number","data-channel":r,"aria-label":r,spellCheck:!1,autoComplete:"off",disabled:p,"data-disabled":hr(p),"data-invalid":hr(o("invalid")),"data-readonly":hr(o("readOnly")),readOnly:o("readOnly"),defaultValue:eu(l,r),min:i?.minValue,max:i?.maxValue,step:i?.step,onBeforeInput(e){!a&&h&&e.currentTarget.value.match(/[^0-9.]/g)&&e.preventDefault()},onFocus(e){h&&(n({type:"CHANNEL_INPUT.FOCUS",channel:r}),e.currentTarget.select())},onBlur(e){if(!h)return;const t=a?e.currentTarget.value:e.currentTarget.valueAsNumber;n({type:"CHANNEL_INPUT.BLUR",channel:r,value:t,isTextField:a})},onKeyDown(e){if(!e.defaultPrevented&&h&&"Enter"===e.key){const t=a?e.currentTarget.value:e.currentTarget.valueAsNumber;n({type:"CHANNEL_INPUT.CHANGE",channel:r,value:t,isTextField:a}),e.preventDefault()}},style:{appearance:"none",WebkitAppearance:"none",MozAppearance:"textfield"}})},getHiddenInputProps:()=>t.input({type:"text",disabled:p,name:o("name"),tabIndex:-1,readOnly:o("readOnly"),required:o("required"),id:Md(s),style:Nn,defaultValue:u}),getEyeDropperTriggerProps:()=>t.button({...Dd.eyeDropperTrigger.attrs,type:"button",dir:o("dir"),disabled:p,"data-disabled":hr(p),"data-invalid":hr(o("invalid")),"data-readonly":hr(o("readOnly")),"aria-label":"Pick a color from the screen",onClick(){h&&n({type:"EYEDROPPER.CLICK"})}}),getSwatchGroupProps:()=>t.element({...Dd.swatchGroup.attrs,role:"group"}),getSwatchTriggerState:y,getSwatchTriggerProps(e){const r=y(e);return t.button({...Dd.swatchTrigger.attrs,disabled:r.disabled,dir:o("dir"),type:"button","aria-label":`select ${r.valueAsString} as the color`,"data-state":r.checked?"checked":"unchecked","data-value":r.valueAsString,"data-disabled":hr(r.disabled),onClick(){r.disabled||n({type:"SWATCH_TRIGGER.CLICK",value:r.value})},style:{"--color":r.valueAsString,position:"relative"}})},getSwatchIndicatorProps(e){const r=y(e);return t.element({...Dd.swatchIndicator.attrs,dir:o("dir"),hidden:!r.checked})},getSwatchProps(e){const{respectAlpha:r=!0}=e,n=y(e),a=n.value.toString(r?"css":"hex");return t.element({...Dd.swatch.attrs,dir:o("dir"),"data-state":n.checked?"checked":"unchecked","data-value":n.valueAsString,style:{"--color":a,position:"relative",background:a}})},getFormatTriggerProps:()=>t.button({...Dd.formatTrigger.attrs,dir:o("dir"),type:"button","aria-label":`change color format to ${ou(c)}`,onClick(e){if(e.currentTarget.disabled)return;const t=ou(c);n({type:"FORMAT.SET",format:t,src:"format-trigger"})}}),getFormatSelectProps:()=>t.select({...Dd.formatSelect.attrs,"aria-label":"change color format",dir:o("dir"),defaultValue:o("format"),disabled:p,onChange(e){const t=function(e){if(nu.test(e))return e;throw new Error(`Unsupported color format: ${e}`)}(e.currentTarget.value);n({type:"FORMAT.SET",format:t,src:"format-select"})}})}}(no(lu,i),so)})(i),c=Lo(Dn({present:l.open},r)),d=Dn(l.getRootProps(),s);return(0,o.jsx)(lC,{value:l,children:(0,o.jsx)(Do,{value:c,children:(0,o.jsx)(Kn.div,{...d,ref:t})})})});uC.displayName="ColorPickerRoot";const pC=(0,n.forwardRef)((e,t)=>{const r=Dn(cC().getLabelProps(),e);return(0,o.jsx)(Kn.label,{...r,ref:t})});pC.displayName="ColorPickerLabel";const hC=(0,n.forwardRef)((e,t)=>{const r=Dn(cC().getControlProps(),e);return(0,o.jsx)(Kn.div,{...r,ref:t})});hC.displayName="ColorPickerControl";const[gC,fC]=$n({name:"ColorPickerSwatchContext",hookName:"useColorPickerSwatchContext",providerName:"<ColorPickerSwatchProvider />"}),mC=(0,n.forwardRef)((e,t)=>{const[{respectAlpha:r},n]=(e=>["respectAlpha"].reduce((e,t)=>{const[r,n]=e,o=t;return void 0!==n[o]&&(r[o]=n[o]),delete n[o],[r,n]},[{},{...e}]))(e),a=cC(),i={respectAlpha:r,value:a.valueAsString},s=Dn(a.getSwatchProps(i),n);return(0,o.jsx)(gC,{value:i,children:(0,o.jsx)(Kn.div,{...s,ref:t})})});mC.displayName="ColorPickerValueSwatch";const vC=(0,n.forwardRef)((e,t)=>{const r=Dn(cC().getTriggerProps(),e);return(0,o.jsx)(Kn.button,{...r,ref:t})});vC.displayName="ColorPickerTrigger";const bC=(0,n.forwardRef)((e,t)=>{const r=Dn(cC().getPositionerProps(),e);return jo().unmounted?null:(0,o.jsx)(Kn.div,{...r,ref:t})});bC.displayName="ColorPickerPositioner";const xC=(0,n.forwardRef)((e,t)=>{const r=cC(),n=jo(),a=Dn(r.getContentProps(),n.getPresenceProps(),e);return n.unmounted?null:(0,o.jsx)(Kn.div,{...a,ref:Un(n.ref,t)})});xC.displayName="ColorPickerContent";const[yC,wC]=$n({name:"ColorPickerAreaContext",hookName:"useColorPickerAreaContext",providerName:"<ColorPickerAreaProvider />"}),CC=(0,n.forwardRef)((e,t)=>{const r=cC(),n=wC(),a=Dn(r.getAreaBackgroundProps(n),e);return(0,o.jsx)(Kn.div,{...a,ref:t})});CC.displayName="ColorPickerAreaBackground";const kC=(0,n.forwardRef)((e,t)=>{const r=cC(),n=wC(),a=Dn(r.getAreaThumbProps(n),e);return(0,o.jsx)(Kn.div,{...a,ref:t})});kC.displayName="ColorPickerAreaThumb";const SC=(0,n.forwardRef)((e,t)=>{const[r,n]=(e=>["xChannel","yChannel"].reduce((e,t)=>{const[r,n]=e,o=t;return void 0!==n[o]&&(r[o]=n[o]),delete n[o],[r,n]},[{},{...e}]))(e),a=Dn(cC().getAreaProps(r),n);return(0,o.jsx)(yC,{value:r,children:(0,o.jsx)(Kn.div,{...a,ref:t})})});SC.displayName="ColorPickerArea";const[EC,IC]=$n({name:"ColorPickerChannelSliderContext",hookName:"useColorPickerChannelSliderContext",providerName:"<ColorPickerChannelSliderProvider />"}),[PC,RC]=$n({name:"ColorPickerFormatContext",hookName:"useColorPickerFormatPropsContext",providerName:"<ColorPickerFormatPropsProvider />",strict:!1}),TC=(0,n.forwardRef)((e,t)=>{const r=cC(),n={...IC(),...RC()},a=Dn(r.getChannelSliderTrackProps(n),e);return(0,o.jsx)(Kn.div,{...a,ref:t})});TC.displayName="ColorPickerChannelSliderTrack";const OC=(0,n.forwardRef)((e,t)=>{const r=cC(),n={...IC(),...RC()},a=Dn(r.getChannelSliderThumbProps(n),e);return(0,o.jsx)(Kn.div,{...a,ref:t})});OC.displayName="ColorPickerChannelSliderThumb";const NC=(0,n.forwardRef)((e,t)=>{const[r,n]=(e=>["size"].reduce((e,t)=>{const[r,n]=e,o=t;return void 0!==n[o]&&(r[o]=n[o]),delete n[o],[r,n]},[{},{...e}]))(e),a=Dn(cC().getTransparencyGridProps(r),n);return(0,o.jsx)(Kn.div,{...a,ref:t})});NC.displayName="ColorPickerTransparencyGrid";const VC=(0,n.forwardRef)((e,t)=>{const[r,n]=(e=>["channel","orientation"].reduce((e,t)=>{const[r,n]=e,o=t;return void 0!==n[o]&&(r[o]=n[o]),delete n[o],[r,n]},[{},{...e}]))(e),a=cC(),i=RC(),s={...r,...i},l=Dn(a.getChannelSliderProps(s),n);return(0,o.jsx)(EC,{value:r,children:(0,o.jsx)(Kn.div,{...l,ref:t})})});VC.displayName="ColorPickerChannelSlider";const AC=(0,n.forwardRef)((e,t)=>{const[r,n]=(e=>["channel","orientation"].reduce((e,t)=>{const[r,n]=e,o=t;return void 0!==n[o]&&(r[o]=n[o]),delete n[o],[r,n]},[{},{...e}]))(e),a=Dn(cC().getChannelInputProps(r),n);return(0,o.jsx)(Kn.input,{...a,ref:t})});AC.displayName="ColorPickerChannelInput";const zC=(0,n.forwardRef)((e,t)=>{const r=Dn(cC().getSwatchGroupProps(),e);return(0,o.jsx)(Kn.div,{...r,ref:t})});zC.displayName="ColorPickerSwatchGroup";const _C=(0,n.forwardRef)((e,t)=>{const[r,n]=(e=>["value","disabled"].reduce((e,t)=>{const[r,n]=e,o=t;return void 0!==n[o]&&(r[o]=n[o]),delete n[o],[r,n]},[{},{...e}]))(e),a=Dn(cC().getSwatchTriggerProps(r),n);return(0,o.jsx)(Kn.button,{...a,ref:t})});_C.displayName="ColorPickerSwatchTrigger";const FC=(0,n.forwardRef)((e,t)=>{const[r,n]=(e=>["respectAlpha","value"].reduce((e,t)=>{const[r,n]=e,o=t;return void 0!==n[o]&&(r[o]=n[o]),delete n[o],[r,n]},[{},{...e}]))(e),a=Dn(cC().getSwatchProps(r),n);return(0,o.jsx)(gC,{value:r,children:(0,o.jsx)(Kn.div,{...a,ref:t})})});FC.displayName="ColorPickerSwatch";const LC=(0,n.forwardRef)((e,t)=>{const r=cC(),n=fC(),a=Dn(r.getSwatchIndicatorProps(n),e);return(0,o.jsx)(Kn.div,{...a,ref:t})});LC.displayName="ColorPickerSwatchIndicator";const DC=(0,n.forwardRef)((e,t)=>{const{children:r,format:n,...a}=e,i=cC(),s=Dn(i.getValueTextProps(),a),l=n?i.value.toString(n):i.valueAsString;return(0,o.jsx)(Kn.span,{...s,ref:t,children:e.children||l})});DC.displayName="ColorPickerValueText";const jC=(0,n.forwardRef)((e,t)=>{const r=cC(),[n,a]=(e=>["format"].reduce((e,t)=>{const[r,n]=e,o=t;return void 0!==n[o]&&(r[o]=n[o]),delete n[o],[r,n]},[{},{...e}]))(e);return r.format!==n.format?null:(0,o.jsx)(PC,{value:n,children:(0,o.jsx)(Kn.div,{ref:t,"data-format":e.format,...fu.build().view.attrs,...a})})});jC.displayName="ColorPickerView";const MC=(0,n.forwardRef)((e,t)=>{const r=Dn(cC().getFormatTriggerProps(),e);return(0,o.jsx)(Kn.button,{...r,ref:t})});MC.displayName="ColorPickerFormatTrigger";const WC=(0,n.forwardRef)((e,t)=>{const r=Dn(cC().getFormatSelectProps(),e);return(0,o.jsx)(Kn.select,{...r,ref:t,children:["rgba","hsla","hsba"].map(e=>(0,o.jsx)(Kn.option,{value:e,children:e},e))})});WC.displayName="ColorPickerFormatSelect";const $C=(0,n.forwardRef)((e,t)=>{const r=Dn(cC().getEyeDropperTriggerProps(),e);return(0,o.jsx)(Kn.button,{...r,ref:t})});$C.displayName="ColorPickerEyeDropperTrigger";const BC=(0,n.forwardRef)((e,t)=>{const{locale:r}=To(),n=cC(),a=IC(),i=Dn(n.getChannelSliderValueTextProps(a),e);return(0,o.jsx)(Kn.span,{...i,ref:t,children:e.children||n.getChannelValueText(a.channel,r)})});BC.displayName="ColorPickerChannelSliderValueText";const HC=(0,n.forwardRef)((e,t)=>{const r=cC(),n=IC(),a=Dn(r.getChannelSliderLabelProps(n),e);return(0,o.jsx)(Kn.label,{...a,ref:t})});HC.displayName="ColorPickerChannelSliderLabel";const GC=(0,n.forwardRef)((e,t)=>{const r=Dn(cC().getHiddenInputProps(),e),n=zb();return(0,o.jsx)(Kn.input,{"aria-describedby":n?.ariaDescribedby,...r,ref:t})});GC.displayName="ColorPickerHiddenInput";const UC=(0,n.forwardRef)(function(e,t){return(0,o.jsx)(bb,{px:"0",py:"0",_icon:{fontSize:"1.2em"},ref:t,...e})}),{withProvider:qC,withContext:KC,useStyles:YC,PropsProvider:XC}=Go({key:"colorPicker"}),ZC=(qC(dC,"root",{forwardAsChild:!0}),qC(uC,"root",{forwardAsChild:!0})),JC=(KC(pC,"label",{forwardAsChild:!0}),KC(hC,"control",{forwardAsChild:!0})),QC=KC(mC,"swatch",{forwardAsChild:!0}),ek=KC(vC,"trigger",{forwardAsChild:!0,defaultProps:{children:(0,o.jsx)(QC,{})}}),tk=KC(bC,"positioner",{forwardAsChild:!0}),rk=KC(xC,"content",{forwardAsChild:!0}),nk=KC(CC,"areaBackground",{forwardAsChild:!0}),ok=KC(kC,"areaThumb",{forwardAsChild:!0}),ak=KC(SC,"area",{forwardAsChild:!0,defaultProps:{children:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(nk,{}),(0,o.jsx)(ok,{})]})}}),ik=KC(TC,"channelSliderTrack",{forwardAsChild:!0}),sk=KC(OC,"channelSliderThumb",{forwardAsChild:!0}),lk=KC(NC,"transparencyGrid",{forwardAsChild:!0}),ck=KC(VC,"channelSlider",{forwardAsChild:!0,defaultProps:{children:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(lk,{size:"0.6rem"}),(0,o.jsx)(ik,{}),(0,o.jsx)(sk,{})]})}}),dk=((0,n.forwardRef)(function(e,t){return(0,o.jsxs)(lb,{gap:"1",flex:"1",px:"1",ref:t,...e,children:[(0,o.jsx)(ck,{channel:"hue"}),(0,o.jsx)(ck,{channel:"alpha"})]})}),KC(AC,"channelInput",{forwardAsChild:!0})),uk=(0,n.forwardRef)(function(e,t){return(0,o.jsx)(dk,{channel:"hex",ref:t,...e})}),pk=(KC(zC,"swatchGroup",{forwardAsChild:!0}),KC(_C,"swatchTrigger",{forwardAsChild:!0}),KC(FC,"swatch",{forwardAsChild:!0}),KC(LC,"swatchIndicator",{forwardAsChild:!0}),KC(DC,"valueText",{forwardAsChild:!0}),KC(jC,"view",{forwardAsChild:!0}),KC(MC,"formatTrigger",{forwardAsChild:!0}),KC(WC,"formatSelect",{forwardAsChild:!0}),KC($C,"eyeDropperTrigger",{forwardAsChild:!0}),(0,n.forwardRef)(function(e,t){const{children:r=(0,o.jsx)(qv,{}),...n}=e,a=Le(cC().getEyeDropperTriggerProps(),n);return(0,o.jsx)(UC,{ref:t,...a,children:r})})),hk=(KC(BC,"channelSliderValueText",{forwardAsChild:!0}),KC(HC,"channelSliderLabel",{forwardAsChild:!0}),(0,n.forwardRef)(function(e,t){return(0,o.jsx)(GC,{tabIndex:-1,ref:t,...e})})),gk=(KC("span","channelText",{forwardAsChild:!0}),ct("div",{base:{display:"flex",alignItems:"center",justifyContent:"center"},variants:{inline:{true:{display:"inline-flex"}}}}));gk.displayName="Center";const fk=zx("pipette",[["path",{d:"m12 9-8.414 8.414A2 2 0 0 0 3 18.828v1.344a2 2 0 0 1-.586 1.414A2 2 0 0 1 3.828 21h1.344a2 2 0 0 0 1.414-.586L15 12",key:"1y3wsu"}],["path",{d:"m18 9 .4.4a1 1 0 1 1-3 3l-3.8-3.8a1 1 0 1 1 3-3l.4.4 3.4-3.4a1 1 0 1 1 3 3z",key:"110lr1"}],["path",{d:"m2 22 .414-.414",key:"jhxm08"}]]),mk=({label:e,value:t,handleChange:r,alpha:o=!0,eyedropperInside:a=!0,attached:i=!1,...s})=>{const l=au(t);return(0,n.createElement)(ZC,{value:l,format:"rgba",onValueChange:r,size:"2xs",colorPalette:"purple",...s},(0,n.createElement)(hk,null),(0,n.createElement)(JC,null,(0,n.createElement)(gk,{inline:!0,w:"full",gap:2},(0,n.createElement)(gk,{inline:!0,gap:1},(0,n.createElement)(ek,{asChild:!0},(0,n.createElement)(bb,{bg:t,size:"icon",variant:"outline",borderColor:"gray.400",colorPalette:"gray",rounded:"md",...i?{roundedLeft:"!none"}:{}})),!a&&(0,n.createElement)(pk,{variant:"outline",size:"icon",p:1.5},(0,n.createElement)(fk,{size:15}))))),(0,n.createElement)(tk,null,(0,n.createElement)(rk,null,(0,n.createElement)(ak,null),(0,n.createElement)(ea,{gap:2,align:"center"},a&&(0,n.createElement)(pk,{variant:"outline",size:"icon",p:1.5},(0,n.createElement)(fk,{size:15})),(0,n.createElement)(ea,{direction:"column",w:"full",gap:1.5},(0,n.createElement)(ck,{channel:"hue"}),o&&(0,n.createElement)(ck,{channel:"alpha"}))),(0,n.createElement)(uk,null))))},vk=({setting:e,tempData:t,changeOption:r})=>{const o=void 0!==t[e.id]?t[e.id]:e.default;switch(e.type){case"checkbox":return(0,n.createElement)(ey,{size:"sm",colorPalette:"purple",checked:"1"===o,onCheckedChange:({checked:t})=>{r(e.id,t?"1":"0")}},(0,n.createElement)(oy,null),(0,n.createElement)(ny,{_focus:{outlineOffset:"2px",outline:"2px solid",outlineColor:"purple.500"}}),(0,n.createElement)(ty,{fontWeight:"normal",color:"fg.muted"},e.label));case"radio":return(0,n.createElement)(gy,{size:"sm"},(0,n.createElement)(fy,null,e.title),(0,n.createElement)(_y,{colorPalette:"purple",value:parseInt(o),onValueChange:({value:t})=>r(e.id,t),label:e.title},(0,n.createElement)(Tb,{gap:"4",alignItems:"start"},e.options.map((e,t)=>(0,n.createElement)(Fy,{key:t,value:t},(0,n.createElement)(jy,null),(0,n.createElement)(Dy,null),(0,n.createElement)(Ly,{fontWeight:"normal",color:"fg.muted"},e))))));case"toggle":return(0,n.createElement)(Hb,{colorPalette:"purple",size:"sm",checked:"1"===o,onCheckedChange:({checked:t})=>{r(e.id,t?"1":"0")}},(0,n.createElement)(Kb,null),(0,n.createElement)(qb,null),(0,n.createElement)(Gb,{fontWeight:"normal",color:"fg.muted"},e.icon&&(0,n.createElement)(Tb,{gap:"2"},(0,n.createElement)(pb,{fontSize:"sm",dangerouslySetInnerHTML:{__html:e.icon}}),e.label),!e.icon&&e.label));case"select":const t=(e=>new ks(e))({items:Object.entries(e.options).map(([e,t])=>({label:t,value:e}))});return(0,n.createElement)(fw,{colorPalette:"purple",size:"sm",fontSize:"sm",collection:t,value:[o.toString()],onValueChange:t=>{r(e.id,parseInt(t.value[0]))}},(0,n.createElement)(Iw,null),(0,n.createElement)(Ew,null,e.title),(0,n.createElement)(Sw,null,(0,n.createElement)(mw,null,(0,n.createElement)(xw,{placeholder:e.title})),(0,n.createElement)(Cw,null,(0,n.createElement)(kw,null))),(0,n.createElement)(Rv,null,(0,n.createElement)(vw,null,(0,n.createElement)(bw,null,t.items.map(e=>(0,n.createElement)(yw,{item:e,key:e.value},e.label,(0,n.createElement)(ww,null)))))));case"text":return(0,n.createElement)(Fw,{colorPalette:"purple"},(0,n.createElement)(Lw,null,e.title),(0,n.createElement)(Ww,{size:"sm",value:bt(o),onChange:t=>r(e.id,t.target.value)}));case"link":const a="analytics_accounts_unregister"===e.id;return(0,n.createElement)("div",{className:"select-wrap"},(0,n.createElement)(bb,{colorPalette:"purple",size:"sm",href:e.url?e.url:null,onClick:a?()=>{var t,r;t=e.unregisterURL,(r=t,ft(r,!1,"deactivate=unregister",!0)).then(e=>{!1!==e&&window.location.reload()})}:()=>{cb.error({title:(0,mt.__)("The analytics module is not available anymore.","themeisle-companion")})}},(0,n.createElement)("div",{dangerouslySetInnerHTML:{__html:e.text}})));case"color":return(0,n.createElement)(gy,{size:"sm",justifyContent:"start",alignItems:"start"},(0,n.createElement)(fy,null,e.label),(0,n.createElement)(mk,{value:o,handleChange:({valueAsString:t})=>{r(e.id,t)}}));case"number":return(0,n.createElement)(gy,{size:"sm"},(0,n.createElement)(fy,null,e.label),(0,n.createElement)(nC,{size:"xs",value:o,onValueChange:({value:t})=>r(e.id,t),max:e.max||800,min:e.min||0,w:"100px"},(0,n.createElement)(sC,null),(0,n.createElement)(oC,{_focus:{shadow:"!none",borderColor:"!purple.500"},rounded:"md"})))}},{options:bk,root:xk,setSettingsRoute:yk}=obfxDash,wk=({slug:e})=>{const{modulesData:t,setModulesData:r}=(0,pt.useContext)(ix),[o,a]=(0,pt.useState)(!1),[i,s]=(0,pt.useState)(!1),l=t.module_settings[e]||{},[c,d]=(0,pt.useState)({...l}),u=((0,n.createElement)(Dx.Dashicon,{size:18,icon:"update",className:"is-loading"}),(e,t)=>{const r=c;r[e]=t,d({...r})});return(0,n.createElement)(yx,{open:o},(0,n.createElement)(bb,{variant:"ghost",border:"0",borderTop:"1px solid",borderX:"0",w:"full",borderColor:"border",rounded:"none",justifyContent:"space-between",fontWeight:"medium",fontSize:"sm",onClick:()=>a(!o)},(0,mt.__)("Settings","themeisle-companion"),(0,n.createElement)(Sx,{rotate:o?"-180deg":"0deg",transition:"all 0.2s ease-in-out"},(0,n.createElement)(Fx,null))),(0,n.createElement)(wx,null,(0,n.createElement)(Ex,{padding:"4",borderTop:"1px solid",borderColor:"border",alignItems:"start",className:`obfx-settings-${e} obfx-module-settings-wrap`,gap:"4"},(()=>{const t=[];for(let r=0;r<bk[e].length;r++){let o=bk[e][r];if(o.title&&o.label&&t.push((0,n.createElement)(ca,{key:`${o.id}-title`,m:"0",fontWeight:"medium",fontSize:"sm"},o.title)),o.hasOwnProperty("before_wrap")){const a=[];for(;a.push((0,n.createElement)(vk,{key:`${o.id}-control`,setting:o,tempData:c,changeOption:u})),!o.hasOwnProperty("after_wrap");)o=bk[e][++r];t.push((0,n.createElement)(Tb,{key:`${o.id}-hstack`,alignItems:"start",gap:"5",borderBottom:"1px solid",borderColor:"border",pb:"3",w:"full"},a));continue}if("checkbox"===o.type){const a=[];for(;"checkbox"===o.type;)a.push((0,n.createElement)(vk,{key:o.id,setting:o,tempData:c,changeOption:u})),o=bk[e][++r];t.push((0,n.createElement)(cx,{w:"full",columns:{base:3,md:4,lg:2,"2xl":4},key:`${o.id}-hstack`,alignItems:"start",gap:"5"},a)),r--;continue}t.push((0,n.createElement)(vk,{key:o.id,setting:o,tempData:c,changeOption:u}))}return t})(),(0,n.createElement)(Rx,{size:"sm",colorPalette:"purple",justifyContent:"end",w:"full"},(0,n.createElement)(bb,{variant:"outline",onClick:()=>a(!1)},(0,mt.__)("Close","themeisle-companion")),(0,n.createElement)(bb,{loading:i,disabled:(0,Lx.isEqual)(c,l),onClick:()=>{s(!0),ft(xk+yk,!1,{slug:e,value:c}).then(n=>{if("success"!==n.type)return d({...l}),s(!1),void cb.error({title:(0,mt.__)("Could not update options. Please try again.","themeisle-companion")});t.module_settings[e]={...c},r({...t}),s(!1),cb.success({title:(0,mt.__)("Options updated successfully.","themeisle-companion")})})}},(0,mt.__)("Save","themeisle-companion"))))))},Ck=zx("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]),{withContext:kk,PropsProvider:Sk}=ra({key:"link"}),Ek=kk("a"),Ik=({href:e,children:t,...r})=>(0,n.createElement)(Ek,{color:"purple.500",_hover:{color:"purple.700"},href:e,target:"_blank",rel:"noopener noreferrer",...r},t,(0,n.createElement)(Ck,{size:14})),Pk=zx("move-up-right",[["path",{d:"M13 5H19V11",key:"1n1gyv"}],["path",{d:"M19 5L5 19",key:"72u4yj"}]]),Rk=({href:e,text:t,icon:r=Pk,blank:o=!0,...a})=>{const i=r;return(0,n.createElement)(pa,{variant:"plain",colorPalette:"purple",color:"purple.500",border:"1px solid",borderColor:"purple.200",_hover:{bg:"purple.500",color:"purple.50",borderColor:"purple.500"},_focus:{outline:"2px solid",outlineColor:"purple.500",outlineOffset:"2px",shadow:"none",bg:"purple.500",color:"purple.50",borderColor:"purple.500"},transition:"all 0.2s ease-in-out",textTransform:"uppercase",href:e,as:"a",target:o?"_blank":void 0,size:"sm",fontSize:"xs",...a},t,!!r&&(0,n.createElement)(Sx,{size:"xs"},(0,n.createElement)(i,null)))},{root:Tk,toggleStateRoute:Ok,options:Nk,menusSupport:Vk}=obfxDash,Ak=({slug:e,details:t})=>{const r=t.refresh_after_enabled,o=t.active_default,a=t.documentation_url,[i,s]=(0,pt.useState)(!1),{modulesData:l,setModulesData:c}=(0,pt.useContext)(ix),d=l.module_status,u=d[e]&&void 0!==d[e].active?d[e].active:o;let p=t.notices||[];return(0,n.createElement)(Sb,{size:"sm",overflow:"hidden",variant:"outline"},(0,n.createElement)(Pb,{fontSize:"base",m:"0",borderBottom:"1px solid",borderColor:"border",p:"4"},(0,n.createElement)(ea,{justifyContent:"space-between",alignItems:"center"},(0,n.createElement)(Tb,null,t.name,a&&(0,n.createElement)(Rk,{href:a,text:(0,mt.__)("Docs","themeisle-companion")})),(0,n.createElement)(Tb,null,i&&(0,n.createElement)(sb,{size:"sm",color:"purple.300"}),(0,n.createElement)(Hb,{colorPalette:"purple",size:"md",disabled:i,checked:u,onCheckedChange:({checked:n})=>{s(!0),ft(Tk+Ok,!1,{slug:e,value:n}).then(o=>{((n,o)=>{if("success"!==n.type)return s(!1),void cb.error({title:(0,mt.__)("Could not activate module. Please try again.","themeisle-companion")});r&&window.location.reload(),d[e]||(d[e]={}),d[e].active=o,c(l),s(!1),cb.success({title:(o?(0,mt.__)("Module activated","themeisle-companion"):(0,mt.__)("Module deactivated","themeisle-companion"))+` (${t.name})`})})(o,n)})}},(0,n.createElement)(Kb,null),(0,n.createElement)(qb,null,(0,n.createElement)(Ub,null)))))),(0,n.createElement)(Eb,null,(e=>{const t=[];for(;e.indexOf("<a")>=0;){const r=e.indexOf("<a"),o=e.indexOf("</a>");t.push(e.slice(0,r));const a=e.indexOf('href="')+6,i=e.indexOf('"',a),s=e.slice(a,i),l=e.slice(e.indexOf(">",r)+1,o);e.includes("neve-pro-notice")?t.push((0,pt.renderToString)((0,n.createElement)(bb,{asChild:!0,variant:"outline",colorPalette:"purple",size:"xs",color:"purple.500",_hover:{color:"white",bg:"purple.500"},_focus:{outline:"2px solid",outlineColor:"purple.500",outlineOffset:"2px",shadow:"none",bg:"purple.500",color:"white"}},(0,n.createElement)("a",{href:s},l," ",(0,n.createElement)(Ck,null)," ")))):t.push((0,pt.renderToString)((0,n.createElement)(Ik,{href:s},l))),e=e.slice(o+4)}return t.push(e),(0,n.createElement)(ca,{fontSize:"sm",lineHeight:"1.6",m:"0",color:"fg.muted",dangerouslySetInnerHTML:{__html:t.join(" ")}})})(t.description),u&&t.module_main_action&&(0,n.createElement)(ea,{mt:"3"},(0,n.createElement)(bb,{asChild:!0,variant:"outline",colorPalette:"purple",size:"xs",color:"purple.500",_hover:{color:"white",bg:"purple.500"},_focus:{outline:"2px solid",outlineColor:"purple.500",outlineOffset:"2px",shadow:"none",bg:"purple.500",color:"white"}},(0,n.createElement)("a",{href:t.module_main_action.url},t.module_main_action.text))),p.length>0&&(0,n.createElement)(ea,{mt:"3"},p.map((e,t)=>(0,n.createElement)(tx,{size:"sm",key:t,status:e.type,variant:"surface",display:"flex",alignItems:"center",p:"2"},(0,n.createElement)(ax,null),(0,n.createElement)(nx,null,(0,n.createElement)(rx,null,e.message)))))),u&&Nk[e].length>0&&(0,n.createElement)(wk,{slug:e}))};function zk(e){const{each:t,fallback:r,children:n}=e;return 0===t?.length?r||null:t?.map(n)}const{modules:_k,data:Fk}=obfxDash,Lk=()=>{const[e,t]=(0,pt.useState)(""===Fk?{module_status:{},module_settings:{}}:{...Fk});e.module_settings||t({...e,module_settings:{}}),e.module_status||t({...e,module_status:{}});const r=(0,pt.useMemo)(()=>Object.entries(_k).filter((e,t)=>t%2==0),[]),o=(0,pt.useMemo)(()=>Object.entries(_k).filter((e,t)=>t%2==1),[]);return(0,n.createElement)(ix.Provider,{value:{modulesData:e,setModulesData:t}},(0,n.createElement)(aa,null,(0,n.createElement)(cx,{columns:{base:1,lg:2},gap:"5"},(0,n.createElement)(Ex,{columns:{base:1,lg:2},gap:"5",w:"full",alignItems:"stretch"},(0,n.createElement)(zk,{each:r},([e,t])=>(0,n.createElement)(Ak,{slug:e,details:t,key:e}))),(0,n.createElement)(Ex,{columns:{base:1,lg:2},gap:"5",w:"full",alignItems:"stretch"},(0,n.createElement)(zk,{each:o},([e,t])=>(0,n.createElement)(Ak,{slug:e,details:t,key:e}))))))},Dk=(0,n.forwardRef)(function(e,t){const{size:r,...n}=e;return(0,o.jsx)(ut,{...n,ref:t,boxSize:r,css:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,flexGrow:0,...e.css}})}),jk=(0,n.forwardRef)(function(e,t){const{size:r,...n}=e;return(0,o.jsx)(Dk,{size:r,ref:t,borderRadius:"9999px",...n})}),{withContext:Mk,PropsProvider:Wk}=ra({key:"skeleton"}),$k=Mk("div"),Bk=(n.forwardRef(function(e,t){const{size:r,...n}=e;return(0,o.jsx)(jk,{size:r,asChild:!0,ref:t,children:(0,o.jsx)($k,{...n})})}),n.forwardRef(function(e,t){const{noOfLines:r=3,gap:n,rootProps:a,...i}=e;return(0,o.jsx)(lb,{gap:n,width:"full",ref:t,...a,children:Array.from({length:r}).map((e,t)=>(0,o.jsx)($k,{height:"4",_last:{maxW:1===r?"100%":"80%"},...i},t))})}),e=>new Promise(t=>{wp.updates.ajax("install-plugin",{slug:e,success:()=>{t({success:!0})},error:e=>{t({success:!1})}})})),Hk=({slug:e,data:t})=>{const[r,o]=(0,pt.useState)(!1),{banner:a,name:i,description:s,version:l,author:c,url:d,premium:u}=t,{pluginsData:p,setPluginsData:h}=(0,pt.useContext)(sx),[g,f]=(0,pt.useState)(!1),m=p[e].action,v=t=>{const r={...p,[e]:{...p[e],action:t}};h(r)},b=(0,mt.__)("Something went wrong. Please try again.","themeisle-companion"),x={install:{static:(0,mt.__)("Install","themeisle-companion"),progress:(0,mt.__)("Installing","themeisle-companion")},activate:{static:(0,mt.__)("Activate","themeisle-companion"),progress:(0,mt.__)("Activating","themeisle-companion")},deactivate:{static:(0,mt.__)("Deactivate","themeisle-companion"),progress:(0,mt.__)("Deactivating","themeisle-companion")},external:(0,mt.__)("See more details","themeisle-companion")};return(0,n.createElement)(Sb,{size:"sm",overflow:"hidden",variant:"outline"},(0,n.createElement)(ia,{hidden:!r,src:a,alt:(0,mt.__)("Banner Image","themeisle-companion"),onLoad:()=>o(!0)}),!r&&(0,n.createElement)($k,{w:"100%",aspectRatio:"3.088/1"}),u&&(0,n.createElement)(pa,{colorPalette:"purple",size:"lg",rounded:"none",px:"4",py:"2",roundedBottomLeft:"lg",fontWeight:"semibold",textTransform:"uppercase",position:"absolute",top:"0",right:"0",variant:"subtle"},(0,mt.__)("Premium","themeisle-companion")),(0,n.createElement)(Eb,{gap:"2"},(0,n.createElement)(Pb,{fontSize:"base",fontWeight:"semibold",m:"0"},i),(0,n.createElement)(Rb,{fontSize:"sm",lineHeight:"1.6",m:"0",color:"fg.muted"},s)),(0,n.createElement)(Ib,{gap:"2",borderTop:"1px solid",borderColor:"border",p:"4",justifyContent:"space-between"},(0,n.createElement)(Tb,{fontSize:"sm",color:"fg.muted",fontWeight:"medium"},l&&(0,n.createElement)(pb,null,"v",l),l&&c&&(0,n.createElement)(pb,null,"•"),c&&(0,n.createElement)(pb,null,c)),"external"!==m&&(0,n.createElement)(bb,{rounded:"sm",variant:["install","activate"].includes(m)?"solid":"outline",loading:g,loadingText:x[m].progress+"...",onClick:()=>{var r;f(!0),"install"!==m?(r=t[m],ft(r,true,{},"GET")).then(e=>{if(!e.ok)return f(!1),void cb.error({title:b});v("activate"===m?"deactivate":"activate"),f(!1)}):Bk(e).then(e=>{if(!e.success)return f(!1),void cb.error({title:b});v("activate"),f(!1)})},colorPalette:"purple",size:"sm"},x[m].static),"external"===m&&(0,n.createElement)(Ik,{href:d,fontSize:"sm",fontWeight:"medium"},x[m])))},Gk=()=>{const{plugins:e}=obfxDash,[t,r]=(0,pt.useState)(e);return e&&0!==Object.keys(e).length?(0,n.createElement)(sx.Provider,{value:{pluginsData:t,setPluginsData:r}},(0,n.createElement)(aa,null,(0,n.createElement)(cx,{columns:{base:1,lg:2,xl:3},gap:5},Object.keys(e).map(t=>(0,n.createElement)(Hk,{key:t,slug:t,data:e[t]}))))):null};let Uk=0;function qk(){return":"+(Uk++).toString(36)}const Kk=document.getElementById("obfx-dash");Kk&&(void 0!==window.wp&&window.wp.element&&(function(){if(window.wp.element.useId)return;const e=function(){const[e]=window.wp.element.useState(qk);return e};window.wp.element.useId=e,window.React.useId=e}(),function(){if(window.wp.element.useSyncExternalStore)return;const e=function(e,t){const[r,n]=window.wp.element.useState(t);return window.wp.element.useEffect(()=>(n(t()),e(()=>{n(t())})),[e,t]),r};window.wp.element.useSyncExternalStore=e,window.React.useSyncExternalStore=e}()),(0,pt.render)((0,n.createElement)(()=>{const e=(()=>{let e=window.location.hash;return"string"!=typeof window.location.hash?null:(e=e.substring(1),Object.keys(vt).includes(e)?e:null)})(),[t,r]=(0,pt.useState)(e||"modules");return(0,n.createElement)(cv,null,(0,n.createElement)(ga,{activeTab:t,setActiveTab:r}),(0,n.createElement)(ut,{pt:"8",pb:"16",bg:"bg.muted",flexGrow:1},"modules"===t&&(0,n.createElement)(Lk,null),"plugins"===t&&(0,n.createElement)(Gk,null)),(0,n.createElement)(db,null))},null),Kk))},799:(e,t)=>{"use strict";var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,i=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,d=r?Symbol.for("react.async_mode"):60111,u=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,g=r?Symbol.for("react.suspense_list"):60120,f=r?Symbol.for("react.memo"):60115,m=r?Symbol.for("react.lazy"):60116,v=r?Symbol.for("react.block"):60121,b=r?Symbol.for("react.fundamental"):60117,x=r?Symbol.for("react.responder"):60118,y=r?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case d:case u:case a:case s:case i:case h:return e;default:switch(e=e&&e.$$typeof){case c:case p:case m:case f:case l:return e;default:return t}}case o:return t}}}function C(e){return w(e)===u}t.AsyncMode=d,t.ConcurrentMode=u,t.ContextConsumer=c,t.ContextProvider=l,t.Element=n,t.ForwardRef=p,t.Fragment=a,t.Lazy=m,t.Memo=f,t.Portal=o,t.Profiler=s,t.StrictMode=i,t.Suspense=h,t.isAsyncMode=function(e){return C(e)||w(e)===d},t.isConcurrentMode=C,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return w(e)===p},t.isFragment=function(e){return w(e)===a},t.isLazy=function(e){return w(e)===m},t.isMemo=function(e){return w(e)===f},t.isPortal=function(e){return w(e)===o},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===i},t.isSuspense=function(e){return w(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===u||e===s||e===i||e===h||e===g||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===f||e.$$typeof===l||e.$$typeof===c||e.$$typeof===p||e.$$typeof===b||e.$$typeof===x||e.$$typeof===y||e.$$typeof===v)},t.typeOf=w},848:(e,t,r)=>{"use strict";e.exports=r(20)},942:(e,t)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var r=arguments[t];r&&(e=i(e,a(r)))}return e}function a(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var r in e)n.call(e,r)&&e[r]&&(t=i(t,r));return t}function i(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()}},r={};function n(e){var o=r[e];if(void 0!==o)return o.exports;var a=r[e]={exports:{}};return t[e](a,a.exports,n),a.exports}n.m=t,e=[],n.O=(t,r,o,a)=>{if(!r){var i=1/0;for(d=0;d<e.length;d++){for(var[r,o,a]=e[d],s=!0,l=0;l<r.length;l++)(!1&a||i>=a)&&Object.keys(n.O).every(e=>n.O[e](r[l]))?r.splice(l--,1):(s=!1,a<i&&(i=a));if(s){e.splice(d--,1);var c=o();void 0!==c&&(t=c)}}return t}a=a||0;for(var d=e.length;d>0&&e[d-1][2]>a;d--)e[d]=e[d-1];e[d]=[r,o,a]},n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={945:0,458:0};n.O.j=t=>0===e[t];var t=(t,r)=>{var o,a,[i,s,l]=r,c=0;if(i.some(t=>0!==e[t])){for(o in s)n.o(s,o)&&(n.m[o]=s[o]);if(l)var d=l(n)}for(t&&t(r);c<i.length;c++)a=i[c],n.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return n.O(d)},r=globalThis.webpackChunkthemeisle_companion=globalThis.webpackChunkthemeisle_companion||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var o=n.O(void 0,[458],()=>n(625));o=n.O(o)})();