@yahoo/uds 3.66.2 → 3.66.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
1
  import{mapValues as e,entries as o}from"./chunk-RXOSKQ3M.js";import{require_isArray as t,require_createCompounder as a,require_getNative as r,require_Map as n,require_overArg as s,require_isPrototype as l,require_isArrayLike as i,require_isArguments as u,require_isBuffer as d,require_isTypedArray as f,require_isFunction as c,require_arrayMap as p,require_getTag as h,require_baseKeys as m,require_baseUnary as b,require_nodeUtil as v}from"./chunk-DXTANXUQ.js";import{require_baseGetTag as y,require_isObjectLike as _,require_root as g,require_isObject as w,require_Symbol as x,BUTTON_SCALE_EFFECT as j,LETTER_SPACING_PREFIX as $,TEXT_TRANSFORM_PREFIX as S,LINE_HEIGHT_PREFIX as P,FONT_SIZE_PREFIX as W,FONT_WIDTH_PREFIX as C,FONT_SLANT_PREFIX as O,FONT_WEIGHT_PREFIX as T,FONT_FAMILY_PREFIX as A,TEXT_RESPONSIVE_CLASSNAME as V,BUTTON_SCALE_EFFECT_REST as F,BUTTON_SCALE_EFFECT_HOVER as k,BUTTON_SCALE_EFFECT_PRESSED as N,BUTTON_GAP_VAR as E,TEXT_RESPONSIVE_BREAKPOINT_CLASSNAMES as K}from"./chunk-STPH6333.js";import{__commonJS as Y,__toESM as z}from"./chunk-GF4A6TFM.js";import{textVariants as R,shadowOffsetMap as M,spacingMap as X,shadowSpreadRadiusMap as B}from"@yahoo/uds/fixtures";/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */
2
- var I=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/isString.js"(e,o){var a=y(),r=t(),n=_();o.exports=function(e){return"string"==typeof e||!r(e)&&n(e)&&"[object String]"==a(e)}}}),D=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/lowerCase.js"(e,o){var t=a()(function(e,o,t){return e+(t?" ":"")+o.toLowerCase()});o.exports=t}}),L=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_listCacheClear.js"(e,o){o.exports=function(){this.__data__=[],this.size=0}}}),H=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/eq.js"(e,o){o.exports=function(e,o){return e===o||e!=e&&o!=o}}}),U=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_assocIndexOf.js"(e,o){var t=H();o.exports=function(e,o){for(var a=e.length;a--;)if(t(e[a][0],o))return a;return-1}}}),G=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_listCacheDelete.js"(e,o){var t=U(),a=Array.prototype.splice;o.exports=function(e){var o=this.__data__,r=t(o,e);return!(r<0)&&(r==o.length-1?o.pop():a.call(o,r,1),--this.size,!0)}}}),q=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_listCacheGet.js"(e,o){var t=U();o.exports=function(e){var o=this.__data__,a=t(o,e);return a<0?void 0:o[a][1]}}}),Q=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_listCacheHas.js"(e,o){var t=U();o.exports=function(e){return t(this.__data__,e)>-1}}}),J=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_listCacheSet.js"(e,o){var t=U();o.exports=function(e,o){var a=this.__data__,r=t(a,e);return r<0?(++this.size,a.push([e,o])):a[r][1]=o,this}}}),Z=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_ListCache.js"(e,o){var t=L(),a=G(),r=q(),n=Q(),s=J();function l(e){var o=-1,t=null==e?0:e.length;for(this.clear();++o<t;){var a=e[o];this.set(a[0],a[1])}}l.prototype.clear=t,l.prototype.delete=a,l.prototype.get=r,l.prototype.has=n,l.prototype.set=s,o.exports=l}}),ee=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_stackClear.js"(e,o){var t=Z();o.exports=function(){this.__data__=new t,this.size=0}}}),oe=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_stackDelete.js"(e,o){o.exports=function(e){var o=this.__data__,t=o.delete(e);return this.size=o.size,t}}}),te=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_stackGet.js"(e,o){o.exports=function(e){return this.__data__.get(e)}}}),ae=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_stackHas.js"(e,o){o.exports=function(e){return this.__data__.has(e)}}}),re=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_nativeCreate.js"(e,o){var t=r()(Object,"create");o.exports=t}}),ne=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_hashClear.js"(e,o){var t=re();o.exports=function(){this.__data__=t?t(null):{},this.size=0}}}),se=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_hashDelete.js"(e,o){o.exports=function(e){var o=this.has(e)&&delete this.__data__[e];return this.size-=o?1:0,o}}}),le=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_hashGet.js"(e,o){var t=re(),a=Object.prototype.hasOwnProperty;o.exports=function(e){var o=this.__data__;if(t){var r=o[e];return"__lodash_hash_undefined__"===r?void 0:r}return a.call(o,e)?o[e]:void 0}}}),ie=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_hashHas.js"(e,o){var t=re(),a=Object.prototype.hasOwnProperty;o.exports=function(e){var o=this.__data__;return t?void 0!==o[e]:a.call(o,e)}}}),ue=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_hashSet.js"(e,o){var t=re();o.exports=function(e,o){var a=this.__data__;return this.size+=this.has(e)?0:1,a[e]=t&&void 0===o?"__lodash_hash_undefined__":o,this}}}),de=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_Hash.js"(e,o){var t=ne(),a=se(),r=le(),n=ie(),s=ue();function l(e){var o=-1,t=null==e?0:e.length;for(this.clear();++o<t;){var a=e[o];this.set(a[0],a[1])}}l.prototype.clear=t,l.prototype.delete=a,l.prototype.get=r,l.prototype.has=n,l.prototype.set=s,o.exports=l}}),fe=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_mapCacheClear.js"(e,o){var t=de(),a=Z(),r=n();o.exports=function(){this.size=0,this.__data__={hash:new t,map:new(r||a),string:new t}}}}),ce=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_isKeyable.js"(e,o){o.exports=function(e){var o=typeof e;return"string"==o||"number"==o||"symbol"==o||"boolean"==o?"__proto__"!==e:null===e}}}),pe=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_getMapData.js"(e,o){var t=ce();o.exports=function(e,o){var a=e.__data__;return t(o)?a["string"==typeof o?"string":"hash"]:a.map}}}),he=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_mapCacheDelete.js"(e,o){var t=pe();o.exports=function(e){var o=t(this,e).delete(e);return this.size-=o?1:0,o}}}),me=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_mapCacheGet.js"(e,o){var t=pe();o.exports=function(e){return t(this,e).get(e)}}}),be=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_mapCacheHas.js"(e,o){var t=pe();o.exports=function(e){return t(this,e).has(e)}}}),ve=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_mapCacheSet.js"(e,o){var t=pe();o.exports=function(e,o){var a=t(this,e),r=a.size;return a.set(e,o),this.size+=a.size==r?0:1,this}}}),ye=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_MapCache.js"(e,o){var t=fe(),a=he(),r=me(),n=be(),s=ve();function l(e){var o=-1,t=null==e?0:e.length;for(this.clear();++o<t;){var a=e[o];this.set(a[0],a[1])}}l.prototype.clear=t,l.prototype.delete=a,l.prototype.get=r,l.prototype.has=n,l.prototype.set=s,o.exports=l}}),_e=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_stackSet.js"(e,o){var t=Z(),a=n(),r=ye();o.exports=function(e,o){var n=this.__data__;if(n instanceof t){var s=n.__data__;if(!a||s.length<199)return s.push([e,o]),this.size=++n.size,this;n=this.__data__=new r(s)}return n.set(e,o),this.size=n.size,this}}}),ge=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_Stack.js"(e,o){var t=Z(),a=ee(),r=oe(),n=te(),s=ae(),l=_e();function i(e){var o=this.__data__=new t(e);this.size=o.size}i.prototype.clear=a,i.prototype.delete=r,i.prototype.get=n,i.prototype.has=s,i.prototype.set=l,o.exports=i}}),we=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_defineProperty.js"(e,o){var t=r(),a=function(){try{var e=t(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();o.exports=a}}),xe=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_baseAssignValue.js"(e,o){var t=we();o.exports=function(e,o,a){"__proto__"==o&&t?t(e,o,{configurable:!0,enumerable:!0,value:a,writable:!0}):e[o]=a}}}),je=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_assignMergeValue.js"(e,o){var t=xe(),a=H();o.exports=function(e,o,r){(void 0!==r&&!a(e[o],r)||void 0===r&&!(o in e))&&t(e,o,r)}}}),$e=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_createBaseFor.js"(e,o){o.exports=function(e){return function(o,t,a){for(var r=-1,n=Object(o),s=a(o),l=s.length;l--;){var i=s[e?l:++r];if(!1===t(n[i],i,n))break}return o}}}}),Se=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_baseFor.js"(e,o){var t=$e()();o.exports=t}}),Pe=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_cloneBuffer.js"(e,o){var t=g(),a="object"==typeof e&&e&&!e.nodeType&&e,r=a&&"object"==typeof o&&o&&!o.nodeType&&o,n=r&&r.exports===a?t.Buffer:void 0,s=n?n.allocUnsafe:void 0;o.exports=function(e,o){if(o)return e.slice();var t=e.length,a=s?s(t):new e.constructor(t);return e.copy(a),a}}}),We=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_Uint8Array.js"(e,o){var t=g().Uint8Array;o.exports=t}}),Ce=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_cloneArrayBuffer.js"(e,o){var t=We();o.exports=function(e){var o=new e.constructor(e.byteLength);return new t(o).set(new t(e)),o}}}),Oe=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_cloneTypedArray.js"(e,o){var t=Ce();o.exports=function(e,o){var a=o?t(e.buffer):e.buffer;return new e.constructor(a,e.byteOffset,e.length)}}}),Te=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_copyArray.js"(e,o){o.exports=function(e,o){var t=-1,a=e.length;for(o||(o=Array(a));++t<a;)o[t]=e[t];return o}}}),Ae=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_baseCreate.js"(e,o){var t=w(),a=Object.create,r=function(){function e(){}return function(o){if(!t(o))return{};if(a)return a(o);e.prototype=o;var r=new e;return e.prototype=void 0,r}}();o.exports=r}}),Ve=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_getPrototype.js"(e,o){var t=s()(Object.getPrototypeOf,Object);o.exports=t}}),Fe=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_initCloneObject.js"(e,o){var t=Ae(),a=Ve(),r=l();o.exports=function(e){return"function"!=typeof e.constructor||r(e)?{}:t(a(e))}}}),ke=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/isArrayLikeObject.js"(e,o){var t=i(),a=_();o.exports=function(e){return a(e)&&t(e)}}}),Ne=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/isPlainObject.js"(e,o){var t=y(),a=Ve(),r=_(),n=Function.prototype,s=Object.prototype,l=n.toString,i=s.hasOwnProperty,u=l.call(Object);o.exports=function(e){if(!r(e)||"[object Object]"!=t(e))return!1;var o=a(e);if(null===o)return!0;var n=i.call(o,"constructor")&&o.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==u}}}),Ee=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_safeGet.js"(e,o){o.exports=function(e,o){if(("constructor"!==o||"function"!=typeof e[o])&&"__proto__"!=o)return e[o]}}}),Ke=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_assignValue.js"(e,o){var t=xe(),a=H(),r=Object.prototype.hasOwnProperty;o.exports=function(e,o,n){var s=e[o];r.call(e,o)&&a(s,n)&&(void 0!==n||o in e)||t(e,o,n)}}}),Ye=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_copyObject.js"(e,o){var t=Ke(),a=xe();o.exports=function(e,o,r,n){var s=!r;r||(r={});for(var l=-1,i=o.length;++l<i;){var u=o[l],d=n?n(r[u],e[u],u,r,e):void 0;void 0===d&&(d=e[u]),s?a(r,u,d):t(r,u,d)}return r}}}),ze=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_baseTimes.js"(e,o){o.exports=function(e,o){for(var t=-1,a=Array(e);++t<e;)a[t]=o(t);return a}}}),Re=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_isIndex.js"(e,o){var t=/^(?:0|[1-9]\d*)$/;o.exports=function(e,o){var a=typeof e;return!!(o=null==o?9007199254740991:o)&&("number"==a||"symbol"!=a&&t.test(e))&&e>-1&&e%1==0&&e<o}}}),Me=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_arrayLikeKeys.js"(e,o){var a=ze(),r=u(),n=t(),s=d(),l=Re(),i=f(),c=Object.prototype.hasOwnProperty;o.exports=function(e,o){var t=n(e),u=!t&&r(e),d=!t&&!u&&s(e),f=!t&&!u&&!d&&i(e),p=t||u||d||f,h=p?a(e.length,String):[],m=h.length;for(var b in e)!o&&!c.call(e,b)||p&&("length"==b||d&&("offset"==b||"parent"==b)||f&&("buffer"==b||"byteLength"==b||"byteOffset"==b)||l(b,m))||h.push(b);return h}}}),Xe=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_nativeKeysIn.js"(e,o){o.exports=function(e){var o=[];if(null!=e)for(var t in Object(e))o.push(t);return o}}}),Be=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_baseKeysIn.js"(e,o){var t=w(),a=l(),r=Xe(),n=Object.prototype.hasOwnProperty;o.exports=function(e){if(!t(e))return r(e);var o=a(e),s=[];for(var l in e)("constructor"!=l||!o&&n.call(e,l))&&s.push(l);return s}}}),Ie=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/keysIn.js"(e,o){var t=Me(),a=Be(),r=i();o.exports=function(e){return r(e)?t(e,!0):a(e)}}}),De=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/toPlainObject.js"(e,o){var t=Ye(),a=Ie();o.exports=function(e){return t(e,a(e))}}}),Le=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_baseMergeDeep.js"(e,o){var a=je(),r=Pe(),n=Oe(),s=Te(),l=Fe(),i=u(),p=t(),h=ke(),m=d(),b=c(),v=w(),y=Ne(),_=f(),g=Ee(),x=De();o.exports=function(e,o,t,u,d,f,c){var w=g(e,t),j=g(o,t),$=c.get(j);if($)a(e,t,$);else{var S=f?f(w,j,t+"",e,o,c):void 0,P=void 0===S;if(P){var W=p(j),C=!W&&m(j),O=!W&&!C&&_(j);S=j,W||C||O?p(w)?S=w:h(w)?S=s(w):C?(P=!1,S=r(j,!0)):O?(P=!1,S=n(j,!0)):S=[]:y(j)||i(j)?(S=w,i(w)?S=x(w):v(w)&&!b(w)||(S=l(j))):P=!1}P&&(c.set(j,S),d(S,j,u,f,c),c.delete(j)),a(e,t,S)}}}}),He=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_baseMerge.js"(e,o){var t=ge(),a=je(),r=Se(),n=Le(),s=w(),l=Ie(),i=Ee();o.exports=function e(o,u,d,f,c){o!==u&&r(u,function(r,l){if(c||(c=new t),s(r))n(o,u,l,d,e,f,c);else{var p=f?f(i(o,l),r,l+"",o,u,c):void 0;void 0===p&&(p=r),a(o,l,p)}},l)}}}),Ue=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/identity.js"(e,o){o.exports=function(e){return e}}}),Ge=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_apply.js"(e,o){o.exports=function(e,o,t){switch(t.length){case 0:return e.call(o);case 1:return e.call(o,t[0]);case 2:return e.call(o,t[0],t[1]);case 3:return e.call(o,t[0],t[1],t[2])}return e.apply(o,t)}}}),qe=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_overRest.js"(e,o){var t=Ge(),a=Math.max;o.exports=function(e,o,r){return o=a(void 0===o?e.length-1:o,0),function(){for(var n=arguments,s=-1,l=a(n.length-o,0),i=Array(l);++s<l;)i[s]=n[o+s];s=-1;for(var u=Array(o+1);++s<o;)u[s]=n[s];return u[o]=r(i),t(e,this,u)}}}}),Qe=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/constant.js"(e,o){o.exports=function(e){return function(){return e}}}}),Je=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_baseSetToString.js"(e,o){var t=Qe(),a=we(),r=Ue(),n=a?function(e,o){return a(e,"toString",{configurable:!0,enumerable:!1,value:t(o),writable:!0})}:r;o.exports=n}}),Ze=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_shortOut.js"(e,o){var t=Date.now;o.exports=function(e){var o=0,a=0;return function(){var r=t(),n=16-(r-a);if(a=r,n>0){if(++o>=800)return arguments[0]}else o=0;return e.apply(void 0,arguments)}}}}),eo=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_setToString.js"(e,o){var t=Je(),a=Ze()(t);o.exports=a}}),oo=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_baseRest.js"(e,o){var t=Ue(),a=qe(),r=eo();o.exports=function(e,o){return r(a(e,o,t),e+"")}}}),to=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_isIterateeCall.js"(e,o){var t=H(),a=i(),r=Re(),n=w();o.exports=function(e,o,s){if(!n(s))return!1;var l=typeof o;return!!("number"==l?a(s)&&r(o,s.length):"string"==l&&o in s)&&t(s[o],e)}}}),ao=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_createAssigner.js"(e,o){var t=oo(),a=to();o.exports=function(e){return t(function(o,t){var r=-1,n=t.length,s=n>1?t[n-1]:void 0,l=n>2?t[2]:void 0;for(s=e.length>3&&"function"==typeof s?(n--,s):void 0,l&&a(t[0],t[1],l)&&(s=n<3?void 0:s,n=1),o=Object(o);++r<n;){var i=t[r];i&&e(o,i,r,s)}return o})}}}),ro=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/mergeWith.js"(e,o){var t=He(),a=ao()(function(e,o,a,r){t(e,o,a,r)});o.exports=a}}),no=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_baseToPairs.js"(e,o){var t=p();o.exports=function(e,o){return t(o,function(o){return[o,e[o]]})}}}),so=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_mapToArray.js"(e,o){o.exports=function(e){var o=-1,t=Array(e.size);return e.forEach(function(e,a){t[++o]=[a,e]}),t}}}),lo=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_setToPairs.js"(e,o){o.exports=function(e){var o=-1,t=Array(e.size);return e.forEach(function(e){t[++o]=[e,e]}),t}}}),io=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_createToPairs.js"(e,o){var t=no(),a=h(),r=so(),n=lo();o.exports=function(e){return function(o){var s=a(o);return"[object Map]"==s?r(o):"[object Set]"==s?n(o):t(o,e(o))}}}}),uo=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/keys.js"(e,o){var t=Me(),a=m(),r=i();o.exports=function(e){return r(e)?t(e):a(e)}}}),fo=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/toPairs.js"(e,o){var t=io()(uo());o.exports=t}}),co=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/entries.js"(e,o){o.exports=fo()}}),po=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_arrayEach.js"(e,o){o.exports=function(e,o){for(var t=-1,a=null==e?0:e.length;++t<a&&!1!==o(e[t],t,e););return e}}}),ho=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_baseAssign.js"(e,o){var t=Ye(),a=uo();o.exports=function(e,o){return e&&t(o,a(o),e)}}}),mo=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_baseAssignIn.js"(e,o){var t=Ye(),a=Ie();o.exports=function(e,o){return e&&t(o,a(o),e)}}}),bo=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_arrayFilter.js"(e,o){o.exports=function(e,o){for(var t=-1,a=null==e?0:e.length,r=0,n=[];++t<a;){var s=e[t];o(s,t,e)&&(n[r++]=s)}return n}}}),vo=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/stubArray.js"(e,o){o.exports=function(){return[]}}}),yo=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_getSymbols.js"(e,o){var t=bo(),a=vo(),r=Object.prototype.propertyIsEnumerable,n=Object.getOwnPropertySymbols,s=n?function(e){return null==e?[]:(e=Object(e),t(n(e),function(o){return r.call(e,o)}))}:a;o.exports=s}}),_o=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_copySymbols.js"(e,o){var t=Ye(),a=yo();o.exports=function(e,o){return t(e,a(e),o)}}}),go=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_arrayPush.js"(e,o){o.exports=function(e,o){for(var t=-1,a=o.length,r=e.length;++t<a;)e[r+t]=o[t];return e}}}),wo=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_getSymbolsIn.js"(e,o){var t=go(),a=Ve(),r=yo(),n=vo(),s=Object.getOwnPropertySymbols?function(e){for(var o=[];e;)t(o,r(e)),e=a(e);return o}:n;o.exports=s}}),xo=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_copySymbolsIn.js"(e,o){var t=Ye(),a=wo();o.exports=function(e,o){return t(e,a(e),o)}}}),jo=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_baseGetAllKeys.js"(e,o){var a=go(),r=t();o.exports=function(e,o,t){var n=o(e);return r(e)?n:a(n,t(e))}}}),$o=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_getAllKeys.js"(e,o){var t=jo(),a=yo(),r=uo();o.exports=function(e){return t(e,r,a)}}}),So=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_getAllKeysIn.js"(e,o){var t=jo(),a=wo(),r=Ie();o.exports=function(e){return t(e,r,a)}}}),Po=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_initCloneArray.js"(e,o){var t=Object.prototype.hasOwnProperty;o.exports=function(e){var o=e.length,a=new e.constructor(o);return o&&"string"==typeof e[0]&&t.call(e,"index")&&(a.index=e.index,a.input=e.input),a}}}),Wo=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_cloneDataView.js"(e,o){var t=Ce();o.exports=function(e,o){var a=o?t(e.buffer):e.buffer;return new e.constructor(a,e.byteOffset,e.byteLength)}}}),Co=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_cloneRegExp.js"(e,o){var t=/\w*$/;o.exports=function(e){var o=new e.constructor(e.source,t.exec(e));return o.lastIndex=e.lastIndex,o}}}),Oo=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_cloneSymbol.js"(e,o){var t=x(),a=t?t.prototype:void 0,r=a?a.valueOf:void 0;o.exports=function(e){return r?Object(r.call(e)):{}}}}),To=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_initCloneByTag.js"(e,o){var t=Ce(),a=Wo(),r=Co(),n=Oo(),s=Oe();o.exports=function(e,o,l){var i=e.constructor;switch(o){case"[object ArrayBuffer]":return t(e);case"[object Boolean]":case"[object Date]":return new i(+e);case"[object DataView]":return a(e,l);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(e,l);case"[object Map]":case"[object Set]":return new i;case"[object Number]":case"[object String]":return new i(e);case"[object RegExp]":return r(e);case"[object Symbol]":return n(e)}}}}),Ao=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_baseIsMap.js"(e,o){var t=h(),a=_();o.exports=function(e){return a(e)&&"[object Map]"==t(e)}}}),Vo=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/isMap.js"(e,o){var t=Ao(),a=b(),r=v(),n=r&&r.isMap,s=n?a(n):t;o.exports=s}}),Fo=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_baseIsSet.js"(e,o){var t=h(),a=_();o.exports=function(e){return a(e)&&"[object Set]"==t(e)}}}),ko=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/isSet.js"(e,o){var t=Fo(),a=b(),r=v(),n=r&&r.isSet,s=n?a(n):t;o.exports=s}}),No=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_baseClone.js"(e,o){var a=ge(),r=po(),n=Ke(),s=ho(),l=mo(),i=Pe(),u=Te(),f=_o(),c=xo(),p=$o(),m=So(),b=h(),v=Po(),y=To(),_=Fe(),g=t(),x=d(),j=Vo(),$=w(),S=ko(),P=uo(),W=Ie(),C="[object Arguments]",O="[object Function]",T="[object Object]",A={};A[C]=A["[object Array]"]=A["[object ArrayBuffer]"]=A["[object DataView]"]=A["[object Boolean]"]=A["[object Date]"]=A["[object Float32Array]"]=A["[object Float64Array]"]=A["[object Int8Array]"]=A["[object Int16Array]"]=A["[object Int32Array]"]=A["[object Map]"]=A["[object Number]"]=A[T]=A["[object RegExp]"]=A["[object Set]"]=A["[object String]"]=A["[object Symbol]"]=A["[object Uint8Array]"]=A["[object Uint8ClampedArray]"]=A["[object Uint16Array]"]=A["[object Uint32Array]"]=!0,A["[object Error]"]=A[O]=A["[object WeakMap]"]=!1,o.exports=function e(o,t,d,h,w,V){var F,k=1&t,N=2&t,E=4&t;if(d&&(F=w?d(o,h,w,V):d(o)),void 0!==F)return F;if(!$(o))return o;var K=g(o);if(K){if(F=v(o),!k)return u(o,F)}else{var Y=b(o),z=Y==O||"[object GeneratorFunction]"==Y;if(x(o))return i(o,k);if(Y==T||Y==C||z&&!w){if(F=N||z?{}:_(o),!k)return N?c(o,l(F,o)):f(o,s(F,o))}else{if(!A[Y])return w?o:{};F=y(o,Y,k)}}V||(V=new a);var R=V.get(o);if(R)return R;V.set(o,F),S(o)?o.forEach(function(a){F.add(e(a,t,d,a,o,V))}):j(o)&&o.forEach(function(a,r){F.set(r,e(a,t,d,r,o,V))});var M=K?void 0:(E?N?m:p:N?W:P)(o);return r(M||o,function(a,r){M&&(a=o[r=a]),n(F,r,e(a,t,d,r,o,V))}),F}}}),Eo=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/cloneDeep.js"(e,o){var t=No();o.exports=function(e){return t(e,5)}}}),Ko=z(I(),1),Yo=e=>{throw new Error("Didn't expect to get here")};function zo(e){return Object.entries(e)}var Ro=e=>e.replace("/","-"),Mo=e=>"."+K[e],Xo=(e,o,t,a)=>{const r=e.typography[o]?.[t];if(!r)throw new Error(`Missing typography data for variant "${o}" and key "${t}"`);const n="base"===a?r.base:r.breakpoints?.[a];if(!n)throw new Error(`Missing value for variant "${o}", key "${t}", and breakpoint "${a}"`);if((0,Ko.default)(n))return n;switch(n.type){case"px":return n.value/16+"rem";case"unitless":return String(n.value)}return Yo()},Bo=(e,o)=>o in e.font?`var(--${A}-${o})`:o,Io=(e,o)=>Object.fromEntries(R.flatMap(t=>{const a=Ro(t);return[[`--${A}-${a}`,Bo(e,Xo(e,t,"fontFamily",o))],[`--${W}-${a}`,Xo(e,t,"fontSize",o)],[`--${T}-${a}`,Xo(e,t,"fontWeight",o)],[`--${O}-${a}`,Xo(e,t,"fontSlant",o)],[`--${C}-${a}`,Xo(e,t,"fontWidth",o)],[`--${P}-${a}`,Xo(e,t,"lineHeight",o)],[`--${S}-${a}`,Xo(e,t,"textTransform",o)],[`--${$}-${a}`,Xo(e,t,"letterSpacing",o)]]})),Do=e=>Object.fromEntries(R.map(Ro).map(o=>[o,`var(--${e}-${o})`])),Lo={fontFamily:Do(A),fontWeight:Do(T),fontSlant:Do(O),fontWidth:Do(C),fontSize:Do(W),lineHeight:Do(P),textTransform:Do(S),letterSpacing:Do($)},Ho=e=>Io(e,"base"),Uo=e=>{const o=zo(e.breakpoints).sort(([,{value:e}],[,{value:o}])=>e-o);return{[`.${V}`]:Object.fromEntries(o.map(([o,{value:t}])=>[`@media (min-width: ${t}px)`,Io(e,o)])),[Mo("base")]:Io(e,"base"),[Mo("defaultBreakpoint")]:Io(e,e.globalDefaults.breakpoint),...Object.fromEntries(o.map(([o])=>[Mo(o),Io(e,o)]))}},Go=z(c(),1),qo=z(D(),1),Qo=z(ro(),1);function Jo({variantKey:e,variantValue:o,layer:t,subComponentName:a,stateKey:r,stateValue:n}){return a?r&&n?`${a}/${e}/${o}/${r}/${n}/${t}`:`${a}/${e}/${o}/${t}`:r&&n?`${e}/${o}/${r}/${n}/${t}`:`${e}/${o}/${t}`}var Zo=e=>!!e?.layers,et=e=>!!e?.componentStates,ot=e=>e.reduce((e,o)=>e.flatMap(e=>o.map(o=>[e,o].flat())));function tt(o,t){const a=o.variants?.[t];if(a)return{type:"no-sub-components",variant:a};const r=ht(o);if(!r)return{type:"no-variants"};return{type:"has-sub-components",variants:e(r,e=>e.variants[t])}}function at(e,o,t){const a=e[o]?.defaults?.[t];if(void 0===a)throw new Error(`The variant default for "${t}" is not defined for the component "${o}"`);return a}function rt(e,o,t,a){return at(e,o,t)===a}function nt(e){let o=e;return o=o.replaceAll(".","/"),["root/","variables/","variant/","/value"].forEach(e=>{o=o.replaceAll(e,"")}),o}var st=z(co(),1);function lt(e,o,t){const a=tt(e,o);switch(a.type){case"no-variants":return null;case"no-sub-components":return a.variant;case"has-sub-components":if(!t)throw new Error("subComponentName argument name is required for configs with subcomponents");return a.variants[t]}}function it(e,o,t){const a=lt(e,o,t);return a&&et(a)?a?.componentStates??null:null}function ut(e,o,t){const a=it(e,o,t);if(!a)return null;return ot((0,st.default)(a).map(([e,o])=>o.options.map(o=>({[e]:o})))).map(e=>Array.isArray(e)?e.reduce((e,o)=>({...e,...o}),{}):e)}function dt(o){if(!o||!Zo(o))return null;const t=e(o.layers,e=>e.properties);for(const e in t){const o=t[e];o&&0!==Object.keys(o).length||delete t[e]}return 0===Object.keys(t).length?null:t}var ft=["rest"];function ct(e,o,t,a){const r=lt(e,o,a);if(!r)return null;return[...Zo(r)?Object.entries(r?.layers??{}):[],...et(r)&&t?Object.entries(r.componentStates[t].layers??{}):[]].flatMap(([e,o])=>Object.entries(o.properties).map(([o,t])=>[e,o,t])).flatMap(([e,o,t])=>[...t.skipRestState?ft.filter(e=>"rest"!==e):ft,...t.pseudoStates??[]].map(a=>[e,o,t,a])).reduce((e,[o,t,a,r])=>{e[r]=e[r]??[];const n=[o,t,a];return e[r].push(n),e},{})}var pt=z(co(),1);function ht(e){return e.subComponents?0===Object.keys(e.subComponents).length?null:e.subComponents:null}function mt(e,o="variant"){const t=tt(e,o);if("no-variants"===t.type)return{type:"no-variants",description:"No variants"};if("no-sub-components"===t.type){if(ht(e))throw new Error("A config with a root variants.variant defintion cannot have subcomponents");return{type:"no-sub-components",description:t.variant.description,variantNames:[...t.variant.options]}}const a=(0,pt.default)(t.variants).reduce((e,[o,t])=>{for(const a of t.options)e[a]??=[],e[a].includes(o)||e[a].push(o);return e},{});return{type:"has-sub-components",description:Object.values(t.variants).map(e=>e.description).filter(e=>e)[0]??"",variantNames:Object.keys(a),variantToSubcomponentNames:a}}var bt=z(Eo(),1);function vt(e,o,t,a,r){const n=e[t].variables[o];if(!n)throw new Error(`No layer variables found for ${o}.`);const s=n[a];if(!s)throw new Error(`No property variables found for ${a}.`);const l=s[r];if(!l)throw new Error(`No pseudoState variables found for ${r}.`);return l}function yt(e,o,t,a,r,n){const s=(0,bt.default)(e),l=vt(s,o,t,a,r);return void 0!==n.type&&(l.type=n.type),void 0!==n.value&&(l.value=n.value),s}function _t(e,o,t,a,r){return[vt(e,o,t,a,r),n=>yt(e,o,t,a,r,n)]}var gt="line-height",wt="border-width",xt="border-color",jt="box-shadow";function $t({lineHeight:e,schema:o,iconLayerKey:t,state:a,theme:r}){const n=o.variables?.[t]?.size?.[a]?.value;if(!n)return e;return`max(${e}, ${r(`sizing.icon.${n}`)})`}function St(e){const o=e[wt],t=e[xt];if(!o||!t)return e;const a=e=>e.replace(/\s*!important\s*$/,""),r=e=>e?.includes("!important")??!1,n=[`inset 0 0 0 ${a(o)} ${a(t)}`,e[jt]&&a(e[jt])].filter(Boolean),s=r(o)||r(t)||r(e[jt]),l={...e};return l[jt]=n.join(", ")+(s?" !important":""),delete l[wt],delete l[xt],l}var Pt={rest:"",hover:":hover:not(:active, :disabled, :has(:disabled))",pressed:":active:not(:disabled, :has(:disabled))",focused:":focus","focus-within":":focus-within",invalid:':has(input[aria-invalid="true"])',"focused-keyboard":":focus-visible",visited:":visited",readonly:":has(input:read-only)",disabled:":is(:disabled, :has(:disabled))","invalid&hover":':has(input[aria-invalid="true"]):hover:not(:active, :disabled, :has(:disabled))',"invalid&pressed":':has(input[aria-invalid="true"]):active:not(:disabled, :has(:disabled))'},Wt={rest:"",hover:"hover",pressed:"active",focused:"focus","focus-within":"focus-within",invalid:"has-input-invalid","focused-keyboard":"focus-visible",visited:"visited",readonly:"input-readonly",disabled:"has-disabled","invalid&hover":"has-input-invalid-and-hover","invalid&pressed":"has-input-invalid-and-active"};function Ct(e,o){const t=e.defaults[o],a=e.typeOfFixture;let r=0;return e.values.forEach((e,o)=>{e.includes(t)&&(r=o)}),a[r]}function Ot(e){const o={},t={};for(const o in e.variants){const a=e.variants[o];t[o]=a.default}o.defaults=t,o.variables={};for(const t in e.variants){const a=e.variants[t];for(const e of a.options)if(et(a)){const r=a.componentStates;for(const a in r){const n=r[a];for(const r of n.options)for(const s in n.layers){const l=n.layers[s],i=Jo({variantKey:t,variantValue:e,stateKey:a,stateValue:r,layer:s});o.variables[i]={};for(const t in l.properties){const a=l.properties[t],r={[t]:{}};if(!0!==a?.skipRestState&&(r[t]={rest:{type:Ct(a,e),valueType:"alias",value:a.defaults[e]}}),a.pseudoStates)for(const o of a.pseudoStates)r[t][o]={type:Ct(a,e),valueType:"alias",value:a.defaults[e]};o.variables[i]={...o.variables[i],...r}}}}}else if(Zo(a)){const r=a.layers;for(const a in r){const n=r[a],s=Jo({variantKey:t,variantValue:e,layer:a});o.variables[s]={};for(const t in n.properties){const a=n.properties[t],r={[t]:{}};if(!0!==a?.skipRestState&&(r[t]={rest:{type:Ct(a,e),valueType:"alias",value:a.defaults[e]}}),a.pseudoStates)for(const o of a.pseudoStates)r[t][o]={type:Ct(a,e),valueType:"alias",value:a.defaults[e]};o.variables[s]={...o.variables[s],...r}}}}}if(e.subComponents){const{subComponents:t}=e;for(const e in t)for(const a in t[e].variants){const r=t[e].variants[a];o.defaults[a]=r.default;for(const t of r.options)if(et(r)){const n=r.componentStates;for(const r in n){const s=n[r];for(const n of s.options)for(const l in s.layers){const i=s.layers[l],u=Jo({variantKey:a,variantValue:t,stateKey:r,stateValue:n,layer:l,subComponentName:e});o.variables[u]={};for(const e in i.properties){const a=i.properties[e],r={[e]:{}};if(!0!==a?.skipRestState&&(r[e]={rest:{type:Ct(a,t),valueType:"alias",value:a.defaults[t]}}),a.pseudoStates)for(const o of a.pseudoStates)r[e][o]={type:Ct(a,t),valueType:"alias",value:a.defaults[t]};o.variables[u]={...o.variables[u],...r}}}}}else if(Zo(r)){const n=r.layers;for(const r in n){const s=n[r],l=Jo({variantKey:a,variantValue:t,layer:r,subComponentName:e});o.variables[l]={};for(const e in s.properties){const a=s.properties[e],r={[e]:{}};if(!0!==a?.skipRestState&&(r[e]={rest:{type:Ct(a,t),valueType:"alias",value:a.defaults[t]}}),a.pseudoStates)for(const o of a.pseudoStates)r[e][o]={type:Ct(a,t),valueType:"alias",value:a.defaults[t]};o.variables[l]={...o.variables[l],...r}}}}}}return o}function Tt(e,o,t,a){return`uds-${e}${a?`-${a.toLowerCase()}`:""}-default-${o}-${t}`}function At({componentName:e,variantKey:o,variantValue:t,layer:a,layerOptionalPseudoSelector:r,subComponentName:n,stateKey:s,stateValue:l}){let i="";return i=n?`uds-${(0,qo.default)(e)}-${(0,qo.default)(n)}-${(0,qo.default)(o)}`:`uds-${(0,qo.default)(e)}-${(0,qo.default)(o)}`,t&&(i=`${i}-${(0,qo.default)(t)}`),s&&l&&(i=`${i}-${(0,qo.default)(s)}-${(0,qo.default)(l)}`),i=`${i}-${(0,qo.default)(a)}`,r&&(i=`${i}${r}`),i.replaceAll(/\s+/g,"-")}function Vt({componentName:e,variantKey:o,variantValue:t,layer:a,layerOptionalPseudoSelector:r,subComponentName:n,stateKey:s,stateValue:l,schema:i,propertyKey:u,originalPropertyDefinition:d,theme:f,currentStyles:c,previewOptions:p}){const h=Jo({variantKey:o,variantValue:t,layer:a,subComponentName:n,stateKey:s,stateValue:l});let m=At({componentName:e,variantKey:o,variantValue:t,layer:a,subComponentName:n,stateKey:s,stateValue:l});const b=i.variables[h][u];if(!b)throw new Error(`Prop definition (${e} - ${h} - ${u}) not found, this is not expected, please report the bug to the UDS team`);const v={};for(const h in b){const y=h,_=Pt[y]??"",g=b[y];let w="";if("root"===a)if(s&&l){const r=At({componentName:e,variantKey:o,variantValue:t,layer:a,subComponentName:n});m=At({componentName:e,variantKey:o,layer:a,subComponentName:n,stateKey:s,stateValue:l}),w=`.${r}${_}.${m}`}else w=`.${m}${_}`;else{const i=At({componentName:e,variantKey:o,variantValue:t,layer:"root",subComponentName:n});if(s&&l){const u=At({componentName:e,variantKey:o,layer:"root",subComponentName:n,stateKey:s,stateValue:l});m=At({componentName:e,variantKey:o,variantValue:t,layer:a,layerOptionalPseudoSelector:r,subComponentName:n}),w=`.${i}${_}.${u} .${m}`}else w=`.${i}${_} .${m}`}const x=(e,o,t,a)=>{const{value:r,type:n}=e,s=ya[o];let l;if(ya[o].customValueRenderer)l=ya[o].customValueRenderer(e,i,t);else{l=t(ya[o].twThemePath(n,String(r)))}if(s.concatenate&&a){return`${a}${s.concatenationDelimiter||", "}${l}`}return l},{cssProperties:j,extendedProperties:$}=ya[d.name],S={},P=(0,Go.default)($),W=P?$({componentName:e,subComponentName:n,layer:a,propertyKey:u}):$;if(W&&W.length){if(!P&&("string"==typeof j||Array.isArray(j)&&j.length>0))throw new Error("Invalid configuration: cssProperties should not be configured when extendedProperties are defined. Please update your property configuration accordingly.");for(const e of W){const o=ya[e].cssProperties;if("string"==typeof o){const t=c?.[w]?.[o];S[o]=x(g,e,f,t)}else if(Array.isArray(o))for(const t of o){const o=c?.[w]?.[t];S[t]=x(g,e,f,o)}}}else if("string"==typeof j){const e=c?.[w]?.[j];S[j]=x(g,d.name,f,e)}else if(Array.isArray(j))for(const e of j){const o=c?.[w]?.[e];S[e]=x(g,d.name,f,o)}if("button"===e&&"root"===a){if("gap"===u&&(S[E]=S.gap),"scaleEffect"===u&&!s&&"hover"===y){const e=`.${m}`,o=e=>ya.scaleEffect.customValueRenderer?.(e,i,()=>"")??"1";v[e]||(v[e]={}),v[e][F]="1",b.hover&&(v[e][k]=o(b.hover)),b.pressed&&(v[e][N]=o(b.pressed))}if(S[gt]){const e=Jo({variantKey:o,variantValue:t,layer:"icon",subComponentName:n});S[gt]=$t({lineHeight:S[gt],schema:i,iconLayerKey:e,state:y,theme:f})}}if(v[w]||(v[w]={...S,...v[w]}),p?.generatePseudoStateClassModifier){const e=Wt[y]??"";if(e.length>0&&"root"!==h){const o=Object.fromEntries(Object.entries(S).map(([e,o])=>[e,`${o} !important`]));v[`.${e}${w}`.replace(_,"")]={...o,...v[`.${e}${w}`.replace(_,"")]}}}}return v}function Ft(e,o,t,a){function r(e,o){return(0,Qo.default)({},e,o)}let n=e.label.toLowerCase();e.overrideComponentName&&(n=e.overrideComponentName.toLowerCase());let s={};for(const l in e.variants){const i=e.variants[l];for(const e of i.options)if(et(i)){const u=i.componentStates;for(const i in u){const d=u[i];for(const u of d.options)for(const f in d.layers){const c=d.layers[f];for(const d in c.properties){const p=c.properties[d];s=r(s,Vt({componentName:n,variantKey:l,variantValue:e,stateKey:i,stateValue:u,layer:f,layerOptionalPseudoSelector:c.pseudoSelector,propertyKey:d,originalPropertyDefinition:p,theme:t,schema:o,currentStyles:s,previewOptions:a}))}}}}else if(Zo(i)){const u=i.layers;for(const i in u){const d=u[i];for(const u in d.properties){const f=d.properties[u];s=r(s,Vt({componentName:n,variantKey:l,variantValue:e,layer:i,layerOptionalPseudoSelector:d.pseudoSelector,propertyKey:u,originalPropertyDefinition:f,theme:t,schema:o,currentStyles:s,previewOptions:a}))}}}}if(e.subComponents){const{subComponents:l}=e;for(const e in l)for(const i in l[e].variants){const u=l[e].variants[i];for(const l of u.options)if(et(u)){const d=u.componentStates;for(const u in d){const f=d[u];for(const d of f.options)for(const c in f.layers){const p=f.layers[c];for(const f in p.properties){const h=p.properties[f];s=r(s,Vt({componentName:n,variantKey:i,variantValue:l,stateKey:u,stateValue:d,subComponentName:e,layer:c,layerOptionalPseudoSelector:p.pseudoSelector,propertyKey:f,originalPropertyDefinition:h,theme:t,schema:o,currentStyles:s,previewOptions:a}))}}}}else if(Zo(u)){const d=u.layers;for(const u in d){const f=d[u];for(const d in f.properties){const c=f.properties[d];s=r(s,Vt({componentName:n,subComponentName:e,variantKey:i,variantValue:l,layer:u,layerOptionalPseudoSelector:f.pseudoSelector,propertyKey:d,originalPropertyDefinition:c,theme:t,schema:o,currentStyles:s,previewOptions:a}))}}}}}if("button"===n||"iconbutton"===n)for(const e in s)e.includes("-root")&&(s[e]=St(s[e]));return s}var kt=(e,o,t,a)=>{const r=Ft(e,o,t,a);if(!e.variants&&!e.subComponents)return r;const n=e.overrideComponentName?.toLowerCase()||e.label.toLowerCase();if("button"!==n&&"iconbutton"!==n)return r;const s=new Map,l=e=>{if(Zo(e))return Object.keys(e.layers);if(et(e)){const o=new Set;for(const t of Object.values(e.componentStates))Object.keys(t.layers).forEach(e=>o.add(e));return Array.from(o)}return[]},i=(e,t)=>{for(const[a,r]of Object.entries(e)){if(!Zo(r)&&!et(r))continue;const e=l(r);if(e.length){const r=o.defaults?.[a];if(r)for(const o of e){const e=At({componentName:n,variantKey:a,variantValue:r,layer:o,subComponentName:t}),l=Tt(n,a,o,t);s.set(e,`.${e}, .${l}`)}}}};if(e.variants&&i(e.variants),e.subComponents)for(const[o,t]of Object.entries(e.subComponents))i(t.variants,o);const u={};for(const[e,o]of Object.entries(r)){let t=e,a=!1;for(const[o,r]of s.entries())if(e.includes(o)){a=!0;const e=r.match(/,\s*\.([a-z0-9-]+)/);if(e){const a=e[1];t=t.replaceAll(o,a)}}a?u[`${e}, ${t}`]=o:u[e]=o}return u};function Nt(e){return e}function Et(e){return e}function Kt(e){return e}function Yt(e){return e}function zt(e){return e}function Rt(e){return e}function Mt(e){return e}var Xt={drop:{none:[],xs:[{offsetX:"0",offsetY:"px",blur:"0.5",spread:"0",opacity:"5",color:{type:"palette",value:"primary"}}],sm:[{offsetX:"0",offsetY:"px",blur:"0.5",spread:"0",opacity:"10",color:{type:"palette",value:"primary"}},{offsetX:"0",offsetY:"px",blur:"1",spread:"0",opacity:"10",color:{type:"palette",value:"primary"}}],md:[{offsetX:"0",offsetY:"1",blur:"1.5",spread:"-px",opacity:"10",color:{type:"palette",value:"primary"}},{offsetX:"0",offsetY:"0.5",blur:"1",spread:"-0.5",opacity:"10",color:{type:"palette",value:"primary"}}],lg:[{offsetX:"0",offsetY:"1",blur:"1.5",spread:"-1",opacity:"10",color:{type:"palette",value:"primary"}},{offsetX:"0",offsetY:"2.5",blur:"3.5",spread:"-0.5",opacity:"10",color:{type:"palette",value:"primary"}}],xl:[{offsetX:"0",offsetY:"2",blur:"2.5",spread:"-1.5",opacity:"10",color:{type:"palette",value:"primary"}},{offsetX:"0",offsetY:"5",blur:"6",spread:"-1",opacity:"10",color:{type:"palette",value:"primary"}}],"2xl":[{offsetX:"0",offsetY:"6",blur:"12",spread:"-3",opacity:"25",color:{type:"palette",value:"primary"}}]},inset:{none:[],xs:[{offsetX:"0",offsetY:"px",blur:"0.5",spread:"0",opacity:"5",color:{type:"palette",value:"primary"}}],sm:[{offsetX:"0",offsetY:"px",blur:"0.5",spread:"0",opacity:"10",color:{type:"palette",value:"primary"}},{offsetX:"0",offsetY:"px",blur:"1",spread:"0",opacity:"10",color:{type:"palette",value:"primary"}}],md:[{offsetX:"0",offsetY:"1",blur:"1.5",spread:"-px",opacity:"10",color:{type:"palette",value:"primary"}},{offsetX:"0",offsetY:"0.5",blur:"1",spread:"-0.5",opacity:"10",color:{type:"palette",value:"primary"}}],lg:[{offsetX:"0",offsetY:"1",blur:"1.5",spread:"-1",opacity:"10",color:{type:"palette",value:"primary"}},{offsetX:"0",offsetY:"2.5",blur:"3.5",spread:"-0.5",opacity:"10",color:{type:"palette",value:"primary"}}],xl:[{offsetX:"0",offsetY:"2",blur:"2.5",spread:"-1.5",opacity:"10",color:{type:"palette",value:"primary"}},{offsetX:"0",offsetY:"5",blur:"6",spread:"-1",opacity:"10",color:{type:"palette",value:"primary"}}],"2xl":[{offsetX:"0",offsetY:"6",blur:"12",spread:"-3",opacity:"25",color:{type:"palette",value:"primary"}}],"xs-invert":[{offsetX:"0",offsetY:"px",blur:"0.5",spread:"0",opacity:"5",color:{type:"always",value:"white"}}],"sm-invert":[{offsetX:"0",offsetY:"px",blur:"0.5",spread:"0",opacity:"10",color:{type:"always",value:"white"}},{offsetX:"0",offsetY:"px",blur:"1",spread:"0",opacity:"10",color:{type:"always",value:"white"}}],"md-invert":[{offsetX:"0",offsetY:"1",blur:"1.5",spread:"-px",opacity:"10",color:{type:"always",value:"white"}},{offsetX:"0",offsetY:"0.5",blur:"1",spread:"-0.5",opacity:"10",color:{type:"always",value:"white"}}],"lg-invert":[{offsetX:"0",offsetY:"1",blur:"1.5",spread:"-1",opacity:"10",color:{type:"always",value:"white"}},{offsetX:"0",offsetY:"2.5",blur:"3.5",spread:"-0.5",opacity:"10",color:{type:"always",value:"white"}}],"xl-invert":[{offsetX:"0",offsetY:"2",blur:"2.5",spread:"-1.5",opacity:"10",color:{type:"always",value:"white"}},{offsetX:"0",offsetY:"5",blur:"6",spread:"-1",opacity:"10",color:{type:"always",value:"white"}}],"2xl-invert":[{offsetX:"0",offsetY:"6",blur:"12",spread:"-3",opacity:"25",color:{type:"always",value:"white"}}]}},Bt={thin:"100",extralight:"200",light:"300",regular:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},It="system",Dt="system",Lt="light",Ht="large",Ut=!1,Gt="🇺🇸 US",qt="https://s.yimg.com/bw/fonts",Qt=["Helvetica Neue","Helvetica","Arial","sans-serif"],Jt=["Georgia","Times","Times New Roman","serif"],Zt={"centra-no2":{fallback:Qt,type:"sans",fontFamily:"Centra No2",isVariableFont:!1,fontSlants:void 0,fontWidths:void 0,fontWeights:[{label:"Hairline",value:50},{label:"Thin",value:100},{label:"Light",value:300},{label:"Book",value:400},{label:"Medium",value:500},{label:"Bold",value:700},{label:"ExtraBold",value:800},{label:"Black",value:900}],defaults:{fontSlant:void 0,fontWidth:void 0,fontWeight:400},declarations:[{fontStyle:"normal",fontWeight:"50",src:`url('${qt}/centra-no2-hairline.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"50",src:`url('${qt}/centra-no2-hairline-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"100",src:`url('${qt}/centra-no2-thin.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"100",src:`url('${qt}/centra-no2-thin-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"300",src:`url('${qt}/centra-no2-light.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"300",src:`url('${qt}/centra-no2-light-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"400",src:`url('${qt}/centra-no2-book.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"400",src:`url('${qt}/centra-no2-book-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"500",src:`url('${qt}/centra-no2-medium.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"500",src:`url('${qt}/centra-no2-medium-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"700",src:`url('${qt}/centra-no2-bold.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"700",src:`url('${qt}/centra-no2-bold-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"800",src:`url('${qt}/centra-no2-extrabold.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"800",src:`url('${qt}/centra-no2-extrabold-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"900",src:`url('${qt}/centra-no2-black.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"900",src:`url('${qt}/centra-no2-black-italic.woff2') format('woff2')`}]},inter:{fallback:Qt,type:"sans",fontFamily:"Inter",isVariableFont:!0,fontSlants:[{label:"Italic",value:-10},{label:"None",value:0}],fontWidths:void 0,fontWeights:[{label:"Thin",value:100},{label:"Extra Light",value:200},{label:"Light",value:300},{label:"Regular",value:400},{label:"Medium",value:500},{label:"Semi Bold",value:600},{label:"Bold",value:700},{label:"Extra Bold",value:800},{label:"Black",value:900}],defaults:{fontSlant:0,fontWidth:void 0,fontWeight:400},declarations:[{fontWeight:"1 1000",src:`url('${qt}/inter-vf.woff2') format('woff2')`}]},"roboto-mono":{fallback:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas","Liberation Mono","Courier New","monospace"],type:"mono",fontFamily:"Roboto Mono",isVariableFont:!1,fontSlants:void 0,fontWidths:void 0,fontWeights:[{label:"Thin",value:100},{label:"Light",value:300},{label:"Regular",value:400},{label:"Medium",value:500},{label:"Bold",value:700}],defaults:{fontSlant:void 0,fontWidth:void 0,fontWeight:400},declarations:[{fontStyle:"normal",fontWeight:"100",src:`url('${qt}/roboto-mono-100.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"100",src:`url('${qt}/roboto-mono-100-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"300",src:`url('${qt}/roboto-mono-300.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"300",src:`url('${qt}/roboto-mono-300-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"400",src:`url('${qt}/roboto-mono-400.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"400",src:`url('${qt}/roboto-mono-400-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"500",src:`url('${qt}/roboto-mono-500.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"500",src:`url('${qt}/roboto-mono-500-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"700",src:`url('${qt}/roboto-mono-700.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"700",src:`url('${qt}/roboto-mono-700-italic.woff2') format('woff2')`}]},"yahoo-sans":{fallback:Qt,type:"sans",fontFamily:"Yahoo Sans",isVariableFont:!0,fontSlants:void 0,fontWidths:void 0,fontWeights:[{label:"ExtraLight",value:200},{label:"Light",value:300},{label:"Regular",value:400},{label:"Medium",value:500},{label:"Semibold",value:585},{label:"Bold",value:700},{label:"ExtraBold",value:810},{label:"Black",value:900}],defaults:{fontSlant:void 0,fontWidth:void 0,fontWeight:400},declarations:[{fontWeight:"1 1000",src:`url('${qt}/yahoo-sans-vf.woff2') format('woff2')`}]},"yahoo-sans-cr4":{fallback:Qt,type:"sans",fontFamily:"Yahoo CR4 BETA VF",isVariableFont:!0,fontSlants:void 0,fontWidths:void 0,fontWeights:[{label:"Regular",value:400},{label:"Medium",value:500},{label:"Bold",value:700}],defaults:{fontSlant:void 0,fontWidth:void 0,fontWeight:450},declarations:[{fontWeight:"1 1000",src:`url('${qt}/yahoo-sans-cr4-vf.woff2') format('woff2')`}]},"yahoo-product-sans":{fallback:Qt,type:"sans",fontFamily:"Yahoo Product Sans VF",isVariableFont:!0,fontSlants:void 0,fontWidths:void 0,fontWeights:[{label:"Regular",value:400},{label:"Medium",value:500},{label:"Bold",value:700}],defaults:{fontSlant:void 0,fontWidth:void 0,fontWeight:450},declarations:[{fontWeight:"1 1000",src:`url('${qt}/yahoo-product-sans-vf.woff2') format('woff2-variations')`}]},"yahoo-product-sans-extended":{fallback:Qt,type:"sans",fontFamily:"YahooPd_Eval202412",isVariableFont:!0,fontSlants:[{label:"Italic",value:9},{label:"None",value:0}],fontWidths:[{label:"Cond",value:50},{label:"Normal",value:75},{label:"Ext",value:100}],fontWeights:[{label:"Light",value:300},{label:"Regular",value:450},{label:"Medium",value:500},{label:"Semibold",value:600},{label:"Bold",value:700},{label:"Black",value:850}],defaults:{fontSlant:0,fontWidth:75,fontWeight:450},declarations:[{fontWeight:"1 1000",src:`url('${qt}/YahooPd_Eval202412-v1.1.0.woff2') format("woff2 supports variations"), url('${qt}/YahooPd_Eval202412-v1.1.0.woff2') format('woff2-variations')`}]},"yahoo-sans-condensed":{fallback:Qt,type:"sans",fontFamily:"Yahoo Sans Cond",isVariableFont:!0,fontSlants:void 0,fontWidths:void 0,fontWeights:[{label:"Light",value:300},{label:"Regular",value:400},{label:"Medium",value:500},{label:"Bold",value:718},{label:"XBold",value:800},{label:"Black",value:900}],defaults:{fontSlant:void 0,fontWidth:void 0,fontWeight:400},declarations:[{fontWeight:"1 1000",src:`url('${qt}/yahoo-sans-condensed-vf.woff2') format('woff2')`}]},"yahoo-serif-display":{fallback:Jt,type:"serif",fontFamily:"Yahoo Serif Display",isVariableFont:!1,fontSlants:void 0,fontWidths:void 0,fontWeights:[{label:"Light",value:300},{label:"Regular",value:400},{label:"Bold",value:700},{label:"Extrabold",value:800},{label:"Black",value:900}],defaults:{fontSlant:void 0,fontWidth:void 0,fontWeight:400},declarations:[{fontStyle:"normal",fontWeight:"300",src:`url('${qt}/yahoo-serif-display-light.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"400",src:`url('${qt}/yahoo-serif-display-regular.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"700",src:`url('${qt}/yahoo-serif-display-bold.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"800",src:`url('${qt}/yahoo-serif-display-extrabold.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"900",src:`url('${qt}/yahoo-serif-display-black.woff2') format('woff2')`}]},"yahoo-serif-text":{fallback:Jt,type:"serif",fontFamily:"Yahoo Serif Text",isVariableFont:!1,fontSlants:void 0,fontWidths:void 0,fontWeights:[{label:"Regular",value:400},{label:"Bold",value:700}],defaults:{fontSlant:void 0,fontWidth:void 0,fontWeight:400},declarations:[{fontStyle:"normal",fontWeight:"400",src:`url('${qt}/yahoo-serif-text-regular.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"400",src:`url('${qt}/yahoo-serif-text-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"700",src:`url('${qt}/yahoo-serif-text-bold.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"700",src:`url('${qt}/yahoo-serif-text-bold-italic.woff2') format('woff2')`}]}};function ea({palette:e="accent",variant:o="primary"}){return"accent"===e?o:"primary"===o?e:`${e}-${o}`}function oa(e){return Object.fromEntries(e)}var ta={black:"0 0 0",white:"255 255 255"};function aa({preset:e,prefix:o,shadowType:t}){const a=`--uds-${t}-shadow-`,r="palette"===e.color?.type,n="always"===e.color?.type;let s=`var(--uds-${r?"shadow":"spectrum"}-color-${e?.color?.value})`;n&&(s=ta[e.color.value]);const l=`var(${a}${o?`${o}-`:""}color, ${s})`;return`${"inset"===t?"inset ":""}${[`${M[e.offsetX]}px`,`${M[e.offsetY]}px`,`${X[e.blur]}px`,`${B[e.spread]}px`].map(e=>e).join(" ")} ${`rgb(${l} / var(${a}${o?`${o}-`:""}opacity, ${Number(e.opacity)/100}))`}`}function ra({config:e,shadowType:t}){const a=e?.shadow?.[t];if(!a)return{};const r={};return o(a).forEach(([e,o])=>{if("none"===e)return void(r[`--uds-${t}-shadow-${e}`]="0 0 transparent");const a=o.map((e,o)=>aa({preset:e,prefix:o>0?`${o+1}`:void 0,shadowType:t}));r[`--uds-${t}-shadow-${e}`]=`${a.join(", ")}`}),r}var na=e=>(o,t)=>`typography.${e}.${Ro(t)}`,sa=(e,o)=>{switch(e){case"alwaysPaletteAliases":return`colors.${o}`;case"spectrumColors":{const[e,t]=o.split("-");return`colors.${e}.${t}`}case"foregroundPaletteColors":return`textColor.${o}`;case"backgroundPaletteColors":return`backgroundColor.${o}`;case"linePaletteColors":return`borderColor.${o}`}return Yo()},la=({componentName:e,layer:o,propertyKey:t})=>!("chip"!==e||"root"!==o||!["borderColor","borderWidth"].includes(t))||!("input"!==e||"inputWrapper"!==o||!["borderColor","borderWidth"].includes(t)),ia={name:"backgroundColor",cssProperties:"background-color",twThemePath:sa,possibleFixtures:["backgroundPaletteColors","spectrumColors","alwaysPaletteAliases"]},ua={name:"fontSize",cssProperties:"font-size",twThemePath:na("fontSize"),possibleFixtures:["textVariants"]},da={name:"fontVariationSettings",cssProperties:"font-variation-settings",twThemePath:()=>"",possibleFixtures:["textVariants"],customValueRenderer:e=>{const{value:o}=e,t=Ro(o);return`"wght" var(--uds-font-weight-${t}), "slnt" var(--uds-font-slant-${t}), "wdth" var(--uds-font-width-${t});`}},fa={name:"fontWeight",cssProperties:"font-weight",twThemePath:na("fontWeight"),possibleFixtures:["textVariants"]},ca={name:"fontFamily",cssProperties:"font-family",twThemePath:na("fontFamily"),possibleFixtures:["textVariants"]},pa={name:"color",cssProperties:"color",twThemePath:sa,possibleFixtures:["alwaysPaletteAliases","spectrumColors","foregroundPaletteColors"]},ha={name:"borderWidth",cssProperties:"border-width",twThemePath:(e,o)=>"borderWidths"===e?`borderWidth[${o}]`:`spacing[${o}]`,possibleFixtures:["borderWidths","spacingAliases"],extendedProperties:e=>la(e)&&["outlineWidth","insetOutlineOffset","solidOutline"]},ma={name:"borderColor",cssProperties:"border-color",twThemePath:sa,possibleFixtures:["alwaysPaletteAliases","spectrumColors","linePaletteColors"],extendedProperties:e=>la(e)&&["outlineColor"]},ba={name:"outlineColor",cssProperties:"outline-color",twThemePath:sa,possibleFixtures:["alwaysPaletteAliases","spectrumColors","linePaletteColors"]},va={name:"textTransform",cssProperties:"text-transform",twThemePath:na("textTransform"),possibleFixtures:["textVariants"]},ya={...{backgroundColor:ia,borderWidth:ha,borderRadius:{name:"borderRadius",cssProperties:"border-radius",twThemePath:(e,o)=>`borderRadius.${o}`,possibleFixtures:["borderRadii"]},borderColor:ma,fontFamily:ca,fontSize:ua,fontVariationSettings:da,lineHeight:{name:"lineHeight",cssProperties:"line-height",twThemePath:na("lineHeight"),possibleFixtures:["textVariants"]},textTransform:va,letterSpacing:{name:"letterSpacing",cssProperties:"letter-spacing",twThemePath:na("letterSpacing"),possibleFixtures:["textVariants"]},padding:{name:"padding",cssProperties:"padding",twThemePath:(e,o)=>`spacing[${o}]`,possibleFixtures:["spacingAliases"]},gap:{name:"gap",cssProperties:"gap",twThemePath:(e,o)=>`spacing[${o}]`,possibleFixtures:["spacingAliases"]},color:pa,opacity:{name:"opacity",cssProperties:"opacity",twThemePath:(e,o)=>`opacity[${o}]`,possibleFixtures:["opacitySteps"]},fontWeight:fa,iconSize:{name:"iconSize",cssProperties:["width","height"],twThemePath:(e,o)=>`sizing.icon.${o}`,possibleFixtures:["iconSizes"]},spacingHorizontal:{name:"spacingHorizontal",cssProperties:["padding-right","padding-left"],twThemePath:(e,o)=>`spacing[${o}]`,possibleFixtures:["spacingAliases"]},spacingVertical:{name:"spacingVertical",cssProperties:["padding-top","padding-bottom"],twThemePath:(e,o)=>`spacing[${o}]`,possibleFixtures:["spacingAliases"]},textVariant:{name:"textVariant",cssProperties:[],twThemePath:()=>"",possibleFixtures:["textVariants"],extendedProperties:["fontSize","fontWeight","fontFamily","lineHeight","textTransform","fontVariationSettings","letterSpacing"]},textDecorationLine:{name:"textDecorationLine",cssProperties:"text-decoration-line",possibleFixtures:["textDecorationLines"],twThemePath:()=>"",customValueRenderer:e=>String(e.value)},shadow:{name:"drop shadow",cssProperties:"box-shadow",twThemePath:()=>"",concatenate:!0,customValueRenderer:e=>{const o="drop";if("alias"===e.valueType){const t="0 0 0 transparent";if("none"===e.value)return t;if("custom"!==e.value)return`var(--uds-${o}-shadow-${e.value})`}else if("custom"===e.valueType){const t=e.value.map((e,t)=>aa({preset:e,shadowType:o,prefix:t>0?`${t+1}`:void 0}));return t?.join(", ")||"0 0 0 transparent"}throw new Error("Invalid valueType")},possibleFixtures:["shadowVariants"]},insetShadow:{name:"inset shadow",cssProperties:"box-shadow",twThemePath:()=>"",concatenate:!0,customValueRenderer:e=>{const o="inset";if("alias"===e.valueType){const t="0 0 0 transparent";if("none"===e.value)return t;if("custom"!==e.value)return`var(--uds-${o}-shadow-${e.value})`}else if("custom"===e.valueType){const t=e.value.map((e,t)=>aa({preset:e,shadowType:o,prefix:t>0?`${t+1}`:void 0}));return t?.join(", ")||"0 0 0 transparent"}throw new Error("Invalid valueType")},possibleFixtures:["shadowVariantsWithInvert"]},height:{name:"height",cssProperties:"height",twThemePath:(e,o)=>`height[${o}]`,possibleFixtures:["spacingAliases"]},width:{name:"width",cssProperties:"width",twThemePath:(e,o)=>`width[${o}]`,possibleFixtures:["spacingAliases"]},scaleEffect:{name:"scaleEffect",cssProperties:j,possibleFixtures:["scaleEffects"],twThemePath:()=>"",customValueRenderer:e=>{const o=String(e.value);return"up"===o?"1.03":"down"===o?"0.97":"1"}}},...{outlineWidth:{name:"outlineWidth",cssProperties:"outline-width",twThemePath:(e,o)=>"borderWidths"===e?`borderWidth[${o}]`:`spacing[${o}]`,possibleFixtures:["borderWidths","spacingAliases"]},outlineColor:ba,insetOutlineOffset:{name:"insetOutlineOffset",cssProperties:"outline-offset",twThemePath:()=>"",customValueRenderer:({value:e,type:o},t,a)=>`calc(-1 * ${a("borderWidths"===o?`borderWidth[${e}]`:`spacing[${e}]`)})`,possibleFixtures:["borderWidths","spacingAliases"]},solidOutline:{name:"solidOutline",cssProperties:"outline-style",twThemePath:()=>"",customValueRenderer:()=>"solid",possibleFixtures:[]}}};export{Lt as DEFAULT_COLOR_MODE,It as DEFAULT_COLOR_MODE_FOR_APP,Ut as DEFAULT_HIGH_CONTRAST_MODE,Gt as DEFAULT_REGION_MODE,Ht as DEFAULT_SCALE_MODE,Dt as DEFAULT_SCALE_MODE_FOR_APP,Zt as FONT_DECLARATIONS_MAP,Lo as RESPONSIVE_TAILWIND_CONFIG_MAP,Yo as assertUnreachable,ot as cartesianProduct,tt as coalesceConfigVariant,ya as configurableProperties,zt as createComponentStates,Nt as createConfigurableProperty,Rt as createLayerConfig,Mt as createSubComponentConfig,Et as createVariantConfig,Yt as createVariantConfigWithComponentStates,Kt as createVariantConfigWithProperties,zo as entries,Ct as findFixtureType,Bt as fontWeightMap,oa as fromEntries,At as generateClassName,Ft as generateConfigStyles,Vt as generateDeclaration,Tt as generateDefaultClassName,nt as generateKeyFromFlatConfigPath,Jo as generateSchemaKey,kt as generateStyles,Ho as getBaseTextVars,at as getConfigDefaultValue,vt as getConfigPseudoStateVariables,_t as getConfigPseudoStateVariablesWithSetter,ht as getConfigSubcomponents,it as getConfigVariantComponentStates,ut as getConfigVariantComponentStatesMatrix,dt as getConfigVariantProperties,ct as getConfigVariantPseudoStates,mt as getConfigVariants,Uo as getResponsiveTextStyles,aa as getShadowLayerValue,ra as getShadowPresetValues,rt as isConfigDefaultValue,ea as parseButtonVariantFlat,ye as require_MapCache,ge as require_Stack,We as require_Uint8Array,Se as require_baseFor,He as require_baseMerge,ao as require_createAssigner,H as require_eq,$o as require_getAllKeys,Ue as require_identity,Re as require_isIndex,I as require_isString,uo as require_keys,so as require_mapToArray,yt as setConfigPseudoStateVariable,Xt as shadow,Wt as statePseudoMapDocsMode,Ro as textVariantsSafe,Ot as toMinimalDbConfigObject};
2
+ var I=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/isString.js"(e,o){var a=y(),r=t(),n=_();o.exports=function(e){return"string"==typeof e||!r(e)&&n(e)&&"[object String]"==a(e)}}}),D=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/lowerCase.js"(e,o){var t=a()(function(e,o,t){return e+(t?" ":"")+o.toLowerCase()});o.exports=t}}),L=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_listCacheClear.js"(e,o){o.exports=function(){this.__data__=[],this.size=0}}}),H=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/eq.js"(e,o){o.exports=function(e,o){return e===o||e!=e&&o!=o}}}),U=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_assocIndexOf.js"(e,o){var t=H();o.exports=function(e,o){for(var a=e.length;a--;)if(t(e[a][0],o))return a;return-1}}}),G=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_listCacheDelete.js"(e,o){var t=U(),a=Array.prototype.splice;o.exports=function(e){var o=this.__data__,r=t(o,e);return!(r<0)&&(r==o.length-1?o.pop():a.call(o,r,1),--this.size,!0)}}}),q=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_listCacheGet.js"(e,o){var t=U();o.exports=function(e){var o=this.__data__,a=t(o,e);return a<0?void 0:o[a][1]}}}),Q=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_listCacheHas.js"(e,o){var t=U();o.exports=function(e){return t(this.__data__,e)>-1}}}),J=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_listCacheSet.js"(e,o){var t=U();o.exports=function(e,o){var a=this.__data__,r=t(a,e);return r<0?(++this.size,a.push([e,o])):a[r][1]=o,this}}}),Z=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_ListCache.js"(e,o){var t=L(),a=G(),r=q(),n=Q(),s=J();function l(e){var o=-1,t=null==e?0:e.length;for(this.clear();++o<t;){var a=e[o];this.set(a[0],a[1])}}l.prototype.clear=t,l.prototype.delete=a,l.prototype.get=r,l.prototype.has=n,l.prototype.set=s,o.exports=l}}),ee=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_stackClear.js"(e,o){var t=Z();o.exports=function(){this.__data__=new t,this.size=0}}}),oe=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_stackDelete.js"(e,o){o.exports=function(e){var o=this.__data__,t=o.delete(e);return this.size=o.size,t}}}),te=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_stackGet.js"(e,o){o.exports=function(e){return this.__data__.get(e)}}}),ae=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_stackHas.js"(e,o){o.exports=function(e){return this.__data__.has(e)}}}),re=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_nativeCreate.js"(e,o){var t=r()(Object,"create");o.exports=t}}),ne=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_hashClear.js"(e,o){var t=re();o.exports=function(){this.__data__=t?t(null):{},this.size=0}}}),se=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_hashDelete.js"(e,o){o.exports=function(e){var o=this.has(e)&&delete this.__data__[e];return this.size-=o?1:0,o}}}),le=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_hashGet.js"(e,o){var t=re(),a=Object.prototype.hasOwnProperty;o.exports=function(e){var o=this.__data__;if(t){var r=o[e];return"__lodash_hash_undefined__"===r?void 0:r}return a.call(o,e)?o[e]:void 0}}}),ie=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_hashHas.js"(e,o){var t=re(),a=Object.prototype.hasOwnProperty;o.exports=function(e){var o=this.__data__;return t?void 0!==o[e]:a.call(o,e)}}}),ue=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_hashSet.js"(e,o){var t=re();o.exports=function(e,o){var a=this.__data__;return this.size+=this.has(e)?0:1,a[e]=t&&void 0===o?"__lodash_hash_undefined__":o,this}}}),de=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_Hash.js"(e,o){var t=ne(),a=se(),r=le(),n=ie(),s=ue();function l(e){var o=-1,t=null==e?0:e.length;for(this.clear();++o<t;){var a=e[o];this.set(a[0],a[1])}}l.prototype.clear=t,l.prototype.delete=a,l.prototype.get=r,l.prototype.has=n,l.prototype.set=s,o.exports=l}}),fe=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_mapCacheClear.js"(e,o){var t=de(),a=Z(),r=n();o.exports=function(){this.size=0,this.__data__={hash:new t,map:new(r||a),string:new t}}}}),ce=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_isKeyable.js"(e,o){o.exports=function(e){var o=typeof e;return"string"==o||"number"==o||"symbol"==o||"boolean"==o?"__proto__"!==e:null===e}}}),pe=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_getMapData.js"(e,o){var t=ce();o.exports=function(e,o){var a=e.__data__;return t(o)?a["string"==typeof o?"string":"hash"]:a.map}}}),he=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_mapCacheDelete.js"(e,o){var t=pe();o.exports=function(e){var o=t(this,e).delete(e);return this.size-=o?1:0,o}}}),me=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_mapCacheGet.js"(e,o){var t=pe();o.exports=function(e){return t(this,e).get(e)}}}),be=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_mapCacheHas.js"(e,o){var t=pe();o.exports=function(e){return t(this,e).has(e)}}}),ve=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_mapCacheSet.js"(e,o){var t=pe();o.exports=function(e,o){var a=t(this,e),r=a.size;return a.set(e,o),this.size+=a.size==r?0:1,this}}}),ye=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_MapCache.js"(e,o){var t=fe(),a=he(),r=me(),n=be(),s=ve();function l(e){var o=-1,t=null==e?0:e.length;for(this.clear();++o<t;){var a=e[o];this.set(a[0],a[1])}}l.prototype.clear=t,l.prototype.delete=a,l.prototype.get=r,l.prototype.has=n,l.prototype.set=s,o.exports=l}}),_e=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_stackSet.js"(e,o){var t=Z(),a=n(),r=ye();o.exports=function(e,o){var n=this.__data__;if(n instanceof t){var s=n.__data__;if(!a||s.length<199)return s.push([e,o]),this.size=++n.size,this;n=this.__data__=new r(s)}return n.set(e,o),this.size=n.size,this}}}),ge=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_Stack.js"(e,o){var t=Z(),a=ee(),r=oe(),n=te(),s=ae(),l=_e();function i(e){var o=this.__data__=new t(e);this.size=o.size}i.prototype.clear=a,i.prototype.delete=r,i.prototype.get=n,i.prototype.has=s,i.prototype.set=l,o.exports=i}}),we=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_defineProperty.js"(e,o){var t=r(),a=function(){try{var e=t(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();o.exports=a}}),xe=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_baseAssignValue.js"(e,o){var t=we();o.exports=function(e,o,a){"__proto__"==o&&t?t(e,o,{configurable:!0,enumerable:!0,value:a,writable:!0}):e[o]=a}}}),je=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_assignMergeValue.js"(e,o){var t=xe(),a=H();o.exports=function(e,o,r){(void 0!==r&&!a(e[o],r)||void 0===r&&!(o in e))&&t(e,o,r)}}}),$e=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_createBaseFor.js"(e,o){o.exports=function(e){return function(o,t,a){for(var r=-1,n=Object(o),s=a(o),l=s.length;l--;){var i=s[e?l:++r];if(!1===t(n[i],i,n))break}return o}}}}),Se=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_baseFor.js"(e,o){var t=$e()();o.exports=t}}),Pe=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_cloneBuffer.js"(e,o){var t=g(),a="object"==typeof e&&e&&!e.nodeType&&e,r=a&&"object"==typeof o&&o&&!o.nodeType&&o,n=r&&r.exports===a?t.Buffer:void 0,s=n?n.allocUnsafe:void 0;o.exports=function(e,o){if(o)return e.slice();var t=e.length,a=s?s(t):new e.constructor(t);return e.copy(a),a}}}),We=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_Uint8Array.js"(e,o){var t=g().Uint8Array;o.exports=t}}),Ce=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_cloneArrayBuffer.js"(e,o){var t=We();o.exports=function(e){var o=new e.constructor(e.byteLength);return new t(o).set(new t(e)),o}}}),Oe=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_cloneTypedArray.js"(e,o){var t=Ce();o.exports=function(e,o){var a=o?t(e.buffer):e.buffer;return new e.constructor(a,e.byteOffset,e.length)}}}),Te=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_copyArray.js"(e,o){o.exports=function(e,o){var t=-1,a=e.length;for(o||(o=Array(a));++t<a;)o[t]=e[t];return o}}}),Ae=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_baseCreate.js"(e,o){var t=w(),a=Object.create,r=function(){function e(){}return function(o){if(!t(o))return{};if(a)return a(o);e.prototype=o;var r=new e;return e.prototype=void 0,r}}();o.exports=r}}),Ve=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_getPrototype.js"(e,o){var t=s()(Object.getPrototypeOf,Object);o.exports=t}}),Fe=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_initCloneObject.js"(e,o){var t=Ae(),a=Ve(),r=l();o.exports=function(e){return"function"!=typeof e.constructor||r(e)?{}:t(a(e))}}}),ke=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/isArrayLikeObject.js"(e,o){var t=i(),a=_();o.exports=function(e){return a(e)&&t(e)}}}),Ne=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/isPlainObject.js"(e,o){var t=y(),a=Ve(),r=_(),n=Function.prototype,s=Object.prototype,l=n.toString,i=s.hasOwnProperty,u=l.call(Object);o.exports=function(e){if(!r(e)||"[object Object]"!=t(e))return!1;var o=a(e);if(null===o)return!0;var n=i.call(o,"constructor")&&o.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==u}}}),Ee=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_safeGet.js"(e,o){o.exports=function(e,o){if(("constructor"!==o||"function"!=typeof e[o])&&"__proto__"!=o)return e[o]}}}),Ke=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_assignValue.js"(e,o){var t=xe(),a=H(),r=Object.prototype.hasOwnProperty;o.exports=function(e,o,n){var s=e[o];r.call(e,o)&&a(s,n)&&(void 0!==n||o in e)||t(e,o,n)}}}),Ye=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_copyObject.js"(e,o){var t=Ke(),a=xe();o.exports=function(e,o,r,n){var s=!r;r||(r={});for(var l=-1,i=o.length;++l<i;){var u=o[l],d=n?n(r[u],e[u],u,r,e):void 0;void 0===d&&(d=e[u]),s?a(r,u,d):t(r,u,d)}return r}}}),ze=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_baseTimes.js"(e,o){o.exports=function(e,o){for(var t=-1,a=Array(e);++t<e;)a[t]=o(t);return a}}}),Re=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_isIndex.js"(e,o){var t=/^(?:0|[1-9]\d*)$/;o.exports=function(e,o){var a=typeof e;return!!(o=null==o?9007199254740991:o)&&("number"==a||"symbol"!=a&&t.test(e))&&e>-1&&e%1==0&&e<o}}}),Me=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_arrayLikeKeys.js"(e,o){var a=ze(),r=u(),n=t(),s=d(),l=Re(),i=f(),c=Object.prototype.hasOwnProperty;o.exports=function(e,o){var t=n(e),u=!t&&r(e),d=!t&&!u&&s(e),f=!t&&!u&&!d&&i(e),p=t||u||d||f,h=p?a(e.length,String):[],m=h.length;for(var b in e)!o&&!c.call(e,b)||p&&("length"==b||d&&("offset"==b||"parent"==b)||f&&("buffer"==b||"byteLength"==b||"byteOffset"==b)||l(b,m))||h.push(b);return h}}}),Xe=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_nativeKeysIn.js"(e,o){o.exports=function(e){var o=[];if(null!=e)for(var t in Object(e))o.push(t);return o}}}),Be=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_baseKeysIn.js"(e,o){var t=w(),a=l(),r=Xe(),n=Object.prototype.hasOwnProperty;o.exports=function(e){if(!t(e))return r(e);var o=a(e),s=[];for(var l in e)("constructor"!=l||!o&&n.call(e,l))&&s.push(l);return s}}}),Ie=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/keysIn.js"(e,o){var t=Me(),a=Be(),r=i();o.exports=function(e){return r(e)?t(e,!0):a(e)}}}),De=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/toPlainObject.js"(e,o){var t=Ye(),a=Ie();o.exports=function(e){return t(e,a(e))}}}),Le=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_baseMergeDeep.js"(e,o){var a=je(),r=Pe(),n=Oe(),s=Te(),l=Fe(),i=u(),p=t(),h=ke(),m=d(),b=c(),v=w(),y=Ne(),_=f(),g=Ee(),x=De();o.exports=function(e,o,t,u,d,f,c){var w=g(e,t),j=g(o,t),$=c.get(j);if($)a(e,t,$);else{var S=f?f(w,j,t+"",e,o,c):void 0,P=void 0===S;if(P){var W=p(j),C=!W&&m(j),O=!W&&!C&&_(j);S=j,W||C||O?p(w)?S=w:h(w)?S=s(w):C?(P=!1,S=r(j,!0)):O?(P=!1,S=n(j,!0)):S=[]:y(j)||i(j)?(S=w,i(w)?S=x(w):v(w)&&!b(w)||(S=l(j))):P=!1}P&&(c.set(j,S),d(S,j,u,f,c),c.delete(j)),a(e,t,S)}}}}),He=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_baseMerge.js"(e,o){var t=ge(),a=je(),r=Se(),n=Le(),s=w(),l=Ie(),i=Ee();o.exports=function e(o,u,d,f,c){o!==u&&r(u,function(r,l){if(c||(c=new t),s(r))n(o,u,l,d,e,f,c);else{var p=f?f(i(o,l),r,l+"",o,u,c):void 0;void 0===p&&(p=r),a(o,l,p)}},l)}}}),Ue=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/identity.js"(e,o){o.exports=function(e){return e}}}),Ge=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_apply.js"(e,o){o.exports=function(e,o,t){switch(t.length){case 0:return e.call(o);case 1:return e.call(o,t[0]);case 2:return e.call(o,t[0],t[1]);case 3:return e.call(o,t[0],t[1],t[2])}return e.apply(o,t)}}}),qe=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_overRest.js"(e,o){var t=Ge(),a=Math.max;o.exports=function(e,o,r){return o=a(void 0===o?e.length-1:o,0),function(){for(var n=arguments,s=-1,l=a(n.length-o,0),i=Array(l);++s<l;)i[s]=n[o+s];s=-1;for(var u=Array(o+1);++s<o;)u[s]=n[s];return u[o]=r(i),t(e,this,u)}}}}),Qe=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/constant.js"(e,o){o.exports=function(e){return function(){return e}}}}),Je=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_baseSetToString.js"(e,o){var t=Qe(),a=we(),r=Ue(),n=a?function(e,o){return a(e,"toString",{configurable:!0,enumerable:!1,value:t(o),writable:!0})}:r;o.exports=n}}),Ze=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_shortOut.js"(e,o){var t=Date.now;o.exports=function(e){var o=0,a=0;return function(){var r=t(),n=16-(r-a);if(a=r,n>0){if(++o>=800)return arguments[0]}else o=0;return e.apply(void 0,arguments)}}}}),eo=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_setToString.js"(e,o){var t=Je(),a=Ze()(t);o.exports=a}}),oo=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_baseRest.js"(e,o){var t=Ue(),a=qe(),r=eo();o.exports=function(e,o){return r(a(e,o,t),e+"")}}}),to=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_isIterateeCall.js"(e,o){var t=H(),a=i(),r=Re(),n=w();o.exports=function(e,o,s){if(!n(s))return!1;var l=typeof o;return!!("number"==l?a(s)&&r(o,s.length):"string"==l&&o in s)&&t(s[o],e)}}}),ao=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_createAssigner.js"(e,o){var t=oo(),a=to();o.exports=function(e){return t(function(o,t){var r=-1,n=t.length,s=n>1?t[n-1]:void 0,l=n>2?t[2]:void 0;for(s=e.length>3&&"function"==typeof s?(n--,s):void 0,l&&a(t[0],t[1],l)&&(s=n<3?void 0:s,n=1),o=Object(o);++r<n;){var i=t[r];i&&e(o,i,r,s)}return o})}}}),ro=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/mergeWith.js"(e,o){var t=He(),a=ao()(function(e,o,a,r){t(e,o,a,r)});o.exports=a}}),no=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_baseToPairs.js"(e,o){var t=p();o.exports=function(e,o){return t(o,function(o){return[o,e[o]]})}}}),so=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_mapToArray.js"(e,o){o.exports=function(e){var o=-1,t=Array(e.size);return e.forEach(function(e,a){t[++o]=[a,e]}),t}}}),lo=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_setToPairs.js"(e,o){o.exports=function(e){var o=-1,t=Array(e.size);return e.forEach(function(e){t[++o]=[e,e]}),t}}}),io=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_createToPairs.js"(e,o){var t=no(),a=h(),r=so(),n=lo();o.exports=function(e){return function(o){var s=a(o);return"[object Map]"==s?r(o):"[object Set]"==s?n(o):t(o,e(o))}}}}),uo=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/keys.js"(e,o){var t=Me(),a=m(),r=i();o.exports=function(e){return r(e)?t(e):a(e)}}}),fo=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/toPairs.js"(e,o){var t=io()(uo());o.exports=t}}),co=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/entries.js"(e,o){o.exports=fo()}}),po=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_arrayEach.js"(e,o){o.exports=function(e,o){for(var t=-1,a=null==e?0:e.length;++t<a&&!1!==o(e[t],t,e););return e}}}),ho=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_baseAssign.js"(e,o){var t=Ye(),a=uo();o.exports=function(e,o){return e&&t(o,a(o),e)}}}),mo=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_baseAssignIn.js"(e,o){var t=Ye(),a=Ie();o.exports=function(e,o){return e&&t(o,a(o),e)}}}),bo=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_arrayFilter.js"(e,o){o.exports=function(e,o){for(var t=-1,a=null==e?0:e.length,r=0,n=[];++t<a;){var s=e[t];o(s,t,e)&&(n[r++]=s)}return n}}}),vo=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/stubArray.js"(e,o){o.exports=function(){return[]}}}),yo=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_getSymbols.js"(e,o){var t=bo(),a=vo(),r=Object.prototype.propertyIsEnumerable,n=Object.getOwnPropertySymbols,s=n?function(e){return null==e?[]:(e=Object(e),t(n(e),function(o){return r.call(e,o)}))}:a;o.exports=s}}),_o=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_copySymbols.js"(e,o){var t=Ye(),a=yo();o.exports=function(e,o){return t(e,a(e),o)}}}),go=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_arrayPush.js"(e,o){o.exports=function(e,o){for(var t=-1,a=o.length,r=e.length;++t<a;)e[r+t]=o[t];return e}}}),wo=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_getSymbolsIn.js"(e,o){var t=go(),a=Ve(),r=yo(),n=vo(),s=Object.getOwnPropertySymbols?function(e){for(var o=[];e;)t(o,r(e)),e=a(e);return o}:n;o.exports=s}}),xo=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_copySymbolsIn.js"(e,o){var t=Ye(),a=wo();o.exports=function(e,o){return t(e,a(e),o)}}}),jo=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_baseGetAllKeys.js"(e,o){var a=go(),r=t();o.exports=function(e,o,t){var n=o(e);return r(e)?n:a(n,t(e))}}}),$o=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_getAllKeys.js"(e,o){var t=jo(),a=yo(),r=uo();o.exports=function(e){return t(e,r,a)}}}),So=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_getAllKeysIn.js"(e,o){var t=jo(),a=wo(),r=Ie();o.exports=function(e){return t(e,r,a)}}}),Po=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_initCloneArray.js"(e,o){var t=Object.prototype.hasOwnProperty;o.exports=function(e){var o=e.length,a=new e.constructor(o);return o&&"string"==typeof e[0]&&t.call(e,"index")&&(a.index=e.index,a.input=e.input),a}}}),Wo=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_cloneDataView.js"(e,o){var t=Ce();o.exports=function(e,o){var a=o?t(e.buffer):e.buffer;return new e.constructor(a,e.byteOffset,e.byteLength)}}}),Co=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_cloneRegExp.js"(e,o){var t=/\w*$/;o.exports=function(e){var o=new e.constructor(e.source,t.exec(e));return o.lastIndex=e.lastIndex,o}}}),Oo=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_cloneSymbol.js"(e,o){var t=x(),a=t?t.prototype:void 0,r=a?a.valueOf:void 0;o.exports=function(e){return r?Object(r.call(e)):{}}}}),To=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_initCloneByTag.js"(e,o){var t=Ce(),a=Wo(),r=Co(),n=Oo(),s=Oe();o.exports=function(e,o,l){var i=e.constructor;switch(o){case"[object ArrayBuffer]":return t(e);case"[object Boolean]":case"[object Date]":return new i(+e);case"[object DataView]":return a(e,l);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(e,l);case"[object Map]":case"[object Set]":return new i;case"[object Number]":case"[object String]":return new i(e);case"[object RegExp]":return r(e);case"[object Symbol]":return n(e)}}}}),Ao=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_baseIsMap.js"(e,o){var t=h(),a=_();o.exports=function(e){return a(e)&&"[object Map]"==t(e)}}}),Vo=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/isMap.js"(e,o){var t=Ao(),a=b(),r=v(),n=r&&r.isMap,s=n?a(n):t;o.exports=s}}),Fo=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_baseIsSet.js"(e,o){var t=h(),a=_();o.exports=function(e){return a(e)&&"[object Set]"==t(e)}}}),ko=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/isSet.js"(e,o){var t=Fo(),a=b(),r=v(),n=r&&r.isSet,s=n?a(n):t;o.exports=s}}),No=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_baseClone.js"(e,o){var a=ge(),r=po(),n=Ke(),s=ho(),l=mo(),i=Pe(),u=Te(),f=_o(),c=xo(),p=$o(),m=So(),b=h(),v=Po(),y=To(),_=Fe(),g=t(),x=d(),j=Vo(),$=w(),S=ko(),P=uo(),W=Ie(),C="[object Arguments]",O="[object Function]",T="[object Object]",A={};A[C]=A["[object Array]"]=A["[object ArrayBuffer]"]=A["[object DataView]"]=A["[object Boolean]"]=A["[object Date]"]=A["[object Float32Array]"]=A["[object Float64Array]"]=A["[object Int8Array]"]=A["[object Int16Array]"]=A["[object Int32Array]"]=A["[object Map]"]=A["[object Number]"]=A[T]=A["[object RegExp]"]=A["[object Set]"]=A["[object String]"]=A["[object Symbol]"]=A["[object Uint8Array]"]=A["[object Uint8ClampedArray]"]=A["[object Uint16Array]"]=A["[object Uint32Array]"]=!0,A["[object Error]"]=A[O]=A["[object WeakMap]"]=!1,o.exports=function e(o,t,d,h,w,V){var F,k=1&t,N=2&t,E=4&t;if(d&&(F=w?d(o,h,w,V):d(o)),void 0!==F)return F;if(!$(o))return o;var K=g(o);if(K){if(F=v(o),!k)return u(o,F)}else{var Y=b(o),z=Y==O||"[object GeneratorFunction]"==Y;if(x(o))return i(o,k);if(Y==T||Y==C||z&&!w){if(F=N||z?{}:_(o),!k)return N?c(o,l(F,o)):f(o,s(F,o))}else{if(!A[Y])return w?o:{};F=y(o,Y,k)}}V||(V=new a);var R=V.get(o);if(R)return R;V.set(o,F),S(o)?o.forEach(function(a){F.add(e(a,t,d,a,o,V))}):j(o)&&o.forEach(function(a,r){F.set(r,e(a,t,d,r,o,V))});var M=K?void 0:(E?N?m:p:N?W:P)(o);return r(M||o,function(a,r){M&&(a=o[r=a]),n(F,r,e(a,t,d,r,o,V))}),F}}}),Eo=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/cloneDeep.js"(e,o){var t=No();o.exports=function(e){return t(e,5)}}}),Ko=z(I(),1),Yo=e=>{throw new Error("Didn't expect to get here")};function zo(e){return Object.entries(e)}var Ro=e=>e.replace("/","-"),Mo=e=>"."+K[e],Xo=(e,o,t,a)=>{const r=e.typography[o]?.[t];if(!r)throw new Error(`Missing typography data for variant "${o}" and key "${t}"`);const n="base"===a?r.base:r.breakpoints?.[a];if(!n)throw new Error(`Missing value for variant "${o}", key "${t}", and breakpoint "${a}"`);if((0,Ko.default)(n))return n;switch(n.type){case"px":return n.value/16+"rem";case"unitless":return String(n.value)}return Yo()},Bo=(e,o)=>o in e.font?`var(--${A}-${o})`:o,Io=(e,o)=>Object.fromEntries(R.flatMap(t=>{const a=Ro(t);return[[`--${A}-${a}`,Bo(e,Xo(e,t,"fontFamily",o))],[`--${W}-${a}`,Xo(e,t,"fontSize",o)],[`--${T}-${a}`,Xo(e,t,"fontWeight",o)],[`--${O}-${a}`,Xo(e,t,"fontSlant",o)],[`--${C}-${a}`,Xo(e,t,"fontWidth",o)],[`--${P}-${a}`,Xo(e,t,"lineHeight",o)],[`--${S}-${a}`,Xo(e,t,"textTransform",o)],[`--${$}-${a}`,Xo(e,t,"letterSpacing",o)]]})),Do=e=>Object.fromEntries(R.map(Ro).map(o=>[o,`var(--${e}-${o})`])),Lo={fontFamily:Do(A),fontWeight:Do(T),fontSlant:Do(O),fontWidth:Do(C),fontSize:Do(W),lineHeight:Do(P),textTransform:Do(S),letterSpacing:Do($)},Ho=e=>Io(e,"base"),Uo=e=>{const o=zo(e.breakpoints).sort(([,{value:e}],[,{value:o}])=>e-o);return{[`.${V}`]:Object.fromEntries(o.map(([o,{value:t}])=>[`@media (min-width: ${t}px)`,Io(e,o)])),[Mo("base")]:Io(e,"base"),[Mo("defaultBreakpoint")]:Io(e,e.globalDefaults.breakpoint),...Object.fromEntries(o.map(([o])=>[Mo(o),Io(e,o)]))}},Go=z(c(),1),qo=z(D(),1),Qo=z(ro(),1);function Jo({variantKey:e,variantValue:o,layer:t,subComponentName:a,stateKey:r,stateValue:n}){return a?r&&n?`${a}/${e}/${o}/${r}/${n}/${t}`:`${a}/${e}/${o}/${t}`:r&&n?`${e}/${o}/${r}/${n}/${t}`:`${e}/${o}/${t}`}var Zo=e=>!!e?.layers,et=e=>!!e?.componentStates,ot=e=>e.reduce((e,o)=>e.flatMap(e=>o.map(o=>[e,o].flat())));function tt(o,t){const a=o.variants?.[t];if(a)return{type:"no-sub-components",variant:a};const r=ht(o);if(!r)return{type:"no-variants"};return{type:"has-sub-components",variants:e(r,e=>e.variants[t])}}function at(e,o,t){const a=e[o]?.defaults?.[t];if(void 0===a)throw new Error(`The variant default for "${t}" is not defined for the component "${o}"`);return a}function rt(e,o,t,a){return at(e,o,t)===a}function nt(e){let o=e;return o=o.replaceAll(".","/"),["root/","variables/","variant/","/value"].forEach(e=>{o=o.replaceAll(e,"")}),o}var st=z(co(),1);function lt(e,o,t){const a=tt(e,o);switch(a.type){case"no-variants":return null;case"no-sub-components":return a.variant;case"has-sub-components":if(!t)throw new Error("subComponentName argument name is required for configs with subcomponents");return a.variants[t]}}function it(e,o,t){const a=lt(e,o,t);return a&&et(a)?a?.componentStates??null:null}function ut(e,o,t){const a=it(e,o,t);if(!a)return null;return ot((0,st.default)(a).map(([e,o])=>o.options.map(o=>({[e]:o})))).map(e=>Array.isArray(e)?e.reduce((e,o)=>({...e,...o}),{}):e)}function dt(o){if(!o||!Zo(o))return null;const t=e(o.layers,e=>e.properties);for(const e in t){const o=t[e];o&&0!==Object.keys(o).length||delete t[e]}return 0===Object.keys(t).length?null:t}var ft=["rest"];function ct(e,o,t,a){const r=lt(e,o,a);if(!r)return null;return[...Zo(r)?Object.entries(r?.layers??{}):[],...et(r)&&t?Object.entries(r.componentStates[t].layers??{}):[]].flatMap(([e,o])=>Object.entries(o.properties).map(([o,t])=>[e,o,t])).flatMap(([e,o,t])=>[...t.skipRestState?ft.filter(e=>"rest"!==e):ft,...t.pseudoStates??[]].map(a=>[e,o,t,a])).reduce((e,[o,t,a,r])=>{e[r]=e[r]??[];const n=[o,t,a];return e[r].push(n),e},{})}var pt=z(co(),1);function ht(e){return e.subComponents?0===Object.keys(e.subComponents).length?null:e.subComponents:null}function mt(e,o="variant"){const t=tt(e,o);if("no-variants"===t.type)return{type:"no-variants",description:"No variants"};if("no-sub-components"===t.type){if(ht(e))throw new Error("A config with a root variants.variant defintion cannot have subcomponents");return{type:"no-sub-components",description:t.variant.description,variantNames:[...t.variant.options]}}const a=(0,pt.default)(t.variants).reduce((e,[o,t])=>{for(const a of t.options)e[a]??=[],e[a].includes(o)||e[a].push(o);return e},{});return{type:"has-sub-components",description:Object.values(t.variants).map(e=>e.description).filter(e=>e)[0]??"",variantNames:Object.keys(a),variantToSubcomponentNames:a}}var bt=z(Eo(),1);function vt(e,o,t,a,r){const n=e[t].variables[o];if(!n)throw new Error(`No layer variables found for ${o}.`);const s=n[a];if(!s)throw new Error(`No property variables found for ${a}.`);const l=s[r];if(!l)throw new Error(`No pseudoState variables found for ${r}.`);return l}function yt(e,o,t,a,r,n){const s=(0,bt.default)(e),l=vt(s,o,t,a,r);return void 0!==n.type&&(l.type=n.type),void 0!==n.value&&(l.value=n.value),s}function _t(e,o,t,a,r){return[vt(e,o,t,a,r),n=>yt(e,o,t,a,r,n)]}var gt="line-height",wt="border-width",xt="border-color",jt="box-shadow";function $t({lineHeight:e,schema:o,iconLayerKey:t,state:a,theme:r}){const n=o.variables?.[t]?.size?.[a]?.value;if(!n)return e;return`max(${e}, ${r(`sizing.icon.${n}`)})`}function St(e){const o=e[wt],t=e[xt];if(!o||!t)return e;const a=e=>e.replace(/\s*!important\s*$/,""),r=e=>e?.includes("!important")??!1,n=[`inset 0 0 0 ${a(o)} ${a(t)}`,e[jt]&&a(e[jt])].filter(Boolean),s=r(o)||r(t)||r(e[jt]),l={...e};return l[jt]=n.join(", ")+(s?" !important":""),delete l[wt],delete l[xt],l}var Pt={rest:"",hover:":hover:not(:active, :disabled, :has(:disabled))",pressed:":active:not(:disabled, :has(:disabled))",focused:":focus","focus-within":":focus-within",invalid:':has(input[aria-invalid="true"])',"focused-keyboard":":focus-visible",visited:":visited",readonly:":has(input:read-only)",disabled:":is(:disabled, :has(:disabled))","invalid&hover":':has(input[aria-invalid="true"]):hover:not(:active, :disabled, :has(:disabled))',"invalid&pressed":':has(input[aria-invalid="true"]):active:not(:disabled, :has(:disabled))'},Wt={rest:"",hover:"hover",pressed:"active",focused:"focus","focus-within":"focus-within",invalid:"has-input-invalid","focused-keyboard":"focus-visible",visited:"visited",readonly:"input-readonly",disabled:"has-disabled","invalid&hover":"has-input-invalid-and-hover","invalid&pressed":"has-input-invalid-and-active"};function Ct(e,o){const t=e.defaults[o],a=e.typeOfFixture;let r=0;return e.values.forEach((e,o)=>{e.includes(t)&&(r=o)}),a[r]}function Ot(e){const o={},t={};for(const o in e.variants){const a=e.variants[o];t[o]=a.default}o.defaults=t,o.variables={};for(const t in e.variants){const a=e.variants[t];for(const e of a.options)if(et(a)){const r=a.componentStates;for(const a in r){const n=r[a];for(const r of n.options)for(const s in n.layers){const l=n.layers[s],i=Jo({variantKey:t,variantValue:e,stateKey:a,stateValue:r,layer:s});o.variables[i]={};for(const t in l.properties){const a=l.properties[t],r={[t]:{}};if(!0!==a?.skipRestState&&(r[t]={rest:{type:Ct(a,e),valueType:"alias",value:a.defaults[e]}}),a.pseudoStates)for(const o of a.pseudoStates)r[t][o]={type:Ct(a,e),valueType:"alias",value:a.defaults[e]};o.variables[i]={...o.variables[i],...r}}}}}else if(Zo(a)){const r=a.layers;for(const a in r){const n=r[a],s=Jo({variantKey:t,variantValue:e,layer:a});o.variables[s]={};for(const t in n.properties){const a=n.properties[t],r={[t]:{}};if(!0!==a?.skipRestState&&(r[t]={rest:{type:Ct(a,e),valueType:"alias",value:a.defaults[e]}}),a.pseudoStates)for(const o of a.pseudoStates)r[t][o]={type:Ct(a,e),valueType:"alias",value:a.defaults[e]};o.variables[s]={...o.variables[s],...r}}}}}if(e.subComponents){const{subComponents:t}=e;for(const e in t)for(const a in t[e].variants){const r=t[e].variants[a];o.defaults[a]=r.default;for(const t of r.options)if(et(r)){const n=r.componentStates;for(const r in n){const s=n[r];for(const n of s.options)for(const l in s.layers){const i=s.layers[l],u=Jo({variantKey:a,variantValue:t,stateKey:r,stateValue:n,layer:l,subComponentName:e});o.variables[u]={};for(const e in i.properties){const a=i.properties[e],r={[e]:{}};if(!0!==a?.skipRestState&&(r[e]={rest:{type:Ct(a,t),valueType:"alias",value:a.defaults[t]}}),a.pseudoStates)for(const o of a.pseudoStates)r[e][o]={type:Ct(a,t),valueType:"alias",value:a.defaults[t]};o.variables[u]={...o.variables[u],...r}}}}}else if(Zo(r)){const n=r.layers;for(const r in n){const s=n[r],l=Jo({variantKey:a,variantValue:t,layer:r,subComponentName:e});o.variables[l]={};for(const e in s.properties){const a=s.properties[e],r={[e]:{}};if(!0!==a?.skipRestState&&(r[e]={rest:{type:Ct(a,t),valueType:"alias",value:a.defaults[t]}}),a.pseudoStates)for(const o of a.pseudoStates)r[e][o]={type:Ct(a,t),valueType:"alias",value:a.defaults[t]};o.variables[l]={...o.variables[l],...r}}}}}}return o}function Tt(e,o,t,a){return`uds-${e}${a?`-${a.toLowerCase()}`:""}-default-${o}-${t}`}function At({componentName:e,variantKey:o,variantValue:t,layer:a,layerOptionalPseudoSelector:r,subComponentName:n,stateKey:s,stateValue:l}){let i="";return i=n?`uds-${(0,qo.default)(e)}-${(0,qo.default)(n)}-${(0,qo.default)(o)}`:`uds-${(0,qo.default)(e)}-${(0,qo.default)(o)}`,t&&(i=`${i}-${(0,qo.default)(t)}`),s&&l&&(i=`${i}-${(0,qo.default)(s)}-${(0,qo.default)(l)}`),i=`${i}-${(0,qo.default)(a)}`,r&&(i=`${i}${r}`),i.replaceAll(/\s+/g,"-")}function Vt({componentName:e,variantKey:o,variantValue:t,layer:a,layerOptionalPseudoSelector:r,subComponentName:n,stateKey:s,stateValue:l,schema:i,propertyKey:u,originalPropertyDefinition:d,theme:f,currentStyles:c,previewOptions:p}){const h=Jo({variantKey:o,variantValue:t,layer:a,subComponentName:n,stateKey:s,stateValue:l});let m=At({componentName:e,variantKey:o,variantValue:t,layer:a,subComponentName:n,stateKey:s,stateValue:l});const b=i.variables[h][u];if(!b)throw new Error(`Prop definition (${e} - ${h} - ${u}) not found, this is not expected, please report the bug to the UDS team`);const v={};for(const h in b){const y=h,_=Pt[y]??"",g=b[y];let w="";if("root"===a)if(s&&l){const r=At({componentName:e,variantKey:o,variantValue:t,layer:a,subComponentName:n});m=At({componentName:e,variantKey:o,layer:a,subComponentName:n,stateKey:s,stateValue:l}),w=`.${r}${_}.${m}`}else w=`.${m}${_}`;else{const i=At({componentName:e,variantKey:o,variantValue:t,layer:"root",subComponentName:n});if(s&&l){const u=At({componentName:e,variantKey:o,layer:"root",subComponentName:n,stateKey:s,stateValue:l});m=At({componentName:e,variantKey:o,variantValue:t,layer:a,layerOptionalPseudoSelector:r,subComponentName:n}),w=`.${i}${_}.${u} .${m}`}else w=`.${i}${_} .${m}`}const x=(e,o,t,a)=>{const{value:r,type:n}=e,s=ya[o];let l;if(ya[o].customValueRenderer)l=ya[o].customValueRenderer(e,i,t);else{l=t(ya[o].twThemePath(n,String(r)))}if(s.concatenate&&a){return`${a}${s.concatenationDelimiter||", "}${l}`}return l},{cssProperties:j,extendedProperties:$}=ya[d.name],S={},P=(0,Go.default)($),W=P?$({componentName:e,subComponentName:n,layer:a,propertyKey:u}):$;if(W&&W.length){if(!P&&("string"==typeof j||Array.isArray(j)&&j.length>0))throw new Error("Invalid configuration: cssProperties should not be configured when extendedProperties are defined. Please update your property configuration accordingly.");for(const e of W){const o=ya[e].cssProperties;if("string"==typeof o){const t=c?.[w]?.[o];S[o]=x(g,e,f,t)}else if(Array.isArray(o))for(const t of o){const o=c?.[w]?.[t];S[t]=x(g,e,f,o)}}}else if("string"==typeof j){const e=c?.[w]?.[j];S[j]=x(g,d.name,f,e)}else if(Array.isArray(j))for(const e of j){const o=c?.[w]?.[e];S[e]=x(g,d.name,f,o)}if("button"===e&&"root"===a){if("gap"===u&&(S[E]=S.gap),"scaleEffect"===u&&!s&&"hover"===y){const e=`.${m}`,o=e=>ya.scaleEffect.customValueRenderer?.(e,i,()=>"")??"1";v[e]||(v[e]={}),v[e][F]="1",b.hover&&(v[e][k]=o(b.hover)),b.pressed&&(v[e][N]=o(b.pressed))}if(S[gt]){const e=Jo({variantKey:o,variantValue:t,layer:"icon",subComponentName:n});S[gt]=$t({lineHeight:S[gt],schema:i,iconLayerKey:e,state:y,theme:f})}}if(v[w]||(v[w]={...S,...v[w]}),p?.generatePseudoStateClassModifier){const e=Wt[y]??"";if(e.length>0&&"root"!==h){const o=Object.fromEntries(Object.entries(S).map(([e,o])=>[e,`${o} !important`]));v[`.${e}${w}`.replace(_,"")]={...o,...v[`.${e}${w}`.replace(_,"")]}}}}return v}function Ft(e,o,t,a){function r(e,o){return(0,Qo.default)({},e,o)}let n=e.label.toLowerCase();e.overrideComponentName&&(n=e.overrideComponentName.toLowerCase());let s={};for(const l in e.variants){const i=e.variants[l];for(const e of i.options)if(et(i)){const u=i.componentStates;for(const i in u){const d=u[i];for(const u of d.options)for(const f in d.layers){const c=d.layers[f];for(const d in c.properties){const p=c.properties[d];s=r(s,Vt({componentName:n,variantKey:l,variantValue:e,stateKey:i,stateValue:u,layer:f,layerOptionalPseudoSelector:c.pseudoSelector,propertyKey:d,originalPropertyDefinition:p,theme:t,schema:o,currentStyles:s,previewOptions:a}))}}}}else if(Zo(i)){const u=i.layers;for(const i in u){const d=u[i];for(const u in d.properties){const f=d.properties[u];s=r(s,Vt({componentName:n,variantKey:l,variantValue:e,layer:i,layerOptionalPseudoSelector:d.pseudoSelector,propertyKey:u,originalPropertyDefinition:f,theme:t,schema:o,currentStyles:s,previewOptions:a}))}}}}if(e.subComponents){const{subComponents:l}=e;for(const e in l)for(const i in l[e].variants){const u=l[e].variants[i];for(const l of u.options)if(et(u)){const d=u.componentStates;for(const u in d){const f=d[u];for(const d of f.options)for(const c in f.layers){const p=f.layers[c];for(const f in p.properties){const h=p.properties[f];s=r(s,Vt({componentName:n,variantKey:i,variantValue:l,stateKey:u,stateValue:d,subComponentName:e,layer:c,layerOptionalPseudoSelector:p.pseudoSelector,propertyKey:f,originalPropertyDefinition:h,theme:t,schema:o,currentStyles:s,previewOptions:a}))}}}}else if(Zo(u)){const d=u.layers;for(const u in d){const f=d[u];for(const d in f.properties){const c=f.properties[d];s=r(s,Vt({componentName:n,subComponentName:e,variantKey:i,variantValue:l,layer:u,layerOptionalPseudoSelector:f.pseudoSelector,propertyKey:d,originalPropertyDefinition:c,theme:t,schema:o,currentStyles:s,previewOptions:a}))}}}}}if("button"===n||"iconbutton"===n)for(const e in s)e.includes("-root")&&(s[e]=St(s[e]));return s}var kt=(e,o,t,a)=>{const r=Ft(e,o,t,a);if(!e.variants&&!e.subComponents)return r;const n=e.overrideComponentName?.toLowerCase()||e.label.toLowerCase();if("button"!==n&&"iconbutton"!==n)return r;const s=new Map,l=e=>{if(Zo(e))return Object.keys(e.layers);if(et(e)){const o=new Set;for(const t of Object.values(e.componentStates))Object.keys(t.layers).forEach(e=>o.add(e));return Array.from(o)}return[]},i=(e,t)=>{for(const[a,r]of Object.entries(e)){if(!Zo(r)&&!et(r))continue;const e=l(r);if(e.length){const r=o.defaults?.[a];if(r)for(const o of e){const e=At({componentName:n,variantKey:a,variantValue:r,layer:o,subComponentName:t}),l=Tt(n,a,o,t);s.set(e,`.${e}, .${l}`)}}}};if(e.variants&&i(e.variants),e.subComponents)for(const[o,t]of Object.entries(e.subComponents))i(t.variants,o);const u={};for(const[e,o]of Object.entries(r)){let t=e,a=!1;for(const[o,r]of s.entries())if(e.includes(o)){a=!0;const e=r.match(/,\s*\.([a-z0-9-]+)/);if(e){const a=e[1];t=t.replaceAll(o,a)}}a?u[`${e}, ${t}`]=o:u[e]=o}return u};function Nt(e){return e}function Et(e){return e}function Kt(e){return e}function Yt(e){return e}function zt(e){return e}function Rt(e){return e}function Mt(e){return e}var Xt={drop:{none:[],xs:[{offsetX:"0",offsetY:"px",blur:"0.5",spread:"0",opacity:"5",color:{type:"palette",value:"primary"}}],sm:[{offsetX:"0",offsetY:"px",blur:"0.5",spread:"0",opacity:"10",color:{type:"palette",value:"primary"}},{offsetX:"0",offsetY:"px",blur:"1",spread:"0",opacity:"10",color:{type:"palette",value:"primary"}}],md:[{offsetX:"0",offsetY:"1",blur:"1.5",spread:"-px",opacity:"10",color:{type:"palette",value:"primary"}},{offsetX:"0",offsetY:"0.5",blur:"1",spread:"-0.5",opacity:"10",color:{type:"palette",value:"primary"}}],lg:[{offsetX:"0",offsetY:"1",blur:"1.5",spread:"-1",opacity:"10",color:{type:"palette",value:"primary"}},{offsetX:"0",offsetY:"2.5",blur:"3.5",spread:"-0.5",opacity:"10",color:{type:"palette",value:"primary"}}],xl:[{offsetX:"0",offsetY:"2",blur:"2.5",spread:"-1.5",opacity:"10",color:{type:"palette",value:"primary"}},{offsetX:"0",offsetY:"5",blur:"6",spread:"-1",opacity:"10",color:{type:"palette",value:"primary"}}],"2xl":[{offsetX:"0",offsetY:"6",blur:"12",spread:"-3",opacity:"25",color:{type:"palette",value:"primary"}}]},inset:{none:[],xs:[{offsetX:"0",offsetY:"px",blur:"0.5",spread:"0",opacity:"5",color:{type:"palette",value:"primary"}}],sm:[{offsetX:"0",offsetY:"px",blur:"0.5",spread:"0",opacity:"10",color:{type:"palette",value:"primary"}},{offsetX:"0",offsetY:"px",blur:"1",spread:"0",opacity:"10",color:{type:"palette",value:"primary"}}],md:[{offsetX:"0",offsetY:"1",blur:"1.5",spread:"-px",opacity:"10",color:{type:"palette",value:"primary"}},{offsetX:"0",offsetY:"0.5",blur:"1",spread:"-0.5",opacity:"10",color:{type:"palette",value:"primary"}}],lg:[{offsetX:"0",offsetY:"1",blur:"1.5",spread:"-1",opacity:"10",color:{type:"palette",value:"primary"}},{offsetX:"0",offsetY:"2.5",blur:"3.5",spread:"-0.5",opacity:"10",color:{type:"palette",value:"primary"}}],xl:[{offsetX:"0",offsetY:"2",blur:"2.5",spread:"-1.5",opacity:"10",color:{type:"palette",value:"primary"}},{offsetX:"0",offsetY:"5",blur:"6",spread:"-1",opacity:"10",color:{type:"palette",value:"primary"}}],"2xl":[{offsetX:"0",offsetY:"6",blur:"12",spread:"-3",opacity:"25",color:{type:"palette",value:"primary"}}],"xs-invert":[{offsetX:"0",offsetY:"px",blur:"0.5",spread:"0",opacity:"5",color:{type:"always",value:"white"}}],"sm-invert":[{offsetX:"0",offsetY:"px",blur:"0.5",spread:"0",opacity:"10",color:{type:"always",value:"white"}},{offsetX:"0",offsetY:"px",blur:"1",spread:"0",opacity:"10",color:{type:"always",value:"white"}}],"md-invert":[{offsetX:"0",offsetY:"1",blur:"1.5",spread:"-px",opacity:"10",color:{type:"always",value:"white"}},{offsetX:"0",offsetY:"0.5",blur:"1",spread:"-0.5",opacity:"10",color:{type:"always",value:"white"}}],"lg-invert":[{offsetX:"0",offsetY:"1",blur:"1.5",spread:"-1",opacity:"10",color:{type:"always",value:"white"}},{offsetX:"0",offsetY:"2.5",blur:"3.5",spread:"-0.5",opacity:"10",color:{type:"always",value:"white"}}],"xl-invert":[{offsetX:"0",offsetY:"2",blur:"2.5",spread:"-1.5",opacity:"10",color:{type:"always",value:"white"}},{offsetX:"0",offsetY:"5",blur:"6",spread:"-1",opacity:"10",color:{type:"always",value:"white"}}],"2xl-invert":[{offsetX:"0",offsetY:"6",blur:"12",spread:"-3",opacity:"25",color:{type:"always",value:"white"}}]}},Bt={thin:"100",extralight:"200",light:"300",regular:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},It="system",Dt="system",Lt="light",Ht="large",Ut=!1,Gt="🇺🇸 US",qt="https://s.yimg.com/bw/fonts",Qt=["Helvetica Neue","Helvetica","Arial","sans-serif"],Jt=["Georgia","Times","Times New Roman","serif"],Zt={"centra-no2":{fallback:Qt,type:"sans",fontFamily:"Centra No2",isVariableFont:!1,fontSlants:void 0,fontWidths:void 0,fontWeights:[{label:"Hairline",value:50},{label:"Thin",value:100},{label:"Light",value:300},{label:"Book",value:400},{label:"Medium",value:500},{label:"Bold",value:700},{label:"ExtraBold",value:800},{label:"Black",value:900}],defaults:{fontSlant:void 0,fontWidth:void 0,fontWeight:400},declarations:[{fontStyle:"normal",fontWeight:"50",src:`url('${qt}/centra-no2-hairline.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"50",src:`url('${qt}/centra-no2-hairline-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"100",src:`url('${qt}/centra-no2-thin.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"100",src:`url('${qt}/centra-no2-thin-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"300",src:`url('${qt}/centra-no2-light.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"300",src:`url('${qt}/centra-no2-light-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"400",src:`url('${qt}/centra-no2-book.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"400",src:`url('${qt}/centra-no2-book-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"500",src:`url('${qt}/centra-no2-medium.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"500",src:`url('${qt}/centra-no2-medium-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"700",src:`url('${qt}/centra-no2-bold.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"700",src:`url('${qt}/centra-no2-bold-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"800",src:`url('${qt}/centra-no2-extrabold.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"800",src:`url('${qt}/centra-no2-extrabold-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"900",src:`url('${qt}/centra-no2-black.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"900",src:`url('${qt}/centra-no2-black-italic.woff2') format('woff2')`}]},inter:{fallback:Qt,type:"sans",fontFamily:"Inter",isVariableFont:!0,fontSlants:[{label:"Italic",value:-10},{label:"None",value:0}],fontWidths:void 0,fontWeights:[{label:"Thin",value:100},{label:"Extra Light",value:200},{label:"Light",value:300},{label:"Regular",value:400},{label:"Medium",value:500},{label:"Semi Bold",value:600},{label:"Bold",value:700},{label:"Extra Bold",value:800},{label:"Black",value:900}],defaults:{fontSlant:0,fontWidth:void 0,fontWeight:400},declarations:[{fontWeight:"1 1000",src:`url('${qt}/inter-vf.woff2') format('woff2')`}]},"roboto-mono":{fallback:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas","Liberation Mono","Courier New","monospace"],type:"mono",fontFamily:"Roboto Mono",isVariableFont:!1,fontSlants:void 0,fontWidths:void 0,fontWeights:[{label:"Thin",value:100},{label:"Light",value:300},{label:"Regular",value:400},{label:"Medium",value:500},{label:"Bold",value:700}],defaults:{fontSlant:void 0,fontWidth:void 0,fontWeight:400},declarations:[{fontStyle:"normal",fontWeight:"100",src:`url('${qt}/roboto-mono-100.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"100",src:`url('${qt}/roboto-mono-100-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"300",src:`url('${qt}/roboto-mono-300.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"300",src:`url('${qt}/roboto-mono-300-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"400",src:`url('${qt}/roboto-mono-400.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"400",src:`url('${qt}/roboto-mono-400-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"500",src:`url('${qt}/roboto-mono-500.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"500",src:`url('${qt}/roboto-mono-500-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"700",src:`url('${qt}/roboto-mono-700.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"700",src:`url('${qt}/roboto-mono-700-italic.woff2') format('woff2')`}]},"yahoo-sans":{fallback:Qt,type:"sans",fontFamily:"Yahoo Sans",isVariableFont:!0,fontSlants:void 0,fontWidths:void 0,fontWeights:[{label:"ExtraLight",value:200},{label:"Light",value:300},{label:"Regular",value:400},{label:"Medium",value:500},{label:"Semibold",value:585},{label:"Bold",value:700},{label:"ExtraBold",value:810},{label:"Black",value:900}],defaults:{fontSlant:void 0,fontWidth:void 0,fontWeight:400},declarations:[{fontWeight:"1 1000",src:`url('${qt}/yahoo-sans-vf.woff2') format('woff2')`}]},"yahoo-sans-cr4":{fallback:Qt,type:"sans",fontFamily:"Yahoo CR4 BETA VF",isVariableFont:!0,fontSlants:void 0,fontWidths:void 0,fontWeights:[{label:"Regular",value:400},{label:"Medium",value:500},{label:"Bold",value:700}],defaults:{fontSlant:void 0,fontWidth:void 0,fontWeight:450},declarations:[{fontWeight:"1 1000",src:`url('${qt}/yahoo-sans-cr4-vf.woff2') format('woff2')`}]},"yahoo-product-sans":{fallback:Qt,type:"sans",fontFamily:"Yahoo Product Sans VF",isVariableFont:!0,fontSlants:void 0,fontWidths:void 0,fontWeights:[{label:"Regular",value:400},{label:"Medium",value:500},{label:"Bold",value:700}],defaults:{fontSlant:void 0,fontWidth:void 0,fontWeight:450},declarations:[{fontWeight:"1 1000",src:`url('${qt}/yahoo-product-sans-vf.woff2') format('woff2-variations')`}]},"yahoo-product-sans-extended":{fallback:Qt,type:"sans",fontFamily:"YahooPd_Eval202412",isVariableFont:!0,fontSlants:[{label:"Italic",value:9},{label:"None",value:0}],fontWidths:[{label:"Cond",value:50},{label:"Normal",value:75},{label:"Ext",value:100}],fontWeights:[{label:"Light",value:300},{label:"Regular",value:450},{label:"Medium",value:500},{label:"Semibold",value:600},{label:"Bold",value:700},{label:"Black",value:850}],defaults:{fontSlant:0,fontWidth:75,fontWeight:450},declarations:[{fontWeight:"1 1000",src:`url('${qt}/YahooPd_Eval202412-v1.1.0.woff2') format("woff2 supports variations"), url('${qt}/YahooPd_Eval202412-v1.1.0.woff2') format('woff2-variations')`}]},"yahoo-sans-condensed":{fallback:Qt,type:"sans",fontFamily:"Yahoo Sans Cond",isVariableFont:!0,fontSlants:void 0,fontWidths:void 0,fontWeights:[{label:"Light",value:300},{label:"Regular",value:400},{label:"Medium",value:500},{label:"Bold",value:718},{label:"XBold",value:800},{label:"Black",value:900}],defaults:{fontSlant:void 0,fontWidth:void 0,fontWeight:400},declarations:[{fontWeight:"1 1000",src:`url('${qt}/yahoo-sans-condensed-vf.woff2') format('woff2')`}]},"yahoo-serif-display":{fallback:Jt,type:"serif",fontFamily:"Yahoo Serif Display",isVariableFont:!1,fontSlants:void 0,fontWidths:void 0,fontWeights:[{label:"Light",value:300},{label:"Regular",value:400},{label:"Bold",value:700},{label:"Extrabold",value:800},{label:"Black",value:900}],defaults:{fontSlant:void 0,fontWidth:void 0,fontWeight:400},declarations:[{fontStyle:"normal",fontWeight:"300",src:`url('${qt}/yahoo-serif-display-light.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"400",src:`url('${qt}/yahoo-serif-display-regular.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"700",src:`url('${qt}/yahoo-serif-display-bold.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"800",src:`url('${qt}/yahoo-serif-display-extrabold.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"900",src:`url('${qt}/yahoo-serif-display-black.woff2') format('woff2')`}]},"yahoo-serif-text":{fallback:Jt,type:"serif",fontFamily:"Yahoo Serif Text",isVariableFont:!1,fontSlants:void 0,fontWidths:void 0,fontWeights:[{label:"Regular",value:400},{label:"Bold",value:700}],defaults:{fontSlant:void 0,fontWidth:void 0,fontWeight:400},declarations:[{fontStyle:"normal",fontWeight:"400",src:`url('${qt}/yahoo-serif-text-regular.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"400",src:`url('${qt}/yahoo-serif-text-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"700",src:`url('${qt}/yahoo-serif-text-bold.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"700",src:`url('${qt}/yahoo-serif-text-bold-italic.woff2') format('woff2')`}]}};function ea({palette:e="accent",variant:o="primary"}){return"accent"===e?o:"primary"===o?e:`${e}-${o}`}function oa(e){return Object.fromEntries(e)}var ta={black:"0 0 0",white:"255 255 255"};function aa({preset:e,prefix:o,shadowType:t}){const a=`--uds-${t}-shadow-`,r="palette"===e.color?.type,n="always"===e.color?.type;let s=`var(--uds-${r?"shadow":"spectrum"}-color-${e?.color?.value})`;n&&(s=ta[e.color.value]);const l=`var(${a}${o?`${o}-`:""}color, ${s})`;return`${"inset"===t?"inset ":""}${[`${M[e.offsetX]}px`,`${M[e.offsetY]}px`,`${X[e.blur]}px`,`${B[e.spread]}px`].map(e=>e).join(" ")} ${`rgb(${l} / var(${a}${o?`${o}-`:""}opacity, ${Number(e.opacity)/100}))`}`}function ra({config:e,shadowType:t}){const a=e?.shadow?.[t];if(!a)return{};const r={};return o(a).forEach(([e,o])=>{if("none"===e)return void(r[`--uds-${t}-shadow-${e}`]="0 0 transparent");const a=o.map((e,o)=>aa({preset:e,prefix:o>0?`${o+1}`:void 0,shadowType:t}));r[`--uds-${t}-shadow-${e}`]=`${a.join(", ")}`}),r}var na=e=>(o,t)=>`typography.${e}.${Ro(t)}`,sa=(e,o)=>{switch(e){case"alwaysPaletteAliases":return`colors.${o}`;case"spectrumColors":{const[e,t]=o.split("-");return`colors.${e}.${t}`}case"foregroundPaletteColors":return`textColor.${o}`;case"backgroundPaletteColors":return`backgroundColor.${o}`;case"linePaletteColors":return`borderColor.${o}`}return Yo()},la=({componentName:e,layer:o,propertyKey:t})=>!("chip"!==e||"root"!==o||!["borderColor","borderWidth"].includes(t))||!("input"!==e||"inputWrapper"!==o||!["borderColor","borderWidth"].includes(t)),ia={name:"backgroundColor",cssProperties:"background-color",twThemePath:sa,possibleFixtures:["backgroundPaletteColors","spectrumColors","alwaysPaletteAliases"]},ua={name:"fontSize",cssProperties:"font-size",twThemePath:na("fontSize"),possibleFixtures:["textVariants"]},da={name:"fontVariationSettings",cssProperties:"font-variation-settings",twThemePath:()=>"",possibleFixtures:["textVariants"],customValueRenderer:e=>{const{value:o}=e,t=Ro(o);return`"wght" var(--uds-font-weight-${t}), "slnt" var(--uds-font-slant-${t}), "wdth" var(--uds-font-width-${t})`}},fa={name:"fontWeight",cssProperties:"font-weight",twThemePath:na("fontWeight"),possibleFixtures:["textVariants"]},ca={name:"fontFamily",cssProperties:"font-family",twThemePath:na("fontFamily"),possibleFixtures:["textVariants"]},pa={name:"color",cssProperties:"color",twThemePath:sa,possibleFixtures:["alwaysPaletteAliases","spectrumColors","foregroundPaletteColors"]},ha={name:"borderWidth",cssProperties:"border-width",twThemePath:(e,o)=>"borderWidths"===e?`borderWidth[${o}]`:`spacing[${o}]`,possibleFixtures:["borderWidths","spacingAliases"],extendedProperties:e=>la(e)&&["outlineWidth","insetOutlineOffset","solidOutline"]},ma={name:"borderColor",cssProperties:"border-color",twThemePath:sa,possibleFixtures:["alwaysPaletteAliases","spectrumColors","linePaletteColors"],extendedProperties:e=>la(e)&&["outlineColor"]},ba={name:"outlineColor",cssProperties:"outline-color",twThemePath:sa,possibleFixtures:["alwaysPaletteAliases","spectrumColors","linePaletteColors"]},va={name:"textTransform",cssProperties:"text-transform",twThemePath:na("textTransform"),possibleFixtures:["textVariants"]},ya={...{backgroundColor:ia,borderWidth:ha,borderRadius:{name:"borderRadius",cssProperties:"border-radius",twThemePath:(e,o)=>`borderRadius.${o}`,possibleFixtures:["borderRadii"]},borderColor:ma,fontFamily:ca,fontSize:ua,fontVariationSettings:da,lineHeight:{name:"lineHeight",cssProperties:"line-height",twThemePath:na("lineHeight"),possibleFixtures:["textVariants"]},textTransform:va,letterSpacing:{name:"letterSpacing",cssProperties:"letter-spacing",twThemePath:na("letterSpacing"),possibleFixtures:["textVariants"]},padding:{name:"padding",cssProperties:"padding",twThemePath:(e,o)=>`spacing[${o}]`,possibleFixtures:["spacingAliases"]},gap:{name:"gap",cssProperties:"gap",twThemePath:(e,o)=>`spacing[${o}]`,possibleFixtures:["spacingAliases"]},color:pa,opacity:{name:"opacity",cssProperties:"opacity",twThemePath:(e,o)=>`opacity[${o}]`,possibleFixtures:["opacitySteps"]},fontWeight:fa,iconSize:{name:"iconSize",cssProperties:["width","height"],twThemePath:(e,o)=>`sizing.icon.${o}`,possibleFixtures:["iconSizes"]},spacingHorizontal:{name:"spacingHorizontal",cssProperties:["padding-right","padding-left"],twThemePath:(e,o)=>`spacing[${o}]`,possibleFixtures:["spacingAliases"]},spacingVertical:{name:"spacingVertical",cssProperties:["padding-top","padding-bottom"],twThemePath:(e,o)=>`spacing[${o}]`,possibleFixtures:["spacingAliases"]},textVariant:{name:"textVariant",cssProperties:[],twThemePath:()=>"",possibleFixtures:["textVariants"],extendedProperties:["fontSize","fontWeight","fontFamily","lineHeight","textTransform","fontVariationSettings","letterSpacing"]},textDecorationLine:{name:"textDecorationLine",cssProperties:"text-decoration-line",possibleFixtures:["textDecorationLines"],twThemePath:()=>"",customValueRenderer:e=>String(e.value)},shadow:{name:"drop shadow",cssProperties:"box-shadow",twThemePath:()=>"",concatenate:!0,customValueRenderer:e=>{const o="drop";if("alias"===e.valueType){const t="0 0 0 transparent";if("none"===e.value)return t;if("custom"!==e.value)return`var(--uds-${o}-shadow-${e.value})`}else if("custom"===e.valueType){const t=e.value.map((e,t)=>aa({preset:e,shadowType:o,prefix:t>0?`${t+1}`:void 0}));return t?.join(", ")||"0 0 0 transparent"}throw new Error("Invalid valueType")},possibleFixtures:["shadowVariants"]},insetShadow:{name:"inset shadow",cssProperties:"box-shadow",twThemePath:()=>"",concatenate:!0,customValueRenderer:e=>{const o="inset";if("alias"===e.valueType){const t="0 0 0 transparent";if("none"===e.value)return t;if("custom"!==e.value)return`var(--uds-${o}-shadow-${e.value})`}else if("custom"===e.valueType){const t=e.value.map((e,t)=>aa({preset:e,shadowType:o,prefix:t>0?`${t+1}`:void 0}));return t?.join(", ")||"0 0 0 transparent"}throw new Error("Invalid valueType")},possibleFixtures:["shadowVariantsWithInvert"]},height:{name:"height",cssProperties:"height",twThemePath:(e,o)=>`height[${o}]`,possibleFixtures:["spacingAliases"]},width:{name:"width",cssProperties:"width",twThemePath:(e,o)=>`width[${o}]`,possibleFixtures:["spacingAliases"]},scaleEffect:{name:"scaleEffect",cssProperties:j,possibleFixtures:["scaleEffects"],twThemePath:()=>"",customValueRenderer:e=>{const o=String(e.value);return"up"===o?"1.03":"down"===o?"0.97":"1"}}},...{outlineWidth:{name:"outlineWidth",cssProperties:"outline-width",twThemePath:(e,o)=>"borderWidths"===e?`borderWidth[${o}]`:`spacing[${o}]`,possibleFixtures:["borderWidths","spacingAliases"]},outlineColor:ba,insetOutlineOffset:{name:"insetOutlineOffset",cssProperties:"outline-offset",twThemePath:()=>"",customValueRenderer:({value:e,type:o},t,a)=>`calc(-1 * ${a("borderWidths"===o?`borderWidth[${e}]`:`spacing[${e}]`)})`,possibleFixtures:["borderWidths","spacingAliases"]},solidOutline:{name:"solidOutline",cssProperties:"outline-style",twThemePath:()=>"",customValueRenderer:()=>"solid",possibleFixtures:[]}}};export{Lt as DEFAULT_COLOR_MODE,It as DEFAULT_COLOR_MODE_FOR_APP,Ut as DEFAULT_HIGH_CONTRAST_MODE,Gt as DEFAULT_REGION_MODE,Ht as DEFAULT_SCALE_MODE,Dt as DEFAULT_SCALE_MODE_FOR_APP,Zt as FONT_DECLARATIONS_MAP,Lo as RESPONSIVE_TAILWIND_CONFIG_MAP,Yo as assertUnreachable,ot as cartesianProduct,tt as coalesceConfigVariant,ya as configurableProperties,zt as createComponentStates,Nt as createConfigurableProperty,Rt as createLayerConfig,Mt as createSubComponentConfig,Et as createVariantConfig,Yt as createVariantConfigWithComponentStates,Kt as createVariantConfigWithProperties,zo as entries,Ct as findFixtureType,Bt as fontWeightMap,oa as fromEntries,At as generateClassName,Ft as generateConfigStyles,Vt as generateDeclaration,Tt as generateDefaultClassName,nt as generateKeyFromFlatConfigPath,Jo as generateSchemaKey,kt as generateStyles,Ho as getBaseTextVars,at as getConfigDefaultValue,vt as getConfigPseudoStateVariables,_t as getConfigPseudoStateVariablesWithSetter,ht as getConfigSubcomponents,it as getConfigVariantComponentStates,ut as getConfigVariantComponentStatesMatrix,dt as getConfigVariantProperties,ct as getConfigVariantPseudoStates,mt as getConfigVariants,Uo as getResponsiveTextStyles,aa as getShadowLayerValue,ra as getShadowPresetValues,rt as isConfigDefaultValue,ea as parseButtonVariantFlat,ye as require_MapCache,ge as require_Stack,We as require_Uint8Array,Se as require_baseFor,He as require_baseMerge,ao as require_createAssigner,H as require_eq,$o as require_getAllKeys,Ue as require_identity,Re as require_isIndex,I as require_isString,uo as require_keys,so as require_mapToArray,yt as setConfigPseudoStateVariable,Xt as shadow,Wt as statePseudoMapDocsMode,Ro as textVariantsSafe,Ot as toMinimalDbConfigObject};
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";var e=require("../chunk-2EFTNYYZ.cjs"),t=require("../chunk-PVAHPU4A.cjs"),a=require("../chunk-XHDADABE.cjs"),o=require("../chunk-2TGUXN5Y.cjs"),n=require("../chunk-JUNV7OML.cjs"),i=require("../chunk-ZXZH6NST.cjs"),s=require("../chunk-T7JIQU5L.cjs"),r=require("../chunk-67NZP2EJ.cjs"),c=require("../chunk-ZGLNOALK.cjs"),l=require("../chunk-QLXJH36U.cjs"),u=require("react"),d=require("react/jsx-runtime"),p=require("@yahoo/uds/fixtures"),m=require("motion/react"),h=require("@yahoo/uds/client/Menu"),x=l.__toESM(r.require_isFunction(),1),f={first:e=>e[0]??"",last:e=>e[e.length-1]??"",firstAndLast:e=>1===e.length?e[0]:`${e[0]}${e[e.length-1]}`,firstTwo:e=>e.slice(0,2).join(""),firstThree:e=>e.slice(0,3).join(""),firstOfEach:e=>e.join("")},b=(e,t="firstAndLast")=>{if(!e)return"";if((0,x.default)(t))return t(e);const a=e.trim().split(/\s+/).map(e=>e[0].toUpperCase());return f[t](a)},g=(e="md",t)=>{const{className:a,...o}=t??{};return i.getStyles({avatarSizeRoot:e,...o,className:i.cx("shrink-0","text-center","inline-flex","justify-center","items-center","overflow-visible","truncate",a)})},y=e=>{const t=e?{height:e,width:e}:{};return{root:t,contents:{...t,boxSizing:"content-box"}}},v="primary",S="md",N={primary:t.e2,secondary:t.t},I=({size:e=S,variant:t=v,customSize:a,icon:o,slotProps:n,className:s,...r})=>{const c=u.useMemo(()=>({root:g(e,{avatarIconVariantRoot:t,overflow:"hidden",className:i.cx("overflow-hidden",s)}),iconContainer:i.cx("w-full","h-full","shrink-0","overflow-hidden","text-center","inline-flex","justify-center","items-center"),icon:i.getStyles({avatarSizeIcon:e})}),[s,e,t]),l=u.useMemo(()=>y(a),[a]),p=o??N[t??"primary"];return d.jsx(i.Box,{className:c.root,style:l.root,...r,children:d.jsx(i.Box,{className:c.iconContainer,style:l.contents,children:d.jsx(i.IconSlot,{icon:p,iconProps:{variant:"fill",color:"current",...n?.icon},className:c.icon})})})};/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */I.displayName="AvatarIcon";var C=({size:e=S,variant:t=v,name:a,initials:o,customSize:n,abbreviationStrategy:s,className:r,slotProps:c,...l})=>{const p=u.useMemo(()=>({root:g(e,{avatarTextVariantRoot:t,className:i.cx("overflow-hidden","truncate",r)}),text:i.cx("w-full","h-full","shrink-0","overflow-hidden","text-center","inline-flex","justify-center","items-center","truncate")}),[r,e,t]),m=u.useMemo(()=>y(n),[n]);return d.jsx(i.Box,{className:p.root,style:m.root,...l,children:d.jsx(i.Text,{color:"inherit",variant:"inherit",className:p.text,style:m.contents,...c?.text,children:o||b(a,s)})})};C.displayName="AvatarText";var j=({size:t=S,variant:a=v,src:o,srcSet:n,customSize:s,alt:r,abbreviationStrategy:c,fallback:l,className:p,imageProps:m,slotProps:h,...x})=>{const[f,b]=u.useState("loading");u.useEffect(()=>{let e=!0;if(o||n){const t=new Image;t.onload=()=>{e&&b("loaded")},t.onerror=()=>{e&&b("error")},o&&(t.src=o),n&&(t.srcset=n)}else b("error");return()=>{e=!1}},[o,n]);const N=u.useMemo(()=>({root:g(t,{avatarImageVariantRoot:a,className:i.cx("overflow-hidden",p)}),contents:i.cx("w-full","h-full","shrink-0","text-center","inline-flex","justify-center","items-center","object-cover")}),[p,t,a]),j=u.useMemo(()=>y(s),[s]);if("loaded"===f)return d.jsx(i.Box,{className:N.root,style:j.root,children:d.jsx(e.Image,{src:o,srcSet:n,alt:r,className:N.contents,style:j.contents,...m,...h?.image})});const k={...x,size:t,customSize:s,variant:a};return l||r?d.jsx(C,{name:r,initials:l,abbreviationStrategy:c,slotProps:{text:h?.text},...k}):d.jsx(I,{...k,slotProps:{icon:h?.icon}})};j.displayName="AvatarImage";var k=e=>d.jsx(j,{...e});k.displayName="Avatar";var w=u.forwardRef(function({variant:e="primary",size:t="md",minWidth:o,maxWidth:n=200,startIcon:s,endIcon:r,backgroundColor:c,color:l,iconColor:p,borderColor:m,children:h,className:x,...f},b){const g=i.getStyles({badgeSizeRoot:t,badgeVariantRoot:e,className:i.cx(["uds-badge","uds-badge-variant","uds-badge-size",x])}),y=i.getStyles({badgeVariantIcon:e,badgeSizeIcon:t,className:i.cx(["uds-badge-iconSize","uds-badge-iconColor"])}),v=u.useMemo(()=>({...o?{minWidth:`${o}px`}:{},..."full"===n?{}:{maxWidth:`${n}px`},...c?{backgroundColor:c}:{},...m?{borderColor:m}:{},...l?{color:l}:{}}),[c,m,l,n,o]),S=u.useMemo(()=>({variant:"fill",style:{...p?{color:p}:{}}}),[p]);return d.jsxs(a.HStack,{ref:b,gap:"2",display:"inline-flex",alignItems:"center",className:g,style:v,...f,children:[s&&d.jsx(i.IconSlot,{icon:s,iconProps:S,"data-testid":"start-icon",className:y}),d.jsx("span",{className:"flex-1 truncate whitespace-nowrap text-center",children:h}),r&&d.jsx(i.IconSlot,{icon:r,iconProps:S,"data-testid":"end-icon",className:y})]})});w.displayName="Badge";var V={hide:{display:"none",width:"0px",opacity:0},loading:{display:"flex",width:"auto",opacity:1},icon:{display:"flex",width:"auto",opacity:1}},R={scale:.7,opacity:0},M={scale:[.7,.7,1],opacity:[0,0,1],transition:{times:[0,.5,1]}},z={hide:R,icon:M,loading:R},T={hide:R,icon:R,loading:M};var P=s.generateDefaultClassName("button","variant","root"),E=s.generateDefaultClassName("button","variant","icon"),B=s.generateDefaultClassName("button","size","root"),H=s.generateDefaultClassName("button","size","icon"),A=u.forwardRef(function({size:e,variant:a,startIcon:o,endIcon:s,iconVariant:r,loading:l,disableEffects:h,children:x,asChild:f=!1,type:b="button",className:g,width:y,...v},S){const N=u.useRef(null);u.useImperativeHandle(S,()=>N.current);const I=m.useReducedMotion(),C=!!h||!!v?.disabled,j=I?"smooth":"subtle",k=s?"icon":"hide",w=function({startIcon:e,endIcon:t,loading:a}){return a||e||t?"withIcon":"withoutIcon"}({startIcon:o,endIcon:s,loading:l}),R=function({loading:e,startIcon:t}){return e?"loading":t?"icon":"hide"}({loading:l,startIcon:o}),M=u.useMemo(()=>i.createSlot(),[]),A=u.useMemo(()=>m.m.create(M),[M]),L=u.useMemo(()=>({rest:{scale:C?1:`var(${c.BUTTON_SCALE_EFFECT_REST})`},hover:{scale:C?1:`var(${c.BUTTON_SCALE_EFFECT_HOVER})`},pressed:{scale:C?1:`var(${c.BUTTON_SCALE_EFFECT_PRESSED})`},withIcon:{columnGap:`var(${c.BUTTON_GAP_VAR})`},withoutIcon:{columnGap:"0px"}}),[C]),O=u.useMemo(()=>e?i.getStyles({buttonSizeRoot:e}):B,[e]),F=u.useMemo(()=>a?i.getStyles({buttonVariantRoot:a}):P,[a]),q=u.useMemo(()=>e?i.getStyles({buttonSizeIcon:e}):H,[e]),_=u.useMemo(()=>a?i.getStyles({buttonVariantIcon:a}):E,[a]),D=u.useMemo(()=>({root:i.getStyles({width:y,className:i.cx(["uds-ring","uds-hit-target","inline-flex overflow-hidden justify-center items-center whitespace-nowrap select-none","[transform-origin:center]","[backface-visibility:hidden]","[transition-property:color,background-color,border-color,box-shadow,text-decoration-color,fill,stroke]","[transition-timing-function:cubic-bezier(0,0,0.2,1)]","[transition-duration:220ms]",O,F,v?.disabled&&"cursor-not-allowed",l&&"uds-button-loading",h&&"uds-button-without-effects","withIcon"===w&&"uds-button-with-gap",g])}),iconContainer:"flex overflow-clip uds-button-icon-container",icon:i.getStyles({className:i.cx([q,_])}),loadingIcon:i.getStyles({className:i.cx(["animate-spin",q,_])}),content:i.cx(["truncate"])}),[g,h,w,q,_,l,v?.disabled,O,F,y]),$=u.useMemo(()=>d.jsx(m.m.span,{className:D.iconContainer,initial:!1,variants:V,animate:R,children:d.jsxs(m.AnimatePresence,{initial:!1,mode:"popLayout",children:[l&&d.jsx(m.m.span,{variants:T,initial:"hide",animate:"loading",exit:"hide",children:d.jsx(i.Icon,{className:D.loadingIcon,size:p.buttonIconSvgSize,name:t.o2,variant:r,color:"current"})},"loading"),o&&!l&&d.jsx(m.m.span,{variants:z,initial:"hide",animate:"icon",exit:"hide",children:d.jsx(i.IconSlot,{className:D.icon,icon:o,iconProps:{size:p.buttonIconSvgSize,variant:r,color:"current"}})})]})}),[D,r,l,o,R]),W=u.useMemo(()=>d.jsx(m.m.span,{className:D.iconContainer,initial:!1,variants:V,animate:k,children:d.jsx(m.AnimatePresence,{initial:!1,mode:"popLayout",children:s&&d.jsx(m.m.span,{variants:z,initial:"hide",animate:"icon",exit:"hide",children:d.jsx(i.IconSlot,{className:D.icon,icon:s,iconProps:{size:p.buttonIconSvgSize,variant:r,color:"current"}})})})}),[s,D,r,k]);return f&&u.isValidElement(x)?d.jsx(n.SpringMotionConfig,{layoutSpeed:"3",layoutVariant:j,children:d.jsx(A,{type:b,className:D.root,initial:["rest",w],animate:["hide","rest",w],variants:L,whileHover:"hover",whileTap:"pressed",...v,children:u.cloneElement(x,x.props,d.jsxs(d.Fragment,{children:[$,d.jsx("span",{className:D.content,children:x.props.children}),W]}))})}):d.jsx(n.SpringMotionConfig,{layoutSpeed:"3",layoutVariant:j,children:d.jsxs(m.m.button,{ref:N,type:b,className:D.root,initial:["rest",w],animate:["hide","rest",w],variants:L,whileHover:"hover",whileTap:"pressed",...v,children:[$,d.jsx("span",{className:D.content,children:x}),W]})})});A.displayName="Button";var L={primary:"alert",secondary:"alert-secondary"},O=e=>"indeterminate"===e,F=e=>O(e)?t.o:t.e,q=m.m.create(i.Box),_={layoutVariant:"smooth",layoutSpeed:"3"},D={layoutVariant:"veryBouncy",layoutSpeed:"4"},$=u.forwardRef(function({id:e,checked:t,defaultChecked:a,onChange:s,label:r,labelPosition:c="start",variant:l="primary",size:p="md",reduceMotion:h,disabled:x,required:f,hasError:b,className:g,layerClassNames:y,...v},S){const N=u.useId(),I=e??`uds-input-${N}`,C=u.useRef(null),j=void 0!==t,[k,w]=u.useState(j?t:a),[V,R]=u.useState(!1),[M,z]=u.useState(!1),T=u.useMemo(()=>b?L[l]:l,[b,l]),P=!x&&V,E=!x&&M,B=u.useMemo(()=>E?.9:P?1.1:1,[E,P]),H=u.useMemo(()=>k?E?"opacity-55":"opacity-100":"opacity-0",[k,E]),A=u.useMemo(()=>({scale:B}),[B]),$=u.useMemo(()=>M?D:_,[M]),W=u.useCallback(e=>{s?.(e),j||w(e.target.checked)},[j,s]),U=u.useCallback(()=>{R(!0)},[]),G=u.useCallback(()=>{R(!1)},[]),X=u.useCallback(()=>{z(!0)},[]),Z=u.useCallback(()=>{z(!1)},[]),J=e=>{C.current&&(C.current.indeterminate=O(e))},Y=h?"always":"user",Q=m.useReducedMotion()||h?"duration-0":"duration-120";u.useEffect(()=>{j&&w(t)},[t,j]),u.useEffect(()=>{J(k)},[k]);const K=O(k)?"indeterminate":k?"checked":"unchecked",ee={root:i.getStyles({checkboxSizeRoot:p,checkboxVariantRoot:T,checkboxVariantValueRoot:K,display:"flex",flexDirection:"start"===c?"row":"row-reverse",alignItems:"center",className:i.cx({"cursor-pointer":!x,"cursor-default":x,"opacity-50":x},g,y?.root)}),checkbox:i.getStyles({checkboxSizeCheckbox:p,checkboxVariantCheckbox:T,checkboxVariantValueCheckbox:K,className:i.cx("border","rounded-[4px]","uds-ring","uds-ring-within",Q,"transition-[background-color,border-color,box-shadow]",y?.checkbox)}),check:i.getStyles({checkboxVariantCheckboxIcon:T,checkboxVariantValueCheckboxIcon:K,className:i.cx("pointer-events-none",H,Q,"transition-opacity")}),htmlCheckbox:i.cx("cursor-[inherit]","absolute","opacity-0","top-1/2","left-1/2","w-[calc(100%+2px)]","h-[calc(100%+2px)]","transform","translate-x-[-50%]","translate-y-[-50%]"),label:i.cx("start"===c?"text-start":"text-end",y?.label)},te=r?m.m.label:m.m.div;return d.jsx(n.SpringMotionConfig,{reducedMotion:Y,...$,children:d.jsxs(te,{className:ee.root,"data-testid":"container",onHoverStart:U,onHoverEnd:G,onTapStart:X,onTap:Z,onTapCancel:Z,tabIndex:-1,children:[d.jsxs(q,{position:"relative",className:ee.checkbox,alignItems:"center",justifyContent:"center",flex:"none",animate:A,children:[d.jsx("input",{type:"checkbox",tabIndex:0,...v,ref:e=>{C.current=e,J(k),"function"==typeof S?S(e):null!==S&&(S.current=e)},id:I,disabled:x,required:f,"aria-invalid":b,checked:j?!O(k)&&k:void 0,defaultChecked:j?void 0:a,onChange:W,className:ee.htmlCheckbox}),d.jsx(i.Icon,{name:F(k),size:"sm",className:ee.check})]}),r&&d.jsx(o.FormLabel,{as:"div",variant:"inherit",color:"inherit",required:f,label:r,className:ee.label})]})})});$.displayName="Checkbox";var W=(e,t,a="overwriteOriginal")=>{const o=Array.from(new Set([...Object.keys(e??{}),...Object.keys(t??{})]));return Object.fromEntries(o.map(o=>{const n=e?.[o],s=t?.[o];return n&&!s?[o,n]:s&&!n?[o,s]:"className"===o?[o,i.cx(n,s)]:"keepOriginal"===a?[o,n]:[o,s]}))},U=(e,t,a="overwriteOriginal")=>{if(!e)return t;const o=Array.from(new Set([...Object.keys(e),...Object.keys(t)]));return Object.fromEntries(o.map(o=>{const n=e[o],i=t[o];return[o,W(n,i,a)]}))},G="primary",X=u.forwardRef(function({size:e="md",minWidth:t,maxWidth:o=200,startIcon:n,endIcon:s,as:r="div",reduceMotion:c,disabled:l=!1,className:p,slotProps:h,children:x,...f},b){const g=m.useReducedMotion()||c?"duration-0":"duration-120",{className:y,...v}=h?.text??{},{className:S,...N}=h?.startIcon??{},{className:I,...C}=h?.endIcon??{},j=u.useMemo(()=>({root:i.getStyles({chipSizeRoot:e,className:i.cx({"pointer-events-none":l,"cursor-default":l,"opacity-50":l},"inline-flex","items-center","focus-visible:-outline-offset-2","uds-ring",g,"transition-[background-color,outline-color,box-shadow]",p)}),text:i.cx("truncate","whitespace-nowrap","text-center","flex-1",y),icon:i.getStyles({chipSizeIcon:e})}),[p,g,l,e,y]),k=u.useMemo(()=>({root:{maxWidth:`${o}px`,...t?{minWidth:`${t}px`}:{}}}),[o,t]);return d.jsx(a.HStack,{asChild:!0,ref:b,className:j.root,style:k.root,...f,children:d.jsxs(r,{disabled:l,children:[n&&d.jsx(i.IconSlot,{icon:n,iconProps:{variant:"fill",className:i.cx(j.icon,S),...N}}),d.jsx(i.Text,{as:"span",color:"current",variant:"inherit",className:j.text,...v,children:x}),s&&d.jsx(i.IconSlot,{icon:s,iconProps:{variant:"fill",className:i.cx(j.icon,I),...C}})]})})});X.displayName="ChipBase";var Z=u.forwardRef(function({variant:e=G,slotProps:t,className:a,...o},n){const s=u.useMemo(()=>({root:i.getStyles({chipLinkVariantRoot:e,className:a}),icon:i.getStyles({chipLinkVariantIcon:e})}),[a,e]),r=U(t,{startIcon:{className:s.icon},endIcon:{className:s.icon}});return d.jsx(X,{as:"button",ref:n,tabIndex:0,className:s.root,slotProps:r,...o})});Z.displayName="ChipButton";var J=u.forwardRef(function({dismissButtonAriaLabel:e,onDismiss:a,dismissIcon:o,variant:n=G,disabled:s,slotProps:r,className:c,...l},p){const m=u.useMemo(()=>({root:i.getStyles({chipDismissibleVariantRoot:n,className:c}),icon:i.getStyles({chipDismissibleVariantIcon:n}),iconPressable:i.cx("uds-chip-dismissible-button","uds-hit-target")}),[c,n]),h=u.useCallback(e=>{e.stopPropagation(),a?.()},[a]),x=U(r,{startIcon:{className:m.icon},endIcon:{className:m.icon}});return d.jsx(X,{ref:p,disabled:s,tabIndex:-1,endIcon:a=>d.jsx(t.Pressable,{"aria-label":e,className:m.iconPressable,onClick:h,disabled:s,children:d.jsx(i.IconSlot,{icon:o??t.a,iconProps:a})}),className:m.root,slotProps:x,...l})});J.displayName="ChipDismissible";var Y=u.forwardRef(function({variant:e=G,href:t,disabled:a,slotProps:o,className:n,...s},r){const c=u.useMemo(()=>({root:i.getStyles({chipLinkVariantRoot:e,className:n}),icon:i.getStyles({chipLinkVariantIcon:e})}),[n,e]),l=U(o,{startIcon:{className:c.icon},endIcon:{className:c.icon}});return d.jsx(X,{as:"a",ref:r,disabled:a,className:c.root,slotProps:l,tabIndex:0,...{...s,href:a?void 0:t}})});Y.displayName="ChipLink";var Q=u.forwardRef(function({isToggled:e=!1,onToggle:t,onClick:a,variant:o=G,slotProps:n,className:s,role:r="checkbox",...c},l){const p=u.useMemo(()=>({root:i.getStyles({chipToggleVariantRoot:o,chipToggleVariantActiveRoot:e?"on":"off",className:s}),icon:i.getStyles({chipToggleVariantIcon:o})}),[s,e,o]),m=u.useCallback(o=>{t?.(!e),a?.(o)},[e,a,t]),h=U(n,{startIcon:{className:p.icon},endIcon:{className:p.icon}}),x="checkbox"===r||"switch"===r;return d.jsx(X,{ref:l,as:"button",role:r,"aria-checked":x?e:void 0,onClick:m,className:p.root,slotProps:h,tabIndex:0,...c})});Q.displayName="ChipToggle";var K=u.forwardRef(function({onClick:e,href:t,linkProps:a,onDismiss:o,onToggle:n,isToggled:i,slotProps:s,...r},c){const{anchor:l,...u}=s??{};return o?d.jsx(J,{ref:c,onDismiss:o,slotProps:u,...r}):n?d.jsx(Q,{ref:c,onToggle:n,isToggled:i,slotProps:u,...r}):t?d.jsx(Y,{ref:c,href:t,slotProps:u,...r,...a,...l}):d.jsx(Z,{ref:c,onClick:e,slotProps:u,...r})});K.displayName="Chip";var ee=s.generateDefaultClassName("iconbutton","size","root"),te=s.generateDefaultClassName("iconbutton","size","icon"),ae=s.generateDefaultClassName("button","variant","root"),oe=s.generateDefaultClassName("button","variant","icon"),ne=u.forwardRef(function({variant:e,size:a,iconVariant:o,loading:s,disableEffects:r,name:l,type:h="button",htmlName:x,className:f,children:b,...g},y){const v=u.useRef(null);u.useImperativeHandle(y,()=>v.current);const S=m.useReducedMotion(),N=!!r||!!g?.disabled,I=u.useMemo(()=>S?"smooth":"subtle",[S]),C=u.useMemo(()=>({rest:{scale:N?1:`var(${c.BUTTON_SCALE_EFFECT_REST})`},hover:{scale:N?1:`var(${c.BUTTON_SCALE_EFFECT_HOVER})`},pressed:{scale:N?1:`var(${c.BUTTON_SCALE_EFFECT_PRESSED})`}}),[N]),j=u.useMemo(()=>a?i.getStyles({iconbuttonSizeRoot:a}):ee,[a]),k=u.useMemo(()=>e?i.getStyles({buttonVariantRoot:e}):ae,[e]),w=u.useMemo(()=>a?i.getStyles({iconbuttonSizeIcon:a}):te,[a]),V=u.useMemo(()=>e?i.getStyles({buttonVariantIcon:e}):oe,[e]),R=u.useMemo(()=>({root:i.cx("uds-ring","uds-hit-target","inline-flex overflow-hidden justify-center items-center","[transform-origin:center]","[backface-visibility:hidden]","[transition-property:color,background-color,border-color, box-shadow,text-decoration-color,fill,stroke]","[transition-timing-function:cubic-bezier(0,0,0.2,1)]","[transition-duration:220ms]",j,k,g?.disabled&&"cursor-not-allowed",s&&"uds-button-loading",r&&"uds-button-without-effects",f),icon:i.getStyles({className:i.cx(w,V)}),loadingIcon:i.getStyles({className:i.cx(["animate-spin",w,V])})}),[f,r,w,V,s,g?.disabled,j,k]);return d.jsx(n.SpringMotionConfig,{layoutSpeed:"3",layoutVariant:I,reducedMotion:r?"always":"user",children:d.jsx(m.m.button,{ref:v,type:h,className:R.root,name:x,initial:"icon",variants:C,whileHover:"hover",whileTap:"pressed",...g,children:d.jsxs(m.AnimatePresence,{initial:!1,mode:"popLayout",children:[s&&d.jsx(m.m.span,{variants:T,initial:"loading",animate:"loading",exit:"hide",children:d.jsx(i.Icon,{size:p.buttonIconSvgSize,name:t.o2,variant:o,color:"current",className:R.loadingIcon})},"loading"),l&&!s&&d.jsx(m.m.span,{variants:z,initial:"icon",animate:"icon",exit:"hide",children:b||d.jsx(i.Icon,{size:p.buttonIconSvgSize,name:l,variant:o,color:"current",className:R.icon})},l.name)]})})})});ne.displayName="IconButton";var ie=l.__toESM(r.require_isFunction(),1),se=({children:e,reduceMotion:t,layoutVariant:a})=>{const o=u.useRef(null),[i,s]=u.useState("auto");return u.useEffect(()=>{if(o.current){const e=new ResizeObserver(e=>{s(e[0].contentRect.height)});return e.observe(o.current),()=>{e.disconnect()}}},[]),d.jsx(n.SpringMotionConfig,{reducedMotion:t,layoutSpeed:"4",layoutVariant:a,children:d.jsx(m.m.div,{className:"overflow-hidden",style:{height:i,opacity:0},animate:{height:i,opacity:1},children:d.jsx("div",{ref:o,children:e})})})};function re({startIcon:e,endIcon:t,iconProps:o,children:n,size:s,isFilled:r,...c}){const l={helperText:i.cx(i.getStyles({inputSizeHelperText:s,inputVariantHelperText:"default",inputVariantValueHelperText:r?"filled":"empty"})),helperIcon:i.getStyles({inputSizeHelperIcon:s,inputVariantHelperIcon:"default",inputVariantValueHelperIcon:r?"filled":"empty"})},u={variant:"outline",...o};return d.jsxs(a.HStack,{gap:"1",alignItems:"center",...c,children:[e&&d.jsx(i.IconSlot,{icon:e,...u,iconProps:o,className:l.helperIcon}),d.jsx("span",{className:l.helperText,children:n}),t&&d.jsx(i.IconSlot,{icon:t,...u,iconProps:o,className:l.helperIcon})]})}se.displayName="AnimateHeightChange",re.displayName="InputHelpTextInternal";var ce=u.memo(re),le=u.memo(function({helpText:e,helperTextIcon:t,spacingStart:a,spacingTop:o,size:n,isFilled:s,...r}){return e?d.jsx(i.Box,{spacingTop:o,spacingStart:a,...r,children:d.jsx(ce,{startIcon:t,size:n,isFilled:s,children:(0,ie.default)(e)?e():e})}):null}),ue=u.memo(function({icon:e,className:t,iconProps:a}){return e?d.jsx(i.IconSlot,{icon:e,iconProps:{variant:"outline",...a},className:t}):null}),de=u.memo(function({icon:e,className:t,iconProps:a}){return e?d.jsx(i.IconSlot,{icon:e,iconProps:{variant:"outline",...a},className:t}):null}),pe=u.forwardRef(function({id:e,label:t,type:o="text",size:n="md",startIcon:s,endIcon:r,helpText:c,helperTextIcon:l,hasError:p,width:h="full",defaultValue:x,required:f,readOnly:b,disabled:g,reduceMotion:y,onChange:v,slotProps:S,className:N,...I},C){const j=u.useId(),k=e??`uds-input-${j}`,w=`uds-input-${k}-help-text`,{className:V,...R}=S?.input??{},{className:M,...z}=S?.inputWrapper??{},T=u.useRef(null);u.useImperativeHandle(C,()=>T.current);const[P,E]=u.useState(x??""),B=u.useCallback(e=>{E(e.target.value),v?.(e)},[v]),H=m.useReducedMotion()?"smooth":"bouncy",A=y?"always":"user",L=!b&&!g,O={root:i.getStyles({inputSizeRoot:n,inputVariantRoot:"default",inputVariantValueRoot:P?"filled":"empty",className:i.cx([N,g?"opacity-50":""])}),inputWrapper:i.cx(i.getStyles({inputSizeInputWrapper:n,inputVariantInputWrapper:"default",inputVariantValueInputWrapper:P?"filled":"empty"}),"min-w-[200px]",M),input:i.getStyles({inputSizeInput:n,inputVariantInput:"default",inputVariantValueInput:P?"filled":"empty",inputVariantInputPlaceholder:"default",inputVariantValueInputPlaceholder:P?"filled":"empty",className:i.cx("grow","uds-hit-target","bg-clip-text","focus:outline-none",L?"cursor-text":"cursor-not-allowed",V)}),label:i.cx(i.getStyles({inputSizeLabel:n,inputVariantLabel:"default",inputVariantValueLabel:P?"filled":"empty"})),labelRequired:i.getStyles({inputVariantLabelRequired:"default",inputVariantValueLabelRequired:P?"filled":"empty"}),startIcon:i.getStyles({inputSizeStartIcon:n,inputVariantStartIcon:"default",inputVariantValueStartIcon:P?"filled":"empty"}),endIcon:i.getStyles({inputSizeEndIcon:n,inputVariantEndIcon:"default",inputVariantValueEndIcon:P?"filled":"empty"})};return d.jsxs(a.VStack,{width:h,className:O.root,children:[t&&d.jsxs(i.Box,{spacingBottom:"2",columnGap:"0.5",alignItems:"flex-end",className:O.label,children:[d.jsx("label",{htmlFor:k,children:(0,ie.default)(t)?t():t}),f&&d.jsx("span",{className:O.labelRequired,children:"*"})]}),d.jsxs(i.Box,{position:"relative",alignItems:"center",...z,className:O.inputWrapper,children:[d.jsx(ue,{icon:s,className:O.startIcon,iconProps:S?.startIcon}),d.jsx("input",{ref:T,id:k,type:o,value:P,required:f,readOnly:b,disabled:g,"aria-describedby":w,"aria-invalid":p,onChange:B,className:O.input,...I,...R}),r&&d.jsx(a.HStack,{alignItems:"center",gap:"1",children:d.jsx(de,{icon:r,className:O.endIcon,iconProps:S?.endIcon})})]}),d.jsx(se,{reduceMotion:A,layoutVariant:H,children:d.jsx(le,{id:w,helpText:c,spacingTop:"2",size:n,isFilled:!!P,helperTextIcon:l})})]})});pe.displayName="Input";var me=({size:e="md",isFilled:t,...a})=>{const o={root:i.getStyles({inputSizeRoot:e,inputVariantRoot:"default",inputVariantValueRoot:t?"filled":"empty"})};return d.jsx(i.Box,{asChild:!0,spacingTop:"2",className:o.root,children:d.jsx(ce,{size:e,isFilled:t,...a})})};me.displayName="InputHelpText";var he=class e{name;value;activeCount=0;#e=new Set;constructor(e){this.name=e}onChange(e){return this.#e.add(e),()=>{this.#e.delete(e)}}setValue(e){this.value=e,this.#e.forEach(t=>t(e))}static findOrCreate(t,a){let o=t.get(a);return o||(o=new e(a),t.set(a,o)),o}},xe=u.createContext(new Map),fe=e=>{const t=u.useId();return e??`uds-radio-group-${t}`},be={primary:"alert",secondary:"alert-secondary"},ge=m.m.create(i.Box),ye={layoutVariant:"smooth",layoutSpeed:"3"},ve={layoutVariant:"veryBouncy",layoutSpeed:"4"},Se=u.forwardRef(function({id:e,name:t,label:a,labelPosition:s="start",variant:r="primary",size:c="md",reduceMotion:l,value:p="",checked:h,defaultChecked:x,disabled:f,hasError:b,onChange:g,onFocus:y,onBlur:v,className:S,layerClassNames:N,...I},C){const j=u.useId(),k=e??`uds-radio-${j}`,w=u.useRef(null),{name:V,isControlled:R,checked:M,setGroupValue:z}=(({name:e,value:t,checked:a,defaultChecked:o})=>{const n=u.useContext(xe),i=n instanceof he,s=void 0!==a||i,r=fe(e),c=u.useMemo(()=>i?n:he.findOrCreate(n,r),[n,i,r]),[l,d]=u.useState(c.value),p=c.name??r,m=u.useCallback(e=>{c.setValue(e),s||d(e)},[s,c]);return u.useEffect(()=>c.onChange(d),[c]),u.useEffect(()=>{!0===a&&m(t)},[a,t,m]),u.useEffect(()=>{if(i)return;const e=he.findOrCreate(n,p);return e.activeCount+=1,n.set(p,e),()=>{const e=n.get(p);e&&(e.activeCount-=1,0===e.activeCount&&n.delete(p))}},[n,i,p]),{name:p,isControlled:s,checked:s&&!i?a:void 0!==l?t===l:o??!1,setGroupValue:m}})({name:t,value:p,checked:h,defaultChecked:x}),[T,P]=u.useState(!1),[E,B]=u.useState(!1),H=u.useMemo(()=>b?be[r]:r,[b,r]),A=u.useMemo(()=>!f&&T,[f,T]),L=u.useMemo(()=>!f&&!M&&E,[M,f,E]),O=u.useMemo(()=>L?.9:A?1.1:1,[A,L]),F=u.useMemo(()=>M?L?"opacity-55":"opacity-100":"opacity-0",[M,L]),q=u.useMemo(()=>!f&&(L&&!M||A&&M),[M,f,A,L]),_=u.useMemo(()=>({scale:O}),[O]),D=u.useMemo(()=>E?ve:ye,[E]),$=u.useCallback(e=>{z(e.target.value),g?.(e)},[g,z]),W=u.useCallback(e=>{y?.(e)},[y]),U=u.useCallback(e=>{v?.(e)},[v]),G=u.useCallback(()=>{P(!0)},[]),X=u.useCallback(()=>{P(!1)},[]),Z=u.useCallback(()=>{B(!0)},[]),J=u.useCallback(()=>{B(!1)},[]),Y=l?"always":"user",Q=m.useReducedMotion()||l?"duration-0":"duration-120",K={root:i.getStyles({radioSizeRoot:c,radioVariantValueRoot:M?"checked":"unchecked",radioVariantRoot:H,display:"flex",flexDirection:"start"===s?"row":"row-reverse",alignItems:"center",className:i.cx([{"cursor-pointer":!f,"cursor-default":f,"opacity-50":f},S,N?.root])}),radio:i.getStyles({radioSizeRadio:c,radioVariantRadio:H,radioVariantValueRadio:M?"checked":"unchecked",className:i.cx(["border","uds-ring","uds-ring-within",Q,"transition-[background-color,border-color]","transition-shadow",N?.radio])}),radioCircle:i.getStyles({radioVariantRadioCircle:H,radioVariantValueRadioCircle:M?"checked":"unchecked",className:i.cx(["pointer-events-none","w-[8px]","h-[8px]",F,Q,"transition-opacity"])}),htmlRadio:i.cx("cursor-[inherit]","absolute","opacity-0","top-1/2","left-1/2","w-[calc(100%+2px)]","h-[calc(100%+2px)]","transform","translate-x-[-50%]","translate-y-[-50%]"),label:i.cx("start"===s?"text-start":"text-end",N?.label)},ee=a?m.m.label:m.m.div;return d.jsx(n.SpringMotionConfig,{reducedMotion:Y,...D,children:d.jsxs(ee,{className:K.root,"data-testid":"container",onHoverStart:G,onHoverEnd:X,onTapStart:Z,onTap:J,onTapCancel:J,tabIndex:-1,children:[d.jsxs(ge,{position:"relative",borderRadius:"full",alignItems:"center",justifyContent:"center",flex:"none",className:K.radio,animate:_,insetShadow:q?"lg-invert":"none",children:[d.jsx("input",{type:"radio",tabIndex:0,...I,ref:e=>{w.current=e,"function"==typeof C?C(e):null!==C&&(C.current=e)},onFocus:W,onBlur:U,id:k,name:V,value:p,disabled:f,"aria-invalid":b,onChange:$,...R?{checked:M}:{defaultChecked:x},className:K.htmlRadio}),d.jsx(i.Box,{borderRadius:"full",className:K.radioCircle})]}),a&&d.jsx(o.FormLabel,{as:"div",variant:"inherit",color:"inherit",label:a,className:K.label})]})})});Se.displayName="Radio";var Ne=i.createSlot(),Ie=class extends he{onChangeCb;isControlled;constructor(e,t){super(e),this.isControlled=t}setValue(e,t=!1){this.isControlled&&!t?this.onChangeCb?.(e):super.setValue(e)}},Ce=u.forwardRef(function({asChild:e,name:t,value:a,defaultValue:o,onChange:n,...i},s){const r=void 0!==a,c=fe(t),l=u.useMemo(()=>{const e=new Ie(c,r);return e.value=r?a:o,e},[o,r,c,a]);u.useEffect(()=>{l.onChangeCb=n},[n,l]),u.useEffect(()=>{r&&l.setValue(a,!0)},[r,l,a]),u.useEffect(()=>l.onChange(e=>n?.(e)),[n,l]);const p=e?Ne:"div";return d.jsx(xe.Provider,{value:l,children:d.jsx(p,{role:"radiogroup",ref:s,...i})})});Ce.displayName="RadioGroupProvider";var je={md:{isOnX:20},sm:{isOnX:12}},ke=m.m.create(i.Box),we={layoutVariant:"bouncy",layoutSpeed:"4"},Ve=u.forwardRef(function({id:e,isOn:t,defaultIsOn:a,onChange:s,label:r,labelPosition:c="start",size:l="md",onIcon:p,offIcon:h,reduceMotion:x,disabled:f,required:b,onFocus:g,onBlur:y,className:v,layerClassNames:S,...N},I){const C=u.useId(),j=e??`uds-input-${C}`,k=u.useRef(null),w=void 0!==t,[V,R]=u.useState(w?t:a),[M,z]=u.useState(!1),T=u.useMemo(()=>!f&&M,[f,M]),{isOnX:P}=je[l],E=u.useMemo(()=>({initial:{scale:1,x:V?P:0},animate:{scale:T?1.05:1,x:V?P:0}}),[T,V,P]),B=u.useCallback(e=>{s?.(e),w||R(e.target.checked)},[w,s]),H=u.useCallback(e=>{g?.(e)},[g]),A=u.useCallback(e=>{y?.(e)},[y]),L=u.useCallback(()=>{z(!0)},[]),O=u.useCallback(()=>{z(!1)},[]),F=x?"always":"user",q=m.useReducedMotion()||x?"duration-0":"duration-120";u.useEffect(()=>{w&&R(t)},[t,w]);const _={root:i.getStyles({switchSizeRoot:l,switchVariantRoot:"default",switchVariantActiveRoot:V?"on":"off",display:"flex",flexDirection:"start"===c?"row":"row-reverse",alignItems:"center",className:i.cx("group",{"cursor-pointer":!f,"cursor-default":f,"opacity-50":f},S?.root,v)}),switch:i.getStyles({switchVariantSwitch:"default",switchSizeSwitch:l,switchVariantActiveSwitch:V?"on":"off",borderRadius:"full",position:"relative",alignItems:"center",className:i.cx("uds-ring","uds-ring-within",q,"transition-[background-color,box-shadow]",S?.switch)}),handle:i.getStyles({switchSizeHandle:l,className:i.cx("relative","pointer-events-none","rounded-full","overflow-hidden",S?.handle)}),handleCircle:i.getStyles({switchVariantActiveHandle:V?"on":"off",switchVariantHandle:"default",className:i.cx("absolute","top-0","left-0","right-0","bottom-0","opacity-95 group-hover:opacity-100",q,"transition-[background-color,box-shadow,opacity]")}),handleIcon:i.getStyles({switchSizeHandleIcon:l,switchVariantHandleIcon:"default",switchVariantActiveHandleIcon:V?"on":"off",className:i.cx("absolute","opacity-0","top-1/2","left-1/2","transform","translate-x-[-50%]","translate-y-[-50%]",q,"transition-opacity")}),htmlCheckbox:i.cx("cursor-[inherit]","absolute","opacity-0","top-1/2","left-1/2","w-[calc(100%+2px)]","h-[calc(100%+2px)]","transform","translate-x-[-50%]","translate-y-[-50%]"),label:i.cx("start"===c?"text-start":"text-end",S?.label)},D=r?m.m.label:m.m.div;return d.jsx(n.SpringMotionConfig,{reducedMotion:F,...we,children:d.jsxs(D,{className:_.root,"data-testid":"container",onHoverStart:L,onHoverEnd:O,tabIndex:-1,children:[d.jsxs(ke,{className:_.switch,children:[d.jsx("input",{type:"checkbox",tabIndex:0,...N,ref:e=>{k.current=e,"function"==typeof I?I(e):null!==I&&(I.current=e)},onFocus:H,onBlur:A,id:j,disabled:f,required:b,checked:w?V:void 0,defaultChecked:w?void 0:a,onChange:B,className:_.htmlCheckbox,style:{}}),d.jsxs(ke,{className:_.handle,...E,children:[d.jsx(i.Box,{className:_.handleCircle}),p&&d.jsx(i.IconSlot,{icon:p,iconProps:{variant:"fill",size:"sm"},"data-testid":"on-icon",className:i.cx(_.handleIcon,V?"opacity-100":"opacity-0")}),h&&d.jsx(i.IconSlot,{icon:h,iconProps:{variant:"fill",size:"sm"},"data-testid":"off-icon",className:i.cx(_.handleIcon,V?"opacity-0":"opacity-100")})]})]}),r&&d.jsx(o.FormLabel,{as:"div",variant:"inherit",color:"inherit",required:b,label:r,className:_.label})]})})});Ve.displayName="Switch",Object.defineProperty(exports,"Pressable",{enumerable:!0,get:function(){return t.Pressable}}),Object.defineProperty(exports,"SpringMotionConfig",{enumerable:!0,get:function(){return n.SpringMotionConfig}}),Object.defineProperty(exports,"Menu",{enumerable:!0,get:function(){return h.Menu}}),exports.Avatar=k,exports.AvatarIcon=I,exports.AvatarImage=j,exports.AvatarText=C,exports.Badge=w,exports.Button=A,exports.Checkbox=$,exports.Chip=K,exports.ChipButton=Z,exports.ChipDismissible=J,exports.ChipLink=Y,exports.ChipToggle=Q,exports.IconButton=ne,exports.Input=pe,exports.InputHelpText=me,exports.Radio=Se,exports.RadioGroupProvider=Ce,exports.Switch=Ve;
2
+ "use strict";var e=require("../chunk-2EFTNYYZ.cjs"),t=require("../chunk-PVAHPU4A.cjs"),a=require("../chunk-XHDADABE.cjs"),o=require("../chunk-2TGUXN5Y.cjs"),n=require("../chunk-JUNV7OML.cjs"),i=require("../chunk-ZXZH6NST.cjs"),s=require("../chunk-MIFZ6CW4.cjs"),r=require("../chunk-67NZP2EJ.cjs"),c=require("../chunk-ZGLNOALK.cjs"),l=require("../chunk-QLXJH36U.cjs"),u=require("react"),d=require("react/jsx-runtime"),p=require("@yahoo/uds/fixtures"),m=require("motion/react"),h=require("@yahoo/uds/client/Menu"),x=l.__toESM(r.require_isFunction(),1),f={first:e=>e[0]??"",last:e=>e[e.length-1]??"",firstAndLast:e=>1===e.length?e[0]:`${e[0]}${e[e.length-1]}`,firstTwo:e=>e.slice(0,2).join(""),firstThree:e=>e.slice(0,3).join(""),firstOfEach:e=>e.join("")},b=(e,t="firstAndLast")=>{if(!e)return"";if((0,x.default)(t))return t(e);const a=e.trim().split(/\s+/).map(e=>e[0].toUpperCase());return f[t](a)},g=(e="md",t)=>{const{className:a,...o}=t??{};return i.getStyles({avatarSizeRoot:e,...o,className:i.cx("shrink-0","text-center","inline-flex","justify-center","items-center","overflow-visible","truncate",a)})},y=e=>{const t=e?{height:e,width:e}:{};return{root:t,contents:{...t,boxSizing:"content-box"}}},v="primary",S="md",N={primary:t.e2,secondary:t.t},I=({size:e=S,variant:t=v,customSize:a,icon:o,slotProps:n,className:s,...r})=>{const c=u.useMemo(()=>({root:g(e,{avatarIconVariantRoot:t,overflow:"hidden",className:i.cx("overflow-hidden",s)}),iconContainer:i.cx("w-full","h-full","shrink-0","overflow-hidden","text-center","inline-flex","justify-center","items-center"),icon:i.getStyles({avatarSizeIcon:e})}),[s,e,t]),l=u.useMemo(()=>y(a),[a]),p=o??N[t??"primary"];return d.jsx(i.Box,{className:c.root,style:l.root,...r,children:d.jsx(i.Box,{className:c.iconContainer,style:l.contents,children:d.jsx(i.IconSlot,{icon:p,iconProps:{variant:"fill",color:"current",...n?.icon},className:c.icon})})})};/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */I.displayName="AvatarIcon";var C=({size:e=S,variant:t=v,name:a,initials:o,customSize:n,abbreviationStrategy:s,className:r,slotProps:c,...l})=>{const p=u.useMemo(()=>({root:g(e,{avatarTextVariantRoot:t,className:i.cx("overflow-hidden","truncate",r)}),text:i.cx("w-full","h-full","shrink-0","overflow-hidden","text-center","inline-flex","justify-center","items-center","truncate")}),[r,e,t]),m=u.useMemo(()=>y(n),[n]);return d.jsx(i.Box,{className:p.root,style:m.root,...l,children:d.jsx(i.Text,{color:"inherit",variant:"inherit",className:p.text,style:m.contents,...c?.text,children:o||b(a,s)})})};C.displayName="AvatarText";var j=({size:t=S,variant:a=v,src:o,srcSet:n,customSize:s,alt:r,abbreviationStrategy:c,fallback:l,className:p,imageProps:m,slotProps:h,...x})=>{const[f,b]=u.useState("loading");u.useEffect(()=>{let e=!0;if(o||n){const t=new Image;t.onload=()=>{e&&b("loaded")},t.onerror=()=>{e&&b("error")},o&&(t.src=o),n&&(t.srcset=n)}else b("error");return()=>{e=!1}},[o,n]);const N=u.useMemo(()=>({root:g(t,{avatarImageVariantRoot:a,className:i.cx("overflow-hidden",p)}),contents:i.cx("w-full","h-full","shrink-0","text-center","inline-flex","justify-center","items-center","object-cover")}),[p,t,a]),j=u.useMemo(()=>y(s),[s]);if("loaded"===f)return d.jsx(i.Box,{className:N.root,style:j.root,children:d.jsx(e.Image,{src:o,srcSet:n,alt:r,className:N.contents,style:j.contents,...m,...h?.image})});const k={...x,size:t,customSize:s,variant:a};return l||r?d.jsx(C,{name:r,initials:l,abbreviationStrategy:c,slotProps:{text:h?.text},...k}):d.jsx(I,{...k,slotProps:{icon:h?.icon}})};j.displayName="AvatarImage";var k=e=>d.jsx(j,{...e});k.displayName="Avatar";var w=u.forwardRef(function({variant:e="primary",size:t="md",minWidth:o,maxWidth:n=200,startIcon:s,endIcon:r,backgroundColor:c,color:l,iconColor:p,borderColor:m,children:h,className:x,...f},b){const g=i.getStyles({badgeSizeRoot:t,badgeVariantRoot:e,className:i.cx(["uds-badge","uds-badge-variant","uds-badge-size",x])}),y=i.getStyles({badgeVariantIcon:e,badgeSizeIcon:t,className:i.cx(["uds-badge-iconSize","uds-badge-iconColor"])}),v=u.useMemo(()=>({...o?{minWidth:`${o}px`}:{},..."full"===n?{}:{maxWidth:`${n}px`},...c?{backgroundColor:c}:{},...m?{borderColor:m}:{},...l?{color:l}:{}}),[c,m,l,n,o]),S=u.useMemo(()=>({variant:"fill",style:{...p?{color:p}:{}}}),[p]);return d.jsxs(a.HStack,{ref:b,gap:"2",display:"inline-flex",alignItems:"center",className:g,style:v,...f,children:[s&&d.jsx(i.IconSlot,{icon:s,iconProps:S,"data-testid":"start-icon",className:y}),d.jsx("span",{className:"flex-1 truncate whitespace-nowrap text-center",children:h}),r&&d.jsx(i.IconSlot,{icon:r,iconProps:S,"data-testid":"end-icon",className:y})]})});w.displayName="Badge";var V={hide:{display:"none",width:"0px",opacity:0},loading:{display:"flex",width:"auto",opacity:1},icon:{display:"flex",width:"auto",opacity:1}},R={scale:.7,opacity:0},M={scale:[.7,.7,1],opacity:[0,0,1],transition:{times:[0,.5,1]}},z={hide:R,icon:M,loading:R},T={hide:R,icon:R,loading:M};var P=s.generateDefaultClassName("button","variant","root"),E=s.generateDefaultClassName("button","variant","icon"),B=s.generateDefaultClassName("button","size","root"),H=s.generateDefaultClassName("button","size","icon"),A=u.forwardRef(function({size:e,variant:a,startIcon:o,endIcon:s,iconVariant:r,loading:l,disableEffects:h,children:x,asChild:f=!1,type:b="button",className:g,width:y,...v},S){const N=u.useRef(null);u.useImperativeHandle(S,()=>N.current);const I=m.useReducedMotion(),C=!!h||!!v?.disabled,j=I?"smooth":"subtle",k=s?"icon":"hide",w=function({startIcon:e,endIcon:t,loading:a}){return a||e||t?"withIcon":"withoutIcon"}({startIcon:o,endIcon:s,loading:l}),R=function({loading:e,startIcon:t}){return e?"loading":t?"icon":"hide"}({loading:l,startIcon:o}),M=u.useMemo(()=>i.createSlot(),[]),A=u.useMemo(()=>m.m.create(M),[M]),O=u.useMemo(()=>({rest:{scale:C?1:`var(${c.BUTTON_SCALE_EFFECT_REST})`},hover:{scale:C?1:`var(${c.BUTTON_SCALE_EFFECT_HOVER})`},pressed:{scale:C?1:`var(${c.BUTTON_SCALE_EFFECT_PRESSED})`},withIcon:{columnGap:`var(${c.BUTTON_GAP_VAR})`},withoutIcon:{columnGap:"0px"}}),[C]),L=u.useMemo(()=>e?i.getStyles({buttonSizeRoot:e}):B,[e]),F=u.useMemo(()=>a?i.getStyles({buttonVariantRoot:a}):P,[a]),q=u.useMemo(()=>e?i.getStyles({buttonSizeIcon:e}):H,[e]),_=u.useMemo(()=>a?i.getStyles({buttonVariantIcon:a}):E,[a]),D=u.useMemo(()=>({root:i.getStyles({width:y,className:i.cx(["uds-ring","uds-hit-target","inline-flex overflow-hidden justify-center items-center whitespace-nowrap select-none","[transform-origin:center]","[backface-visibility:hidden]","[transition-property:color,background-color,border-color,box-shadow,text-decoration-color,fill,stroke]","[transition-timing-function:cubic-bezier(0,0,0.2,1)]","[transition-duration:220ms]",L,F,v?.disabled&&"cursor-not-allowed",l&&"uds-button-loading",h&&"uds-button-without-effects","withIcon"===w&&"uds-button-with-gap",g])}),iconContainer:"flex overflow-clip uds-button-icon-container",icon:i.getStyles({className:i.cx([q,_])}),loadingIcon:i.getStyles({className:i.cx(["animate-spin",q,_])}),content:i.cx(["truncate"])}),[g,h,w,q,_,l,v?.disabled,L,F,y]),$=u.useMemo(()=>d.jsx(m.m.span,{className:D.iconContainer,initial:!1,variants:V,animate:R,children:d.jsxs(m.AnimatePresence,{initial:!1,mode:"popLayout",children:[l&&d.jsx(m.m.span,{variants:T,initial:"hide",animate:"loading",exit:"hide",children:d.jsx(i.Icon,{className:D.loadingIcon,size:p.buttonIconSvgSize,name:t.o2,variant:r,color:"current"})},"loading"),o&&!l&&d.jsx(m.m.span,{variants:z,initial:"hide",animate:"icon",exit:"hide",children:d.jsx(i.IconSlot,{className:D.icon,icon:o,iconProps:{size:p.buttonIconSvgSize,variant:r,color:"current"}})})]})}),[D,r,l,o,R]),W=u.useMemo(()=>d.jsx(m.m.span,{className:D.iconContainer,initial:!1,variants:V,animate:k,children:d.jsx(m.AnimatePresence,{initial:!1,mode:"popLayout",children:s&&d.jsx(m.m.span,{variants:z,initial:"hide",animate:"icon",exit:"hide",children:d.jsx(i.IconSlot,{className:D.icon,icon:s,iconProps:{size:p.buttonIconSvgSize,variant:r,color:"current"}})})})}),[s,D,r,k]);return f&&u.isValidElement(x)?d.jsx(n.SpringMotionConfig,{layoutSpeed:"3",layoutVariant:j,children:d.jsx(A,{type:b,className:D.root,initial:["rest",w],animate:["hide","rest",w],variants:O,whileHover:"hover",whileTap:"pressed",...v,children:u.cloneElement(x,x.props,d.jsxs(d.Fragment,{children:[$,d.jsx("span",{className:D.content,children:x.props.children}),W]}))})}):d.jsx(n.SpringMotionConfig,{layoutSpeed:"3",layoutVariant:j,children:d.jsxs(m.m.button,{ref:N,type:b,className:D.root,initial:["rest",w],animate:["hide","rest",w],variants:O,whileHover:"hover",whileTap:"pressed",...v,children:[$,d.jsx("span",{className:D.content,children:x}),W]})})});A.displayName="Button";var O={primary:"alert",secondary:"alert-secondary"},L=e=>"indeterminate"===e,F=e=>L(e)?t.o:t.e,q=m.m.create(i.Box),_={layoutVariant:"smooth",layoutSpeed:"3"},D={layoutVariant:"veryBouncy",layoutSpeed:"4"},$=u.forwardRef(function({id:e,checked:t,defaultChecked:a,onChange:s,label:r,labelPosition:c="start",variant:l="primary",size:p="md",reduceMotion:h,disabled:x,required:f,hasError:b,className:g,layerClassNames:y,...v},S){const N=u.useId(),I=e??`uds-input-${N}`,C=u.useRef(null),j=void 0!==t,[k,w]=u.useState(j?t:a),[V,R]=u.useState(!1),[M,z]=u.useState(!1),T=u.useMemo(()=>b?O[l]:l,[b,l]),P=!x&&V,E=!x&&M,B=u.useMemo(()=>E?.9:P?1.1:1,[E,P]),H=u.useMemo(()=>k?E?"opacity-55":"opacity-100":"opacity-0",[k,E]),A=u.useMemo(()=>({scale:B}),[B]),$=u.useMemo(()=>M?D:_,[M]),W=u.useCallback(e=>{s?.(e),j||w(e.target.checked)},[j,s]),U=u.useCallback(()=>{R(!0)},[]),G=u.useCallback(()=>{R(!1)},[]),X=u.useCallback(()=>{z(!0)},[]),Z=u.useCallback(()=>{z(!1)},[]),J=e=>{C.current&&(C.current.indeterminate=L(e))},Y=h?"always":"user",K=m.useReducedMotion()||h?"duration-0":"duration-120";u.useEffect(()=>{j&&w(t)},[t,j]),u.useEffect(()=>{J(k)},[k]);const Q=L(k)?"indeterminate":k?"checked":"unchecked",ee={root:i.getStyles({checkboxSizeRoot:p,checkboxVariantRoot:T,checkboxVariantValueRoot:Q,display:"flex",flexDirection:"start"===c?"row":"row-reverse",alignItems:"center",className:i.cx({"cursor-pointer":!x,"cursor-default":x,"opacity-50":x},g,y?.root)}),checkbox:i.getStyles({checkboxSizeCheckbox:p,checkboxVariantCheckbox:T,checkboxVariantValueCheckbox:Q,className:i.cx("border","rounded-[4px]","uds-ring","uds-ring-within",K,"transition-[background-color,border-color,box-shadow]",y?.checkbox)}),check:i.getStyles({checkboxVariantCheckboxIcon:T,checkboxVariantValueCheckboxIcon:Q,className:i.cx("pointer-events-none",H,K,"transition-opacity")}),htmlCheckbox:i.cx("cursor-[inherit]","absolute","opacity-0","top-1/2","left-1/2","w-[calc(100%+2px)]","h-[calc(100%+2px)]","transform","translate-x-[-50%]","translate-y-[-50%]"),label:i.cx("start"===c?"text-start":"text-end",y?.label)},te=r?m.m.label:m.m.div;return d.jsx(n.SpringMotionConfig,{reducedMotion:Y,...$,children:d.jsxs(te,{className:ee.root,"data-testid":"container",onHoverStart:U,onHoverEnd:G,onTapStart:X,onTap:Z,onTapCancel:Z,tabIndex:-1,children:[d.jsxs(q,{position:"relative",className:ee.checkbox,alignItems:"center",justifyContent:"center",flex:"none",animate:A,children:[d.jsx("input",{type:"checkbox",tabIndex:0,...v,ref:e=>{C.current=e,J(k),"function"==typeof S?S(e):null!==S&&(S.current=e)},id:I,disabled:x,required:f,"aria-invalid":b,checked:j?!L(k)&&k:void 0,defaultChecked:j?void 0:a,onChange:W,className:ee.htmlCheckbox}),d.jsx(i.Icon,{name:F(k),size:"sm",className:ee.check})]}),r&&d.jsx(o.FormLabel,{as:"div",variant:"inherit",color:"inherit",required:f,label:r,className:ee.label})]})})});$.displayName="Checkbox";var W=(e,t,a="overwriteOriginal")=>{const o=Array.from(new Set([...Object.keys(e??{}),...Object.keys(t??{})]));return Object.fromEntries(o.map(o=>{const n=e?.[o],s=t?.[o];return n&&!s?[o,n]:s&&!n?[o,s]:"className"===o?[o,i.cx(n,s)]:"keepOriginal"===a?[o,n]:[o,s]}))},U=(e,t,a="overwriteOriginal")=>{if(!e)return t;const o=Array.from(new Set([...Object.keys(e),...Object.keys(t)]));return Object.fromEntries(o.map(o=>{const n=e[o],i=t[o];return[o,W(n,i,a)]}))},G="primary",X=u.forwardRef(function({size:e="md",minWidth:t,maxWidth:o=200,startIcon:n,endIcon:s,as:r="div",reduceMotion:c,disabled:l=!1,className:p,slotProps:h,children:x,...f},b){const g=m.useReducedMotion()||c?"duration-0":"duration-120",{className:y,...v}=h?.text??{},{className:S,...N}=h?.startIcon??{},{className:I,...C}=h?.endIcon??{},j=u.useMemo(()=>({root:i.getStyles({chipSizeRoot:e,className:i.cx({"pointer-events-none":l,"cursor-default":l,"opacity-50":l},"inline-flex","items-center","focus-visible:-outline-offset-2","uds-ring",g,"transition-[background-color,outline-color,box-shadow]",p)}),text:i.cx("truncate","whitespace-nowrap","text-center","flex-1",y),icon:i.getStyles({chipSizeIcon:e})}),[p,g,l,e,y]),k=u.useMemo(()=>({root:{maxWidth:`${o}px`,...t?{minWidth:`${t}px`}:{}}}),[o,t]);return d.jsx(a.HStack,{asChild:!0,ref:b,className:j.root,style:k.root,...f,children:d.jsxs(r,{disabled:l,children:[n&&d.jsx(i.IconSlot,{icon:n,iconProps:{variant:"fill",className:i.cx(j.icon,S),...N}}),d.jsx(i.Text,{as:"span",color:"current",variant:"inherit",className:j.text,...v,children:x}),s&&d.jsx(i.IconSlot,{icon:s,iconProps:{variant:"fill",className:i.cx(j.icon,I),...C}})]})})});X.displayName="ChipBase";var Z=u.forwardRef(function({variant:e=G,slotProps:t,className:a,...o},n){const s=u.useMemo(()=>({root:i.getStyles({chipLinkVariantRoot:e,className:a}),icon:i.getStyles({chipLinkVariantIcon:e})}),[a,e]),r=U(t,{startIcon:{className:s.icon},endIcon:{className:s.icon}});return d.jsx(X,{as:"button",ref:n,tabIndex:0,className:s.root,slotProps:r,...o})});Z.displayName="ChipButton";var J=u.forwardRef(function({dismissButtonAriaLabel:e,onDismiss:a,dismissIcon:o,variant:n=G,disabled:s,slotProps:r,className:c,...l},p){const m=u.useMemo(()=>({root:i.getStyles({chipDismissibleVariantRoot:n,className:c}),icon:i.getStyles({chipDismissibleVariantIcon:n}),iconPressable:i.cx("uds-chip-dismissible-button","uds-hit-target")}),[c,n]),h=u.useCallback(e=>{e.stopPropagation(),a?.()},[a]),x=U(r,{startIcon:{className:m.icon},endIcon:{className:m.icon}});return d.jsx(X,{ref:p,disabled:s,tabIndex:-1,endIcon:a=>d.jsx(t.Pressable,{"aria-label":e,className:m.iconPressable,onClick:h,disabled:s,children:d.jsx(i.IconSlot,{icon:o??t.a,iconProps:a})}),className:m.root,slotProps:x,...l})});J.displayName="ChipDismissible";var Y=u.forwardRef(function({variant:e=G,href:t,disabled:a,slotProps:o,className:n,...s},r){const c=u.useMemo(()=>({root:i.getStyles({chipLinkVariantRoot:e,className:n}),icon:i.getStyles({chipLinkVariantIcon:e})}),[n,e]),l=U(o,{startIcon:{className:c.icon},endIcon:{className:c.icon}});return d.jsx(X,{as:"a",ref:r,disabled:a,className:c.root,slotProps:l,tabIndex:0,...{...s,href:a?void 0:t}})});Y.displayName="ChipLink";var K=u.forwardRef(function({isToggled:e=!1,onToggle:t,onClick:a,variant:o=G,slotProps:n,className:s,role:r="checkbox",...c},l){const p=u.useMemo(()=>({root:i.getStyles({chipToggleVariantRoot:o,chipToggleVariantActiveRoot:e?"on":"off",className:s}),icon:i.getStyles({chipToggleVariantIcon:o})}),[s,e,o]),m=u.useCallback(o=>{t?.(!e),a?.(o)},[e,a,t]),h=U(n,{startIcon:{className:p.icon},endIcon:{className:p.icon}}),x="checkbox"===r||"switch"===r;return d.jsx(X,{ref:l,as:"button",role:r,"aria-checked":x?e:void 0,onClick:m,className:p.root,slotProps:h,tabIndex:0,...c})});K.displayName="ChipToggle";var Q=u.forwardRef(function({onClick:e,href:t,linkProps:a,onDismiss:o,onToggle:n,isToggled:i,slotProps:s,...r},c){const{anchor:l,...u}=s??{};return o?d.jsx(J,{ref:c,onDismiss:o,slotProps:u,...r}):n?d.jsx(K,{ref:c,onToggle:n,isToggled:i,slotProps:u,...r}):t?d.jsx(Y,{ref:c,href:t,slotProps:u,...r,...a,...l}):d.jsx(Z,{ref:c,onClick:e,slotProps:u,...r})});Q.displayName="Chip";var ee=s.generateDefaultClassName("iconbutton","size","root"),te=s.generateDefaultClassName("iconbutton","size","icon"),ae=s.generateDefaultClassName("button","variant","root"),oe=s.generateDefaultClassName("button","variant","icon"),ne=u.forwardRef(function({variant:e,size:a,iconVariant:o,loading:s,disableEffects:r,name:l,type:h="button",htmlName:x,className:f,children:b,...g},y){const v=u.useRef(null);u.useImperativeHandle(y,()=>v.current);const S=m.useReducedMotion(),N=!!r||!!g?.disabled,I=u.useMemo(()=>S?"smooth":"subtle",[S]),C=u.useMemo(()=>({rest:{scale:N?1:`var(${c.BUTTON_SCALE_EFFECT_REST})`},hover:{scale:N?1:`var(${c.BUTTON_SCALE_EFFECT_HOVER})`},pressed:{scale:N?1:`var(${c.BUTTON_SCALE_EFFECT_PRESSED})`}}),[N]),j=u.useMemo(()=>a?i.getStyles({iconbuttonSizeRoot:a}):ee,[a]),k=u.useMemo(()=>e?i.getStyles({buttonVariantRoot:e}):ae,[e]),w=u.useMemo(()=>a?i.getStyles({iconbuttonSizeIcon:a}):te,[a]),V=u.useMemo(()=>e?i.getStyles({buttonVariantIcon:e}):oe,[e]),R=u.useMemo(()=>({root:i.cx("uds-ring","uds-hit-target","inline-flex overflow-hidden justify-center items-center","[transform-origin:center]","[backface-visibility:hidden]","[transition-property:color,background-color,border-color, box-shadow,text-decoration-color,fill,stroke]","[transition-timing-function:cubic-bezier(0,0,0.2,1)]","[transition-duration:220ms]",j,k,g?.disabled&&"cursor-not-allowed",s&&"uds-button-loading",r&&"uds-button-without-effects",f),icon:i.getStyles({className:i.cx(w,V)}),loadingIcon:i.getStyles({className:i.cx(["animate-spin",w,V])})}),[f,r,w,V,s,g?.disabled,j,k]);return d.jsx(n.SpringMotionConfig,{layoutSpeed:"3",layoutVariant:I,reducedMotion:r?"always":"user",children:d.jsx(m.m.button,{ref:v,type:h,className:R.root,name:x,initial:"icon",variants:C,whileHover:"hover",whileTap:"pressed",...g,children:d.jsxs(m.AnimatePresence,{initial:!1,mode:"popLayout",children:[s&&d.jsx(m.m.span,{variants:T,initial:"loading",animate:"loading",exit:"hide",children:d.jsx(i.Icon,{size:p.buttonIconSvgSize,name:t.o2,variant:o,color:"current",className:R.loadingIcon})},"loading"),l&&!s&&d.jsx(m.m.span,{variants:z,initial:"icon",animate:"icon",exit:"hide",children:b||d.jsx(i.Icon,{size:p.buttonIconSvgSize,name:l,variant:o,color:"current",className:R.icon})},l.name)]})})})});ne.displayName="IconButton";var ie=l.__toESM(r.require_isFunction(),1),se=({children:e,reduceMotion:t,layoutVariant:a})=>{const o=u.useRef(null),[i,s]=u.useState("auto");return u.useEffect(()=>{if(o.current){const e=new ResizeObserver(e=>{s(e[0].contentRect.height)});return e.observe(o.current),()=>{e.disconnect()}}},[]),d.jsx(n.SpringMotionConfig,{reducedMotion:t,layoutSpeed:"4",layoutVariant:a,children:d.jsx(m.m.div,{className:"overflow-hidden",style:{height:i,opacity:0},animate:{height:i,opacity:1},children:d.jsx("div",{ref:o,children:e})})})};function re({startIcon:e,endIcon:t,iconProps:o,children:n,size:s,isFilled:r,...c}){const l={helperText:i.cx(i.getStyles({inputSizeHelperText:s,inputVariantHelperText:"default",inputVariantValueHelperText:r?"filled":"empty"})),helperIcon:i.getStyles({inputSizeHelperIcon:s,inputVariantHelperIcon:"default",inputVariantValueHelperIcon:r?"filled":"empty"})},u={variant:"outline",...o};return d.jsxs(a.HStack,{gap:"1",alignItems:"center",...c,children:[e&&d.jsx(i.IconSlot,{icon:e,...u,iconProps:o,className:l.helperIcon}),d.jsx("span",{className:l.helperText,children:n}),t&&d.jsx(i.IconSlot,{icon:t,...u,iconProps:o,className:l.helperIcon})]})}se.displayName="AnimateHeightChange",re.displayName="InputHelpTextInternal";var ce=u.memo(re),le=u.memo(function({helpText:e,helperTextIcon:t,spacingStart:a,spacingTop:o,size:n,isFilled:s,...r}){return e?d.jsx(i.Box,{spacingTop:o,spacingStart:a,...r,children:d.jsx(ce,{startIcon:t,size:n,isFilled:s,children:(0,ie.default)(e)?e():e})}):null}),ue=u.memo(function({icon:e,className:t,iconProps:a}){return e?d.jsx(i.IconSlot,{icon:e,iconProps:{variant:"outline",...a},className:t}):null}),de=u.memo(function({icon:e,className:t,iconProps:a}){return e?d.jsx(i.IconSlot,{icon:e,iconProps:{variant:"outline",...a},className:t}):null}),pe=u.forwardRef(function({id:e,label:t,type:o="text",size:n="md",startIcon:s,endIcon:r,helpText:c,helperTextIcon:l,hasError:p,width:h="full",defaultValue:x,required:f,readOnly:b,disabled:g,reduceMotion:y,onChange:v,slotProps:S,className:N,...I},C){const j=u.useId(),k=e??`uds-input-${j}`,w=`uds-input-${k}-help-text`,{className:V,...R}=S?.input??{},{className:M,...z}=S?.inputWrapper??{},T=u.useRef(null);u.useImperativeHandle(C,()=>T.current);const[P,E]=u.useState(x??""),B=u.useCallback(e=>{E(e.target.value),v?.(e)},[v]),H=m.useReducedMotion()?"smooth":"bouncy",A=y?"always":"user",O=!b&&!g,L={root:i.getStyles({inputSizeRoot:n,inputVariantRoot:"default",inputVariantValueRoot:P?"filled":"empty",className:i.cx([N,g?"opacity-50":""])}),inputWrapper:i.cx(i.getStyles({inputSizeInputWrapper:n,inputVariantInputWrapper:"default",inputVariantValueInputWrapper:P?"filled":"empty"}),"min-w-[200px]",M),input:i.getStyles({inputSizeInput:n,inputVariantInput:"default",inputVariantValueInput:P?"filled":"empty",inputVariantInputPlaceholder:"default",inputVariantValueInputPlaceholder:P?"filled":"empty",className:i.cx("grow","uds-hit-target","bg-clip-text","focus:outline-none",O?"cursor-text":"cursor-not-allowed",V)}),label:i.cx(i.getStyles({inputSizeLabel:n,inputVariantLabel:"default",inputVariantValueLabel:P?"filled":"empty"})),labelRequired:i.getStyles({inputVariantLabelRequired:"default",inputVariantValueLabelRequired:P?"filled":"empty"}),startIcon:i.getStyles({inputSizeStartIcon:n,inputVariantStartIcon:"default",inputVariantValueStartIcon:P?"filled":"empty"}),endIcon:i.getStyles({inputSizeEndIcon:n,inputVariantEndIcon:"default",inputVariantValueEndIcon:P?"filled":"empty"})};return d.jsxs(a.VStack,{width:h,className:L.root,children:[t&&d.jsxs(i.Box,{spacingBottom:"2",columnGap:"0.5",alignItems:"flex-end",className:L.label,children:[d.jsx("label",{htmlFor:k,children:(0,ie.default)(t)?t():t}),f&&d.jsx("span",{className:L.labelRequired,children:"*"})]}),d.jsxs(i.Box,{position:"relative",alignItems:"center",...z,className:L.inputWrapper,children:[d.jsx(ue,{icon:s,className:L.startIcon,iconProps:S?.startIcon}),d.jsx("input",{ref:T,id:k,type:o,value:P,required:f,readOnly:b,disabled:g,"aria-describedby":w,"aria-invalid":p,onChange:B,className:L.input,...I,...R}),r&&d.jsx(a.HStack,{alignItems:"center",gap:"1",children:d.jsx(de,{icon:r,className:L.endIcon,iconProps:S?.endIcon})})]}),d.jsx(se,{reduceMotion:A,layoutVariant:H,children:d.jsx(le,{id:w,helpText:c,spacingTop:"2",size:n,isFilled:!!P,helperTextIcon:l})})]})});pe.displayName="Input";var me=({size:e="md",isFilled:t,...a})=>{const o={root:i.getStyles({inputSizeRoot:e,inputVariantRoot:"default",inputVariantValueRoot:t?"filled":"empty"})};return d.jsx(i.Box,{asChild:!0,spacingTop:"2",className:o.root,children:d.jsx(ce,{size:e,isFilled:t,...a})})};me.displayName="InputHelpText";var he=class e{name;value;activeCount=0;#e=new Set;constructor(e){this.name=e}onChange(e){return this.#e.add(e),()=>{this.#e.delete(e)}}setValue(e){this.value=e,this.#e.forEach(t=>t(e))}static findOrCreate(t,a){let o=t.get(a);return o||(o=new e(a),t.set(a,o)),o}},xe=u.createContext(new Map),fe=e=>{const t=u.useId();return e??`uds-radio-group-${t}`},be={primary:"alert",secondary:"alert-secondary"},ge=m.m.create(i.Box),ye={layoutVariant:"smooth",layoutSpeed:"3"},ve={layoutVariant:"veryBouncy",layoutSpeed:"4"},Se=u.forwardRef(function({id:e,name:t,label:a,labelPosition:s="start",variant:r="primary",size:c="md",reduceMotion:l,value:p="",checked:h,defaultChecked:x,disabled:f,hasError:b,onChange:g,onFocus:y,onBlur:v,className:S,layerClassNames:N,...I},C){const j=u.useId(),k=e??`uds-radio-${j}`,w=u.useRef(null),{name:V,isControlled:R,checked:M,setGroupValue:z}=(({name:e,value:t,checked:a,defaultChecked:o})=>{const n=u.useContext(xe),i=n instanceof he,s=void 0!==a||i,r=fe(e),c=u.useMemo(()=>i?n:he.findOrCreate(n,r),[n,i,r]),[l,d]=u.useState(c.value),p=c.name??r,m=u.useCallback(e=>{c.setValue(e),s||d(e)},[s,c]);return u.useEffect(()=>c.onChange(d),[c]),u.useEffect(()=>{!0===a&&m(t)},[a,t,m]),u.useEffect(()=>{if(i)return;const e=he.findOrCreate(n,p);return e.activeCount+=1,n.set(p,e),()=>{const e=n.get(p);e&&(e.activeCount-=1,0===e.activeCount&&n.delete(p))}},[n,i,p]),{name:p,isControlled:s,checked:s&&!i?a:void 0!==l?t===l:o??!1,setGroupValue:m}})({name:t,value:p,checked:h,defaultChecked:x}),[T,P]=u.useState(!1),[E,B]=u.useState(!1),H=u.useMemo(()=>b?be[r]:r,[b,r]),A=u.useMemo(()=>!f&&T,[f,T]),O=u.useMemo(()=>!f&&!M&&E,[M,f,E]),L=u.useMemo(()=>O?.9:A?1.1:1,[A,O]),F=u.useMemo(()=>M?O?"opacity-55":"opacity-100":"opacity-0",[M,O]),q=u.useMemo(()=>!f&&(O&&!M||A&&M),[M,f,A,O]),_=u.useMemo(()=>({scale:L}),[L]),D=u.useMemo(()=>E?ve:ye,[E]),$=u.useCallback(e=>{z(e.target.value),g?.(e)},[g,z]),W=u.useCallback(e=>{y?.(e)},[y]),U=u.useCallback(e=>{v?.(e)},[v]),G=u.useCallback(()=>{P(!0)},[]),X=u.useCallback(()=>{P(!1)},[]),Z=u.useCallback(()=>{B(!0)},[]),J=u.useCallback(()=>{B(!1)},[]),Y=l?"always":"user",K=m.useReducedMotion()||l?"duration-0":"duration-120",Q={root:i.getStyles({radioSizeRoot:c,radioVariantValueRoot:M?"checked":"unchecked",radioVariantRoot:H,display:"flex",flexDirection:"start"===s?"row":"row-reverse",alignItems:"center",className:i.cx([{"cursor-pointer":!f,"cursor-default":f,"opacity-50":f},S,N?.root])}),radio:i.getStyles({radioSizeRadio:c,radioVariantRadio:H,radioVariantValueRadio:M?"checked":"unchecked",className:i.cx(["border","uds-ring","uds-ring-within",K,"transition-[background-color,border-color]","transition-shadow",N?.radio])}),radioCircle:i.getStyles({radioVariantRadioCircle:H,radioVariantValueRadioCircle:M?"checked":"unchecked",className:i.cx(["pointer-events-none","w-[8px]","h-[8px]",F,K,"transition-opacity"])}),htmlRadio:i.cx("cursor-[inherit]","absolute","opacity-0","top-1/2","left-1/2","w-[calc(100%+2px)]","h-[calc(100%+2px)]","transform","translate-x-[-50%]","translate-y-[-50%]"),label:i.cx("start"===s?"text-start":"text-end",N?.label)},ee=a?m.m.label:m.m.div;return d.jsx(n.SpringMotionConfig,{reducedMotion:Y,...D,children:d.jsxs(ee,{className:Q.root,"data-testid":"container",onHoverStart:G,onHoverEnd:X,onTapStart:Z,onTap:J,onTapCancel:J,tabIndex:-1,children:[d.jsxs(ge,{position:"relative",borderRadius:"full",alignItems:"center",justifyContent:"center",flex:"none",className:Q.radio,animate:_,insetShadow:q?"lg-invert":"none",children:[d.jsx("input",{type:"radio",tabIndex:0,...I,ref:e=>{w.current=e,"function"==typeof C?C(e):null!==C&&(C.current=e)},onFocus:W,onBlur:U,id:k,name:V,value:p,disabled:f,"aria-invalid":b,onChange:$,...R?{checked:M}:{defaultChecked:x},className:Q.htmlRadio}),d.jsx(i.Box,{borderRadius:"full",className:Q.radioCircle})]}),a&&d.jsx(o.FormLabel,{as:"div",variant:"inherit",color:"inherit",label:a,className:Q.label})]})})});Se.displayName="Radio";var Ne=i.createSlot(),Ie=class extends he{onChangeCb;isControlled;constructor(e,t){super(e),this.isControlled=t}setValue(e,t=!1){this.isControlled&&!t?this.onChangeCb?.(e):super.setValue(e)}},Ce=u.forwardRef(function({asChild:e,name:t,value:a,defaultValue:o,onChange:n,...i},s){const r=void 0!==a,c=fe(t),l=u.useMemo(()=>{const e=new Ie(c,r);return e.value=r?a:o,e},[o,r,c,a]);u.useEffect(()=>{l.onChangeCb=n},[n,l]),u.useEffect(()=>{r&&l.setValue(a,!0)},[r,l,a]),u.useEffect(()=>l.onChange(e=>n?.(e)),[n,l]);const p=e?Ne:"div";return d.jsx(xe.Provider,{value:l,children:d.jsx(p,{role:"radiogroup",ref:s,...i})})});Ce.displayName="RadioGroupProvider";var je={md:{isOnX:20},sm:{isOnX:12}},ke=m.m.create(i.Box),we={layoutVariant:"bouncy",layoutSpeed:"4"},Ve=u.forwardRef(function({id:e,isOn:t,defaultIsOn:a,onChange:s,label:r,labelPosition:c="start",size:l="md",onIcon:p,offIcon:h,reduceMotion:x,disabled:f,required:b,onFocus:g,onBlur:y,className:v,layerClassNames:S,...N},I){const C=u.useId(),j=e??`uds-input-${C}`,k=u.useRef(null),w=void 0!==t,[V,R]=u.useState(w?t:a),[M,z]=u.useState(!1),T=u.useMemo(()=>!f&&M,[f,M]),{isOnX:P}=je[l],E=u.useMemo(()=>({initial:{scale:1,x:V?P:0},animate:{scale:T?1.05:1,x:V?P:0}}),[T,V,P]),B=u.useCallback(e=>{s?.(e),w||R(e.target.checked)},[w,s]),H=u.useCallback(e=>{g?.(e)},[g]),A=u.useCallback(e=>{y?.(e)},[y]),O=u.useCallback(()=>{z(!0)},[]),L=u.useCallback(()=>{z(!1)},[]),F=x?"always":"user",q=m.useReducedMotion()||x?"duration-0":"duration-120";u.useEffect(()=>{w&&R(t)},[t,w]);const _={root:i.getStyles({switchSizeRoot:l,switchVariantRoot:"default",switchVariantActiveRoot:V?"on":"off",display:"flex",flexDirection:"start"===c?"row":"row-reverse",alignItems:"center",className:i.cx("group",{"cursor-pointer":!f,"cursor-default":f,"opacity-50":f},S?.root,v)}),switch:i.getStyles({switchVariantSwitch:"default",switchSizeSwitch:l,switchVariantActiveSwitch:V?"on":"off",borderRadius:"full",position:"relative",alignItems:"center",className:i.cx("uds-ring","uds-ring-within",q,"transition-[background-color,box-shadow]",S?.switch)}),handle:i.getStyles({switchSizeHandle:l,className:i.cx("relative","pointer-events-none","rounded-full","overflow-hidden",S?.handle)}),handleCircle:i.getStyles({switchVariantActiveHandle:V?"on":"off",switchVariantHandle:"default",className:i.cx("absolute","top-0","left-0","right-0","bottom-0","opacity-95 group-hover:opacity-100",q,"transition-[background-color,box-shadow,opacity]")}),handleIcon:i.getStyles({switchSizeHandleIcon:l,switchVariantHandleIcon:"default",switchVariantActiveHandleIcon:V?"on":"off",className:i.cx("absolute","opacity-0","top-1/2","left-1/2","transform","translate-x-[-50%]","translate-y-[-50%]",q,"transition-opacity")}),htmlCheckbox:i.cx("cursor-[inherit]","absolute","opacity-0","top-1/2","left-1/2","w-[calc(100%+2px)]","h-[calc(100%+2px)]","transform","translate-x-[-50%]","translate-y-[-50%]"),label:i.cx("start"===c?"text-start":"text-end",S?.label)},D=r?m.m.label:m.m.div;return d.jsx(n.SpringMotionConfig,{reducedMotion:F,...we,children:d.jsxs(D,{className:_.root,"data-testid":"container",onHoverStart:O,onHoverEnd:L,tabIndex:-1,children:[d.jsxs(ke,{className:_.switch,children:[d.jsx("input",{type:"checkbox",tabIndex:0,...N,ref:e=>{k.current=e,"function"==typeof I?I(e):null!==I&&(I.current=e)},onFocus:H,onBlur:A,id:j,disabled:f,required:b,checked:w?V:void 0,defaultChecked:w?void 0:a,onChange:B,className:_.htmlCheckbox,style:{}}),d.jsxs(ke,{className:_.handle,...E,children:[d.jsx(i.Box,{className:_.handleCircle}),p&&d.jsx(i.IconSlot,{icon:p,iconProps:{variant:"fill",size:"sm"},"data-testid":"on-icon",className:i.cx(_.handleIcon,V?"opacity-100":"opacity-0")}),h&&d.jsx(i.IconSlot,{icon:h,iconProps:{variant:"fill",size:"sm"},"data-testid":"off-icon",className:i.cx(_.handleIcon,V?"opacity-0":"opacity-100")})]})]}),r&&d.jsx(o.FormLabel,{as:"div",variant:"inherit",color:"inherit",required:b,label:r,className:_.label})]})})});Ve.displayName="Switch",Object.defineProperty(exports,"Pressable",{enumerable:!0,get:function(){return t.Pressable}}),Object.defineProperty(exports,"SpringMotionConfig",{enumerable:!0,get:function(){return n.SpringMotionConfig}}),Object.defineProperty(exports,"Menu",{enumerable:!0,get:function(){return h.Menu}}),exports.Avatar=k,exports.AvatarIcon=I,exports.AvatarImage=j,exports.AvatarText=C,exports.Badge=w,exports.Button=A,exports.Checkbox=$,exports.Chip=Q,exports.ChipButton=Z,exports.ChipDismissible=J,exports.ChipLink=Y,exports.ChipToggle=K,exports.IconButton=ne,exports.Input=pe,exports.InputHelpText=me,exports.Radio=Se,exports.RadioGroupProvider=Ce,exports.Switch=Ve;