@yahoo/uds 3.36.0-beta.4 → 3.36.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli/bin/uds-darwin-arm64-baseline +0 -0
- package/cli/bin/uds-darwin-x64 +0 -0
- package/cli/bin/uds-linux-arm64 +0 -0
- package/cli/bin/uds-linux-x64-baseline +0 -0
- package/cli/cli.ts +1 -21
- package/cli/commands/uds.ts +1 -4
- package/cli/env.d.ts +0 -2
- package/cli/utils/analytics.ts +7 -12
- package/dist/analytics/server.cjs +1 -1
- package/dist/analytics/server.js +1 -1
- package/dist/{chunk-H62QDZOV.cjs → chunk-266TEOBW.cjs} +1 -1
- package/dist/{chunk-QZIQVD63.js → chunk-3Q2RRNEV.js} +3 -3
- package/dist/{chunk-UYLBFQ4P.js → chunk-532FA5T4.js} +1 -1
- package/dist/{chunk-EXYFDTFM.js → chunk-6EDDHN2V.js} +1 -1
- package/dist/{chunk-MATTX7AJ.js → chunk-6T6RXVSC.js} +1 -1
- package/dist/chunk-7WIBH2QA.cjs +1 -0
- package/dist/{chunk-5U4J6DA5.cjs → chunk-AWLTZBG2.cjs} +1 -1
- package/dist/{chunk-MZKL2XHU.js → chunk-BP3AJRW6.js} +2 -2
- package/dist/{chunk-ST7Z3YRS.js → chunk-BV4WMKCN.js} +2 -2
- package/dist/{chunk-QQ7BRHDQ.js → chunk-BWLVHK35.js} +1 -1
- package/dist/{chunk-QXAMOFS3.cjs → chunk-CFZ3UOPU.cjs} +1 -1
- package/dist/chunk-DHFUGPYW.js +2 -0
- package/dist/{chunk-I7ZFG4YT.js → chunk-EJWE4ZDD.js} +2 -2
- package/dist/{chunk-Y5HRSSOF.cjs → chunk-EQ45R5CT.cjs} +1 -1
- package/dist/{chunk-6SQQBVSA.js → chunk-FEVGF4MB.js} +1 -1
- package/dist/{chunk-GJLQAO4M.cjs → chunk-GQ27QLWT.cjs} +1 -1
- package/dist/{chunk-LWGAE6PD.cjs → chunk-HKTEJW4O.cjs} +1 -1
- package/dist/{chunk-KPGAKQEP.js → chunk-IGSZSMZ3.js} +1 -1
- package/dist/chunk-JEM5Q5ZV.js +2 -0
- package/dist/{chunk-JM4WTJDB.cjs → chunk-JNCCDUC5.cjs} +2 -2
- package/dist/{chunk-4GUXQTU3.cjs → chunk-JXGXYM2J.cjs} +3 -3
- package/dist/{chunk-WX4V6S4A.js → chunk-KSMNVEEZ.js} +1 -1
- package/dist/{chunk-PVXOGAWH.js → chunk-LVNVY7D5.js} +1 -1
- package/dist/{chunk-RMRBUBTB.js → chunk-NOHU3JAB.js} +3 -3
- package/dist/{chunk-CTYIRZ5A.cjs → chunk-OJ3E5CMW.cjs} +1 -1
- package/dist/{chunk-SVO6TMF5.js → chunk-P5SQNXWX.js} +1 -1
- package/dist/{chunk-F7LPH2UL.cjs → chunk-PHE2SHFZ.cjs} +1 -1
- package/dist/{chunk-QF6YIMT4.js → chunk-QRMOGL7I.js} +1 -1
- package/dist/{chunk-WRE54KQN.js → chunk-QY4DHKAZ.js} +2 -2
- package/dist/{chunk-6HG5KSL6.cjs → chunk-R53FHPNV.cjs} +1 -1
- package/dist/{chunk-S5NRWKDP.cjs → chunk-RQQFTFXX.cjs} +1 -1
- package/dist/{chunk-VQV2OVOZ.cjs → chunk-S6UCK6XC.cjs} +1 -1
- package/dist/{chunk-4A2ZIK3D.cjs → chunk-SOXILHRS.cjs} +1 -1
- package/dist/chunk-XLYF7ZHQ.cjs +1 -0
- package/dist/{chunk-PNL4K4BQ.cjs → chunk-XUE7PBWU.cjs} +1 -1
- package/dist/{chunk-YBIQ3S5G.cjs → chunk-YBNT52RR.cjs} +1 -1
- package/dist/client/Menu.cjs +2 -2
- package/dist/client/Menu.js +2 -2
- package/dist/client/index.cjs +1 -1
- package/dist/client/index.js +1 -1
- package/dist/experimental/client/SwitchV2.cjs +1 -1
- package/dist/experimental/client/SwitchV2.js +1 -2
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/tailwind/plugin.cjs +1 -1
- package/dist/tailwind/plugin.js +2 -1
- package/dist/tailwind/purger.cjs +1 -1
- package/dist/tailwind/purger.js +2 -2
- package/dist/tailwind/tsMorph.cjs +1 -1
- package/dist/tailwind/tsMorph.js +2 -2
- package/dist/tailwind/utils.cjs +1 -1
- package/dist/tailwind/utils.d.cts +8 -6
- package/dist/tailwind/utils.d.ts +8 -6
- package/dist/tailwind/utils.js +1 -1
- package/dist/tokens/automation/configs.cjs +1 -1
- package/dist/tokens/automation/configs.js +1 -1
- package/dist/tokens/automation/properties.cjs +1 -1
- package/dist/tokens/automation/properties.js +1 -1
- package/dist/tokens/index.cjs +1 -1
- package/dist/tokens/index.js +1 -1
- package/package.json +1 -1
- package/cli/commands/login.ts +0 -30
- package/cli/commands/logout.ts +0 -27
- package/cli/utils/auth.ts +0 -175
- package/dist/chunk-5D2A6RFS.js +0 -2
- package/dist/chunk-74BWCTGT.cjs +0 -1
- package/dist/chunk-DCZLRK3J.js +0 -2
- package/dist/chunk-VQ4KEVVH.cjs +0 -1
@@ -1 +1 @@
|
|
1
|
-
"use strict";var e=require("./chunk-J7PUOUXC.cjs"),o=require("./chunk-GJLQAO4M.cjs"),t=require("./chunk-QLXJH36U.cjs"),r=require("@yahoo/uds/fixtures"),a=t.__commonJS({"../../node_modules/lodash/lowerCase.js"(e,t){var r=o.require_createCompounder()(function(e,o,t){return e+(t?" ":"")+o.toLowerCase()});t.exports=r}}),n=t.__commonJS({"../../node_modules/lodash/_listCacheClear.js"(e,o){o.exports=function(){this.__data__=[],this.size=0}}}),s=t.__commonJS({"../../node_modules/lodash/eq.js"(e,o){o.exports=function(e,o){return e===o||e!=e&&o!=o}}}),l=t.__commonJS({"../../node_modules/lodash/_assocIndexOf.js"(e,o){var t=s();o.exports=function(e,o){for(var r=e.length;r--;)if(t(e[r][0],o))return r;return-1}}}),i=t.__commonJS({"../../node_modules/lodash/_listCacheDelete.js"(e,o){var t=l(),r=Array.prototype.splice;o.exports=function(e){var o=this.__data__,a=t(o,e);return!(a<0)&&(a==o.length-1?o.pop():r.call(o,a,1),--this.size,!0)}}}),u=t.__commonJS({"../../node_modules/lodash/_listCacheGet.js"(e,o){var t=l();o.exports=function(e){var o=this.__data__,r=t(o,e);return r<0?void 0:o[r][1]}}}),c=t.__commonJS({"../../node_modules/lodash/_listCacheHas.js"(e,o){var t=l();o.exports=function(e){return t(this.__data__,e)>-1}}}),p=t.__commonJS({"../../node_modules/lodash/_listCacheSet.js"(e,o){var t=l();o.exports=function(e,o){var r=this.__data__,a=t(r,e);return a<0?(++this.size,r.push([e,o])):r[a][1]=o,this}}}),f=t.__commonJS({"../../node_modules/lodash/_ListCache.js"(e,o){var t=n(),r=i(),a=u(),s=c(),l=p();function f(e){var o=-1,t=null==e?0:e.length;for(this.clear();++o<t;){var r=e[o];this.set(r[0],r[1])}}f.prototype.clear=t,f.prototype.delete=r,f.prototype.get=a,f.prototype.has=s,f.prototype.set=l,o.exports=f}}),d=t.__commonJS({"../../node_modules/lodash/_stackClear.js"(e,o){var t=f();o.exports=function(){this.__data__=new t,this.size=0}}}),m=t.__commonJS({"../../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}}}),v=t.__commonJS({"../../node_modules/lodash/_stackGet.js"(e,o){o.exports=function(e){return this.__data__.get(e)}}}),y=t.__commonJS({"../../node_modules/lodash/_stackHas.js"(e,o){o.exports=function(e){return this.__data__.has(e)}}}),h=t.__commonJS({"../../node_modules/lodash/_nativeCreate.js"(e,t){var r=o.require_getNative()(Object,"create");t.exports=r}}),b=t.__commonJS({"../../node_modules/lodash/_hashClear.js"(e,o){var t=h();o.exports=function(){this.__data__=t?t(null):{},this.size=0}}}),_=t.__commonJS({"../../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}}}),g=t.__commonJS({"../../node_modules/lodash/_hashGet.js"(e,o){var t=h(),r=Object.prototype.hasOwnProperty;o.exports=function(e){var o=this.__data__;if(t){var a=o[e];return"__lodash_hash_undefined__"===a?void 0:a}return r.call(o,e)?o[e]:void 0}}}),w=t.__commonJS({"../../node_modules/lodash/_hashHas.js"(e,o){var t=h(),r=Object.prototype.hasOwnProperty;o.exports=function(e){var o=this.__data__;return t?void 0!==o[e]:r.call(o,e)}}}),S=t.__commonJS({"../../node_modules/lodash/_hashSet.js"(e,o){var t=h();o.exports=function(e,o){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=t&&void 0===o?"__lodash_hash_undefined__":o,this}}}),x=t.__commonJS({"../../node_modules/lodash/_Hash.js"(e,o){var t=b(),r=_(),a=g(),n=w(),s=S();function l(e){var o=-1,t=null==e?0:e.length;for(this.clear();++o<t;){var r=e[o];this.set(r[0],r[1])}}l.prototype.clear=t,l.prototype.delete=r,l.prototype.get=a,l.prototype.has=n,l.prototype.set=s,o.exports=l}}),C=t.__commonJS({"../../node_modules/lodash/_mapCacheClear.js"(e,t){var r=x(),a=f(),n=o.require_Map();t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(n||a),string:new r}}}}),j=t.__commonJS({"../../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}}}),$=t.__commonJS({"../../node_modules/lodash/_getMapData.js"(e,o){var t=j();o.exports=function(e,o){var r=e.__data__;return t(o)?r["string"==typeof o?"string":"hash"]:r.map}}}),P=t.__commonJS({"../../node_modules/lodash/_mapCacheDelete.js"(e,o){var t=$();o.exports=function(e){var o=t(this,e).delete(e);return this.size-=o?1:0,o}}}),k=t.__commonJS({"../../node_modules/lodash/_mapCacheGet.js"(e,o){var t=$();o.exports=function(e){return t(this,e).get(e)}}}),W=t.__commonJS({"../../node_modules/lodash/_mapCacheHas.js"(e,o){var t=$();o.exports=function(e){return t(this,e).has(e)}}}),O=t.__commonJS({"../../node_modules/lodash/_mapCacheSet.js"(e,o){var t=$();o.exports=function(e,o){var r=t(this,e),a=r.size;return r.set(e,o),this.size+=r.size==a?0:1,this}}}),A=t.__commonJS({"../../node_modules/lodash/_MapCache.js"(e,o){var t=C(),r=P(),a=k(),n=W(),s=O();function l(e){var o=-1,t=null==e?0:e.length;for(this.clear();++o<t;){var r=e[o];this.set(r[0],r[1])}}l.prototype.clear=t,l.prototype.delete=r,l.prototype.get=a,l.prototype.has=n,l.prototype.set=s,o.exports=l}}),J=t.__commonJS({"../../node_modules/lodash/_stackSet.js"(e,t){var r=f(),a=o.require_Map(),n=A();t.exports=function(e,o){var t=this.__data__;if(t instanceof r){var s=t.__data__;if(!a||s.length<199)return s.push([e,o]),this.size=++t.size,this;t=this.__data__=new n(s)}return t.set(e,o),this.size=t.size,this}}}),V=t.__commonJS({"../../node_modules/lodash/_Stack.js"(e,o){var t=f(),r=d(),a=m(),n=v(),s=y(),l=J();function i(e){var o=this.__data__=new t(e);this.size=o.size}i.prototype.clear=r,i.prototype.delete=a,i.prototype.get=n,i.prototype.has=s,i.prototype.set=l,o.exports=i}}),T=t.__commonJS({"../../node_modules/lodash/_defineProperty.js"(e,t){var r=o.require_getNative(),a=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();t.exports=a}}),F=t.__commonJS({"../../node_modules/lodash/_baseAssignValue.js"(e,o){var t=T();o.exports=function(e,o,r){"__proto__"==o&&t?t(e,o,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[o]=r}}}),E=t.__commonJS({"../../node_modules/lodash/_assignMergeValue.js"(e,o){var t=F(),r=s();o.exports=function(e,o,a){(void 0!==a&&!r(e[o],a)||void 0===a&&!(o in e))&&t(e,o,a)}}}),M=t.__commonJS({"../../node_modules/lodash/_createBaseFor.js"(e,o){o.exports=function(e){return function(o,t,r){for(var a=-1,n=Object(o),s=r(o),l=s.length;l--;){var i=s[e?l:++a];if(!1===t(n[i],i,n))break}return o}}}}),N=t.__commonJS({"../../node_modules/lodash/_baseFor.js"(e,o){var t=M()();o.exports=t}}),q=t.__commonJS({"../../node_modules/lodash/_cloneBuffer.js"(e,t){var r=o.require_root(),a="object"==typeof e&&e&&!e.nodeType&&e,n=a&&"object"==typeof t&&t&&!t.nodeType&&t,s=n&&n.exports===a?r.Buffer:void 0,l=s?s.allocUnsafe:void 0;t.exports=function(e,o){if(o)return e.slice();var t=e.length,r=l?l(t):new e.constructor(t);return e.copy(r),r}}}),K=t.__commonJS({"../../node_modules/lodash/_Uint8Array.js"(e,t){var r=o.require_root().Uint8Array;t.exports=r}}),L=t.__commonJS({"../../node_modules/lodash/_cloneArrayBuffer.js"(e,o){var t=K();o.exports=function(e){var o=new e.constructor(e.byteLength);return new t(o).set(new t(e)),o}}}),D=t.__commonJS({"../../node_modules/lodash/_cloneTypedArray.js"(e,o){var t=L();o.exports=function(e,o){var r=o?t(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}}}),z=t.__commonJS({"../../node_modules/lodash/_copyArray.js"(e,o){o.exports=function(e,o){var t=-1,r=e.length;for(o||(o=Array(r));++t<r;)o[t]=e[t];return o}}}),R=t.__commonJS({"../../node_modules/lodash/_baseCreate.js"(e,t){var r=o.require_isObject(),a=Object.create,n=function(){function e(){}return function(o){if(!r(o))return{};if(a)return a(o);e.prototype=o;var t=new e;return e.prototype=void 0,t}}();t.exports=n}}),Y=t.__commonJS({"../../node_modules/lodash/_getPrototype.js"(e,t){var r=o.require_overArg()(Object.getPrototypeOf,Object);t.exports=r}}),B=t.__commonJS({"../../node_modules/lodash/_initCloneObject.js"(e,t){var r=R(),a=Y(),n=o.require_isPrototype();t.exports=function(e){return"function"!=typeof e.constructor||n(e)?{}:r(a(e))}}}),X=t.__commonJS({"../../node_modules/lodash/isArrayLikeObject.js"(e,t){var r=o.require_isArrayLike(),a=o.require_isObjectLike();t.exports=function(e){return a(e)&&r(e)}}}),I=t.__commonJS({"../../node_modules/lodash/isPlainObject.js"(e,t){var r=o.require_baseGetTag(),a=Y(),n=o.require_isObjectLike(),s=Function.prototype,l=Object.prototype,i=s.toString,u=l.hasOwnProperty,c=i.call(Object);t.exports=function(e){if(!n(e)||"[object Object]"!=r(e))return!1;var o=a(e);if(null===o)return!0;var t=u.call(o,"constructor")&&o.constructor;return"function"==typeof t&&t instanceof t&&i.call(t)==c}}}),U=t.__commonJS({"../../node_modules/lodash/_safeGet.js"(e,o){o.exports=function(e,o){if(("constructor"!==o||"function"!=typeof e[o])&&"__proto__"!=o)return e[o]}}}),H=t.__commonJS({"../../node_modules/lodash/_assignValue.js"(e,o){var t=F(),r=s(),a=Object.prototype.hasOwnProperty;o.exports=function(e,o,n){var s=e[o];a.call(e,o)&&r(s,n)&&(void 0!==n||o in e)||t(e,o,n)}}}),G=t.__commonJS({"../../node_modules/lodash/_copyObject.js"(e,o){var t=H(),r=F();o.exports=function(e,o,a,n){var s=!a;a||(a={});for(var l=-1,i=o.length;++l<i;){var u=o[l],c=n?n(a[u],e[u],u,a,e):void 0;void 0===c&&(c=e[u]),s?r(a,u,c):t(a,u,c)}return a}}}),Q=t.__commonJS({"../../node_modules/lodash/_baseTimes.js"(e,o){o.exports=function(e,o){for(var t=-1,r=Array(e);++t<e;)r[t]=o(t);return r}}}),Z=t.__commonJS({"../../node_modules/lodash/_isIndex.js"(e,o){var t=/^(?:0|[1-9]\d*)$/;o.exports=function(e,o){var r=typeof e;return!!(o=null==o?9007199254740991:o)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<o}}}),ee=t.__commonJS({"../../node_modules/lodash/_arrayLikeKeys.js"(e,t){var r=Q(),a=o.require_isArguments(),n=o.require_isArray(),s=o.require_isBuffer(),l=Z(),i=o.require_isTypedArray(),u=Object.prototype.hasOwnProperty;t.exports=function(e,o){var t=n(e),c=!t&&a(e),p=!t&&!c&&s(e),f=!t&&!c&&!p&&i(e),d=t||c||p||f,m=d?r(e.length,String):[],v=m.length;for(var y in e)!o&&!u.call(e,y)||d&&("length"==y||p&&("offset"==y||"parent"==y)||f&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||l(y,v))||m.push(y);return m}}}),oe=t.__commonJS({"../../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}}}),te=t.__commonJS({"../../node_modules/lodash/_baseKeysIn.js"(e,t){var r=o.require_isObject(),a=o.require_isPrototype(),n=oe(),s=Object.prototype.hasOwnProperty;t.exports=function(e){if(!r(e))return n(e);var o=a(e),t=[];for(var l in e)("constructor"!=l||!o&&s.call(e,l))&&t.push(l);return t}}}),re=t.__commonJS({"../../node_modules/lodash/keysIn.js"(e,t){var r=ee(),a=te(),n=o.require_isArrayLike();t.exports=function(e){return n(e)?r(e,!0):a(e)}}}),ae=t.__commonJS({"../../node_modules/lodash/toPlainObject.js"(e,o){var t=G(),r=re();o.exports=function(e){return t(e,r(e))}}}),ne=t.__commonJS({"../../node_modules/lodash/_baseMergeDeep.js"(e,t){var r=E(),a=q(),n=D(),s=z(),l=B(),i=o.require_isArguments(),u=o.require_isArray(),c=X(),p=o.require_isBuffer(),f=o.require_isFunction(),d=o.require_isObject(),m=I(),v=o.require_isTypedArray(),y=U(),h=ae();t.exports=function(e,o,t,b,_,g,w){var S=y(e,t),x=y(o,t),C=w.get(x);if(C)r(e,t,C);else{var j=g?g(S,x,t+"",e,o,w):void 0,$=void 0===j;if($){var P=u(x),k=!P&&p(x),W=!P&&!k&&v(x);j=x,P||k||W?u(S)?j=S:c(S)?j=s(S):k?($=!1,j=a(x,!0)):W?($=!1,j=n(x,!0)):j=[]:m(x)||i(x)?(j=S,i(S)?j=h(S):d(S)&&!f(S)||(j=l(x))):$=!1}$&&(w.set(x,j),_(j,x,b,g,w),w.delete(x)),r(e,t,j)}}}}),se=t.__commonJS({"../../node_modules/lodash/_baseMerge.js"(e,t){var r=V(),a=E(),n=N(),s=ne(),l=o.require_isObject(),i=re(),u=U();t.exports=function e(o,t,c,p,f){o!==t&&n(t,function(n,i){if(f||(f=new r),l(n))s(o,t,i,c,e,p,f);else{var d=p?p(u(o,i),n,i+"",o,t,f):void 0;void 0===d&&(d=n),a(o,i,d)}},i)}}}),le=t.__commonJS({"../../node_modules/lodash/identity.js"(e,o){o.exports=function(e){return e}}}),ie=t.__commonJS({"../../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)}}}),ue=t.__commonJS({"../../node_modules/lodash/_overRest.js"(e,o){var t=ie(),r=Math.max;o.exports=function(e,o,a){return o=r(void 0===o?e.length-1:o,0),function(){for(var n=arguments,s=-1,l=r(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]=a(i),t(e,this,u)}}}}),ce=t.__commonJS({"../../node_modules/lodash/constant.js"(e,o){o.exports=function(e){return function(){return e}}}}),pe=t.__commonJS({"../../node_modules/lodash/_baseSetToString.js"(e,o){var t=ce(),r=T(),a=le(),n=r?function(e,o){return r(e,"toString",{configurable:!0,enumerable:!1,value:t(o),writable:!0})}:a;o.exports=n}}),fe=t.__commonJS({"../../node_modules/lodash/_shortOut.js"(e,o){var t=Date.now;o.exports=function(e){var o=0,r=0;return function(){var a=t(),n=16-(a-r);if(r=a,n>0){if(++o>=800)return arguments[0]}else o=0;return e.apply(void 0,arguments)}}}}),de=t.__commonJS({"../../node_modules/lodash/_setToString.js"(e,o){var t=pe(),r=fe()(t);o.exports=r}}),me=t.__commonJS({"../../node_modules/lodash/_baseRest.js"(e,o){var t=le(),r=ue(),a=de();o.exports=function(e,o){return a(r(e,o,t),e+"")}}}),ve=t.__commonJS({"../../node_modules/lodash/_isIterateeCall.js"(e,t){var r=s(),a=o.require_isArrayLike(),n=Z(),l=o.require_isObject();t.exports=function(e,o,t){if(!l(t))return!1;var s=typeof o;return!!("number"==s?a(t)&&n(o,t.length):"string"==s&&o in t)&&r(t[o],e)}}}),ye=t.__commonJS({"../../node_modules/lodash/_createAssigner.js"(e,o){var t=me(),r=ve();o.exports=function(e){return t(function(o,t){var a=-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&&r(t[0],t[1],l)&&(s=n<3?void 0:s,n=1),o=Object(o);++a<n;){var i=t[a];i&&e(o,i,a,s)}return o})}}}),he=t.__commonJS({"../../node_modules/lodash/mergeWith.js"(e,o){var t=se(),r=ye()(function(e,o,r,a){t(e,o,r,a)});o.exports=r}}),be=t.__commonJS({"../../node_modules/lodash/_baseToPairs.js"(e,t){var r=o.require_arrayMap();t.exports=function(e,o){return r(o,function(o){return[o,e[o]]})}}}),_e=t.__commonJS({"../../node_modules/lodash/_mapToArray.js"(e,o){o.exports=function(e){var o=-1,t=Array(e.size);return e.forEach(function(e,r){t[++o]=[r,e]}),t}}}),ge=t.__commonJS({"../../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}}}),we=t.__commonJS({"../../node_modules/lodash/_createToPairs.js"(e,t){var r=be(),a=o.require_getTag(),n=_e(),s=ge();t.exports=function(e){return function(o){var t=a(o);return"[object Map]"==t?n(o):"[object Set]"==t?s(o):r(o,e(o))}}}}),Se=t.__commonJS({"../../node_modules/lodash/keys.js"(e,t){var r=ee(),a=o.require_baseKeys(),n=o.require_isArrayLike();t.exports=function(e){return n(e)?r(e):a(e)}}}),xe=t.__commonJS({"../../node_modules/lodash/toPairs.js"(e,o){var t=we()(Se());o.exports=t}}),Ce=t.__commonJS({"../../node_modules/lodash/entries.js"(e,o){o.exports=xe()}}),je=t.__commonJS({"../../node_modules/lodash/_arrayEach.js"(e,o){o.exports=function(e,o){for(var t=-1,r=null==e?0:e.length;++t<r&&!1!==o(e[t],t,e););return e}}}),$e=t.__commonJS({"../../node_modules/lodash/_baseAssign.js"(e,o){var t=G(),r=Se();o.exports=function(e,o){return e&&t(o,r(o),e)}}}),Pe=t.__commonJS({"../../node_modules/lodash/_baseAssignIn.js"(e,o){var t=G(),r=re();o.exports=function(e,o){return e&&t(o,r(o),e)}}}),ke=t.__commonJS({"../../node_modules/lodash/_arrayFilter.js"(e,o){o.exports=function(e,o){for(var t=-1,r=null==e?0:e.length,a=0,n=[];++t<r;){var s=e[t];o(s,t,e)&&(n[a++]=s)}return n}}}),We=t.__commonJS({"../../node_modules/lodash/stubArray.js"(e,o){o.exports=function(){return[]}}}),Oe=t.__commonJS({"../../node_modules/lodash/_getSymbols.js"(e,o){var t=ke(),r=We(),a=Object.prototype.propertyIsEnumerable,n=Object.getOwnPropertySymbols,s=n?function(e){return null==e?[]:(e=Object(e),t(n(e),function(o){return a.call(e,o)}))}:r;o.exports=s}}),Ae=t.__commonJS({"../../node_modules/lodash/_copySymbols.js"(e,o){var t=G(),r=Oe();o.exports=function(e,o){return t(e,r(e),o)}}}),Je=t.__commonJS({"../../node_modules/lodash/_arrayPush.js"(e,o){o.exports=function(e,o){for(var t=-1,r=o.length,a=e.length;++t<r;)e[a+t]=o[t];return e}}}),Ve=t.__commonJS({"../../node_modules/lodash/_getSymbolsIn.js"(e,o){var t=Je(),r=Y(),a=Oe(),n=We(),s=Object.getOwnPropertySymbols?function(e){for(var o=[];e;)t(o,a(e)),e=r(e);return o}:n;o.exports=s}}),Te=t.__commonJS({"../../node_modules/lodash/_copySymbolsIn.js"(e,o){var t=G(),r=Ve();o.exports=function(e,o){return t(e,r(e),o)}}}),Fe=t.__commonJS({"../../node_modules/lodash/_baseGetAllKeys.js"(e,t){var r=Je(),a=o.require_isArray();t.exports=function(e,o,t){var n=o(e);return a(e)?n:r(n,t(e))}}}),Ee=t.__commonJS({"../../node_modules/lodash/_getAllKeys.js"(e,o){var t=Fe(),r=Oe(),a=Se();o.exports=function(e){return t(e,a,r)}}}),Me=t.__commonJS({"../../node_modules/lodash/_getAllKeysIn.js"(e,o){var t=Fe(),r=Ve(),a=re();o.exports=function(e){return t(e,a,r)}}}),Ne=t.__commonJS({"../../node_modules/lodash/_initCloneArray.js"(e,o){var t=Object.prototype.hasOwnProperty;o.exports=function(e){var o=e.length,r=new e.constructor(o);return o&&"string"==typeof e[0]&&t.call(e,"index")&&(r.index=e.index,r.input=e.input),r}}}),qe=t.__commonJS({"../../node_modules/lodash/_cloneDataView.js"(e,o){var t=L();o.exports=function(e,o){var r=o?t(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}}}),Ke=t.__commonJS({"../../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}}}),Le=t.__commonJS({"../../node_modules/lodash/_cloneSymbol.js"(e,t){var r=o.require_Symbol(),a=r?r.prototype:void 0,n=a?a.valueOf:void 0;t.exports=function(e){return n?Object(n.call(e)):{}}}}),De=t.__commonJS({"../../node_modules/lodash/_initCloneByTag.js"(e,o){var t=L(),r=qe(),a=Ke(),n=Le(),s=D();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 r(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 a(e);case"[object Symbol]":return n(e)}}}}),ze=t.__commonJS({"../../node_modules/lodash/_baseIsMap.js"(e,t){var r=o.require_getTag(),a=o.require_isObjectLike();t.exports=function(e){return a(e)&&"[object Map]"==r(e)}}}),Re=t.__commonJS({"../../node_modules/lodash/isMap.js"(e,t){var r=ze(),a=o.require_baseUnary(),n=o.require_nodeUtil(),s=n&&n.isMap,l=s?a(s):r;t.exports=l}}),Ye=t.__commonJS({"../../node_modules/lodash/_baseIsSet.js"(e,t){var r=o.require_getTag(),a=o.require_isObjectLike();t.exports=function(e){return a(e)&&"[object Set]"==r(e)}}}),Be=t.__commonJS({"../../node_modules/lodash/isSet.js"(e,t){var r=Ye(),a=o.require_baseUnary(),n=o.require_nodeUtil(),s=n&&n.isSet,l=s?a(s):r;t.exports=l}}),Xe=t.__commonJS({"../../node_modules/lodash/_baseClone.js"(e,t){var r=V(),a=je(),n=H(),s=$e(),l=Pe(),i=q(),u=z(),c=Ae(),p=Te(),f=Ee(),d=Me(),m=o.require_getTag(),v=Ne(),y=De(),h=B(),b=o.require_isArray(),_=o.require_isBuffer(),g=Re(),w=o.require_isObject(),S=Be(),x=Se(),C=re(),j="[object Arguments]",$="[object Function]",P="[object Object]",k={};k[j]=k["[object Array]"]=k["[object ArrayBuffer]"]=k["[object DataView]"]=k["[object Boolean]"]=k["[object Date]"]=k["[object Float32Array]"]=k["[object Float64Array]"]=k["[object Int8Array]"]=k["[object Int16Array]"]=k["[object Int32Array]"]=k["[object Map]"]=k["[object Number]"]=k[P]=k["[object RegExp]"]=k["[object Set]"]=k["[object String]"]=k["[object Symbol]"]=k["[object Uint8Array]"]=k["[object Uint8ClampedArray]"]=k["[object Uint16Array]"]=k["[object Uint32Array]"]=!0,k["[object Error]"]=k[$]=k["[object WeakMap]"]=!1,t.exports=function e(o,t,W,O,A,J){var V,T=1&t,F=2&t,E=4&t;if(W&&(V=A?W(o,O,A,J):W(o)),void 0!==V)return V;if(!w(o))return o;var M=b(o);if(M){if(V=v(o),!T)return u(o,V)}else{var N=m(o),q=N==$||"[object GeneratorFunction]"==N;if(_(o))return i(o,T);if(N==P||N==j||q&&!A){if(V=F||q?{}:h(o),!T)return F?p(o,l(V,o)):c(o,s(V,o))}else{if(!k[N])return A?o:{};V=y(o,N,T)}}J||(J=new r);var K=J.get(o);if(K)return K;J.set(o,V),S(o)?o.forEach(function(r){V.add(e(r,t,W,r,o,J))}):g(o)&&o.forEach(function(r,a){V.set(a,e(r,t,W,a,o,J))});var L=M?void 0:(E?F?d:f:F?C:x)(o);return a(L||o,function(r,a){L&&(r=o[a=r]),n(V,a,e(r,t,W,a,o,J))}),V}}}),Ie=t.__commonJS({"../../node_modules/lodash/cloneDeep.js"(e,o){var t=Xe();o.exports=function(e){return t(e,5)}}}),Ue=t.__toESM(o.require_isFunction(),1),He=t.__toESM(a(),1),Ge=t.__toESM(he(),1);/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */function Qe({variantKey:e,variantValue:o,layer:t,subComponentName:r,stateKey:a,stateValue:n}){return r?a&&n?`${r}/${e}/${o}/${a}/${n}/${t}`:`${r}/${e}/${o}/${t}`:a&&n?`${e}/${o}/${a}/${n}/${t}`:`${e}/${o}/${t}`}var Ze=e=>e.reduce((e,o)=>e.flatMap(e=>o.map(o=>[e,o].flat())));function eo(o,t){const r=o.variants?.[t];if(r)return{type:"no-sub-components",variant:r};const a=uo(o);if(!a)return{type:"no-variants"};return{type:"has-sub-components",variants:e.mapValues(a,e=>e.variants[t])}}function oo(e,o,t){const r=e[o]?.defaults?.[t];if(void 0===r)throw new Error(`The variant default for "${t}" is not defined for the component "${o}"`);return r}var to=t.__toESM(Ce(),1);function ro(e,o,t){const r=eo(e,o);switch(r.type){case"no-variants":return null;case"no-sub-components":return r.variant;case"has-sub-components":if(!t)throw new Error("subComponentName argument name is required for configs with subcomponents");return r.variants[t]}}var ao=e=>!!e?.layers,no=e=>!!e?.componentStates;function so(e,o,t){const r=ro(e,o,t);return r&&no(r)?r?.componentStates??null:null}var lo=["rest"];var io=t.__toESM(Ce(),1);function uo(e){return e.subComponents?0===Object.keys(e.subComponents).length?null:e.subComponents:null}var co=t.__toESM(Ie(),1);function po(e,o,t,r,a){const n=e[t].variables[o];if(!n)throw new Error(`No layer variables found for ${o}.`);const s=n[r];if(!s)throw new Error(`No property variables found for ${r}.`);const l=s[a];if(!l)throw new Error(`No pseudoState variables found for ${a}.`);return l}function fo(e,o,t,r,a,n){const s=(0,co.default)(e),l=po(s,o,t,r,a);return void 0!==n.type&&(l.type=n.type),void 0!==n.value&&(l.value=n.value),s}var mo={rest:"",hover:":hover:not(:has(:disabled))",pressed:":active:not(: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:":has(:disabled)","invalid&hover":':has(input[aria-invalid="true"]):hover:not(:has(:disabled))',"invalid&pressed":':has(input[aria-invalid="true"]):active:not(:has(:disabled))'},vo={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 yo(e,o){const t=e.defaults[o],r=e.typeOfFixture;let a=0;return e.values.forEach((e,o)=>{e.includes(t)&&(a=o)}),r[a]}function ho({componentName:e,variantKey:o,variantValue:t,layer:r,layerOptionalPseudoSelector:a,subComponentName:n,stateKey:s,stateValue:l}){let i="";return i=n?`uds-${(0,He.default)(e)}-${(0,He.default)(n)}-${(0,He.default)(o)}`:`uds-${(0,He.default)(e)}-${(0,He.default)(o)}`,t&&(i=`${i}-${(0,He.default)(t)}`),s&&l&&(i=`${i}-${(0,He.default)(s)}-${(0,He.default)(l)}`),i=`${i}-${(0,He.default)(r)}`,a&&(i=`${i}${a}`),i.replaceAll(/\s+/g,"-")}function bo({componentName:e,variantKey:o,variantValue:t,layer:r,layerOptionalPseudoSelector:a,subComponentName:n,stateKey:s,stateValue:l,schema:i,propertyKey:u,originalPropertyDefinition:c,theme:p,currentStyles:f,previewOptions:d}){const m=Qe({variantKey:o,variantValue:t,layer:r,subComponentName:n,stateKey:s,stateValue:l});let v=ho({componentName:e,variantKey:o,variantValue:t,layer:r,subComponentName:n,stateKey:s,stateValue:l});const y=i.variables[m][u];if(!y)throw"size/md/root"===m&&"spacingHorizontal"===u&&console.log({componentName:e,schemaKey:m,propertyKey:u},i.variables),new Error(`Prop definition (${e} - ${m} - ${u}) not found, this is not expected, please report the bug to the UDS team`);const h={};for(const m in y){const b=mo[m]??"";let _="";if("root"===r)if(s&&l){const a=ho({componentName:e,variantKey:o,variantValue:t,layer:r,subComponentName:n});v=ho({componentName:e,variantKey:o,layer:r,subComponentName:n,stateKey:s,stateValue:l}),_=`.${a}${b}.${v}`}else _=`.${v}${b}`;else{const i=ho({componentName:e,variantKey:o,variantValue:t,layer:"root",subComponentName:n});if(s&&l){const u=ho({componentName:e,variantKey:o,layer:"root",subComponentName:n,stateKey:s,stateValue:l});v=ho({componentName:e,variantKey:o,variantValue:t,layer:r,layerOptionalPseudoSelector:a,subComponentName:n}),_=`.${i}${b}.${u} .${v}`}else _=`.${i}${b} .${v}`}const g=(e,o,t,r)=>{const{value:a,type:n}=e,s=Mo[o];let l;if(Mo[o].customValueRenderer)l=Mo[o].customValueRenderer(e,i,t);else{l=t(Mo[o].twThemePath(n,String(a)))}if(s.concatenate&&r){return`${r}${s.concatenationDelimiter||", "}${l}`}return l},{cssProperties:w,extendedProperties:S}=Mo[c.name],x={},C=(0,Ue.default)(S),j=C?S({componentName:e,subComponentName:n,layer:r,propertyKey:u}):S;if(j&&j.length){if(!C&&("string"==typeof w||Array.isArray(w)&&w.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 j){const o=Mo[e].cssProperties;if("string"==typeof o){const t=f?.[_]?.[o];x[o]=g(y[m],e,p,t)}else if(Array.isArray(o))for(const t of o){const o=f?.[_]?.[t];x[t]=g(y[m],e,p,o)}}}else if("string"==typeof w){const e=f?.[_]?.[w];x[w]=g(y[m],c.name,p,e)}else if(Array.isArray(w))for(const e of w){const o=f?.[_]?.[e];x[e]=g(y[m],c.name,p,o)}if(h[_]||(h[_]={...x,...h[_]}),d?.generatePseudoStateClassModifier){const e=vo[m]??"";e.length>0&&"root"!==m&&(h[`.${e}${_}`.replace(b,"")]={...x,...h[`.${e}${_}`.replace(b,"")]})}}return h}var _o=["none","custom"],go=["none","up","down"],wo={hover:{backgroundColor:{value:"none",options:_o},borderColor:{value:"none",options:_o},color:{value:"none",options:_o},scale:{value:"up",options:go}},pressed:{backgroundColor:{value:"none",options:_o},borderColor:{value:"none",options:_o},color:{value:"none",options:_o},scale:{value:"down",options:go}}},So={hover:{backgroundColor:{value:"none",options:_o},borderColor:{value:"none",options:_o},color:{value:"none",options:_o},scale:{value:"up",options:go}},pressed:{backgroundColor:{value:"none",options:_o},borderColor:{value:"none",options:_o},color:{value:"none",options:_o},scale:{value:"down",options:go}}},xo={hover:{backgroundColor:{value:"none",options:_o},borderColor:{value:"none",options:_o},color:{value:"none",options:_o},scale:{value:"up",options:go}},pressed:{backgroundColor:{value:"none",options:_o},borderColor:{value:"none",options:_o},color:{value:"none",options:_o},scale:{value:"down",options:go}}},Co={dropShadow:{value:"none",config:null},insetShadow:{value:"none",config:null}};function jo(e){return{borderWidth:"none",borderRadius:"full",borderColor:{type:"palette",value:"transparent"},backgroundColor:{type:"palette",value:e},color:{type:"palette",value:"on-color"},scale:"none",...Co}}function $o(e){return{borderWidth:"thin",borderRadius:"full",backgroundColor:{type:"palette",value:"transparent"},borderColor:{type:"palette",value:e},color:{type:"palette",value:e},scale:"none",...Co}}function Po(e){return{borderWidth:"none",borderRadius:"full",backgroundColor:{type:"palette",value:"transparent"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:e},scale:"none",...Co}}var ko={fill:jo,outline:$o,ghost:Po},Wo={defaults:{palette:"accent",variant:"primary",size:"md"},size:{sm:{spacingHorizontal:"4",spacingVertical:"1",gap:"2",iconSize:"sm",textVariant:"label1"},md:{spacingHorizontal:"6",spacingVertical:"3",gap:"2",iconSize:"sm",textVariant:"label1"},lg:{spacingHorizontal:"7",spacingVertical:"4",gap:"2",iconSize:"md",textVariant:"headline1"}},palette:{info:{primary:{kind:"fill",effect:wo,base:jo("info"),state:{hover:{scale:"up",backgroundColor:{type:"spectrum",value:"blue-10"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"on-color"},...Co},pressed:{scale:"down",backgroundColor:{type:"spectrum",value:"blue-11"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"on-color"},...Co}}},secondary:{kind:"outline",effect:So,base:$o("info"),state:{hover:{scale:"up",backgroundColor:{type:"palette",value:"transparent"},borderColor:{type:"spectrum",value:"blue-10"},color:{type:"spectrum",value:"blue-10"},...Co},pressed:{scale:"down",backgroundColor:{type:"palette",value:"transparent"},borderColor:{type:"spectrum",value:"blue-11"},color:{type:"spectrum",value:"blue-11"},...Co}}},tertiary:{kind:"ghost",effect:xo,base:Po("info"),state:{hover:{scale:"up",backgroundColor:{type:"spectrum",value:"blue-2"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"info"},...Co},pressed:{scale:"down",backgroundColor:{type:"spectrum",value:"blue-4"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"info"},...Co}}}},accent:{primary:{kind:"fill",effect:wo,base:jo("accent"),state:{hover:{scale:"up",backgroundColor:{type:"spectrum",value:"carbon-10"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"on-color"},...Co},pressed:{scale:"down",backgroundColor:{type:"spectrum",value:"carbon-11"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"on-color"},...Co}}},secondary:{kind:"outline",effect:So,base:$o("accent"),state:{hover:{scale:"up",backgroundColor:{type:"palette",value:"transparent"},borderColor:{type:"spectrum",value:"carbon-10"},color:{type:"spectrum",value:"carbon-10"},...Co},pressed:{scale:"down",backgroundColor:{type:"palette",value:"transparent"},borderColor:{type:"spectrum",value:"carbon-11"},color:{type:"spectrum",value:"carbon-11"},...Co}}},tertiary:{kind:"ghost",effect:xo,base:Po("accent"),state:{hover:{scale:"up",backgroundColor:{type:"spectrum",value:"carbon-2"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"accent"},...Co},pressed:{scale:"down",backgroundColor:{type:"spectrum",value:"carbon-4"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"accent"},...Co}}}},brand:{primary:{kind:"fill",effect:wo,base:jo("brand"),state:{hover:{scale:"up",backgroundColor:{type:"spectrum",value:"purple-10"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"on-color"},...Co},pressed:{scale:"down",backgroundColor:{type:"spectrum",value:"purple-11"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"on-color"},...Co}}},secondary:{kind:"outline",effect:So,base:$o("brand"),state:{hover:{scale:"up",backgroundColor:{type:"palette",value:"transparent"},borderColor:{type:"spectrum",value:"purple-10"},color:{type:"spectrum",value:"purple-10"},...Co},pressed:{scale:"down",backgroundColor:{type:"palette",value:"transparent"},borderColor:{type:"spectrum",value:"purple-11"},color:{type:"spectrum",value:"purple-11"},...Co}}},tertiary:{kind:"ghost",effect:xo,base:Po("brand"),state:{hover:{scale:"up",backgroundColor:{type:"spectrum",value:"purple-2"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"brand"},...Co},pressed:{scale:"down",backgroundColor:{type:"spectrum",value:"purple-4"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"brand"},...Co}}}},alert:{primary:{kind:"fill",effect:wo,base:jo("alert"),state:{hover:{scale:"up",backgroundColor:{type:"spectrum",value:"red-10"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"on-color"},...Co},pressed:{scale:"down",backgroundColor:{type:"spectrum",value:"red-11"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"on-color"},...Co}}},secondary:{kind:"outline",effect:So,base:$o("alert"),state:{hover:{scale:"up",backgroundColor:{type:"palette",value:"transparent"},borderColor:{type:"spectrum",value:"red-10"},color:{type:"spectrum",value:"red-10"},...Co},pressed:{scale:"down",backgroundColor:{type:"palette",value:"transparent"},borderColor:{type:"spectrum",value:"red-11"},color:{type:"spectrum",value:"red-11"},...Co}}},tertiary:{kind:"ghost",effect:xo,base:Po("alert"),state:{hover:{scale:"up",backgroundColor:{type:"spectrum",value:"red-2"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"alert"},...Co},pressed:{scale:"down",backgroundColor:{type:"spectrum",value:"red-4"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"alert"},...Co}}}},positive:{primary:{kind:"fill",effect:wo,base:jo("positive"),state:{hover:{scale:"up",backgroundColor:{type:"spectrum",value:"green-10"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"on-color"},...Co},pressed:{scale:"down",backgroundColor:{type:"spectrum",value:"green-11"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"on-color"},...Co}}},secondary:{kind:"outline",effect:So,base:$o("positive"),state:{hover:{scale:"up",backgroundColor:{type:"palette",value:"transparent"},borderColor:{type:"spectrum",value:"green-10"},color:{type:"spectrum",value:"green-10"},...Co},pressed:{scale:"down",backgroundColor:{type:"palette",value:"transparent"},borderColor:{type:"spectrum",value:"green-11"},color:{type:"spectrum",value:"green-11"},...Co}}},tertiary:{kind:"ghost",effect:xo,base:Po("positive"),state:{hover:{scale:"up",backgroundColor:{type:"spectrum",value:"green-2"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"positive"},...Co},pressed:{scale:"down",backgroundColor:{type:"spectrum",value:"green-4"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"positive"},...Co}}}},warning:{primary:{kind:"fill",effect:wo,base:jo("warning"),state:{hover:{scale:"up",backgroundColor:{type:"spectrum",value:"orange-10"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"on-color"},...Co},pressed:{scale:"down",backgroundColor:{type:"spectrum",value:"orange-11"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"on-color"},...Co}}},secondary:{kind:"outline",effect:So,base:$o("warning"),state:{hover:{scale:"up",backgroundColor:{type:"palette",value:"transparent"},borderColor:{type:"spectrum",value:"orange-10"},color:{type:"spectrum",value:"orange-10"},...Co},pressed:{scale:"down",backgroundColor:{type:"palette",value:"transparent"},borderColor:{type:"spectrum",value:"orange-11"},color:{type:"spectrum",value:"orange-11"},...Co}}},tertiary:{kind:"ghost",effect:xo,base:Po("warning"),state:{hover:{scale:"up",backgroundColor:{type:"spectrum",value:"orange-2"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"warning"},...Co},pressed:{scale:"down",backgroundColor:{type:"spectrum",value:"orange-4"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"warning"},...Co}}}}}},Oo="https://s.yimg.com/bw/fonts",Ao=["Helvetica Neue","Helvetica","Arial","sans-serif"],Jo=["Georgia","Times","Times New Roman","serif"],Vo={"centra-no2":{fallback:Ao,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('${Oo}/centra-no2-hairline.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"50",src:`url('${Oo}/centra-no2-hairline-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"100",src:`url('${Oo}/centra-no2-thin.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"100",src:`url('${Oo}/centra-no2-thin-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"300",src:`url('${Oo}/centra-no2-light.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"300",src:`url('${Oo}/centra-no2-light-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"400",src:`url('${Oo}/centra-no2-book.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"400",src:`url('${Oo}/centra-no2-book-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"500",src:`url('${Oo}/centra-no2-medium.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"500",src:`url('${Oo}/centra-no2-medium-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"700",src:`url('${Oo}/centra-no2-bold.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"700",src:`url('${Oo}/centra-no2-bold-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"800",src:`url('${Oo}/centra-no2-extrabold.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"800",src:`url('${Oo}/centra-no2-extrabold-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"900",src:`url('${Oo}/centra-no2-black.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"900",src:`url('${Oo}/centra-no2-black-italic.woff2') format('woff2')`}]},inter:{fallback:Ao,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('${Oo}/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('${Oo}/roboto-mono-100.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"100",src:`url('${Oo}/roboto-mono-100-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"300",src:`url('${Oo}/roboto-mono-300.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"300",src:`url('${Oo}/roboto-mono-300-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"400",src:`url('${Oo}/roboto-mono-400.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"400",src:`url('${Oo}/roboto-mono-400-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"500",src:`url('${Oo}/roboto-mono-500.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"500",src:`url('${Oo}/roboto-mono-500-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"700",src:`url('${Oo}/roboto-mono-700.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"700",src:`url('${Oo}/roboto-mono-700-italic.woff2') format('woff2')`}]},"yahoo-sans":{fallback:Ao,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('${Oo}/yahoo-sans-vf.woff2') format('woff2')`}]},"yahoo-sans-cr4":{fallback:Ao,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('${Oo}/yahoo-sans-cr4-vf.woff2') format('woff2')`}]},"yahoo-product-sans":{fallback:Ao,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('${Oo}/yahoo-product-sans-vf.woff2') format('woff2-variations')`}]},"yahoo-product-sans-extended":{fallback:Ao,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('${Oo}/YahooPd_Eval202412-v1.1.0.woff2') format("woff2 supports variations"), url('${Oo}/YahooPd_Eval202412-v1.1.0.woff2') format('woff2-variations')`}]},"yahoo-sans-condensed":{fallback:Ao,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('${Oo}/yahoo-sans-condensed-vf.woff2') format('woff2')`}]},"yahoo-serif-display":{fallback:Jo,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('${Oo}/yahoo-serif-display-light.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"400",src:`url('${Oo}/yahoo-serif-display-regular.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"700",src:`url('${Oo}/yahoo-serif-display-bold.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"800",src:`url('${Oo}/yahoo-serif-display-extrabold.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"900",src:`url('${Oo}/yahoo-serif-display-black.woff2') format('woff2')`}]},"yahoo-serif-text":{fallback:Jo,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('${Oo}/yahoo-serif-text-regular.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"400",src:`url('${Oo}/yahoo-serif-text-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"700",src:`url('${Oo}/yahoo-serif-text-bold.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"700",src:`url('${Oo}/yahoo-serif-text-bold-italic.woff2') format('woff2')`}]}};var To={black:"0 0 0",white:"255 255 255"};function Fo({preset:e,prefix:o,shadowType:t}){const a=`--uds-${t}-shadow-`,n="palette"===e.color?.type,s="always"===e.color?.type;let l=`var(--uds-${n?"shadow":"spectrum"}-color-${e?.color?.value})`;s&&(l=To[e.color.value]);const i=`var(${a}${o?`${o}-`:""}color, ${l})`;return`${"inset"===t?"inset ":""}${[`${r.shadowOffsetMap[e.offsetX]}px`,`${r.shadowOffsetMap[e.offsetY]}px`,`${r.spacingMap[e.blur]}px`,`${r.shadowSpreadRadiusMap[e.spread]}px`].map(e=>e).join(" ")} ${`rgb(${i} / var(${a}${o?`${o}-`:""}opacity, ${Number(e.opacity)/100}))`}`}var Eo=({componentName:e,layer:o,propertyKey:t})=>!("chip"!==e||"root"!==o||!["borderColor","borderWidth"].includes(t))||!("input"!==e||"inputWrapper"!==o||!["borderColor","borderWidth"].includes(t)),Mo={...{backgroundColor:{name:"backgroundColor",cssProperties:"background-color",twThemePath:(e,o)=>{if("spectrumColors"===e){const[e,t]=o.split("-");return`colors.${e}.${t}`}return"backgroundPaletteColors"===e||"alwaysPaletteAliases"===e?`backgroundColor.${o}`:"Error"},possibleFixtures:["backgroundPaletteColors","spectrumColors","alwaysPaletteAliases"]},borderWidth:{name:"borderWidth",cssProperties:"border-width",twThemePath:(e,o)=>"borderWidths"===e?`borderWidth[${o}]`:`spacing[${o}]`,possibleFixtures:["borderWidths","spacingAliases"],extendedProperties:e=>Eo(e)&&["outlineWidth","insetOutlineOffset","solidOutline"]},borderRadius:{name:"borderRadius",cssProperties:"border-radius",twThemePath:(e,o)=>`borderRadius.${o}`,possibleFixtures:["borderRadii"]},borderColor:{name:"borderColor",cssProperties:"border-color",twThemePath:(e,o)=>{if("alwaysPaletteAliases"===e||"linePaletteColors"===e)return`borderColor.${o}`;if("spectrumColors"===e){const[e,t]=o.split("-");return`borderColor.${e}.${t}`}return"Error"},possibleFixtures:["alwaysPaletteAliases","spectrumColors","linePaletteColors"],extendedProperties:e=>Eo(e)&&["outlineColor"]},fontFamily:{name:"fontFamily",cssProperties:"font-family",twThemePath:(e,o)=>`typography.fontFamily.${o}`,possibleFixtures:["textVariants"]},fontSize:{name:"fontSize",cssProperties:"font-size",twThemePath:(e,o)=>`typography.fontSize.${o}`,possibleFixtures:["textVariants"]},fontVariationSettings:{name:"fontVariationSettings",cssProperties:"font-variation-settings",twThemePath:()=>"",possibleFixtures:["textVariants"],customValueRenderer:e=>{const{value:o}=e;return`"wght" var(--uds-font-weight-${o}), "slnt" var(--uds-font-slant-${o}), "wdth" var(--uds-font-width-${o});`}},lineHeight:{name:"lineHeight",cssProperties:"line-height",twThemePath:(e,o)=>`typography.lineHeight.${o}`,possibleFixtures:["textVariants"]},textTransform:{name:"textTransform",cssProperties:"text-transform",twThemePath:(e,o)=>`typography.textTransform.${o}`,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:{name:"color",cssProperties:"color",twThemePath:(e,o)=>{if("alwaysPaletteAliases"===e||"foregroundPaletteColors"===e)return`textColor.${o}`;if("spectrumColors"===e){const[e,t]=o.split("-");return`textColor.${e}.${t}`}return"Error"},possibleFixtures:["alwaysPaletteAliases","spectrumColors","foregroundPaletteColors"]},fontWeight:{name:"fontWeight",cssProperties:"font-weight",twThemePath:(e,o)=>`typography.fontWeight.${o}`,possibleFixtures:["textVariants"]},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"]},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)=>Fo({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)=>Fo({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"]}},...{outlineWidth:{name:"outlineWidth",cssProperties:"outline-width",twThemePath:(e,o)=>"borderWidths"===e?`borderWidth[${o}]`:`spacing[${o}]`,possibleFixtures:["borderWidths","spacingAliases"]},outlineColor:{name:"outlineColor",cssProperties:"outline-color",twThemePath:(e,o)=>{if("alwaysPaletteAliases"===e||"linePaletteColors"===e)return`borderColor.${o}`;if("spectrumColors"===e){const[e,t]=o.split("-");return`borderColor.${e}.${t}`}return"Error"},possibleFixtures:["alwaysPaletteAliases","spectrumColors","linePaletteColors"]},insetOutlineOffset:{name:"insetOutlineOffset",cssProperties:"outline-offset",twThemePath:()=>"",customValueRenderer:({value:e,type:o},t,r)=>`calc(-1 * ${r("borderWidths"===o?`borderWidth[${e}]`:`spacing[${e}]`)})`,possibleFixtures:["borderWidths","spacingAliases"]},solidOutline:{name:"solidOutline",cssProperties:"outline-style",twThemePath:()=>"",customValueRenderer:()=>"solid",possibleFixtures:[]}}};exports.DEFAULT_COLOR_MODE="light",exports.DEFAULT_COLOR_MODE_FOR_APP="system",exports.DEFAULT_HIGH_CONTRAST_MODE=!1,exports.DEFAULT_REGION_MODE="🇺🇸 US",exports.DEFAULT_SCALE_MODE="large",exports.DEFAULT_SCALE_MODE_FOR_APP="system",exports.FONT_DECLARATIONS_MAP=Vo,exports.alwaysPalette={white:"#ffffff",black:"#000000",transparent:"transparent",current:"currentColor"},exports.button=Wo,exports.cartesianProduct=Ze,exports.coalesceConfigVariant=eo,exports.configurableProperties=Mo,exports.createComponentStateConfig=function(e){return e},exports.createComponentStates=function(e){return e},exports.createConfigurableProperty=function(e){return e},exports.createLayerConfig=function(e){return e},exports.createSubComponentConfig=function(e){return e},exports.createVariantConfig=function(e){return e},exports.createVariantConfigWithComponentStates=function(e){return e},exports.createVariantConfigWithProperties=function(e){return e},exports.findFixtureType=yo,exports.fontWeightMap={thin:"100",extralight:"200",light:"300",regular:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},exports.fromEntries=function(e){return Object.fromEntries(e)},exports.generateClassName=ho,exports.generateDeclaration=bo,exports.generateKeyFromFlatConfigPath=function(e){let o=e;return o=o.replaceAll(".","/"),["root/","variables/","variant/","/value"].forEach(e=>{o=o.replaceAll(e,"")}),o},exports.generateSchemaKey=Qe,exports.generateStyles=function(e,o,t,r){function a(e,o){return(0,Ge.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(i.componentStates){const u=i.componentStates;for(const i in u){const c=u[i];for(const u of c.options)for(const p in c.layers){const f=c.layers[p];for(const c in f.properties){const d=f.properties[c];s=a(s,bo({componentName:n,variantKey:l,variantValue:e,stateKey:i,stateValue:u,layer:p,layerOptionalPseudoSelector:f.pseudoSelector,propertyKey:c,originalPropertyDefinition:d,theme:t,schema:o,currentStyles:s,previewOptions:r}))}}}}else for(const u in i.layers){const c=i.layers[u];for(const i in c.properties){const p=c.properties[i];s=a(s,bo({componentName:n,variantKey:l,variantValue:e,layer:u,layerOptionalPseudoSelector:c.pseudoSelector,propertyKey:i,originalPropertyDefinition:p,theme:t,schema:o,currentStyles:s,previewOptions:r}))}}}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(u.componentStates){const c=u.componentStates;for(const u in c){const p=c[u];for(const c of p.options)for(const f in p.layers){const d=p.layers[f];for(const p in d.properties){const m=d.properties[p];s=a(s,bo({componentName:n,variantKey:i,variantValue:l,stateKey:u,stateValue:c,subComponentName:e,layer:f,layerOptionalPseudoSelector:d.pseudoSelector,propertyKey:p,originalPropertyDefinition:m,theme:t,schema:o,currentStyles:s,previewOptions:r}))}}}}else for(const c in u.layers){const p=u.layers[c];for(const u in p.properties){const f=p.properties[u];s=a(s,bo({componentName:n,subComponentName:e,variantKey:i,variantValue:l,layer:c,layerOptionalPseudoSelector:p.pseudoSelector,propertyKey:u,originalPropertyDefinition:f,theme:t,schema:o,currentStyles:s,previewOptions:r}))}}}}return s},exports.getConfigDefaultValue=oo,exports.getConfigPseudoStateVariables=po,exports.getConfigPseudoStateVariablesWithSetter=function(e,o,t,r,a){return[po(e,o,t,r,a),n=>fo(e,o,t,r,a,n)]},exports.getConfigSubcomponents=uo,exports.getConfigVariantComponentStates=so,exports.getConfigVariantComponentStatesMatrix=function(e,o,t){const r=so(e,o,t);return r?Ze((0,to.default)(r).map(([e,o])=>o.options.map(o=>({[e]:o})))).map(e=>Array.isArray(e)?e.reduce((e,o)=>({...e,...o}),{}):e):null},exports.getConfigVariantProperties=function(o){if(!o||!ao(o))return null;const t=e.mapValues(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},exports.getConfigVariantPseudoStates=function(e,o,t,r){const a=ro(e,o,r);return a?[...ao(a)?Object.entries(a?.layers??{}):[],...no(a)&&t?Object.entries(a.componentStates[t].layers??{}):[]].flatMap(([e,o])=>Object.entries(o.properties).map(([o,t])=>[e,o,t])).flatMap(([e,o,t])=>[...lo,...t.pseudoStates??[]].map(r=>[e,o,t,r])).reduce((e,[o,t,r,a])=>{e[a]=e[a]??[];const n=[o,t,r];return e[a].push(n),e},{}):null},exports.getConfigVariants=function(e,o="variant"){const t=eo(e,o);if("no-variants"===t.type)return{type:"no-variants",description:"No variants"};if("no-sub-components"===t.type){if(uo(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 r=(0,io.default)(t.variants).reduce((e,[o,t])=>{for(const r of t.options)e[r]??=[],e[r].includes(o)||e[r].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(r),variantToSubcomponentNames:r}},exports.getDefaultButtonBaseMap=ko,exports.getShadowLayerValue=Fo,exports.getShadowPresetValues=function({config:o,shadowType:t}){const r=o?.shadow?.[t];if(!r)return{};const a={};return e.entries(r).forEach(([e,o])=>{if("none"===e)return void(a[`--uds-${t}-shadow-${e}`]="0 0 transparent");const r=o.map((e,o)=>Fo({preset:e,prefix:o>0?`${o+1}`:void 0,shadowType:t}));a[`--uds-${t}-shadow-${e}`]=`${r.join(", ")}`}),a},exports.isConfigDefaultValue=function(e,o,t,r){return oo(e,o,t)===r},exports.parseButtonVariantFlat=function({palette:e="accent",variant:o="primary"}){return"accent"===e?o:"primary"===o?e:`${e}-${o}`},exports.parseDeprecatedButtonPaletteVariant=function({flatVariant:e}){if(!e)return{palette:void 0,variant:void 0};const[o,t]=e.split("-");return t?{palette:o,variant:t}:["primary","secondary","tertiary"].includes(e)?{palette:"accent",variant:e}:{palette:e,variant:"primary"}},exports.setConfigPseudoStateVariable=fo,exports.shadow={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"}}]}},exports.statePseudoMapDocsMode=vo,exports.toMinimalDbConfigObject=function(e){const o={},t={};for(const o in e.variants){const r=e.variants[o];t[o]=r.default}o.defaults=t,o.variables={};for(const t in e.variants){const r=e.variants[t];for(const e of r.options)if(r.componentStates){const a=r.componentStates;for(const r in a){const n=a[r];for(const a of n.options)for(const s in n.layers){const l=n.layers[s],i=Qe({variantKey:t,variantValue:e,stateKey:r,stateValue:a,layer:s});o.variables[i]={};for(const t in l.properties){const r=l.properties[t],a={[t]:{rest:{type:yo(r,e),valueType:"alias",value:r.defaults[e]}}};if(r.pseudoStates)for(const o of r.pseudoStates)a[t][o]={type:yo(r,e),valueType:"alias",value:r.defaults[e]};o.variables[i]={...o.variables[i],...a}}}}}else for(const a in r.layers){const n=r.layers[a],s=Qe({variantKey:t,variantValue:e,layer:a});o.variables[s]={};for(const t in n.properties){const r=n.properties[t],a={[t]:{rest:{type:yo(r,e),valueType:"alias",value:r.defaults[e]}}};if(r.pseudoStates)for(const o of r.pseudoStates)a[t][o]={type:yo(r,e),valueType:"alias",value:r.defaults[e]};o.variables[s]={...o.variables[s],...a}}}}if(e.subComponents){const{subComponents:t}=e;for(const e in t)for(const r in t[e].variants){const a=t[e].variants[r];o.defaults[r]=a.default;for(const t of a.options)if(a.componentStates){const n=a.componentStates;for(const a in n){const s=n[a];for(const n of s.options)for(const l in s.layers){const i=s.layers[l],u=Qe({variantKey:r,variantValue:t,stateKey:a,stateValue:n,layer:l,subComponentName:e});o.variables[u]={};for(const e in i.properties){const r=i.properties[e],a={[e]:{rest:{type:yo(r,t),valueType:"alias",value:r.defaults[t]}}};if(r.pseudoStates)for(const o of r.pseudoStates)a[e][o]={type:yo(r,t),valueType:"alias",value:r.defaults[t]};o.variables[u]={...o.variables[u],...a}}}}}else for(const n in a.layers){const s=a.layers[n],l=Qe({variantKey:r,variantValue:t,layer:n,subComponentName:e});o.variables[l]={};for(const e in s.properties){const r=s.properties[e],a={[e]:{rest:{type:yo(r,t),valueType:"alias",value:r.defaults[t]}}};if(r.pseudoStates)for(const o of r.pseudoStates)a[e][o]={type:yo(r,t),valueType:"alias",value:r.defaults[t]};o.variables[l]={...o.variables[l],...a}}}}}return o};
|
1
|
+
"use strict";var e=require("./chunk-J7PUOUXC.cjs"),o=require("./chunk-GQ27QLWT.cjs"),t=require("./chunk-QLXJH36U.cjs"),r=require("@yahoo/uds/fixtures"),a=t.__commonJS({"../../node_modules/lodash/lowerCase.js"(e,t){var r=o.require_createCompounder()(function(e,o,t){return e+(t?" ":"")+o.toLowerCase()});t.exports=r}}),n=t.__commonJS({"../../node_modules/lodash/_listCacheClear.js"(e,o){o.exports=function(){this.__data__=[],this.size=0}}}),s=t.__commonJS({"../../node_modules/lodash/eq.js"(e,o){o.exports=function(e,o){return e===o||e!=e&&o!=o}}}),l=t.__commonJS({"../../node_modules/lodash/_assocIndexOf.js"(e,o){var t=s();o.exports=function(e,o){for(var r=e.length;r--;)if(t(e[r][0],o))return r;return-1}}}),i=t.__commonJS({"../../node_modules/lodash/_listCacheDelete.js"(e,o){var t=l(),r=Array.prototype.splice;o.exports=function(e){var o=this.__data__,a=t(o,e);return!(a<0)&&(a==o.length-1?o.pop():r.call(o,a,1),--this.size,!0)}}}),u=t.__commonJS({"../../node_modules/lodash/_listCacheGet.js"(e,o){var t=l();o.exports=function(e){var o=this.__data__,r=t(o,e);return r<0?void 0:o[r][1]}}}),c=t.__commonJS({"../../node_modules/lodash/_listCacheHas.js"(e,o){var t=l();o.exports=function(e){return t(this.__data__,e)>-1}}}),p=t.__commonJS({"../../node_modules/lodash/_listCacheSet.js"(e,o){var t=l();o.exports=function(e,o){var r=this.__data__,a=t(r,e);return a<0?(++this.size,r.push([e,o])):r[a][1]=o,this}}}),f=t.__commonJS({"../../node_modules/lodash/_ListCache.js"(e,o){var t=n(),r=i(),a=u(),s=c(),l=p();function f(e){var o=-1,t=null==e?0:e.length;for(this.clear();++o<t;){var r=e[o];this.set(r[0],r[1])}}f.prototype.clear=t,f.prototype.delete=r,f.prototype.get=a,f.prototype.has=s,f.prototype.set=l,o.exports=f}}),d=t.__commonJS({"../../node_modules/lodash/_stackClear.js"(e,o){var t=f();o.exports=function(){this.__data__=new t,this.size=0}}}),m=t.__commonJS({"../../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}}}),v=t.__commonJS({"../../node_modules/lodash/_stackGet.js"(e,o){o.exports=function(e){return this.__data__.get(e)}}}),y=t.__commonJS({"../../node_modules/lodash/_stackHas.js"(e,o){o.exports=function(e){return this.__data__.has(e)}}}),h=t.__commonJS({"../../node_modules/lodash/_nativeCreate.js"(e,t){var r=o.require_getNative()(Object,"create");t.exports=r}}),b=t.__commonJS({"../../node_modules/lodash/_hashClear.js"(e,o){var t=h();o.exports=function(){this.__data__=t?t(null):{},this.size=0}}}),_=t.__commonJS({"../../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}}}),g=t.__commonJS({"../../node_modules/lodash/_hashGet.js"(e,o){var t=h(),r=Object.prototype.hasOwnProperty;o.exports=function(e){var o=this.__data__;if(t){var a=o[e];return"__lodash_hash_undefined__"===a?void 0:a}return r.call(o,e)?o[e]:void 0}}}),w=t.__commonJS({"../../node_modules/lodash/_hashHas.js"(e,o){var t=h(),r=Object.prototype.hasOwnProperty;o.exports=function(e){var o=this.__data__;return t?void 0!==o[e]:r.call(o,e)}}}),S=t.__commonJS({"../../node_modules/lodash/_hashSet.js"(e,o){var t=h();o.exports=function(e,o){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=t&&void 0===o?"__lodash_hash_undefined__":o,this}}}),x=t.__commonJS({"../../node_modules/lodash/_Hash.js"(e,o){var t=b(),r=_(),a=g(),n=w(),s=S();function l(e){var o=-1,t=null==e?0:e.length;for(this.clear();++o<t;){var r=e[o];this.set(r[0],r[1])}}l.prototype.clear=t,l.prototype.delete=r,l.prototype.get=a,l.prototype.has=n,l.prototype.set=s,o.exports=l}}),C=t.__commonJS({"../../node_modules/lodash/_mapCacheClear.js"(e,t){var r=x(),a=f(),n=o.require_Map();t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(n||a),string:new r}}}}),j=t.__commonJS({"../../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}}}),$=t.__commonJS({"../../node_modules/lodash/_getMapData.js"(e,o){var t=j();o.exports=function(e,o){var r=e.__data__;return t(o)?r["string"==typeof o?"string":"hash"]:r.map}}}),P=t.__commonJS({"../../node_modules/lodash/_mapCacheDelete.js"(e,o){var t=$();o.exports=function(e){var o=t(this,e).delete(e);return this.size-=o?1:0,o}}}),k=t.__commonJS({"../../node_modules/lodash/_mapCacheGet.js"(e,o){var t=$();o.exports=function(e){return t(this,e).get(e)}}}),W=t.__commonJS({"../../node_modules/lodash/_mapCacheHas.js"(e,o){var t=$();o.exports=function(e){return t(this,e).has(e)}}}),O=t.__commonJS({"../../node_modules/lodash/_mapCacheSet.js"(e,o){var t=$();o.exports=function(e,o){var r=t(this,e),a=r.size;return r.set(e,o),this.size+=r.size==a?0:1,this}}}),A=t.__commonJS({"../../node_modules/lodash/_MapCache.js"(e,o){var t=C(),r=P(),a=k(),n=W(),s=O();function l(e){var o=-1,t=null==e?0:e.length;for(this.clear();++o<t;){var r=e[o];this.set(r[0],r[1])}}l.prototype.clear=t,l.prototype.delete=r,l.prototype.get=a,l.prototype.has=n,l.prototype.set=s,o.exports=l}}),J=t.__commonJS({"../../node_modules/lodash/_stackSet.js"(e,t){var r=f(),a=o.require_Map(),n=A();t.exports=function(e,o){var t=this.__data__;if(t instanceof r){var s=t.__data__;if(!a||s.length<199)return s.push([e,o]),this.size=++t.size,this;t=this.__data__=new n(s)}return t.set(e,o),this.size=t.size,this}}}),V=t.__commonJS({"../../node_modules/lodash/_Stack.js"(e,o){var t=f(),r=d(),a=m(),n=v(),s=y(),l=J();function i(e){var o=this.__data__=new t(e);this.size=o.size}i.prototype.clear=r,i.prototype.delete=a,i.prototype.get=n,i.prototype.has=s,i.prototype.set=l,o.exports=i}}),T=t.__commonJS({"../../node_modules/lodash/_defineProperty.js"(e,t){var r=o.require_getNative(),a=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();t.exports=a}}),F=t.__commonJS({"../../node_modules/lodash/_baseAssignValue.js"(e,o){var t=T();o.exports=function(e,o,r){"__proto__"==o&&t?t(e,o,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[o]=r}}}),E=t.__commonJS({"../../node_modules/lodash/_assignMergeValue.js"(e,o){var t=F(),r=s();o.exports=function(e,o,a){(void 0!==a&&!r(e[o],a)||void 0===a&&!(o in e))&&t(e,o,a)}}}),M=t.__commonJS({"../../node_modules/lodash/_createBaseFor.js"(e,o){o.exports=function(e){return function(o,t,r){for(var a=-1,n=Object(o),s=r(o),l=s.length;l--;){var i=s[e?l:++a];if(!1===t(n[i],i,n))break}return o}}}}),N=t.__commonJS({"../../node_modules/lodash/_baseFor.js"(e,o){var t=M()();o.exports=t}}),q=t.__commonJS({"../../node_modules/lodash/_cloneBuffer.js"(e,t){var r=o.require_root(),a="object"==typeof e&&e&&!e.nodeType&&e,n=a&&"object"==typeof t&&t&&!t.nodeType&&t,s=n&&n.exports===a?r.Buffer:void 0,l=s?s.allocUnsafe:void 0;t.exports=function(e,o){if(o)return e.slice();var t=e.length,r=l?l(t):new e.constructor(t);return e.copy(r),r}}}),K=t.__commonJS({"../../node_modules/lodash/_Uint8Array.js"(e,t){var r=o.require_root().Uint8Array;t.exports=r}}),L=t.__commonJS({"../../node_modules/lodash/_cloneArrayBuffer.js"(e,o){var t=K();o.exports=function(e){var o=new e.constructor(e.byteLength);return new t(o).set(new t(e)),o}}}),D=t.__commonJS({"../../node_modules/lodash/_cloneTypedArray.js"(e,o){var t=L();o.exports=function(e,o){var r=o?t(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}}}),z=t.__commonJS({"../../node_modules/lodash/_copyArray.js"(e,o){o.exports=function(e,o){var t=-1,r=e.length;for(o||(o=Array(r));++t<r;)o[t]=e[t];return o}}}),R=t.__commonJS({"../../node_modules/lodash/_baseCreate.js"(e,t){var r=o.require_isObject(),a=Object.create,n=function(){function e(){}return function(o){if(!r(o))return{};if(a)return a(o);e.prototype=o;var t=new e;return e.prototype=void 0,t}}();t.exports=n}}),Y=t.__commonJS({"../../node_modules/lodash/_getPrototype.js"(e,t){var r=o.require_overArg()(Object.getPrototypeOf,Object);t.exports=r}}),B=t.__commonJS({"../../node_modules/lodash/_initCloneObject.js"(e,t){var r=R(),a=Y(),n=o.require_isPrototype();t.exports=function(e){return"function"!=typeof e.constructor||n(e)?{}:r(a(e))}}}),X=t.__commonJS({"../../node_modules/lodash/isArrayLikeObject.js"(e,t){var r=o.require_isArrayLike(),a=o.require_isObjectLike();t.exports=function(e){return a(e)&&r(e)}}}),I=t.__commonJS({"../../node_modules/lodash/isPlainObject.js"(e,t){var r=o.require_baseGetTag(),a=Y(),n=o.require_isObjectLike(),s=Function.prototype,l=Object.prototype,i=s.toString,u=l.hasOwnProperty,c=i.call(Object);t.exports=function(e){if(!n(e)||"[object Object]"!=r(e))return!1;var o=a(e);if(null===o)return!0;var t=u.call(o,"constructor")&&o.constructor;return"function"==typeof t&&t instanceof t&&i.call(t)==c}}}),U=t.__commonJS({"../../node_modules/lodash/_safeGet.js"(e,o){o.exports=function(e,o){if(("constructor"!==o||"function"!=typeof e[o])&&"__proto__"!=o)return e[o]}}}),H=t.__commonJS({"../../node_modules/lodash/_assignValue.js"(e,o){var t=F(),r=s(),a=Object.prototype.hasOwnProperty;o.exports=function(e,o,n){var s=e[o];a.call(e,o)&&r(s,n)&&(void 0!==n||o in e)||t(e,o,n)}}}),G=t.__commonJS({"../../node_modules/lodash/_copyObject.js"(e,o){var t=H(),r=F();o.exports=function(e,o,a,n){var s=!a;a||(a={});for(var l=-1,i=o.length;++l<i;){var u=o[l],c=n?n(a[u],e[u],u,a,e):void 0;void 0===c&&(c=e[u]),s?r(a,u,c):t(a,u,c)}return a}}}),Q=t.__commonJS({"../../node_modules/lodash/_baseTimes.js"(e,o){o.exports=function(e,o){for(var t=-1,r=Array(e);++t<e;)r[t]=o(t);return r}}}),Z=t.__commonJS({"../../node_modules/lodash/_isIndex.js"(e,o){var t=/^(?:0|[1-9]\d*)$/;o.exports=function(e,o){var r=typeof e;return!!(o=null==o?9007199254740991:o)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<o}}}),ee=t.__commonJS({"../../node_modules/lodash/_arrayLikeKeys.js"(e,t){var r=Q(),a=o.require_isArguments(),n=o.require_isArray(),s=o.require_isBuffer(),l=Z(),i=o.require_isTypedArray(),u=Object.prototype.hasOwnProperty;t.exports=function(e,o){var t=n(e),c=!t&&a(e),p=!t&&!c&&s(e),f=!t&&!c&&!p&&i(e),d=t||c||p||f,m=d?r(e.length,String):[],v=m.length;for(var y in e)!o&&!u.call(e,y)||d&&("length"==y||p&&("offset"==y||"parent"==y)||f&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||l(y,v))||m.push(y);return m}}}),oe=t.__commonJS({"../../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}}}),te=t.__commonJS({"../../node_modules/lodash/_baseKeysIn.js"(e,t){var r=o.require_isObject(),a=o.require_isPrototype(),n=oe(),s=Object.prototype.hasOwnProperty;t.exports=function(e){if(!r(e))return n(e);var o=a(e),t=[];for(var l in e)("constructor"!=l||!o&&s.call(e,l))&&t.push(l);return t}}}),re=t.__commonJS({"../../node_modules/lodash/keysIn.js"(e,t){var r=ee(),a=te(),n=o.require_isArrayLike();t.exports=function(e){return n(e)?r(e,!0):a(e)}}}),ae=t.__commonJS({"../../node_modules/lodash/toPlainObject.js"(e,o){var t=G(),r=re();o.exports=function(e){return t(e,r(e))}}}),ne=t.__commonJS({"../../node_modules/lodash/_baseMergeDeep.js"(e,t){var r=E(),a=q(),n=D(),s=z(),l=B(),i=o.require_isArguments(),u=o.require_isArray(),c=X(),p=o.require_isBuffer(),f=o.require_isFunction(),d=o.require_isObject(),m=I(),v=o.require_isTypedArray(),y=U(),h=ae();t.exports=function(e,o,t,b,_,g,w){var S=y(e,t),x=y(o,t),C=w.get(x);if(C)r(e,t,C);else{var j=g?g(S,x,t+"",e,o,w):void 0,$=void 0===j;if($){var P=u(x),k=!P&&p(x),W=!P&&!k&&v(x);j=x,P||k||W?u(S)?j=S:c(S)?j=s(S):k?($=!1,j=a(x,!0)):W?($=!1,j=n(x,!0)):j=[]:m(x)||i(x)?(j=S,i(S)?j=h(S):d(S)&&!f(S)||(j=l(x))):$=!1}$&&(w.set(x,j),_(j,x,b,g,w),w.delete(x)),r(e,t,j)}}}}),se=t.__commonJS({"../../node_modules/lodash/_baseMerge.js"(e,t){var r=V(),a=E(),n=N(),s=ne(),l=o.require_isObject(),i=re(),u=U();t.exports=function e(o,t,c,p,f){o!==t&&n(t,function(n,i){if(f||(f=new r),l(n))s(o,t,i,c,e,p,f);else{var d=p?p(u(o,i),n,i+"",o,t,f):void 0;void 0===d&&(d=n),a(o,i,d)}},i)}}}),le=t.__commonJS({"../../node_modules/lodash/identity.js"(e,o){o.exports=function(e){return e}}}),ie=t.__commonJS({"../../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)}}}),ue=t.__commonJS({"../../node_modules/lodash/_overRest.js"(e,o){var t=ie(),r=Math.max;o.exports=function(e,o,a){return o=r(void 0===o?e.length-1:o,0),function(){for(var n=arguments,s=-1,l=r(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]=a(i),t(e,this,u)}}}}),ce=t.__commonJS({"../../node_modules/lodash/constant.js"(e,o){o.exports=function(e){return function(){return e}}}}),pe=t.__commonJS({"../../node_modules/lodash/_baseSetToString.js"(e,o){var t=ce(),r=T(),a=le(),n=r?function(e,o){return r(e,"toString",{configurable:!0,enumerable:!1,value:t(o),writable:!0})}:a;o.exports=n}}),fe=t.__commonJS({"../../node_modules/lodash/_shortOut.js"(e,o){var t=Date.now;o.exports=function(e){var o=0,r=0;return function(){var a=t(),n=16-(a-r);if(r=a,n>0){if(++o>=800)return arguments[0]}else o=0;return e.apply(void 0,arguments)}}}}),de=t.__commonJS({"../../node_modules/lodash/_setToString.js"(e,o){var t=pe(),r=fe()(t);o.exports=r}}),me=t.__commonJS({"../../node_modules/lodash/_baseRest.js"(e,o){var t=le(),r=ue(),a=de();o.exports=function(e,o){return a(r(e,o,t),e+"")}}}),ve=t.__commonJS({"../../node_modules/lodash/_isIterateeCall.js"(e,t){var r=s(),a=o.require_isArrayLike(),n=Z(),l=o.require_isObject();t.exports=function(e,o,t){if(!l(t))return!1;var s=typeof o;return!!("number"==s?a(t)&&n(o,t.length):"string"==s&&o in t)&&r(t[o],e)}}}),ye=t.__commonJS({"../../node_modules/lodash/_createAssigner.js"(e,o){var t=me(),r=ve();o.exports=function(e){return t(function(o,t){var a=-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&&r(t[0],t[1],l)&&(s=n<3?void 0:s,n=1),o=Object(o);++a<n;){var i=t[a];i&&e(o,i,a,s)}return o})}}}),he=t.__commonJS({"../../node_modules/lodash/mergeWith.js"(e,o){var t=se(),r=ye()(function(e,o,r,a){t(e,o,r,a)});o.exports=r}}),be=t.__commonJS({"../../node_modules/lodash/_baseToPairs.js"(e,t){var r=o.require_arrayMap();t.exports=function(e,o){return r(o,function(o){return[o,e[o]]})}}}),_e=t.__commonJS({"../../node_modules/lodash/_mapToArray.js"(e,o){o.exports=function(e){var o=-1,t=Array(e.size);return e.forEach(function(e,r){t[++o]=[r,e]}),t}}}),ge=t.__commonJS({"../../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}}}),we=t.__commonJS({"../../node_modules/lodash/_createToPairs.js"(e,t){var r=be(),a=o.require_getTag(),n=_e(),s=ge();t.exports=function(e){return function(o){var t=a(o);return"[object Map]"==t?n(o):"[object Set]"==t?s(o):r(o,e(o))}}}}),Se=t.__commonJS({"../../node_modules/lodash/keys.js"(e,t){var r=ee(),a=o.require_baseKeys(),n=o.require_isArrayLike();t.exports=function(e){return n(e)?r(e):a(e)}}}),xe=t.__commonJS({"../../node_modules/lodash/toPairs.js"(e,o){var t=we()(Se());o.exports=t}}),Ce=t.__commonJS({"../../node_modules/lodash/entries.js"(e,o){o.exports=xe()}}),je=t.__commonJS({"../../node_modules/lodash/_arrayEach.js"(e,o){o.exports=function(e,o){for(var t=-1,r=null==e?0:e.length;++t<r&&!1!==o(e[t],t,e););return e}}}),$e=t.__commonJS({"../../node_modules/lodash/_baseAssign.js"(e,o){var t=G(),r=Se();o.exports=function(e,o){return e&&t(o,r(o),e)}}}),Pe=t.__commonJS({"../../node_modules/lodash/_baseAssignIn.js"(e,o){var t=G(),r=re();o.exports=function(e,o){return e&&t(o,r(o),e)}}}),ke=t.__commonJS({"../../node_modules/lodash/_arrayFilter.js"(e,o){o.exports=function(e,o){for(var t=-1,r=null==e?0:e.length,a=0,n=[];++t<r;){var s=e[t];o(s,t,e)&&(n[a++]=s)}return n}}}),We=t.__commonJS({"../../node_modules/lodash/stubArray.js"(e,o){o.exports=function(){return[]}}}),Oe=t.__commonJS({"../../node_modules/lodash/_getSymbols.js"(e,o){var t=ke(),r=We(),a=Object.prototype.propertyIsEnumerable,n=Object.getOwnPropertySymbols,s=n?function(e){return null==e?[]:(e=Object(e),t(n(e),function(o){return a.call(e,o)}))}:r;o.exports=s}}),Ae=t.__commonJS({"../../node_modules/lodash/_copySymbols.js"(e,o){var t=G(),r=Oe();o.exports=function(e,o){return t(e,r(e),o)}}}),Je=t.__commonJS({"../../node_modules/lodash/_arrayPush.js"(e,o){o.exports=function(e,o){for(var t=-1,r=o.length,a=e.length;++t<r;)e[a+t]=o[t];return e}}}),Ve=t.__commonJS({"../../node_modules/lodash/_getSymbolsIn.js"(e,o){var t=Je(),r=Y(),a=Oe(),n=We(),s=Object.getOwnPropertySymbols?function(e){for(var o=[];e;)t(o,a(e)),e=r(e);return o}:n;o.exports=s}}),Te=t.__commonJS({"../../node_modules/lodash/_copySymbolsIn.js"(e,o){var t=G(),r=Ve();o.exports=function(e,o){return t(e,r(e),o)}}}),Fe=t.__commonJS({"../../node_modules/lodash/_baseGetAllKeys.js"(e,t){var r=Je(),a=o.require_isArray();t.exports=function(e,o,t){var n=o(e);return a(e)?n:r(n,t(e))}}}),Ee=t.__commonJS({"../../node_modules/lodash/_getAllKeys.js"(e,o){var t=Fe(),r=Oe(),a=Se();o.exports=function(e){return t(e,a,r)}}}),Me=t.__commonJS({"../../node_modules/lodash/_getAllKeysIn.js"(e,o){var t=Fe(),r=Ve(),a=re();o.exports=function(e){return t(e,a,r)}}}),Ne=t.__commonJS({"../../node_modules/lodash/_initCloneArray.js"(e,o){var t=Object.prototype.hasOwnProperty;o.exports=function(e){var o=e.length,r=new e.constructor(o);return o&&"string"==typeof e[0]&&t.call(e,"index")&&(r.index=e.index,r.input=e.input),r}}}),qe=t.__commonJS({"../../node_modules/lodash/_cloneDataView.js"(e,o){var t=L();o.exports=function(e,o){var r=o?t(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}}}),Ke=t.__commonJS({"../../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}}}),Le=t.__commonJS({"../../node_modules/lodash/_cloneSymbol.js"(e,t){var r=o.require_Symbol(),a=r?r.prototype:void 0,n=a?a.valueOf:void 0;t.exports=function(e){return n?Object(n.call(e)):{}}}}),De=t.__commonJS({"../../node_modules/lodash/_initCloneByTag.js"(e,o){var t=L(),r=qe(),a=Ke(),n=Le(),s=D();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 r(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 a(e);case"[object Symbol]":return n(e)}}}}),ze=t.__commonJS({"../../node_modules/lodash/_baseIsMap.js"(e,t){var r=o.require_getTag(),a=o.require_isObjectLike();t.exports=function(e){return a(e)&&"[object Map]"==r(e)}}}),Re=t.__commonJS({"../../node_modules/lodash/isMap.js"(e,t){var r=ze(),a=o.require_baseUnary(),n=o.require_nodeUtil(),s=n&&n.isMap,l=s?a(s):r;t.exports=l}}),Ye=t.__commonJS({"../../node_modules/lodash/_baseIsSet.js"(e,t){var r=o.require_getTag(),a=o.require_isObjectLike();t.exports=function(e){return a(e)&&"[object Set]"==r(e)}}}),Be=t.__commonJS({"../../node_modules/lodash/isSet.js"(e,t){var r=Ye(),a=o.require_baseUnary(),n=o.require_nodeUtil(),s=n&&n.isSet,l=s?a(s):r;t.exports=l}}),Xe=t.__commonJS({"../../node_modules/lodash/_baseClone.js"(e,t){var r=V(),a=je(),n=H(),s=$e(),l=Pe(),i=q(),u=z(),c=Ae(),p=Te(),f=Ee(),d=Me(),m=o.require_getTag(),v=Ne(),y=De(),h=B(),b=o.require_isArray(),_=o.require_isBuffer(),g=Re(),w=o.require_isObject(),S=Be(),x=Se(),C=re(),j="[object Arguments]",$="[object Function]",P="[object Object]",k={};k[j]=k["[object Array]"]=k["[object ArrayBuffer]"]=k["[object DataView]"]=k["[object Boolean]"]=k["[object Date]"]=k["[object Float32Array]"]=k["[object Float64Array]"]=k["[object Int8Array]"]=k["[object Int16Array]"]=k["[object Int32Array]"]=k["[object Map]"]=k["[object Number]"]=k[P]=k["[object RegExp]"]=k["[object Set]"]=k["[object String]"]=k["[object Symbol]"]=k["[object Uint8Array]"]=k["[object Uint8ClampedArray]"]=k["[object Uint16Array]"]=k["[object Uint32Array]"]=!0,k["[object Error]"]=k[$]=k["[object WeakMap]"]=!1,t.exports=function e(o,t,W,O,A,J){var V,T=1&t,F=2&t,E=4&t;if(W&&(V=A?W(o,O,A,J):W(o)),void 0!==V)return V;if(!w(o))return o;var M=b(o);if(M){if(V=v(o),!T)return u(o,V)}else{var N=m(o),q=N==$||"[object GeneratorFunction]"==N;if(_(o))return i(o,T);if(N==P||N==j||q&&!A){if(V=F||q?{}:h(o),!T)return F?p(o,l(V,o)):c(o,s(V,o))}else{if(!k[N])return A?o:{};V=y(o,N,T)}}J||(J=new r);var K=J.get(o);if(K)return K;J.set(o,V),S(o)?o.forEach(function(r){V.add(e(r,t,W,r,o,J))}):g(o)&&o.forEach(function(r,a){V.set(a,e(r,t,W,a,o,J))});var L=M?void 0:(E?F?d:f:F?C:x)(o);return a(L||o,function(r,a){L&&(r=o[a=r]),n(V,a,e(r,t,W,a,o,J))}),V}}}),Ie=t.__commonJS({"../../node_modules/lodash/cloneDeep.js"(e,o){var t=Xe();o.exports=function(e){return t(e,5)}}}),Ue=t.__toESM(o.require_isFunction(),1),He=t.__toESM(a(),1),Ge=t.__toESM(he(),1);/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */function Qe({variantKey:e,variantValue:o,layer:t,subComponentName:r,stateKey:a,stateValue:n}){return r?a&&n?`${r}/${e}/${o}/${a}/${n}/${t}`:`${r}/${e}/${o}/${t}`:a&&n?`${e}/${o}/${a}/${n}/${t}`:`${e}/${o}/${t}`}var Ze=e=>e.reduce((e,o)=>e.flatMap(e=>o.map(o=>[e,o].flat())));function eo(o,t){const r=o.variants?.[t];if(r)return{type:"no-sub-components",variant:r};const a=uo(o);if(!a)return{type:"no-variants"};return{type:"has-sub-components",variants:e.mapValues(a,e=>e.variants[t])}}function oo(e,o,t){const r=e[o]?.defaults?.[t];if(void 0===r)throw new Error(`The variant default for "${t}" is not defined for the component "${o}"`);return r}var to=t.__toESM(Ce(),1);function ro(e,o,t){const r=eo(e,o);switch(r.type){case"no-variants":return null;case"no-sub-components":return r.variant;case"has-sub-components":if(!t)throw new Error("subComponentName argument name is required for configs with subcomponents");return r.variants[t]}}var ao=e=>!!e?.layers,no=e=>!!e?.componentStates;function so(e,o,t){const r=ro(e,o,t);return r&&no(r)?r?.componentStates??null:null}var lo=["rest"];var io=t.__toESM(Ce(),1);function uo(e){return e.subComponents?0===Object.keys(e.subComponents).length?null:e.subComponents:null}var co=t.__toESM(Ie(),1);function po(e,o,t,r,a){const n=e[t].variables[o];if(!n)throw new Error(`No layer variables found for ${o}.`);const s=n[r];if(!s)throw new Error(`No property variables found for ${r}.`);const l=s[a];if(!l)throw new Error(`No pseudoState variables found for ${a}.`);return l}function fo(e,o,t,r,a,n){const s=(0,co.default)(e),l=po(s,o,t,r,a);return void 0!==n.type&&(l.type=n.type),void 0!==n.value&&(l.value=n.value),s}var mo={rest:"",hover:":hover:not(:has(:disabled))",pressed:":active:not(: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:":has(:disabled)","invalid&hover":':has(input[aria-invalid="true"]):hover:not(:has(:disabled))',"invalid&pressed":':has(input[aria-invalid="true"]):active:not(:has(:disabled))'},vo={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 yo(e,o){const t=e.defaults[o],r=e.typeOfFixture;let a=0;return e.values.forEach((e,o)=>{e.includes(t)&&(a=o)}),r[a]}function ho({componentName:e,variantKey:o,variantValue:t,layer:r,layerOptionalPseudoSelector:a,subComponentName:n,stateKey:s,stateValue:l}){let i="";return i=n?`uds-${(0,He.default)(e)}-${(0,He.default)(n)}-${(0,He.default)(o)}`:`uds-${(0,He.default)(e)}-${(0,He.default)(o)}`,t&&(i=`${i}-${(0,He.default)(t)}`),s&&l&&(i=`${i}-${(0,He.default)(s)}-${(0,He.default)(l)}`),i=`${i}-${(0,He.default)(r)}`,a&&(i=`${i}${a}`),i.replaceAll(/\s+/g,"-")}function bo({componentName:e,variantKey:o,variantValue:t,layer:r,layerOptionalPseudoSelector:a,subComponentName:n,stateKey:s,stateValue:l,schema:i,propertyKey:u,originalPropertyDefinition:c,theme:p,currentStyles:f,previewOptions:d}){const m=Qe({variantKey:o,variantValue:t,layer:r,subComponentName:n,stateKey:s,stateValue:l});let v=ho({componentName:e,variantKey:o,variantValue:t,layer:r,subComponentName:n,stateKey:s,stateValue:l});const y=i.variables[m][u];if(!y)throw"size/md/root"===m&&"spacingHorizontal"===u&&console.log({componentName:e,schemaKey:m,propertyKey:u},i.variables),new Error(`Prop definition (${e} - ${m} - ${u}) not found, this is not expected, please report the bug to the UDS team`);const h={};for(const m in y){const b=mo[m]??"";let _="";if("root"===r)if(s&&l){const a=ho({componentName:e,variantKey:o,variantValue:t,layer:r,subComponentName:n});v=ho({componentName:e,variantKey:o,layer:r,subComponentName:n,stateKey:s,stateValue:l}),_=`.${a}${b}.${v}`}else _=`.${v}${b}`;else{const i=ho({componentName:e,variantKey:o,variantValue:t,layer:"root",subComponentName:n});if(s&&l){const u=ho({componentName:e,variantKey:o,layer:"root",subComponentName:n,stateKey:s,stateValue:l});v=ho({componentName:e,variantKey:o,variantValue:t,layer:r,layerOptionalPseudoSelector:a,subComponentName:n}),_=`.${i}${b}.${u} .${v}`}else _=`.${i}${b} .${v}`}const g=(e,o,t,r)=>{const{value:a,type:n}=e,s=Mo[o];let l;if(Mo[o].customValueRenderer)l=Mo[o].customValueRenderer(e,i,t);else{l=t(Mo[o].twThemePath(n,String(a)))}if(s.concatenate&&r){return`${r}${s.concatenationDelimiter||", "}${l}`}return l},{cssProperties:w,extendedProperties:S}=Mo[c.name],x={},C=(0,Ue.default)(S),j=C?S({componentName:e,subComponentName:n,layer:r,propertyKey:u}):S;if(j&&j.length){if(!C&&("string"==typeof w||Array.isArray(w)&&w.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 j){const o=Mo[e].cssProperties;if("string"==typeof o){const t=f?.[_]?.[o];x[o]=g(y[m],e,p,t)}else if(Array.isArray(o))for(const t of o){const o=f?.[_]?.[t];x[t]=g(y[m],e,p,o)}}}else if("string"==typeof w){const e=f?.[_]?.[w];x[w]=g(y[m],c.name,p,e)}else if(Array.isArray(w))for(const e of w){const o=f?.[_]?.[e];x[e]=g(y[m],c.name,p,o)}if(h[_]||(h[_]={...x,...h[_]}),d?.generatePseudoStateClassModifier){const e=vo[m]??"";e.length>0&&"root"!==m&&(h[`.${e}${_}`.replace(b,"")]={...x,...h[`.${e}${_}`.replace(b,"")]})}}return h}var _o=["none","custom"],go=["none","up","down"],wo={hover:{backgroundColor:{value:"none",options:_o},borderColor:{value:"none",options:_o},color:{value:"none",options:_o},scale:{value:"up",options:go}},pressed:{backgroundColor:{value:"none",options:_o},borderColor:{value:"none",options:_o},color:{value:"none",options:_o},scale:{value:"down",options:go}}},So={hover:{backgroundColor:{value:"none",options:_o},borderColor:{value:"none",options:_o},color:{value:"none",options:_o},scale:{value:"up",options:go}},pressed:{backgroundColor:{value:"none",options:_o},borderColor:{value:"none",options:_o},color:{value:"none",options:_o},scale:{value:"down",options:go}}},xo={hover:{backgroundColor:{value:"none",options:_o},borderColor:{value:"none",options:_o},color:{value:"none",options:_o},scale:{value:"up",options:go}},pressed:{backgroundColor:{value:"none",options:_o},borderColor:{value:"none",options:_o},color:{value:"none",options:_o},scale:{value:"down",options:go}}},Co={dropShadow:{value:"none",config:null},insetShadow:{value:"none",config:null}};function jo(e){return{borderWidth:"none",borderRadius:"full",borderColor:{type:"palette",value:"transparent"},backgroundColor:{type:"palette",value:e},color:{type:"palette",value:"on-color"},scale:"none",...Co}}function $o(e){return{borderWidth:"thin",borderRadius:"full",backgroundColor:{type:"palette",value:"transparent"},borderColor:{type:"palette",value:e},color:{type:"palette",value:e},scale:"none",...Co}}function Po(e){return{borderWidth:"none",borderRadius:"full",backgroundColor:{type:"palette",value:"transparent"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:e},scale:"none",...Co}}var ko={fill:jo,outline:$o,ghost:Po},Wo={defaults:{palette:"accent",variant:"primary",size:"md"},size:{sm:{spacingHorizontal:"4",spacingVertical:"1",gap:"2",iconSize:"sm",textVariant:"label1"},md:{spacingHorizontal:"6",spacingVertical:"3",gap:"2",iconSize:"sm",textVariant:"label1"},lg:{spacingHorizontal:"7",spacingVertical:"4",gap:"2",iconSize:"md",textVariant:"headline1"}},palette:{info:{primary:{kind:"fill",effect:wo,base:jo("info"),state:{hover:{scale:"up",backgroundColor:{type:"spectrum",value:"blue-10"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"on-color"},...Co},pressed:{scale:"down",backgroundColor:{type:"spectrum",value:"blue-11"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"on-color"},...Co}}},secondary:{kind:"outline",effect:So,base:$o("info"),state:{hover:{scale:"up",backgroundColor:{type:"palette",value:"transparent"},borderColor:{type:"spectrum",value:"blue-10"},color:{type:"spectrum",value:"blue-10"},...Co},pressed:{scale:"down",backgroundColor:{type:"palette",value:"transparent"},borderColor:{type:"spectrum",value:"blue-11"},color:{type:"spectrum",value:"blue-11"},...Co}}},tertiary:{kind:"ghost",effect:xo,base:Po("info"),state:{hover:{scale:"up",backgroundColor:{type:"spectrum",value:"blue-2"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"info"},...Co},pressed:{scale:"down",backgroundColor:{type:"spectrum",value:"blue-4"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"info"},...Co}}}},accent:{primary:{kind:"fill",effect:wo,base:jo("accent"),state:{hover:{scale:"up",backgroundColor:{type:"spectrum",value:"carbon-10"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"on-color"},...Co},pressed:{scale:"down",backgroundColor:{type:"spectrum",value:"carbon-11"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"on-color"},...Co}}},secondary:{kind:"outline",effect:So,base:$o("accent"),state:{hover:{scale:"up",backgroundColor:{type:"palette",value:"transparent"},borderColor:{type:"spectrum",value:"carbon-10"},color:{type:"spectrum",value:"carbon-10"},...Co},pressed:{scale:"down",backgroundColor:{type:"palette",value:"transparent"},borderColor:{type:"spectrum",value:"carbon-11"},color:{type:"spectrum",value:"carbon-11"},...Co}}},tertiary:{kind:"ghost",effect:xo,base:Po("accent"),state:{hover:{scale:"up",backgroundColor:{type:"spectrum",value:"carbon-2"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"accent"},...Co},pressed:{scale:"down",backgroundColor:{type:"spectrum",value:"carbon-4"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"accent"},...Co}}}},brand:{primary:{kind:"fill",effect:wo,base:jo("brand"),state:{hover:{scale:"up",backgroundColor:{type:"spectrum",value:"purple-10"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"on-color"},...Co},pressed:{scale:"down",backgroundColor:{type:"spectrum",value:"purple-11"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"on-color"},...Co}}},secondary:{kind:"outline",effect:So,base:$o("brand"),state:{hover:{scale:"up",backgroundColor:{type:"palette",value:"transparent"},borderColor:{type:"spectrum",value:"purple-10"},color:{type:"spectrum",value:"purple-10"},...Co},pressed:{scale:"down",backgroundColor:{type:"palette",value:"transparent"},borderColor:{type:"spectrum",value:"purple-11"},color:{type:"spectrum",value:"purple-11"},...Co}}},tertiary:{kind:"ghost",effect:xo,base:Po("brand"),state:{hover:{scale:"up",backgroundColor:{type:"spectrum",value:"purple-2"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"brand"},...Co},pressed:{scale:"down",backgroundColor:{type:"spectrum",value:"purple-4"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"brand"},...Co}}}},alert:{primary:{kind:"fill",effect:wo,base:jo("alert"),state:{hover:{scale:"up",backgroundColor:{type:"spectrum",value:"red-10"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"on-color"},...Co},pressed:{scale:"down",backgroundColor:{type:"spectrum",value:"red-11"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"on-color"},...Co}}},secondary:{kind:"outline",effect:So,base:$o("alert"),state:{hover:{scale:"up",backgroundColor:{type:"palette",value:"transparent"},borderColor:{type:"spectrum",value:"red-10"},color:{type:"spectrum",value:"red-10"},...Co},pressed:{scale:"down",backgroundColor:{type:"palette",value:"transparent"},borderColor:{type:"spectrum",value:"red-11"},color:{type:"spectrum",value:"red-11"},...Co}}},tertiary:{kind:"ghost",effect:xo,base:Po("alert"),state:{hover:{scale:"up",backgroundColor:{type:"spectrum",value:"red-2"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"alert"},...Co},pressed:{scale:"down",backgroundColor:{type:"spectrum",value:"red-4"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"alert"},...Co}}}},positive:{primary:{kind:"fill",effect:wo,base:jo("positive"),state:{hover:{scale:"up",backgroundColor:{type:"spectrum",value:"green-10"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"on-color"},...Co},pressed:{scale:"down",backgroundColor:{type:"spectrum",value:"green-11"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"on-color"},...Co}}},secondary:{kind:"outline",effect:So,base:$o("positive"),state:{hover:{scale:"up",backgroundColor:{type:"palette",value:"transparent"},borderColor:{type:"spectrum",value:"green-10"},color:{type:"spectrum",value:"green-10"},...Co},pressed:{scale:"down",backgroundColor:{type:"palette",value:"transparent"},borderColor:{type:"spectrum",value:"green-11"},color:{type:"spectrum",value:"green-11"},...Co}}},tertiary:{kind:"ghost",effect:xo,base:Po("positive"),state:{hover:{scale:"up",backgroundColor:{type:"spectrum",value:"green-2"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"positive"},...Co},pressed:{scale:"down",backgroundColor:{type:"spectrum",value:"green-4"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"positive"},...Co}}}},warning:{primary:{kind:"fill",effect:wo,base:jo("warning"),state:{hover:{scale:"up",backgroundColor:{type:"spectrum",value:"orange-10"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"on-color"},...Co},pressed:{scale:"down",backgroundColor:{type:"spectrum",value:"orange-11"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"on-color"},...Co}}},secondary:{kind:"outline",effect:So,base:$o("warning"),state:{hover:{scale:"up",backgroundColor:{type:"palette",value:"transparent"},borderColor:{type:"spectrum",value:"orange-10"},color:{type:"spectrum",value:"orange-10"},...Co},pressed:{scale:"down",backgroundColor:{type:"palette",value:"transparent"},borderColor:{type:"spectrum",value:"orange-11"},color:{type:"spectrum",value:"orange-11"},...Co}}},tertiary:{kind:"ghost",effect:xo,base:Po("warning"),state:{hover:{scale:"up",backgroundColor:{type:"spectrum",value:"orange-2"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"warning"},...Co},pressed:{scale:"down",backgroundColor:{type:"spectrum",value:"orange-4"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"warning"},...Co}}}}}},Oo="https://s.yimg.com/bw/fonts",Ao=["Helvetica Neue","Helvetica","Arial","sans-serif"],Jo=["Georgia","Times","Times New Roman","serif"],Vo={"centra-no2":{fallback:Ao,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('${Oo}/centra-no2-hairline.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"50",src:`url('${Oo}/centra-no2-hairline-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"100",src:`url('${Oo}/centra-no2-thin.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"100",src:`url('${Oo}/centra-no2-thin-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"300",src:`url('${Oo}/centra-no2-light.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"300",src:`url('${Oo}/centra-no2-light-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"400",src:`url('${Oo}/centra-no2-book.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"400",src:`url('${Oo}/centra-no2-book-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"500",src:`url('${Oo}/centra-no2-medium.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"500",src:`url('${Oo}/centra-no2-medium-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"700",src:`url('${Oo}/centra-no2-bold.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"700",src:`url('${Oo}/centra-no2-bold-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"800",src:`url('${Oo}/centra-no2-extrabold.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"800",src:`url('${Oo}/centra-no2-extrabold-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"900",src:`url('${Oo}/centra-no2-black.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"900",src:`url('${Oo}/centra-no2-black-italic.woff2') format('woff2')`}]},inter:{fallback:Ao,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('${Oo}/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('${Oo}/roboto-mono-100.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"100",src:`url('${Oo}/roboto-mono-100-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"300",src:`url('${Oo}/roboto-mono-300.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"300",src:`url('${Oo}/roboto-mono-300-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"400",src:`url('${Oo}/roboto-mono-400.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"400",src:`url('${Oo}/roboto-mono-400-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"500",src:`url('${Oo}/roboto-mono-500.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"500",src:`url('${Oo}/roboto-mono-500-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"700",src:`url('${Oo}/roboto-mono-700.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"700",src:`url('${Oo}/roboto-mono-700-italic.woff2') format('woff2')`}]},"yahoo-sans":{fallback:Ao,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('${Oo}/yahoo-sans-vf.woff2') format('woff2')`}]},"yahoo-sans-cr4":{fallback:Ao,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('${Oo}/yahoo-sans-cr4-vf.woff2') format('woff2')`}]},"yahoo-product-sans":{fallback:Ao,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('${Oo}/yahoo-product-sans-vf.woff2') format('woff2-variations')`}]},"yahoo-product-sans-extended":{fallback:Ao,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('${Oo}/YahooPd_Eval202412-v1.1.0.woff2') format("woff2 supports variations"), url('${Oo}/YahooPd_Eval202412-v1.1.0.woff2') format('woff2-variations')`}]},"yahoo-sans-condensed":{fallback:Ao,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('${Oo}/yahoo-sans-condensed-vf.woff2') format('woff2')`}]},"yahoo-serif-display":{fallback:Jo,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('${Oo}/yahoo-serif-display-light.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"400",src:`url('${Oo}/yahoo-serif-display-regular.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"700",src:`url('${Oo}/yahoo-serif-display-bold.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"800",src:`url('${Oo}/yahoo-serif-display-extrabold.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"900",src:`url('${Oo}/yahoo-serif-display-black.woff2') format('woff2')`}]},"yahoo-serif-text":{fallback:Jo,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('${Oo}/yahoo-serif-text-regular.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"400",src:`url('${Oo}/yahoo-serif-text-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"700",src:`url('${Oo}/yahoo-serif-text-bold.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"700",src:`url('${Oo}/yahoo-serif-text-bold-italic.woff2') format('woff2')`}]}};var To={black:"0 0 0",white:"255 255 255"};function Fo({preset:e,prefix:o,shadowType:t}){const a=`--uds-${t}-shadow-`,n="palette"===e.color?.type,s="always"===e.color?.type;let l=`var(--uds-${n?"shadow":"spectrum"}-color-${e?.color?.value})`;s&&(l=To[e.color.value]);const i=`var(${a}${o?`${o}-`:""}color, ${l})`;return`${"inset"===t?"inset ":""}${[`${r.shadowOffsetMap[e.offsetX]}px`,`${r.shadowOffsetMap[e.offsetY]}px`,`${r.spacingMap[e.blur]}px`,`${r.shadowSpreadRadiusMap[e.spread]}px`].map(e=>e).join(" ")} ${`rgb(${i} / var(${a}${o?`${o}-`:""}opacity, ${Number(e.opacity)/100}))`}`}var Eo=({componentName:e,layer:o,propertyKey:t})=>!("chip"!==e||"root"!==o||!["borderColor","borderWidth"].includes(t))||!("input"!==e||"inputWrapper"!==o||!["borderColor","borderWidth"].includes(t)),Mo={...{backgroundColor:{name:"backgroundColor",cssProperties:"background-color",twThemePath:(e,o)=>{if("spectrumColors"===e){const[e,t]=o.split("-");return`colors.${e}.${t}`}return"backgroundPaletteColors"===e||"alwaysPaletteAliases"===e?`backgroundColor.${o}`:"Error"},possibleFixtures:["backgroundPaletteColors","spectrumColors","alwaysPaletteAliases"]},borderWidth:{name:"borderWidth",cssProperties:"border-width",twThemePath:(e,o)=>"borderWidths"===e?`borderWidth[${o}]`:`spacing[${o}]`,possibleFixtures:["borderWidths","spacingAliases"],extendedProperties:e=>Eo(e)&&["outlineWidth","insetOutlineOffset","solidOutline"]},borderRadius:{name:"borderRadius",cssProperties:"border-radius",twThemePath:(e,o)=>`borderRadius.${o}`,possibleFixtures:["borderRadii"]},borderColor:{name:"borderColor",cssProperties:"border-color",twThemePath:(e,o)=>{if("alwaysPaletteAliases"===e||"linePaletteColors"===e)return`borderColor.${o}`;if("spectrumColors"===e){const[e,t]=o.split("-");return`borderColor.${e}.${t}`}return"Error"},possibleFixtures:["alwaysPaletteAliases","spectrumColors","linePaletteColors"],extendedProperties:e=>Eo(e)&&["outlineColor"]},fontFamily:{name:"fontFamily",cssProperties:"font-family",twThemePath:(e,o)=>`typography.fontFamily.${o}`,possibleFixtures:["textVariants"]},fontSize:{name:"fontSize",cssProperties:"font-size",twThemePath:(e,o)=>`typography.fontSize.${o}`,possibleFixtures:["textVariants"]},fontVariationSettings:{name:"fontVariationSettings",cssProperties:"font-variation-settings",twThemePath:()=>"",possibleFixtures:["textVariants"],customValueRenderer:e=>{const{value:o}=e;return`"wght" var(--uds-font-weight-${o}), "slnt" var(--uds-font-slant-${o}), "wdth" var(--uds-font-width-${o});`}},lineHeight:{name:"lineHeight",cssProperties:"line-height",twThemePath:(e,o)=>`typography.lineHeight.${o}`,possibleFixtures:["textVariants"]},textTransform:{name:"textTransform",cssProperties:"text-transform",twThemePath:(e,o)=>`typography.textTransform.${o}`,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:{name:"color",cssProperties:"color",twThemePath:(e,o)=>{if("alwaysPaletteAliases"===e||"foregroundPaletteColors"===e)return`textColor.${o}`;if("spectrumColors"===e){const[e,t]=o.split("-");return`textColor.${e}.${t}`}return"Error"},possibleFixtures:["alwaysPaletteAliases","spectrumColors","foregroundPaletteColors"]},fontWeight:{name:"fontWeight",cssProperties:"font-weight",twThemePath:(e,o)=>`typography.fontWeight.${o}`,possibleFixtures:["textVariants"]},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"]},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)=>Fo({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)=>Fo({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"]}},...{outlineWidth:{name:"outlineWidth",cssProperties:"outline-width",twThemePath:(e,o)=>"borderWidths"===e?`borderWidth[${o}]`:`spacing[${o}]`,possibleFixtures:["borderWidths","spacingAliases"]},outlineColor:{name:"outlineColor",cssProperties:"outline-color",twThemePath:(e,o)=>{if("alwaysPaletteAliases"===e||"linePaletteColors"===e)return`borderColor.${o}`;if("spectrumColors"===e){const[e,t]=o.split("-");return`borderColor.${e}.${t}`}return"Error"},possibleFixtures:["alwaysPaletteAliases","spectrumColors","linePaletteColors"]},insetOutlineOffset:{name:"insetOutlineOffset",cssProperties:"outline-offset",twThemePath:()=>"",customValueRenderer:({value:e,type:o},t,r)=>`calc(-1 * ${r("borderWidths"===o?`borderWidth[${e}]`:`spacing[${e}]`)})`,possibleFixtures:["borderWidths","spacingAliases"]},solidOutline:{name:"solidOutline",cssProperties:"outline-style",twThemePath:()=>"",customValueRenderer:()=>"solid",possibleFixtures:[]}}};exports.DEFAULT_COLOR_MODE="light",exports.DEFAULT_COLOR_MODE_FOR_APP="system",exports.DEFAULT_HIGH_CONTRAST_MODE=!1,exports.DEFAULT_REGION_MODE="🇺🇸 US",exports.DEFAULT_SCALE_MODE="large",exports.DEFAULT_SCALE_MODE_FOR_APP="system",exports.FONT_DECLARATIONS_MAP=Vo,exports.alwaysPalette={white:"#ffffff",black:"#000000",transparent:"transparent",current:"currentColor"},exports.button=Wo,exports.cartesianProduct=Ze,exports.coalesceConfigVariant=eo,exports.configurableProperties=Mo,exports.createComponentStateConfig=function(e){return e},exports.createComponentStates=function(e){return e},exports.createConfigurableProperty=function(e){return e},exports.createLayerConfig=function(e){return e},exports.createSubComponentConfig=function(e){return e},exports.createVariantConfig=function(e){return e},exports.createVariantConfigWithComponentStates=function(e){return e},exports.createVariantConfigWithProperties=function(e){return e},exports.findFixtureType=yo,exports.fontWeightMap={thin:"100",extralight:"200",light:"300",regular:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},exports.fromEntries=function(e){return Object.fromEntries(e)},exports.generateClassName=ho,exports.generateDeclaration=bo,exports.generateKeyFromFlatConfigPath=function(e){let o=e;return o=o.replaceAll(".","/"),["root/","variables/","variant/","/value"].forEach(e=>{o=o.replaceAll(e,"")}),o},exports.generateSchemaKey=Qe,exports.generateStyles=function(e,o,t,r){function a(e,o){return(0,Ge.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(i.componentStates){const u=i.componentStates;for(const i in u){const c=u[i];for(const u of c.options)for(const p in c.layers){const f=c.layers[p];for(const c in f.properties){const d=f.properties[c];s=a(s,bo({componentName:n,variantKey:l,variantValue:e,stateKey:i,stateValue:u,layer:p,layerOptionalPseudoSelector:f.pseudoSelector,propertyKey:c,originalPropertyDefinition:d,theme:t,schema:o,currentStyles:s,previewOptions:r}))}}}}else for(const u in i.layers){const c=i.layers[u];for(const i in c.properties){const p=c.properties[i];s=a(s,bo({componentName:n,variantKey:l,variantValue:e,layer:u,layerOptionalPseudoSelector:c.pseudoSelector,propertyKey:i,originalPropertyDefinition:p,theme:t,schema:o,currentStyles:s,previewOptions:r}))}}}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(u.componentStates){const c=u.componentStates;for(const u in c){const p=c[u];for(const c of p.options)for(const f in p.layers){const d=p.layers[f];for(const p in d.properties){const m=d.properties[p];s=a(s,bo({componentName:n,variantKey:i,variantValue:l,stateKey:u,stateValue:c,subComponentName:e,layer:f,layerOptionalPseudoSelector:d.pseudoSelector,propertyKey:p,originalPropertyDefinition:m,theme:t,schema:o,currentStyles:s,previewOptions:r}))}}}}else for(const c in u.layers){const p=u.layers[c];for(const u in p.properties){const f=p.properties[u];s=a(s,bo({componentName:n,subComponentName:e,variantKey:i,variantValue:l,layer:c,layerOptionalPseudoSelector:p.pseudoSelector,propertyKey:u,originalPropertyDefinition:f,theme:t,schema:o,currentStyles:s,previewOptions:r}))}}}}return s},exports.getConfigDefaultValue=oo,exports.getConfigPseudoStateVariables=po,exports.getConfigPseudoStateVariablesWithSetter=function(e,o,t,r,a){return[po(e,o,t,r,a),n=>fo(e,o,t,r,a,n)]},exports.getConfigSubcomponents=uo,exports.getConfigVariantComponentStates=so,exports.getConfigVariantComponentStatesMatrix=function(e,o,t){const r=so(e,o,t);return r?Ze((0,to.default)(r).map(([e,o])=>o.options.map(o=>({[e]:o})))).map(e=>Array.isArray(e)?e.reduce((e,o)=>({...e,...o}),{}):e):null},exports.getConfigVariantProperties=function(o){if(!o||!ao(o))return null;const t=e.mapValues(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},exports.getConfigVariantPseudoStates=function(e,o,t,r){const a=ro(e,o,r);return a?[...ao(a)?Object.entries(a?.layers??{}):[],...no(a)&&t?Object.entries(a.componentStates[t].layers??{}):[]].flatMap(([e,o])=>Object.entries(o.properties).map(([o,t])=>[e,o,t])).flatMap(([e,o,t])=>[...lo,...t.pseudoStates??[]].map(r=>[e,o,t,r])).reduce((e,[o,t,r,a])=>{e[a]=e[a]??[];const n=[o,t,r];return e[a].push(n),e},{}):null},exports.getConfigVariants=function(e,o="variant"){const t=eo(e,o);if("no-variants"===t.type)return{type:"no-variants",description:"No variants"};if("no-sub-components"===t.type){if(uo(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 r=(0,io.default)(t.variants).reduce((e,[o,t])=>{for(const r of t.options)e[r]??=[],e[r].includes(o)||e[r].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(r),variantToSubcomponentNames:r}},exports.getDefaultButtonBaseMap=ko,exports.getShadowLayerValue=Fo,exports.getShadowPresetValues=function({config:o,shadowType:t}){const r=o?.shadow?.[t];if(!r)return{};const a={};return e.entries(r).forEach(([e,o])=>{if("none"===e)return void(a[`--uds-${t}-shadow-${e}`]="0 0 transparent");const r=o.map((e,o)=>Fo({preset:e,prefix:o>0?`${o+1}`:void 0,shadowType:t}));a[`--uds-${t}-shadow-${e}`]=`${r.join(", ")}`}),a},exports.isConfigDefaultValue=function(e,o,t,r){return oo(e,o,t)===r},exports.parseButtonVariantFlat=function({palette:e="accent",variant:o="primary"}){return"accent"===e?o:"primary"===o?e:`${e}-${o}`},exports.parseDeprecatedButtonPaletteVariant=function({flatVariant:e}){if(!e)return{palette:void 0,variant:void 0};const[o,t]=e.split("-");return t?{palette:o,variant:t}:["primary","secondary","tertiary"].includes(e)?{palette:"accent",variant:e}:{palette:e,variant:"primary"}},exports.setConfigPseudoStateVariable=fo,exports.shadow={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"}}]}},exports.statePseudoMapDocsMode=vo,exports.toMinimalDbConfigObject=function(e){const o={},t={};for(const o in e.variants){const r=e.variants[o];t[o]=r.default}o.defaults=t,o.variables={};for(const t in e.variants){const r=e.variants[t];for(const e of r.options)if(r.componentStates){const a=r.componentStates;for(const r in a){const n=a[r];for(const a of n.options)for(const s in n.layers){const l=n.layers[s],i=Qe({variantKey:t,variantValue:e,stateKey:r,stateValue:a,layer:s});o.variables[i]={};for(const t in l.properties){const r=l.properties[t],a={[t]:{rest:{type:yo(r,e),valueType:"alias",value:r.defaults[e]}}};if(r.pseudoStates)for(const o of r.pseudoStates)a[t][o]={type:yo(r,e),valueType:"alias",value:r.defaults[e]};o.variables[i]={...o.variables[i],...a}}}}}else for(const a in r.layers){const n=r.layers[a],s=Qe({variantKey:t,variantValue:e,layer:a});o.variables[s]={};for(const t in n.properties){const r=n.properties[t],a={[t]:{rest:{type:yo(r,e),valueType:"alias",value:r.defaults[e]}}};if(r.pseudoStates)for(const o of r.pseudoStates)a[t][o]={type:yo(r,e),valueType:"alias",value:r.defaults[e]};o.variables[s]={...o.variables[s],...a}}}}if(e.subComponents){const{subComponents:t}=e;for(const e in t)for(const r in t[e].variants){const a=t[e].variants[r];o.defaults[r]=a.default;for(const t of a.options)if(a.componentStates){const n=a.componentStates;for(const a in n){const s=n[a];for(const n of s.options)for(const l in s.layers){const i=s.layers[l],u=Qe({variantKey:r,variantValue:t,stateKey:a,stateValue:n,layer:l,subComponentName:e});o.variables[u]={};for(const e in i.properties){const r=i.properties[e],a={[e]:{rest:{type:yo(r,t),valueType:"alias",value:r.defaults[t]}}};if(r.pseudoStates)for(const o of r.pseudoStates)a[e][o]={type:yo(r,t),valueType:"alias",value:r.defaults[t]};o.variables[u]={...o.variables[u],...a}}}}}else for(const n in a.layers){const s=a.layers[n],l=Qe({variantKey:r,variantValue:t,layer:n,subComponentName:e});o.variables[l]={};for(const e in s.properties){const r=s.properties[e],a={[e]:{rest:{type:yo(r,t),valueType:"alias",value:r.defaults[t]}}};if(r.pseudoStates)for(const o of r.pseudoStates)a[e][o]={type:yo(r,t),valueType:"alias",value:r.defaults[t]};o.variables[l]={...o.variables[l],...a}}}}}return o};
|
@@ -0,0 +1,2 @@
|
|
1
|
+
import{getMotionVar as r}from"./chunk-KYESDN2J.js";import{FONT_DECLARATIONS_MAP as t,fromEntries as n}from"./chunk-BP3AJRW6.js";import{entries as o}from"./chunk-EWJ3J526.js";import{require_baseGetTag as a,require_isArray as e,require_isObjectLike as s}from"./chunk-P5SQNXWX.js";import{TEXT_TRANSFORM_PREFIX as i,LINE_HEIGHT_PREFIX as d,FONT_SIZE_PREFIX as f,FONT_WIDTH_PREFIX as c,FONT_SLANT_PREFIX as l,FONT_WEIGHT_PREFIX as u,FONT_FAMILY_PREFIX as m,TEXT_RESPONSIVE_CLASSNAME as p,UDS_PREFIX as h}from"./chunk-24RMELG3.js";import{__commonJS as $,__toESM as g}from"./chunk-GF4A6TFM.js";import{textVariants as v,motionSpringConfigOptions as w}from"@yahoo/uds/fixtures";import x from"tailwindcss/plugin.js";/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */
|
2
|
+
var b=$({"../../node_modules/lodash/isString.js"(r,t){var n=a(),o=e(),i=s();t.exports=function(r){return"string"==typeof r||!o(r)&&i(r)&&"[object String]"==n(r)}}}),k=g(b(),1),M=r=>{throw new Error("Didn't expect to get here")};var y=(r,t,n,o)=>{const a=r.typography[t]?.[n];if(!a)throw new Error(`Missing typography data for variant "${t}" and key "${n}"`);const e="base"===o?a.base:a.breakpoints?.[o];if(!e)throw new Error(`Missing value for variant "${t}", key "${n}", and breakpoint "${o}"`);if((0,k.default)(e))return e;switch(e.type){case"px":return e.value/16+"rem";case"unitless":return String(e.value)}return M()},S=(r,t)=>t in r.font?`var(--${m}-${t})`:t,j=(r,t)=>Object.fromEntries(v.flatMap(n=>[[`--${m}-${n}`,S(r,y(r,n,"fontFamily",t))],[`--${f}-${n}`,y(r,n,"fontSize",t)],[`--${u}-${n}`,y(r,n,"fontWeight",t)],[`--${l}-${n}`,y(r,n,"fontSlant",t)],[`--${c}-${n}`,y(r,n,"fontWidth",t)],[`--${d}-${n}`,y(r,n,"lineHeight",t)],[`--${i}-${n}`,y(r,n,"textTransform",t)]])),E=r=>Object.fromEntries(v.map(t=>[t,`var(--${r}-${t})`])),W={fontFamily:E(m),fontWeight:E(u),fontSlant:E(l),fontWidth:E(c),fontSize:E(f),lineHeight:E(d),textTransform:E(i)},F=r=>({":root":j(r,"base")}),L=r=>{const t=(n=r.breakpoints,Object.entries(n)).sort(([,{value:r}],[,{value:t}])=>r-t);var n;return{[`.${p}`]:Object.fromEntries(t.map(([t,{value:n}])=>[`@media (min-width: ${n}px)`,j(r,t)])),".uds-text-base":j(r,"base"),...Object.fromEntries(t.map(([t])=>[`.uds-text-${t}`,j(r,t)]))}};function _(r,t){const n=J(r);for(const r of n)t({"@font-face":r})}var O=x.withOptions(function({fontIds:r}){return function({addBase:t}){_(r,t)}});function z(r){return{light:{colorScheme:"light","--uds-light-mode-icon":"inline","--uds-dark-mode-icon":"none",...r.colorMode.light._vars},dark:{colorScheme:"dark","--uds-light-mode-icon":"none","--uds-dark-mode-icon":"inline",...r.colorMode.dark._vars}}}function J(r){return r.flatMap(r=>{const{declarations:n,fontFamily:o}=t[r];return n.map(r=>({fontFamily:o,fontDisplay:"swap",...r}))})}function T(r){return`"${r}"`}function D(r){return n(o(r).map(([r,n])=>{const o=`--${m}-${r}`,a=t[n];return[o,[a.fontFamily,...a.fallback].map(T).join(", ")]}))}function R(t){const a=o(t).flatMap(([t,n])=>o(n).flatMap(([n,o])=>w.map(a=>[r({variant:t,speed:n,control:a}),`${o[a]}`])));return n(a)}function A(r){return{...r.borderRadius._vars,...r.borderWidth._vars,...r.avatarSizes._vars,...r.iconSizes._vars}}function B(r){return{xSmall:A(r.scaleMode.xSmall),small:A(r.scaleMode.small),medium:A(r.scaleMode.medium),large:A(r.scaleMode.large),xLarge:A(r.scaleMode.xLarge),xxLarge:A(r.scaleMode.xxLarge),xxxLarge:A(r.scaleMode.xxxLarge)}}function G({config:r,shadowType:t}){const a=r.shadow[t],e=o(a).map(([r])=>[`.uds-${t}-shadow-${r}`,{[`--uds-${t}-shadow`]:`var(--${h}-${t}-shadow-${r})`,boxShadow:`var(--${h}-drop-shadow, 0 0 transparent), var(--${h}-inset-shadow, 0 0 transparent), var(--tw-ring-offset-shadow, 0 0 transparent), var(--tw-ring-shadow, 0 0 transparent), var(--tw-shadow, 0 0 transparent)`}]);return n(e)}export{W as RESPONSIVE_TAILWIND_CONFIG_MAP,_ as addFontFaceDeclarations,O as addFontsPlugin,M as assertUnreachable,F as getBaseTextStyles,z as getColorModeStyles,J as getFontFaceDeclarations,D as getFontStyles,R as getMotionStyles,L as getResponsiveTextStyles,B as getScaleModeStyles,G as getShadowStyles,b as require_isString};
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import{Text as r,cx as a}from"./chunk-
|
2
|
-
var l=i(e(),1),s=({htmlFor:e,required:i,label:s,children:n,color:c="muted",variant:h="label3",hasError:m=!1,showRequiredAsterisk:u=!1,as:d="label",className:p,...f})=>{const
|
1
|
+
import{Text as r,cx as a}from"./chunk-3Q2RRNEV.js";import{require_isFunction as e}from"./chunk-QRMOGL7I.js";import{__toESM as i}from"./chunk-GF4A6TFM.js";import{jsxs as t,jsx as o}from"react/jsx-runtime";/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */
|
2
|
+
var l=i(e(),1),s=({htmlFor:e,required:i,label:s,children:n,color:c="muted",variant:h="label3",hasError:m=!1,showRequiredAsterisk:u=!1,as:d="label",className:p,...f})=>{const j=s?(0,l.default)(s)?s():s:n;return j?t(r,{variant:h,color:c,as:d,htmlFor:e,className:a("cursor-[inherit]",p),...f,children:[j,i&&u&&o(r,{as:"sup",color:m?"alert":"inherit",variant:"inherit",spacingStart:"0.5","aria-hidden":!0,children:"*"})]}):null};export{s as FormLabel};
|