diff --git a/exporters/variables-scss/generated/exporter.cjs b/exporters/variables-scss/generated/exporter.cjs index 8173adbf84..4ebf24b95e 100644 --- a/exporters/variables-scss/generated/exporter.cjs +++ b/exporters/variables-scss/generated/exporter.cjs @@ -1,46 +1,46 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function nt(a){if(a.__esModule)return a;var i=a.default;if(typeof i=="function"){var u=function n(){return this instanceof n?Reflect.construct(i,arguments,this.constructor):i.apply(this,arguments)};u.prototype=i.prototype}else u={};return Object.defineProperty(u,"__esModule",{value:!0}),Object.keys(a).forEach(function(n){var T=Object.getOwnPropertyDescriptor(a,n);Object.defineProperty(u,n,T.get?T:{enumerable:!0,get:function(){return a[n]}})}),u}var k={},Ie={},Be;function at(){return Be||(Be=1,function(a){(()=>{var i={9932:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.docsImageRefToUrl=t.DocsImageRefType=void 0,function(e){e.resource="Resource",e.figmaNode="FigmaNode"}(o||(t.DocsImageRefType=o={})),t.docsImageRefToUrl=function(e,c,y){var l;if(e)switch(e.type){case o.resource:return(l=e.resource)===null||l===void 0?void 0:l.url;case o.figmaNode:return!e.figmaNode||!e.figmaNode.sourceId||!e.figmaNode.frameReferenceId?void 0:c.resources.getFigmaFrameHostedUrl({designSystemId:y.dsId,versionId:y.versionId},e.figmaNode.frameReferenceId);default:return}}},5673:(r,t)=>{var o;function e(c){switch(c.type){case o.documentationItem:return`@page:${c.documentationItemId}`;case o.pageHeading:return`@page:${c.documentationItemId}#${c.pageHeadingId}`;case o.url:return c.url;default:return}}Object.defineProperty(t,"__esModule",{value:!0}),t.linkAttributeToDocsLink=t.docsLinkToLinkAttributes=t.docsLinkToUrl=t.DocsLinkRefType=void 0,function(c){c.documentationItem="DocumentationItem",c.pageHeading="PageHeading",c.url="Url"}(o||(t.DocsLinkRefType=o={})),t.docsLinkToUrl=e,t.docsLinkToLinkAttributes=function(c){const y=e(c);if(y)return{href:y,target:c.openInNewTab?"_blank":"_self"}},t.linkAttributeToDocsLink=function(c,y){if(!c)return;const l=y==="_blank";if(c.startsWith("@page:")){if(c.includes("#")){const[p,s]=c.replace("@page:","").split("#");return{type:o.pageHeading,documentationItemId:p,pageHeadingId:s,openInNewTab:l}}return{type:o.documentationItem,documentationItemId:c.replace("@page:",""),openInNewTab:l}}return{type:o.url,url:c,openInNewTab:l}}},2657:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentationLegacyPageBlockShortcut=t.DocumentationLegacyPageBlockShortcutType=void 0,function(e){e.external="External",e.internal="Internal"}(o||(t.DocumentationLegacyPageBlockShortcutType=o={})),t.DocumentationLegacyPageBlockShortcut=class{constructor(e){var c;e.url?this.type=o.external:this.type=o.internal,this.title=this.shortcutTitleFromModel(e,this.type),this.description=this.shortcutDescriptionFromModel(e,this.type),this.previewUrl=this.shortcutPreviewUrlFromModel(e),this.type===o.internal&&(!((c=e.documentationItemPreview)===null||c===void 0)&&c.valid)&&e.documentationItemId?this.internalId=e.documentationItemId:(this.internalId=null,this.type===o.external&&e.url?this.externalUrl=e.url:this.externalUrl=null)}shortcutTitleFromModel(e,c){var y,l,p,s,d;let g=null;return e.title&&e.title.trim().length>0?g=e.title:c===o.internal?g=(l=(y=e.documentationItemPreview)===null||y===void 0?void 0:y.title)!==null&&l!==void 0?l:null:c===o.external&&(g=(d=(s=(p=e.urlPreview)===null||p===void 0?void 0:p.title)!==null&&s!==void 0?s:e.url)!==null&&d!==void 0?d:null),g&&g.trim().length!==0?g:null}shortcutDescriptionFromModel(e,c){var y;let l=null;return e.description&&e.description.trim().length>0?l=e.description:c===o.external&&(l=(y=e.urlPreview)===null||y===void 0?void 0:y.description),l&&l.trim().length!==0?l:null}shortcutPreviewUrlFromModel(e){var c,y,l,p,s;return(s=(l=(c=e.assetUrl)!==null&&c!==void 0?c:(y=e.asset)===null||y===void 0?void 0:y.url)!==null&&l!==void 0?l:(p=e.urlPreview)===null||p===void 0?void 0:p.thumbnailUrl)!==null&&s!==void 0?s:null}}},7476:(r,t)=>{var o,e;Object.defineProperty(t,"__esModule",{value:!0}),t.TextAlignment=t.Alignment=void 0,function(c){c.left="Left",c.center="Center",c.stretch="Stretch"}(o||(t.Alignment=o={})),function(c){c.left="Left",c.center="Center",c.right="Right"}(e||(t.TextAlignment=e={}))},8738:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.AssetFormat=void 0,function(e){e.png="png",e.pdf="pdf",e.svg="svg"}(o||(t.AssetFormat=o={}))},915:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.AssetScale=void 0,function(e){e.x1="x1",e.x2="x2",e.x3="x3",e.x4="x4"}(o||(t.AssetScale=o={}))},899:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.AssetScaleType=void 0,function(e){e.aspectFill="AspectFill",e.aspectFit="AspectFit"}(o||(t.AssetScaleType=o={}))},6192:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.BlurType=void 0,function(e){e.layer="Layer",e.background="Background"}(o||(t.BlurType=o={}))},1160:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.ALL_BORDER_POSITIONS=t.BorderPosition=void 0,function(e){e.inside="Inside",e.center="Center",e.outside="Outside"}(o||(t.BorderPosition=o={})),t.ALL_BORDER_POSITIONS=[o.inside,o.center,o.outside]},4546:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.ALL_BORDER_STYLES=t.BorderStyle=void 0,function(e){e.dashed="Dashed",e.dotted="Dotted",e.solid="Solid",e.groove="Groove"}(o||(t.BorderStyle=o={})),t.ALL_BORDER_STYLES=[o.dashed,o.dotted,o.solid,o.groove]},8042:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.ImportWarningType=void 0,function(e){e.UnsupportedFill="UnsupportedFill",e.UnsupportedStroke="UnsupportedStroke",e.UnsupportedEffect="UnsupportedEffect",e.StyleNotApplied="StyleNotApplied",e.NoPublishedStyles="NoPublishedStyles",e.NoPublishedComponents="NoPublishedComponents",e.NoPublishedAssets="NoPublishedAssets",e.NoVersionFound="NoVersionFound",e.ComponentHasNoThumbnail="ComponentHasNoThumbnail",e.DuplicateImportedStyleId="DuplicateImportedStyleId",e.DuplicateImportedStylePath="DuplicateImportedStylePath",e.NoPublishedElements="NoPublishedElements",e.NoUnpublishedStyles="NoUnpublishedStyles"}(o||(t.ImportWarningType=o={}))},5695:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.CustomDomainErrorCode=void 0,function(e){e.generalError="GeneralError",e.dnsNotConfigured="DNSNotConfigured",e.maintenance="Maintenance"}(o||(t.CustomDomainErrorCode=o={}))},7737:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.CustomDomainState=void 0,function(e){e.initial="Initial",e.domainSetupInProgress="DomainSetupInProgress",e.domainSetupFailed="DomainSetupFailed",e.domainSetupsSucces="DomainSetupSuccess",e.sslSetupInProgress="SSLSetupInProgress",e.sslSetupFailed="SSLSetupFailed",e.sslSetupSuccess="SSLSetupSuccess"}(o||(t.CustomDomainState=o={}))},5651:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsBlockBehaviorDataType=void 0,function(e){e.item="Item",e.token="Token",e.asset="Asset",e.component="Component",e.figmaNode="FigmaNode",e.figmaComponent="FigmaComponent"}(o||(t.DocsBlockBehaviorDataType=o={}))},3733:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsBlockBehaviorSelectionType=void 0,function(e){e.entity="Entity",e.group="Group",e.entityAndGroup="EntityAndGroup"}(o||(t.DocsBlockBehaviorSelectionType=o={}))},8890:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsBlockImagePropertyAspectRatio=void 0,function(e){e.auto="Auto",e.square="Square",e.landscape="Landscape",e.portrait="Portrait",e.wide="Wide"}(o||(t.DocsBlockImagePropertyAspectRatio=o={}))},9377:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsBlockItemEntityType=void 0,function(e){e.token="Token",e.tokenGroup="TokenGroup",e.asset="Asset",e.assetGroup="AssetGroup",e.component="Component",e.componentGroup="ComponentGroup"}(o||(t.DocsBlockItemEntityType=o={}))},5883:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsBlockItemPropertyOptionRenderingStyle=void 0,function(e){e.segmentedControl="SegmentedControl",e.toggleButton="ToggleButton",e.select="Select",e.checkbox="Checkbox"}(o||(t.DocsBlockItemPropertyOptionRenderingStyle=o={}))},8061:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsBlockItemPropertyRichTextStyle=void 0,function(e){e.title1="Title1",e.title2="Title2",e.title3="Title3",e.title4="Title4",e.title5="Title5",e.quote="Quote",e.callout="Callout",e.ol="OL",e.ul="UL"}(o||(t.DocsBlockItemPropertyRichTextStyle=o={}))},7479:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsBlockItemPropertyTextStyle=void 0,function(e){e.small="Small",e.regular="Regular",e.bold="Bold"}(o||(t.DocsBlockItemPropertyTextStyle=o={}))},6839:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsBlockItemPropertyType=void 0,function(e){e.richText="RichText",e.multiRichText="MultiRichText",e.text="Text",e.boolean="Boolean",e.number="Number",e.singleSelect="SingleSelect",e.multiSelect="MultiSelect",e.image="Image",e.token="Token",e.tokenType="TokenType",e.tokenProperty="TokenProperty",e.component="Component",e.componentProperty="ComponentProperty",e.asset="Asset",e.assetProperty="AssetProperty",e.embedURL="EmbedURL",e.url="URL",e.markdown="Markdown",e.code="Code",e.codeSandbox="CodeSandbox",e.table="Table",e.divider="Divider",e.storybook="Storybook",e.color="Color",e.figmaNode="FigmaNode",e.figmaComponent="FigmaComponent"}(o||(t.DocsBlockItemPropertyType=o={}))},8095:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsBlockItemVariantLayoutType=void 0,function(e){e.column="Column",e.row="Row"}(o||(t.DocsBlockItemVariantLayoutType=o={}))},7291:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsBlockItemVariantLayoutWidth=void 0,function(e){e.c1="1",e.c2="2",e.c3="3",e.c4="4",e.c5="5",e.c6="6",e.c7="7",e.c8="8",e.c9="9",e.c10="10",e.c11="11",e.c12="12"}(o||(t.DocsBlockItemVariantLayoutWidth=o={}))},5963:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsBlockOptionRenderingStyle=void 0,function(e){e.segmentedControl="SegmentedControl",e.toggleButton="ToggleButton",e.select="Select",e.checkbox="Checkbox"}(o||(t.DocsBlockOptionRenderingStyle=o={}))},6644:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsBlockRichTextPropertyStyle=void 0,function(e){e.title1="Title1",e.title2="Title2",e.title3="Title3",e.title4="Title4",e.title5="Title5",e.quote="Quote",e.callout="Callout",e.default="Default"}(o||(t.DocsBlockRichTextPropertyStyle=o={}))},306:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsBlockTextPropertyStyle=void 0,function(e){e.title1="Title1",e.title2="Title2",e.title3="Title3",e.title4="Title4",e.title5="Title5",e.default="Default",e.defaultBold="DefaultBold",e.defaultSemibold="DefaultSemibold",e.small="Small",e.smallBold="SmallBold",e.smallSemibold="SmallSemibold",e.custom="Custom"}(o||(t.DocsBlockTextPropertyStyle=o={}))},4068:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsEntityGroupBehavior=void 0,function(e){e.group="Group",e.tabs="Tabs"}(o||(t.DocsEntityGroupBehavior=o={}))},1233:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsEntityType=void 0,function(e){e.group="Group",e.page="Page"}(o||(t.DocsEntityType=o={}))},7971:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsSectionType=void 0,function(e){e.plain="Plain",e.tabs="Tabs"}(o||(t.DocsSectionType=o={}))},5102:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentationLegacyCalloutType=void 0,function(e){e.info="Info",e.success="Success",e.warning="Warning",e.error="Error"}(o||(t.DocumentationLegacyCalloutType=o={}))},2123:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentationLegacyGroupBehavior=void 0,function(e){e.group="Group",e.tabs="Tabs"}(o||(t.DocumentationLegacyGroupBehavior=o={}))},9896:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentationLegacyHeadingType=void 0,function(e){e[e.h1=1]="h1",e[e.h2=2]="h2",e[e.h3=3]="h3"}(o||(t.DocumentationLegacyHeadingType=o={}))},7379:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentationLegacyItemType=void 0,function(e){e.group="Group",e.page="Page"}(o||(t.DocumentationLegacyItemType=o={}))},1423:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentationLegacyPageAssetType=void 0,function(e){e.image="image",e.figmaFrame="figmaFrame"}(o||(t.DocumentationLegacyPageAssetType=o={}))},1601:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentationLegacyPageBlockThemeType=void 0,function(e){e.override="Override",e.comparison="Comparison"}(o||(t.DocumentationLegacyPageBlockThemeType=o={}))},1846:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentationLegacyPageBlockType=void 0,function(e){e.text="Text",e.heading="Heading",e.code="Code",e.unorderedList="UnorderedList",e.orderedList="OrderedList",e.quote="Quote",e.callout="Callout",e.divider="Divider",e.image="Image",e.token="Token",e.tokenList="TokenList",e.tokenGroup="TokenGroup",e.shortcuts="Shortcuts",e.link="Link",e.figmaEmbed="FigmaEmbed",e.youtubeEmbed="YoutubeEmbed",e.storybookEmbed="StorybookEmbed",e.genericEmbed="Embed",e.figmaFrames="FigmaFrames",e.custom="Custom",e.renderCode="RenderCode",e.componentAssets="ComponentAssets",e.column="Column",e.columnItem="ColumnItem",e.tabs="Tabs",e.tabItem="TabItem",e.table="Table",e.tableCell="TableCell",e.tableRow="TableRow"}(o||(t.DocumentationLegacyPageBlockType=o={}))},1255:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.FrameAlignment=void 0,function(e){e.frameHeight="FrameHeight",e.center="Center"}(o||(t.FrameAlignment=o={}))},3718:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.FrameLayout=void 0,function(e){e.c8="C8",e.c7="C7",e.c6="C6",e.c5="C5",e.c4="C4",e.c3="C3",e.c2="C2",e.c1="C1",e.c175="C1_75"}(o||(t.FrameLayout=o={}))},1:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.GradientType=void 0,function(e){e.linear="Linear",e.radial="Radial",e.angular="Angular"}(o||(t.GradientType=o={}))},2674:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.RichTextSpanAttributeType=void 0,function(e){e.bold="Bold",e.italic="Italic",e.link="Link",e.strikethrough="Strikethrough",e.code="Code"}(o||(t.RichTextSpanAttributeType=o={}))},9125:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.ShadowType=void 0,function(e){e.drop="Drop",e.inner="Inner"}(o||(t.ShadowType=o={}))},4652:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.SourceType=void 0,function(e){e.figma="Figma",e.tokenStudio="TokenStudio",e.figmaVariablesPlugin="FigmaVariablesPlugin"}(o||(t.SourceType=o={}))},922:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.TextCase=void 0,function(e){e.original="Original",e.upper="Upper",e.lower="Lower",e.camel="Camel",e.smallCaps="SmallCaps"}(o||(t.TextCase=o={}))},7040:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.TextDecoration=void 0,function(e){e.original="None",e.underline="Underline",e.strikethrough="Strikethrough"}(o||(t.TextDecoration=o={}))},3788:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DT_TOKEN_TYPES=t.tokenTypeIsReferencable=t.REFERENCABLE_TOKEN_TYPES=t.REPLACABLE_TOKEN_TYPES=t.tokenTypeIsNonPure=t.tokenTypeIsPure=t.PURE_TOKEN_TYPES=t.ALL_TOKEN_TYPES=t.MS_DIMENSION_TOKEN_TYPES=t.RAW_DIMENSION_TOKEN_TYPES=t.DIMENSION_TOKEN_TYPES=t.OPTION_TOKEN_TYPES=t.STRING_TOKEN_TYPES=t.TokenType=void 0,function(e){e.color="Color",e.typography="Typography",e.shadow="Shadow",e.border="Border",e.gradient="Gradient",e.blur="Blur",e.radius="BorderRadius",e.borderWidth="BorderWidth",e.duration="Duration",e.fontSize="FontSize",e.dimension="Dimension",e.letterSpacing="LetterSpacing",e.lineHeight="LineHeight",e.opacity="Opacity",e.paragraphSpacing="ParagraphSpacing",e.size="Size",e.space="Space",e.zIndex="ZIndex",e.textDecoration="TextDecoration",e.textCase="TextCase",e.visibility="Visibility",e.fontFamily="FontFamily",e.fontWeight="FontWeight",e.string="String",e.productCopy="ProductCopy"}(o||(t.TokenType=o={})),t.STRING_TOKEN_TYPES=[o.string,o.productCopy,o.fontFamily,o.fontWeight],t.OPTION_TOKEN_TYPES=[o.textCase,o.textDecoration,o.visibility],t.DIMENSION_TOKEN_TYPES=[o.dimension,o.size,o.space,o.opacity,o.fontSize,o.lineHeight,o.letterSpacing,o.paragraphSpacing,o.borderWidth,o.radius,o.duration,o.zIndex],t.RAW_DIMENSION_TOKEN_TYPES=[o.opacity,o.zIndex],t.MS_DIMENSION_TOKEN_TYPES=[o.duration],t.ALL_TOKEN_TYPES=[...t.DIMENSION_TOKEN_TYPES,...t.STRING_TOKEN_TYPES,...t.OPTION_TOKEN_TYPES,o.color,o.gradient,o.border,o.radius,o.shadow,o.typography,o.blur],t.PURE_TOKEN_TYPES=[...t.DIMENSION_TOKEN_TYPES,...t.STRING_TOKEN_TYPES,...t.OPTION_TOKEN_TYPES],t.tokenTypeIsPure=e=>t.PURE_TOKEN_TYPES.includes(e),t.tokenTypeIsNonPure=e=>!(0,t.tokenTypeIsPure)(e),t.REPLACABLE_TOKEN_TYPES=[o.color,...t.DIMENSION_TOKEN_TYPES,...t.STRING_TOKEN_TYPES,...t.OPTION_TOKEN_TYPES],t.REFERENCABLE_TOKEN_TYPES=[o.color,...t.DIMENSION_TOKEN_TYPES,o.fontFamily,o.fontWeight,o.textCase,o.textDecoration],t.tokenTypeIsReferencable=e=>t.REFERENCABLE_TOKEN_TYPES.includes(e),t.DT_TOKEN_TYPES=[o.color,o.shadow,o.gradient,o.typography,o.border,...t.DIMENSION_TOKEN_TYPES,o.fontFamily,o.fontWeight,...t.OPTION_TOKEN_TYPES]},8607:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.MS_UNITS=t.PX_UNITS=t.RAW_UNITS=t.LINE_HEIGHT_UNITS=t.SIZE_UNITS=t.Unit=void 0,function(e){e.pixels="Pixels",e.percent="Percent",e.rem="Rem",e.ms="Ms",e.raw="Raw"}(o||(t.Unit=o={})),t.SIZE_UNITS=[o.pixels,o.percent,o.rem],t.LINE_HEIGHT_UNITS=[o.pixels,o.percent,o.rem,o.raw],t.RAW_UNITS=[o.raw],t.PX_UNITS=[o.pixels],t.MS_UNITS=[o.ms]},9478:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.UserRole=void 0,function(e){e.owner="Owner",e.admin="Admin",e.creator="Creator",e.billing="Billing",e.viewer="Viewer"}(o||(t.UserRole=o={}))},6141:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.VisibilityType=void 0,function(e){e.visible="Visible",e.hidden="Hidden"}(o||(t.VisibilityType=o={}))},6298:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.WorkspaceNPMRegistryAuthType=void 0,function(e){e.basic="Basic",e.bearer="Bearer"}(o||(t.WorkspaceNPMRegistryAuthType=o={}))},7968:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.WorkspaceNPMRegistryType=void 0,function(e){e.npmJS="NPMJS",e.gitHub="GitHub",e.azureDevOps="AzureDevOps",e.artifactory="Artifactory",e.custom="Custom"}(o||(t.WorkspaceNPMRegistryType=o={}))},5503:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.WorkspaceSubscriptionPlanInterval=void 0,function(e){e.yearly="yearly",e.monthly="monthly"}(o||(t.WorkspaceSubscriptionPlanInterval=o={}))},4290:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.WorkspaceSubscriptionProductCode=void 0,function(e){e.free="free",e.team="team",e.teamTest="team_test",e.company="company",e.enterprise="enterprise"}(o||(t.WorkspaceSubscriptionProductCode=o={}))},3607:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.WorkspaceSubscriptionStatus=void 0,function(e){e.active="active",e.gracePeriod="gracePeriod",e.cancelled="cancelled",e.suspended="suspended"}(o||(t.WorkspaceSubscriptionStatus=o={}))},2802:(r,t)=>{var o,e;Object.defineProperty(t,"__esModule",{value:!0}),t.PulsarExecutor=t.OutputFileType=void 0,function(c){c.copyRemoteUrl="copyRemoteUrl",c.text="text",c.binary="binary"}(o||(t.OutputFileType=o={})),function(c){c.supernova="supernova",c.local="local"}(e||(t.PulsarExecutor=e={}))}},u={};function n(r){var t=u[r];if(t!==void 0)return t.exports;var o=u[r]={exports:{}};return i[r](o,o.exports,n),o.exports}var T={};(()=>{var r=T;Object.defineProperty(r,"__esModule",{value:!0}),r.UserRole=r.Unit=r.TokenType=r.TextDecoration=r.TextCase=r.ShadowType=r.RichTextSpanAttributeType=r.GradientType=r.FrameLayout=r.FrameAlignment=r.SourceType=r.DocsImageRefType=r.DocsLinkRefType=r.DocsSectionType=r.DocsEntityType=r.DocsEntityGroupBehavior=r.DocsBlockTextPropertyStyle=r.DocsBlockRichTextPropertyStyle=r.DocsBlockOptionRenderingStyle=r.DocsBlockItemVariantLayoutWidth=r.DocsBlockItemVariantLayoutType=r.DocsBlockItemPropertyType=r.DocsBlockItemPropertyTextStyle=r.DocsBlockItemPropertyRichTextStyle=r.DocsBlockItemPropertyOptionRenderingStyle=r.DocsBlockItemEntityType=r.DocsBlockImagePropertyAspectRatio=r.DocsBlockBehaviorSelectionType=r.DocsBlockBehaviorDataType=r.DocumentationLegacyPageBlockShortcutType=r.DocumentationLegacyPageBlockThemeType=r.DocumentationLegacyPageBlockType=r.DocumentationLegacyPageAssetType=r.DocumentationLegacyItemType=r.DocumentationLegacyHeadingType=r.DocumentationLegacyGroupBehavior=r.DocumentationLegacyCalloutType=r.BorderStyle=r.BorderPosition=r.BlurType=r.AssetScaleType=r.AssetScale=r.AssetFormat=r.Alignment=r.ALL_TOKEN_TYPES=r.ALL_BORDER_STYLES=r.ALL_BORDER_POSITIONS=r.OPTION_TOKEN_TYPES=r.STRING_TOKEN_TYPES=r.DIMENSION_TOKEN_TYPES=void 0,r.PulsarExecutor=r.OutputFileType=r.CustomDomainState=r.CustomDomainErrorCode=r.ImportWarningType=r.WorkspaceNPMRegistryType=r.WorkspaceNPMRegistryAuthType=r.WorkspaceSubscriptionStatus=r.WorkspaceSubscriptionProductCode=r.WorkspaceSubscriptionPlanInterval=r.VisibilityType=void 0;var t=n(3788);Object.defineProperty(r,"DIMENSION_TOKEN_TYPES",{enumerable:!0,get:function(){return t.DIMENSION_TOKEN_TYPES}}),Object.defineProperty(r,"STRING_TOKEN_TYPES",{enumerable:!0,get:function(){return t.STRING_TOKEN_TYPES}}),Object.defineProperty(r,"OPTION_TOKEN_TYPES",{enumerable:!0,get:function(){return t.OPTION_TOKEN_TYPES}});var o=n(1160);Object.defineProperty(r,"ALL_BORDER_POSITIONS",{enumerable:!0,get:function(){return o.ALL_BORDER_POSITIONS}});var e=n(4546);Object.defineProperty(r,"ALL_BORDER_STYLES",{enumerable:!0,get:function(){return e.ALL_BORDER_STYLES}});var c=n(3788);Object.defineProperty(r,"ALL_TOKEN_TYPES",{enumerable:!0,get:function(){return c.ALL_TOKEN_TYPES}});var y=n(7476);Object.defineProperty(r,"Alignment",{enumerable:!0,get:function(){return y.Alignment}});var l=n(8738);Object.defineProperty(r,"AssetFormat",{enumerable:!0,get:function(){return l.AssetFormat}});var p=n(915);Object.defineProperty(r,"AssetScale",{enumerable:!0,get:function(){return p.AssetScale}});var s=n(899);Object.defineProperty(r,"AssetScaleType",{enumerable:!0,get:function(){return s.AssetScaleType}});var d=n(6192);Object.defineProperty(r,"BlurType",{enumerable:!0,get:function(){return d.BlurType}});var g=n(1160);Object.defineProperty(r,"BorderPosition",{enumerable:!0,get:function(){return g.BorderPosition}});var b=n(4546);Object.defineProperty(r,"BorderStyle",{enumerable:!0,get:function(){return b.BorderStyle}});var S=n(5102);Object.defineProperty(r,"DocumentationLegacyCalloutType",{enumerable:!0,get:function(){return S.DocumentationLegacyCalloutType}});var P=n(2123);Object.defineProperty(r,"DocumentationLegacyGroupBehavior",{enumerable:!0,get:function(){return P.DocumentationLegacyGroupBehavior}});var h=n(9896);Object.defineProperty(r,"DocumentationLegacyHeadingType",{enumerable:!0,get:function(){return h.DocumentationLegacyHeadingType}});var O=n(7379);Object.defineProperty(r,"DocumentationLegacyItemType",{enumerable:!0,get:function(){return O.DocumentationLegacyItemType}});var E=n(1423);Object.defineProperty(r,"DocumentationLegacyPageAssetType",{enumerable:!0,get:function(){return E.DocumentationLegacyPageAssetType}});var I=n(1846);Object.defineProperty(r,"DocumentationLegacyPageBlockType",{enumerable:!0,get:function(){return I.DocumentationLegacyPageBlockType}});var H=n(1601);Object.defineProperty(r,"DocumentationLegacyPageBlockThemeType",{enumerable:!0,get:function(){return H.DocumentationLegacyPageBlockThemeType}});var U=n(2657);Object.defineProperty(r,"DocumentationLegacyPageBlockShortcutType",{enumerable:!0,get:function(){return U.DocumentationLegacyPageBlockShortcutType}});var W=n(5651);Object.defineProperty(r,"DocsBlockBehaviorDataType",{enumerable:!0,get:function(){return W.DocsBlockBehaviorDataType}});var V=n(3733);Object.defineProperty(r,"DocsBlockBehaviorSelectionType",{enumerable:!0,get:function(){return V.DocsBlockBehaviorSelectionType}});var Y=n(8890);Object.defineProperty(r,"DocsBlockImagePropertyAspectRatio",{enumerable:!0,get:function(){return Y.DocsBlockImagePropertyAspectRatio}});var G=n(9377);Object.defineProperty(r,"DocsBlockItemEntityType",{enumerable:!0,get:function(){return G.DocsBlockItemEntityType}});var K=n(5883);Object.defineProperty(r,"DocsBlockItemPropertyOptionRenderingStyle",{enumerable:!0,get:function(){return K.DocsBlockItemPropertyOptionRenderingStyle}});var z=n(8061);Object.defineProperty(r,"DocsBlockItemPropertyRichTextStyle",{enumerable:!0,get:function(){return z.DocsBlockItemPropertyRichTextStyle}});var q=n(7479);Object.defineProperty(r,"DocsBlockItemPropertyTextStyle",{enumerable:!0,get:function(){return q.DocsBlockItemPropertyTextStyle}});var Z=n(6839);Object.defineProperty(r,"DocsBlockItemPropertyType",{enumerable:!0,get:function(){return Z.DocsBlockItemPropertyType}});var X=n(8095);Object.defineProperty(r,"DocsBlockItemVariantLayoutType",{enumerable:!0,get:function(){return X.DocsBlockItemVariantLayoutType}});var Q=n(7291);Object.defineProperty(r,"DocsBlockItemVariantLayoutWidth",{enumerable:!0,get:function(){return Q.DocsBlockItemVariantLayoutWidth}});var J=n(5963);Object.defineProperty(r,"DocsBlockOptionRenderingStyle",{enumerable:!0,get:function(){return J.DocsBlockOptionRenderingStyle}});var ee=n(6644);Object.defineProperty(r,"DocsBlockRichTextPropertyStyle",{enumerable:!0,get:function(){return ee.DocsBlockRichTextPropertyStyle}});var te=n(306);Object.defineProperty(r,"DocsBlockTextPropertyStyle",{enumerable:!0,get:function(){return te.DocsBlockTextPropertyStyle}});var oe=n(4068);Object.defineProperty(r,"DocsEntityGroupBehavior",{enumerable:!0,get:function(){return oe.DocsEntityGroupBehavior}});var re=n(1233);Object.defineProperty(r,"DocsEntityType",{enumerable:!0,get:function(){return re.DocsEntityType}});var ne=n(7971);Object.defineProperty(r,"DocsSectionType",{enumerable:!0,get:function(){return ne.DocsSectionType}});var ae=n(5673);Object.defineProperty(r,"DocsLinkRefType",{enumerable:!0,get:function(){return ae.DocsLinkRefType}});var ie=n(9932);Object.defineProperty(r,"DocsImageRefType",{enumerable:!0,get:function(){return ie.DocsImageRefType}});var ce=n(4652);Object.defineProperty(r,"SourceType",{enumerable:!0,get:function(){return ce.SourceType}});var le=n(1255);Object.defineProperty(r,"FrameAlignment",{enumerable:!0,get:function(){return le.FrameAlignment}});var se=n(3718);Object.defineProperty(r,"FrameLayout",{enumerable:!0,get:function(){return se.FrameLayout}});var ue=n(1);Object.defineProperty(r,"GradientType",{enumerable:!0,get:function(){return ue.GradientType}});var pe=n(2674);Object.defineProperty(r,"RichTextSpanAttributeType",{enumerable:!0,get:function(){return pe.RichTextSpanAttributeType}});var de=n(9125);Object.defineProperty(r,"ShadowType",{enumerable:!0,get:function(){return de.ShadowType}});var ye=n(922);Object.defineProperty(r,"TextCase",{enumerable:!0,get:function(){return ye.TextCase}});var Te=n(7040);Object.defineProperty(r,"TextDecoration",{enumerable:!0,get:function(){return Te.TextDecoration}});var me=n(3788);Object.defineProperty(r,"TokenType",{enumerable:!0,get:function(){return me.TokenType}});var fe=n(8607);Object.defineProperty(r,"Unit",{enumerable:!0,get:function(){return fe.Unit}});var ge=n(9478);Object.defineProperty(r,"UserRole",{enumerable:!0,get:function(){return ge.UserRole}});var be=n(6141);Object.defineProperty(r,"VisibilityType",{enumerable:!0,get:function(){return be.VisibilityType}});var Se=n(5503);Object.defineProperty(r,"WorkspaceSubscriptionPlanInterval",{enumerable:!0,get:function(){return Se.WorkspaceSubscriptionPlanInterval}});var ve=n(4290);Object.defineProperty(r,"WorkspaceSubscriptionProductCode",{enumerable:!0,get:function(){return ve.WorkspaceSubscriptionProductCode}});var Pe=n(3607);Object.defineProperty(r,"WorkspaceSubscriptionStatus",{enumerable:!0,get:function(){return Pe.WorkspaceSubscriptionStatus}});var he=n(6298);Object.defineProperty(r,"WorkspaceNPMRegistryAuthType",{enumerable:!0,get:function(){return he.WorkspaceNPMRegistryAuthType}});var ke=n(7968);Object.defineProperty(r,"WorkspaceNPMRegistryType",{enumerable:!0,get:function(){return ke.WorkspaceNPMRegistryType}});var Oe=n(8042);Object.defineProperty(r,"ImportWarningType",{enumerable:!0,get:function(){return Oe.ImportWarningType}});var _e=n(5695);Object.defineProperty(r,"CustomDomainErrorCode",{enumerable:!0,get:function(){return _e.CustomDomainErrorCode}});var Ce=n(7737);Object.defineProperty(r,"CustomDomainState",{enumerable:!0,get:function(){return Ce.CustomDomainState}});var A=n(2802);Object.defineProperty(r,"OutputFileType",{enumerable:!0,get:function(){return A.OutputFileType}}),Object.defineProperty(r,"PulsarExecutor",{enumerable:!0,get:function(){return A.PulsarExecutor}})})();var m=a;for(var f in T)m[f]=T[f];T.__esModule&&Object.defineProperty(m,"__esModule",{value:!0})})()}(Ie)),Ie}var _=function(){return _=Object.assign||function(i){for(var u,n=1,T=arguments.length;n0&&u>="0"&&u<="9"?"_"+u+n:""+u.toUpperCase()+n}function He(a){return a.charAt(0).toUpperCase()+a.slice(1).toLowerCase()}function Ue(a,i){return i===void 0&&(i={}),L(a,_({delimiter:"",transform:Ee},i))}function We(a,i){return i===0?a.toLowerCase():Ee(a,i)}function st(a,i){return i===0?a.toLowerCase():He(a)}function ut(a,i){return i===void 0&&(i={}),Ue(a,_({transform:We},i))}function Ve(a){return a.charAt(0).toUpperCase()+a.substr(1)}function Ye(a){return Ve(a.toLowerCase())}function Ge(a,i){return i===void 0&&(i={}),L(a,_({delimiter:" ",transform:Ye},i))}function pt(a){return a.toUpperCase()}function dt(a,i){return i===void 0&&(i={}),L(a,_({delimiter:"_",transform:pt},i))}function w(a,i){return i===void 0&&(i={}),L(a,_({delimiter:"."},i))}function yt(a,i){return i===void 0&&(i={}),Ge(a,_({delimiter:"-"},i))}function Tt(a,i){return i===void 0&&(i={}),w(a,_({delimiter:"-"},i))}function mt(a,i){return i===void 0&&(i={}),w(a,_({delimiter:"/"},i))}function Ke(a,i){var u=a.toLowerCase();return i===0?Ve(u):u}function ft(a,i){return i===void 0&&(i={}),L(a,_({delimiter:" ",transform:Ke},i))}function gt(a,i){return i===void 0&&(i={}),w(a,_({delimiter:"_"},i))}const bt=Object.freeze(Object.defineProperty({__proto__:null,camelCase:ut,camelCaseTransform:We,camelCaseTransformMerge:st,capitalCase:Ge,capitalCaseTransform:Ye,constantCase:dt,dotCase:w,headerCase:yt,noCase:L,paramCase:Tt,pascalCase:Ue,pascalCaseTransform:Ee,pascalCaseTransformMerge:He,pathCase:mt,sentenceCase:ft,sentenceCaseTransform:Ke,snakeCase:gt},Symbol.toStringTag,{value:"Module"})),St=nt(bt);(function(a){(()=>{var i={639:(r,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Iterators=void 0;const e=o(58);t.Iterators=class{static allTokenTypes(){return[e.TokenType.color,e.TokenType.typography,e.TokenType.dimension,e.TokenType.size,e.TokenType.space,e.TokenType.opacity,e.TokenType.fontSize,e.TokenType.lineHeight,e.TokenType.letterSpacing,e.TokenType.paragraphSpacing,e.TokenType.borderWidth,e.TokenType.radius,e.TokenType.duration,e.TokenType.zIndex,e.TokenType.shadow,e.TokenType.border,e.TokenType.gradient,e.TokenType.string,e.TokenType.productCopy,e.TokenType.fontFamily,e.TokenType.fontWeight,e.TokenType.textCase,e.TokenType.textDecoration,e.TokenType.visibility,e.TokenType.blur]}static allDimensionTokenTypes(){return[e.TokenType.dimension,e.TokenType.size,e.TokenType.space,e.TokenType.opacity,e.TokenType.fontSize,e.TokenType.lineHeight,e.TokenType.letterSpacing,e.TokenType.paragraphSpacing,e.TokenType.borderWidth,e.TokenType.radius,e.TokenType.duration,e.TokenType.zIndex]}static allStringTokenTypes(){return[e.TokenType.string,e.TokenType.productCopy,e.TokenType.fontFamily,e.TokenType.fontWeight]}static allOptionTokenTypes(){return[e.TokenType.textCase,e.TokenType.textDecoration,e.TokenType.visibility]}}},989:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.ColorFormat=void 0,(o=t.ColorFormat||(t.ColorFormat={})).rgb="rgb",o.rgba="rgba",o.smartRgba="smartRgba",o.hex6="hex6",o.hex8="hex8",o.hashHex6="hashHex6",o.hashHex8="hashHex8",o.smartHashHex="smartHashHex",o.smartHex="smartHex",o.hsl="hsl",o.hsla="hsla",o.smartHsla="smartHsla",o.smartUIColor="smartUIColor"},545:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.StringCase=void 0,(o=t.StringCase||(t.StringCase={})).camelCase="camelCase",o.capitalCase="capitalCase",o.constantCase="constantCase",o.dotCase="dotCase",o.headerCase="headerCase",o.noCase="noCase",o.paramCase="paramCase",o.pascalCase="pascalCase",o.pathCase="pathCase",o.sentenceCase="sentenceCase",o.snakeCase="snakeCase"},617:(r,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FileHelper=void 0;const e=o(58);t.FileHelper=class{static createCopyRemoteFile({relativePath:c,fileName:y,url:l}){return{path:c,name:y,type:e.OutputFileType.copyRemoteUrl,url:l}}static createTextFile({relativePath:c,fileName:y,content:l}){return{path:c,name:y,type:e.OutputFileType.text,content:l}}static createBinaryFile({relativePath:c,fileName:y,data:l}){return{path:c,name:y,type:e.OutputFileType.binary,data:l}}}},761:(r,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.sureOptionalReference=void 0,t.sureOptionalReference=function(o,e,c=!0){if(!o||!c)return null;const y=e.get(o);if(!y)throw new Error(`Trying to retrieve unknown referenced token ${o}`);return y}},118:(r,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NetworkHelper=void 0,t.NetworkHelper=class{static async fetchAsText(o,e,c){return(await this.performFetch(o,e,c)).text()}static async fetchAsJSON(o,e,c){return(await this.performFetch(o,e,c)).json()}static async fetchAsData(o,e,c){return(await this.performFetch(o,e,c)).arrayBuffer()}static async performFetch(o,e,c){try{const y=await o.network.fetch(e,c);if(!y.ok)throw new Error(`Request failed with status ${y.status}, error: ${await y.text()}`);return y}catch(y){throw y}}}},771:(r,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CSSHelper=void 0;const e=o(58),c=o(761),y=o(952);t.CSSHelper=class{static tokenToCSS(l,p,s){switch(l.tokenType){case e.TokenType.color:return this.colorTokenValueToCSS(l.value,p,s);case e.TokenType.border:return this.borderTokenValueToCSS(l.value,p,s);case e.TokenType.gradient:return this.gradientTokenValueToCSS(l.value,p,s);case e.TokenType.dimension:case e.TokenType.size:case e.TokenType.space:case e.TokenType.opacity:case e.TokenType.fontSize:case e.TokenType.lineHeight:case e.TokenType.letterSpacing:case e.TokenType.paragraphSpacing:case e.TokenType.borderWidth:case e.TokenType.radius:case e.TokenType.duration:case e.TokenType.zIndex:return this.dimensionTokenValueToCSS(l.value,p,s);case e.TokenType.shadow:return this.shadowTokenValueToCSS(l.value,p,s);case e.TokenType.fontWeight:return this.fontWeightTokenValueToCSS(l.value,p,s);case e.TokenType.fontFamily:case e.TokenType.productCopy:case e.TokenType.string:return this.stringTokenValueToCSS(l.value,p,s);case e.TokenType.textCase:case e.TokenType.textDecoration:case e.TokenType.visibility:return this.optionTokenValueToCSS(l.value,p,s,l.tokenType);case e.TokenType.blur:return this.blurTokenValueToCSS(l.value,p,s);case e.TokenType.typography:return this.typographyTokenValueToCSS(l.value,p,s);default:throw new e.UnreachableCaseError(l.tokenType,"Unsupported token type for transformation to CSS:")}}static colorTokenValueToCSS(l,p,s){return y.ColorHelper.formattedColorOrVariableName(l,p,s)}static borderTokenValueToCSS(l,p,s){const d=(0,c.sureOptionalReference)(l.referencedTokenId,p,s.allowReferences);if(d)return s.tokenToVariableRef(d);const g=this.dimensionTokenValueToCSS(l.width,p,s),b=this.borderStyleToCSS(l.style),S=this.colorTokenValueToCSS(l.color,p,s);return this.borderPositionToCSS(l.position),`${g} ${b} ${S}`}static gradientTokenValueToCSS(l,p,s){return l.map(d=>this.gradientLayerToCSS(d,p,s)).join(", ")}static gradientLayerToCSS(l,p,s){const d=(0,c.sureOptionalReference)(l.referencedTokenId,p,s.allowReferences);if(d)return s.tokenToVariableRef(d);let g="";switch(l.type){case e.GradientType.linear:g="linear-gradient(0deg, ";break;case e.GradientType.radial:g="radial-gradient(circle, ";break;case e.GradientType.angular:g="conic-gradient(";break;default:g="linear-gradient(0deg, "}return`${g}${l.stops.map(b=>`${this.colorTokenValueToCSS(b.color,p,s)} ${y.ColorHelper.roundToDecimals(100*b.position,s.decimals)}%`).join(", ")})`}static dimensionTokenValueToCSS(l,p,s){const d=(0,c.sureOptionalReference)(l.referencedTokenId,p,s.allowReferences);return d?s.tokenToVariableRef(d):`${y.ColorHelper.roundToDecimals(l.measure,s.decimals)}${this.unitToCSS(l.unit)}`}static shadowTokenValueToCSS(l,p,s){return l.map(d=>this.shadowLayerToCSS(d,p,s)).join(", ")}static shadowLayerToCSS(l,p,s){const d=(0,c.sureOptionalReference)(l.referencedTokenId,p,s.allowReferences);return d?s.tokenToVariableRef(d):`${l.type===e.ShadowType.inner?"inset ":""}${l.x}px ${l.y}px ${l.radius}px ${l.spread}px ${this.colorTokenValueToCSS({...l.color,...l.opacity&&{opacity:l.opacity}},p,s)}`}static fontWeightTokenValueToCSS(l,p,s){const d=(0,c.sureOptionalReference)(l.referencedTokenId,p,s.allowReferences);return d?s.tokenToVariableRef(d):`${l.text}`}static stringTokenValueToCSS(l,p,s){const d=(0,c.sureOptionalReference)(l.referencedTokenId,p,s.allowReferences);return d?s.tokenToVariableRef(d):`"${l.text}"`}static optionTokenValueToCSS(l,p,s,d){const g=(0,c.sureOptionalReference)(l.referencedTokenId,p,s.allowReferences);return g?s.tokenToVariableRef(g):d===e.TokenType.textCase?this.textCaseToCSS(l.value):d===e.TokenType.textDecoration?this.textDecorationToCSS(l.value):l.value}static blurTokenValueToCSS(l,p,s){const d=(0,c.sureOptionalReference)(l.referencedTokenId,p,s.allowReferences);return d?s.tokenToVariableRef(d):`blur(${this.dimensionTokenValueToCSS(l.radius,p,s)})`}static typographyTokenValueToCSS(l,p,s){const d=(0,c.sureOptionalReference)(l.referencedTokenId,p,s.allowReferences);if(d)return s.tokenToVariableRef(d);const g=(0,c.sureOptionalReference)(l.fontFamily.referencedTokenId,p,s.allowReferences),b=(0,c.sureOptionalReference)(l.fontWeight.referencedTokenId,p,s.allowReferences),S=(0,c.sureOptionalReference)(l.textDecoration.referencedTokenId,p,s.allowReferences),P=(0,c.sureOptionalReference)(l.textCase.referencedTokenId,p,s.allowReferences),h={fontFamily:g?s.tokenToVariableRef(g):l.fontFamily.text,fontWeight:b?s.tokenToVariableRef(b):l.fontWeight.text,textDecoration:S?s.tokenToVariableRef(S):l.textDecoration.value===e.TextDecoration.original?this.textDecorationToCSS(l.textDecoration.value):void 0,textCase:P?s.tokenToVariableRef(P):l.textCase.value===e.TextCase.original?this.textCaseToCSS(l.textCase.value):void 0,caps:l.textCase.value===e.TextCase.smallCaps,fontSize:this.dimensionTokenValueToCSS(l.fontSize,p,s),lineHeight:l.lineHeight?this.dimensionTokenValueToCSS(l.lineHeight,p,s):void 0},O=h.fontSize;return`${h.caps?"small-caps ":""}${h.fontWeight} ${h.lineHeight?`${O}/${h.lineHeight}`:O} ${g?h.fontFamily:`"${h.fontFamily}"`}`}static borderStyleToCSS(l){switch(l){case e.BorderStyle.dashed:return"dashed";case e.BorderStyle.dotted:return"dotted";case e.BorderStyle.solid:return"solid";case e.BorderStyle.groove:return"groove";default:return"solid"}}static borderPositionToCSS(l){switch(l){case e.BorderPosition.center:return"center";case e.BorderPosition.inside:return"inside";case e.BorderPosition.outside:default:return"outside"}}static unitToCSS(l){switch(l){case e.Unit.percent:return"%";case e.Unit.pixels:return"px";case e.Unit.rem:return"rem";case e.Unit.raw:return"";case e.Unit.ms:return"ms";default:return"px"}}static textCaseToCSS(l){switch(l){case e.TextCase.original:return"none";case e.TextCase.upper:return"uppercase";case e.TextCase.lower:return"lowercase";case e.TextCase.camel:case e.TextCase.smallCaps:return"capitalize"}}static textDecorationToCSS(l){switch(l){case e.TextDecoration.original:return"none";case e.TextDecoration.underline:return"underline";case e.TextDecoration.strikethrough:return"line-through"}}}},952:(r,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ColorHelper=void 0;const e=o(989),c=o(761);class y{static formattedColorOrVariableName(p,s,d){let g,b,S;const P=(0,c.sureOptionalReference)(p.referencedTokenId,s,d.allowReferences);if(P)g=d.tokenToVariableRef(P);else{const h=(0,c.sureOptionalReference)(p.color.referencedTokenId,s,d.allowReferences);h&&(b=d.tokenToVariableRef(h));const O=(0,c.sureOptionalReference)(p.opacity.referencedTokenId,s,d.allowReferences);O&&(S=d.tokenToVariableRef(O))}if(g)return g;if(!g&&!b&&!S)return this.formattedColor(p,d.colorFormat,d.decimals);switch(d.colorFormat){case e.ColorFormat.rgb:case e.ColorFormat.rgba:case e.ColorFormat.smartRgba:return this.colorToRgb(d.colorFormat,this.normalizedIntColor(p),p.opacity.measure,d.decimals,b,S);default:return this.formattedColor(p,d.colorFormat,d.decimals)}}static formattedColor(p,s,d=3){switch(s){case e.ColorFormat.hex6:case e.ColorFormat.hex8:case e.ColorFormat.hashHex6:case e.ColorFormat.hashHex8:case e.ColorFormat.smartHex:case e.ColorFormat.smartHashHex:return this.colorToHex(s,this.normalizedIntColor(p),p.opacity.measure);case e.ColorFormat.rgb:case e.ColorFormat.rgba:case e.ColorFormat.smartRgba:return this.colorToRgb(s,this.normalizedIntColor(p),p.opacity.measure,d,null,null);case e.ColorFormat.hsl:case e.ColorFormat.hsla:case e.ColorFormat.smartHsla:return this.colorToHsl(s,this.normalizedFractionalColor(p),p.opacity.measure,d);case e.ColorFormat.smartUIColor:return this.colorToUIColor(this.normalizedIntColor(p),p.opacity.measure,d)}}static colorToRgb(p,s,d,g,b,S){let P;return P=p===e.ColorFormat.rgba||p===e.ColorFormat.smartRgba&&d<1?`rgba(${b||`${s.r}, ${s.g}, ${s.b}`}, ${S||this.roundToDecimals(d,g)})`:`rgb(${b||`${s.r}, ${s.g}, ${s.b}`})`,P}static colorToHex(p,s,d){let g=`${this.pHex(s.r)}${this.pHex(s.g)}${this.pHex(s.b)}`;return(p===e.ColorFormat.hex8||p===e.ColorFormat.hashHex8||p===e.ColorFormat.smartHex&&d<1||p===e.ColorFormat.smartHashHex&&d<1)&&(g+=`${this.pHex(Math.round(255*d))}`),p!==e.ColorFormat.hashHex6&&p!==e.ColorFormat.hashHex8&&p!==e.ColorFormat.smartHashHex||(g=`#${g}`),g}static colorToHsl(p,s,d,g){const b=Math.max(s.r,s.g,s.b),S=Math.min(s.r,s.g,s.b);let P,h,O,E=(b+S)/2;if(b===S)P=h=0;else{const I=b-S;h=E>.5?I/(2-b-S):I/(b+S),b===s.r?P=(s.g-s.b)/I+(s.g{Object.defineProperty(t,"__esModule",{value:!0}),t.NamingHelper=void 0;const e=o(110),c=o(545);class y{static codeSafeVariableNameForToken(p,s,d,g){let b=[];return d&&(b=[...d.path],d.isRoot||b.push(d.name)),b.push(p.name),g&&g.length>0&&b.unshift(g),y.codeSafeVariableName(b,s)}static codeSafeVariableName(p,s){let d=typeof p=="string"?p:p.join(" ");switch(d=d.replaceAll(/[^a-zA-Z0-9_-]/g,"_"),s){case c.StringCase.camelCase:d=(0,e.camelCase)(d);break;case c.StringCase.capitalCase:d=(0,e.capitalCase)(d);break;case c.StringCase.constantCase:d=(0,e.constantCase)(d);break;case c.StringCase.dotCase:d=(0,e.dotCase)(d);break;case c.StringCase.headerCase:d=(0,e.headerCase)(d);break;case c.StringCase.noCase:d=(0,e.noCase)(d);break;case c.StringCase.paramCase:d=(0,e.paramCase)(d);break;case c.StringCase.pascalCase:d=(0,e.pascalCase)(d);break;case c.StringCase.pathCase:d=(0,e.pathCase)(d);break;case c.StringCase.sentenceCase:d=(0,e.sentenceCase)(d);break;case c.StringCase.snakeCase:d=(0,e.snakeCase)(d)}return s!==c.StringCase.snakeCase&&s!==c.StringCase.constantCase&&(d=d.replaceAll("_","")),d.match(/^[^a-zA-Z]/)&&(d="_"+d),d}static nameAsCSSVarReference(p){return`var(--${p})`}static nameAsCSSVarDeclaration(p){return`--${p}`}}t.NamingHelper=y},58:r=>{r.exports=at()},110:r=>{r.exports=St}},u={};function n(r){var t=u[r];if(t!==void 0)return t.exports;var o=u[r]={exports:{}};return i[r](o,o.exports,n),o.exports}var T={};(()=>{var r=T;Object.defineProperty(r,"__esModule",{value:!0}),r.ColorFormat=r.StringCase=r.Iterators=r.CSSHelper=r.FileHelper=r.ColorHelper=r.NamingHelper=r.NetworkHelper=void 0;var t=n(118);Object.defineProperty(r,"NetworkHelper",{enumerable:!0,get:function(){return t.NetworkHelper}});var o=n(453);Object.defineProperty(r,"NamingHelper",{enumerable:!0,get:function(){return o.NamingHelper}});var e=n(952);Object.defineProperty(r,"ColorHelper",{enumerable:!0,get:function(){return e.ColorHelper}});var c=n(617);Object.defineProperty(r,"FileHelper",{enumerable:!0,get:function(){return c.FileHelper}});var y=n(771);Object.defineProperty(r,"CSSHelper",{enumerable:!0,get:function(){return y.CSSHelper}});var l=n(639);Object.defineProperty(r,"Iterators",{enumerable:!0,get:function(){return l.Iterators}});var p=n(545);Object.defineProperty(r,"StringCase",{enumerable:!0,get:function(){return p.StringCase}});var s=n(989);Object.defineProperty(r,"ColorFormat",{enumerable:!0,get:function(){return s.ColorFormat}})})();var m=a;for(var f in T)m[f]=T[f];T.__esModule&&Object.defineProperty(m,"__esModule",{value:!0})})()})(k);var v={};(function(a){(()=>{var i={9932:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.docsImageRefToUrl=t.DocsImageRefType=void 0,function(e){e.resource="Resource",e.figmaNode="FigmaNode"}(o||(t.DocsImageRefType=o={})),t.docsImageRefToUrl=function(e,c,y){var l;if(e)switch(e.type){case o.resource:return(l=e.resource)===null||l===void 0?void 0:l.url;case o.figmaNode:return!e.figmaNode||!e.figmaNode.sourceId||!e.figmaNode.frameReferenceId?void 0:c.resources.getFigmaFrameHostedUrl({designSystemId:y.dsId,versionId:y.versionId},e.figmaNode.frameReferenceId);default:return}}},5673:(r,t)=>{var o;function e(c){switch(c.type){case o.documentationItem:return`@page:${c.documentationItemId}`;case o.pageHeading:return`@page:${c.documentationItemId}#${c.pageHeadingId}`;case o.url:return c.url;default:return}}Object.defineProperty(t,"__esModule",{value:!0}),t.linkAttributeToDocsLink=t.docsLinkToLinkAttributes=t.docsLinkToUrl=t.DocsLinkRefType=void 0,function(c){c.documentationItem="DocumentationItem",c.pageHeading="PageHeading",c.url="Url"}(o||(t.DocsLinkRefType=o={})),t.docsLinkToUrl=e,t.docsLinkToLinkAttributes=function(c){const y=e(c);if(y)return{href:y,target:c.openInNewTab?"_blank":"_self"}},t.linkAttributeToDocsLink=function(c,y){if(!c)return;const l=y==="_blank";if(c.startsWith("@page:")){if(c.includes("#")){const[p,s]=c.replace("@page:","").split("#");return{type:o.pageHeading,documentationItemId:p,pageHeadingId:s,openInNewTab:l}}return{type:o.documentationItem,documentationItemId:c.replace("@page:",""),openInNewTab:l}}return{type:o.url,url:c,openInNewTab:l}}},2657:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentationLegacyPageBlockShortcut=t.DocumentationLegacyPageBlockShortcutType=void 0,function(e){e.external="External",e.internal="Internal"}(o||(t.DocumentationLegacyPageBlockShortcutType=o={})),t.DocumentationLegacyPageBlockShortcut=class{constructor(e){var c;e.url?this.type=o.external:this.type=o.internal,this.title=this.shortcutTitleFromModel(e,this.type),this.description=this.shortcutDescriptionFromModel(e,this.type),this.previewUrl=this.shortcutPreviewUrlFromModel(e),this.type===o.internal&&(!((c=e.documentationItemPreview)===null||c===void 0)&&c.valid)&&e.documentationItemId?this.internalId=e.documentationItemId:(this.internalId=null,this.type===o.external&&e.url?this.externalUrl=e.url:this.externalUrl=null)}shortcutTitleFromModel(e,c){var y,l,p,s,d;let g=null;return e.title&&e.title.trim().length>0?g=e.title:c===o.internal?g=(l=(y=e.documentationItemPreview)===null||y===void 0?void 0:y.title)!==null&&l!==void 0?l:null:c===o.external&&(g=(d=(s=(p=e.urlPreview)===null||p===void 0?void 0:p.title)!==null&&s!==void 0?s:e.url)!==null&&d!==void 0?d:null),g&&g.trim().length!==0?g:null}shortcutDescriptionFromModel(e,c){var y;let l=null;return e.description&&e.description.trim().length>0?l=e.description:c===o.external&&(l=(y=e.urlPreview)===null||y===void 0?void 0:y.description),l&&l.trim().length!==0?l:null}shortcutPreviewUrlFromModel(e){var c,y,l,p,s;return(s=(l=(c=e.assetUrl)!==null&&c!==void 0?c:(y=e.asset)===null||y===void 0?void 0:y.url)!==null&&l!==void 0?l:(p=e.urlPreview)===null||p===void 0?void 0:p.thumbnailUrl)!==null&&s!==void 0?s:null}}},7476:(r,t)=>{var o,e;Object.defineProperty(t,"__esModule",{value:!0}),t.TextAlignment=t.Alignment=void 0,function(c){c.left="Left",c.center="Center",c.stretch="Stretch"}(o||(t.Alignment=o={})),function(c){c.left="Left",c.center="Center",c.right="Right"}(e||(t.TextAlignment=e={}))},8738:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.AssetFormat=void 0,function(e){e.png="png",e.pdf="pdf",e.svg="svg"}(o||(t.AssetFormat=o={}))},915:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.AssetScale=void 0,function(e){e.x1="x1",e.x2="x2",e.x3="x3",e.x4="x4"}(o||(t.AssetScale=o={}))},899:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.AssetScaleType=void 0,function(e){e.aspectFill="AspectFill",e.aspectFit="AspectFit"}(o||(t.AssetScaleType=o={}))},6192:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.BlurType=void 0,function(e){e.layer="Layer",e.background="Background"}(o||(t.BlurType=o={}))},1160:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.ALL_BORDER_POSITIONS=t.BorderPosition=void 0,function(e){e.inside="Inside",e.center="Center",e.outside="Outside"}(o||(t.BorderPosition=o={})),t.ALL_BORDER_POSITIONS=[o.inside,o.center,o.outside]},4546:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.ALL_BORDER_STYLES=t.BorderStyle=void 0,function(e){e.dashed="Dashed",e.dotted="Dotted",e.solid="Solid",e.groove="Groove"}(o||(t.BorderStyle=o={})),t.ALL_BORDER_STYLES=[o.dashed,o.dotted,o.solid,o.groove]},8042:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.ImportWarningType=void 0,function(e){e.UnsupportedFill="UnsupportedFill",e.UnsupportedStroke="UnsupportedStroke",e.UnsupportedEffect="UnsupportedEffect",e.StyleNotApplied="StyleNotApplied",e.NoPublishedStyles="NoPublishedStyles",e.NoPublishedComponents="NoPublishedComponents",e.NoPublishedAssets="NoPublishedAssets",e.NoVersionFound="NoVersionFound",e.ComponentHasNoThumbnail="ComponentHasNoThumbnail",e.DuplicateImportedStyleId="DuplicateImportedStyleId",e.DuplicateImportedStylePath="DuplicateImportedStylePath",e.NoPublishedElements="NoPublishedElements",e.NoUnpublishedStyles="NoUnpublishedStyles"}(o||(t.ImportWarningType=o={}))},5695:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.CustomDomainErrorCode=void 0,function(e){e.generalError="GeneralError",e.dnsNotConfigured="DNSNotConfigured",e.maintenance="Maintenance"}(o||(t.CustomDomainErrorCode=o={}))},7737:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.CustomDomainState=void 0,function(e){e.initial="Initial",e.domainSetupInProgress="DomainSetupInProgress",e.domainSetupFailed="DomainSetupFailed",e.domainSetupsSucces="DomainSetupSuccess",e.sslSetupInProgress="SSLSetupInProgress",e.sslSetupFailed="SSLSetupFailed",e.sslSetupSuccess="SSLSetupSuccess"}(o||(t.CustomDomainState=o={}))},5651:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsBlockBehaviorDataType=void 0,function(e){e.item="Item",e.token="Token",e.asset="Asset",e.component="Component",e.figmaNode="FigmaNode",e.figmaComponent="FigmaComponent"}(o||(t.DocsBlockBehaviorDataType=o={}))},3733:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsBlockBehaviorSelectionType=void 0,function(e){e.entity="Entity",e.group="Group",e.entityAndGroup="EntityAndGroup"}(o||(t.DocsBlockBehaviorSelectionType=o={}))},8890:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsBlockImagePropertyAspectRatio=void 0,function(e){e.auto="Auto",e.square="Square",e.landscape="Landscape",e.portrait="Portrait",e.wide="Wide"}(o||(t.DocsBlockImagePropertyAspectRatio=o={}))},9377:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsBlockItemEntityType=void 0,function(e){e.token="Token",e.tokenGroup="TokenGroup",e.asset="Asset",e.assetGroup="AssetGroup",e.component="Component",e.componentGroup="ComponentGroup"}(o||(t.DocsBlockItemEntityType=o={}))},5883:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsBlockItemPropertyOptionRenderingStyle=void 0,function(e){e.segmentedControl="SegmentedControl",e.toggleButton="ToggleButton",e.select="Select",e.checkbox="Checkbox"}(o||(t.DocsBlockItemPropertyOptionRenderingStyle=o={}))},8061:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsBlockItemPropertyRichTextStyle=void 0,function(e){e.title1="Title1",e.title2="Title2",e.title3="Title3",e.title4="Title4",e.title5="Title5",e.quote="Quote",e.callout="Callout",e.ol="OL",e.ul="UL"}(o||(t.DocsBlockItemPropertyRichTextStyle=o={}))},7479:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsBlockItemPropertyTextStyle=void 0,function(e){e.small="Small",e.regular="Regular",e.bold="Bold"}(o||(t.DocsBlockItemPropertyTextStyle=o={}))},6839:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsBlockItemPropertyType=void 0,function(e){e.richText="RichText",e.multiRichText="MultiRichText",e.text="Text",e.richTextEditor="RichTextEditor",e.boolean="Boolean",e.number="Number",e.singleSelect="SingleSelect",e.multiSelect="MultiSelect",e.image="Image",e.token="Token",e.tokenType="TokenType",e.tokenProperty="TokenProperty",e.component="Component",e.componentProperty="ComponentProperty",e.asset="Asset",e.assetProperty="AssetProperty",e.embedURL="EmbedURL",e.url="URL",e.markdown="Markdown",e.code="Code",e.codeSandbox="CodeSandbox",e.table="Table",e.divider="Divider",e.storybook="Storybook",e.color="Color",e.figmaNode="FigmaNode",e.figmaComponent="FigmaComponent"}(o||(t.DocsBlockItemPropertyType=o={}))},8095:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsBlockItemVariantLayoutType=void 0,function(e){e.column="Column",e.row="Row"}(o||(t.DocsBlockItemVariantLayoutType=o={}))},7291:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsBlockItemVariantLayoutWidth=void 0,function(e){e.c1="1",e.c2="2",e.c3="3",e.c4="4",e.c5="5",e.c6="6",e.c7="7",e.c8="8",e.c9="9",e.c10="10",e.c11="11",e.c12="12"}(o||(t.DocsBlockItemVariantLayoutWidth=o={}))},9133:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsBlockOptionColor=void 0,function(e){e.green="Green",e.red="Red",e.yellow="Yellow",e.blue="Blue",e.purple="Purple",e.orange="Orange",e.pink="Pink",e.teal="Teal",e.grey="Grey",e.lightGrey="LightGrey",e.cyan="Cyan",e.fuchsia="Fuchsia"}(o||(t.DocsBlockOptionColor=o={}))},5963:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsBlockOptionRenderingStyle=void 0,function(e){e.segmentedControl="SegmentedControl",e.toggleButton="ToggleButton",e.select="Select",e.checkbox="Checkbox"}(o||(t.DocsBlockOptionRenderingStyle=o={}))},6644:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsBlockRichTextPropertyStyle=void 0,function(e){e.title1="Title1",e.title2="Title2",e.title3="Title3",e.title4="Title4",e.title5="Title5",e.quote="Quote",e.callout="Callout",e.default="Default"}(o||(t.DocsBlockRichTextPropertyStyle=o={}))},306:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsBlockTextPropertyStyle=void 0,function(e){e.title1="Title1",e.title2="Title2",e.title3="Title3",e.title4="Title4",e.title5="Title5",e.default="Default",e.defaultBold="DefaultBold",e.defaultSemibold="DefaultSemibold",e.small="Small",e.smallBold="SmallBold",e.smallSemibold="SmallSemibold",e.custom="Custom"}(o||(t.DocsBlockTextPropertyStyle=o={}))},4068:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsEntityGroupBehavior=void 0,function(e){e.group="Group",e.tabs="Tabs"}(o||(t.DocsEntityGroupBehavior=o={}))},1233:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsEntityType=void 0,function(e){e.group="Group",e.page="Page"}(o||(t.DocsEntityType=o={}))},7971:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsSectionType=void 0,function(e){e.plain="Plain",e.tabs="Tabs"}(o||(t.DocsSectionType=o={}))},5102:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentationLegacyCalloutType=void 0,function(e){e.info="Info",e.success="Success",e.warning="Warning",e.error="Error"}(o||(t.DocumentationLegacyCalloutType=o={}))},2123:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentationLegacyGroupBehavior=void 0,function(e){e.group="Group",e.tabs="Tabs"}(o||(t.DocumentationLegacyGroupBehavior=o={}))},9896:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentationLegacyHeadingType=void 0,function(e){e[e.h1=1]="h1",e[e.h2=2]="h2",e[e.h3=3]="h3"}(o||(t.DocumentationLegacyHeadingType=o={}))},7379:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentationLegacyItemType=void 0,function(e){e.group="Group",e.page="Page"}(o||(t.DocumentationLegacyItemType=o={}))},1423:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentationLegacyPageAssetType=void 0,function(e){e.image="image",e.figmaFrame="figmaFrame"}(o||(t.DocumentationLegacyPageAssetType=o={}))},1601:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentationLegacyPageBlockThemeType=void 0,function(e){e.override="Override",e.comparison="Comparison"}(o||(t.DocumentationLegacyPageBlockThemeType=o={}))},1846:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentationLegacyPageBlockType=void 0,function(e){e.text="Text",e.heading="Heading",e.code="Code",e.unorderedList="UnorderedList",e.orderedList="OrderedList",e.quote="Quote",e.callout="Callout",e.divider="Divider",e.image="Image",e.token="Token",e.tokenList="TokenList",e.tokenGroup="TokenGroup",e.shortcuts="Shortcuts",e.link="Link",e.figmaEmbed="FigmaEmbed",e.youtubeEmbed="YoutubeEmbed",e.storybookEmbed="StorybookEmbed",e.genericEmbed="Embed",e.figmaFrames="FigmaFrames",e.custom="Custom",e.renderCode="RenderCode",e.componentAssets="ComponentAssets",e.column="Column",e.columnItem="ColumnItem",e.tabs="Tabs",e.tabItem="TabItem",e.table="Table",e.tableCell="TableCell",e.tableRow="TableRow"}(o||(t.DocumentationLegacyPageBlockType=o={}))},1255:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.FrameAlignment=void 0,function(e){e.frameHeight="FrameHeight",e.center="Center"}(o||(t.FrameAlignment=o={}))},3718:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.FrameLayout=void 0,function(e){e.c8="C8",e.c7="C7",e.c6="C6",e.c5="C5",e.c4="C4",e.c3="C3",e.c2="C2",e.c1="C1",e.c175="C1_75"}(o||(t.FrameLayout=o={}))},1:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.GradientType=void 0,function(e){e.linear="Linear",e.radial="Radial",e.angular="Angular"}(o||(t.GradientType=o={}))},934:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.IconSet=void 0,function(e){e.checkCircle="CheckCircle",e.crossCircle="CrossCircle",e.alert="Alert"}(o||(t.IconSet=o={}))},2674:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.RichTextSpanAttributeType=void 0,function(e){e.bold="Bold",e.italic="Italic",e.link="Link",e.strikethrough="Strikethrough",e.code="Code"}(o||(t.RichTextSpanAttributeType=o={}))},9125:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.ShadowType=void 0,function(e){e.drop="Drop",e.inner="Inner"}(o||(t.ShadowType=o={}))},4652:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.SourceType=void 0,function(e){e.figma="Figma",e.tokenStudio="TokenStudio",e.figmaVariablesPlugin="FigmaVariablesPlugin"}(o||(t.SourceType=o={}))},922:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.TextCase=void 0,function(e){e.original="Original",e.upper="Upper",e.lower="Lower",e.camel="Camel",e.smallCaps="SmallCaps"}(o||(t.TextCase=o={}))},7040:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.TextDecoration=void 0,function(e){e.original="None",e.underline="Underline",e.strikethrough="Strikethrough"}(o||(t.TextDecoration=o={}))},3788:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DT_TOKEN_TYPES=t.tokenTypeIsReferencable=t.REFERENCABLE_TOKEN_TYPES=t.REPLACABLE_TOKEN_TYPES=t.tokenTypeIsNonPure=t.tokenTypeIsPure=t.PURE_TOKEN_TYPES=t.ALL_TOKEN_TYPES=t.MS_DIMENSION_TOKEN_TYPES=t.RAW_DIMENSION_TOKEN_TYPES=t.DIMENSION_TOKEN_TYPES=t.OPTION_TOKEN_TYPES=t.STRING_TOKEN_TYPES=t.TokenType=void 0,function(e){e.color="Color",e.typography="Typography",e.shadow="Shadow",e.border="Border",e.gradient="Gradient",e.blur="Blur",e.radius="BorderRadius",e.borderWidth="BorderWidth",e.duration="Duration",e.fontSize="FontSize",e.dimension="Dimension",e.letterSpacing="LetterSpacing",e.lineHeight="LineHeight",e.opacity="Opacity",e.paragraphSpacing="ParagraphSpacing",e.size="Size",e.space="Space",e.zIndex="ZIndex",e.textDecoration="TextDecoration",e.textCase="TextCase",e.visibility="Visibility",e.fontFamily="FontFamily",e.fontWeight="FontWeight",e.string="String",e.productCopy="ProductCopy"}(o||(t.TokenType=o={})),t.STRING_TOKEN_TYPES=[o.string,o.productCopy,o.fontFamily,o.fontWeight],t.OPTION_TOKEN_TYPES=[o.textCase,o.textDecoration,o.visibility],t.DIMENSION_TOKEN_TYPES=[o.dimension,o.size,o.space,o.opacity,o.fontSize,o.lineHeight,o.letterSpacing,o.paragraphSpacing,o.borderWidth,o.radius,o.duration,o.zIndex],t.RAW_DIMENSION_TOKEN_TYPES=[o.opacity,o.zIndex],t.MS_DIMENSION_TOKEN_TYPES=[o.duration],t.ALL_TOKEN_TYPES=[...t.DIMENSION_TOKEN_TYPES,...t.STRING_TOKEN_TYPES,...t.OPTION_TOKEN_TYPES,o.color,o.gradient,o.border,o.radius,o.shadow,o.typography,o.blur],t.PURE_TOKEN_TYPES=[...t.DIMENSION_TOKEN_TYPES,...t.STRING_TOKEN_TYPES,...t.OPTION_TOKEN_TYPES],t.tokenTypeIsPure=e=>t.PURE_TOKEN_TYPES.includes(e),t.tokenTypeIsNonPure=e=>!(0,t.tokenTypeIsPure)(e),t.REPLACABLE_TOKEN_TYPES=[o.color,...t.DIMENSION_TOKEN_TYPES,...t.STRING_TOKEN_TYPES,...t.OPTION_TOKEN_TYPES],t.REFERENCABLE_TOKEN_TYPES=[o.color,...t.DIMENSION_TOKEN_TYPES,o.fontFamily,o.fontWeight,o.textCase,o.textDecoration],t.tokenTypeIsReferencable=e=>t.REFERENCABLE_TOKEN_TYPES.includes(e),t.DT_TOKEN_TYPES=[o.color,o.shadow,o.gradient,o.typography,o.border,...t.DIMENSION_TOKEN_TYPES,o.fontFamily,o.fontWeight,...t.OPTION_TOKEN_TYPES]},8607:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.MS_UNITS=t.PX_UNITS=t.RAW_UNITS=t.LINE_HEIGHT_UNITS=t.SIZE_UNITS=t.Unit=void 0,function(e){e.pixels="Pixels",e.percent="Percent",e.rem="Rem",e.ms="Ms",e.raw="Raw"}(o||(t.Unit=o={})),t.SIZE_UNITS=[o.pixels,o.percent,o.rem],t.LINE_HEIGHT_UNITS=[o.pixels,o.percent,o.rem,o.raw],t.RAW_UNITS=[o.raw],t.PX_UNITS=[o.pixels],t.MS_UNITS=[o.ms]},9478:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.UserRole=void 0,function(e){e.owner="Owner",e.admin="Admin",e.creator="Creator",e.contributor="Contributor",e.billing="Billing",e.viewer="Viewer"}(o||(t.UserRole=o={}))},6141:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.VisibilityType=void 0,function(e){e.visible="Visible",e.hidden="Hidden"}(o||(t.VisibilityType=o={}))},6298:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.WorkspaceNPMRegistryAuthType=void 0,function(e){e.basic="Basic",e.bearer="Bearer"}(o||(t.WorkspaceNPMRegistryAuthType=o={}))},7968:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.WorkspaceNPMRegistryType=void 0,function(e){e.npmJS="NPMJS",e.gitHub="GitHub",e.azureDevOps="AzureDevOps",e.artifactory="Artifactory",e.custom="Custom"}(o||(t.WorkspaceNPMRegistryType=o={}))},5503:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.WorkspaceSubscriptionPlanInterval=void 0,function(e){e.yearly="yearly",e.monthly="monthly"}(o||(t.WorkspaceSubscriptionPlanInterval=o={}))},4290:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.WorkspaceSubscriptionProductCode=void 0,function(e){e.free="free",e.team="team",e.teamTest="team_test",e.company="company",e.enterprise="enterprise"}(o||(t.WorkspaceSubscriptionProductCode=o={}))},3607:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.WorkspaceSubscriptionStatus=void 0,function(e){e.active="active",e.gracePeriod="gracePeriod",e.cancelled="cancelled",e.suspended="suspended"}(o||(t.WorkspaceSubscriptionStatus=o={}))},2802:(r,t)=>{var o,e;Object.defineProperty(t,"__esModule",{value:!0}),t.PulsarExecutor=t.OutputFileType=void 0,function(c){c.copyRemoteUrl="copyRemoteUrl",c.text="text",c.binary="binary"}(o||(t.OutputFileType=o={})),function(c){c.supernova="supernova",c.local="local"}(e||(t.PulsarExecutor=e={}))}},u={};function n(r){var t=u[r];if(t!==void 0)return t.exports;var o=u[r]={exports:{}};return i[r](o,o.exports,n),o.exports}var T={};(()=>{var r=T;Object.defineProperty(r,"__esModule",{value:!0}),r.TokenType=r.TextDecoration=r.TextCase=r.ShadowType=r.RichTextSpanAttributeType=r.GradientType=r.FrameLayout=r.FrameAlignment=r.IconSet=r.SourceType=r.DocsImageRefType=r.DocsLinkRefType=r.DocsSectionType=r.DocsEntityType=r.DocsEntityGroupBehavior=r.DocsBlockTextPropertyStyle=r.DocsBlockRichTextPropertyStyle=r.DocsBlockOptionColor=r.DocsBlockOptionRenderingStyle=r.DocsBlockItemVariantLayoutWidth=r.DocsBlockItemVariantLayoutType=r.DocsBlockItemPropertyType=r.DocsBlockItemPropertyTextStyle=r.DocsBlockItemPropertyRichTextStyle=r.DocsBlockItemPropertyOptionRenderingStyle=r.DocsBlockItemEntityType=r.DocsBlockImagePropertyAspectRatio=r.DocsBlockBehaviorSelectionType=r.DocsBlockBehaviorDataType=r.DocumentationLegacyPageBlockShortcutType=r.DocumentationLegacyPageBlockThemeType=r.DocumentationLegacyPageBlockType=r.DocumentationLegacyPageAssetType=r.DocumentationLegacyItemType=r.DocumentationLegacyHeadingType=r.DocumentationLegacyGroupBehavior=r.DocumentationLegacyCalloutType=r.BorderStyle=r.BorderPosition=r.BlurType=r.AssetScaleType=r.AssetScale=r.AssetFormat=r.Alignment=r.ALL_TOKEN_TYPES=r.ALL_BORDER_STYLES=r.ALL_BORDER_POSITIONS=r.OPTION_TOKEN_TYPES=r.STRING_TOKEN_TYPES=r.DIMENSION_TOKEN_TYPES=void 0,r.PulsarExecutor=r.OutputFileType=r.CustomDomainState=r.CustomDomainErrorCode=r.ImportWarningType=r.WorkspaceNPMRegistryType=r.WorkspaceNPMRegistryAuthType=r.WorkspaceSubscriptionStatus=r.WorkspaceSubscriptionProductCode=r.WorkspaceSubscriptionPlanInterval=r.VisibilityType=r.UserRole=r.Unit=void 0;var t=n(3788);Object.defineProperty(r,"DIMENSION_TOKEN_TYPES",{enumerable:!0,get:function(){return t.DIMENSION_TOKEN_TYPES}}),Object.defineProperty(r,"STRING_TOKEN_TYPES",{enumerable:!0,get:function(){return t.STRING_TOKEN_TYPES}}),Object.defineProperty(r,"OPTION_TOKEN_TYPES",{enumerable:!0,get:function(){return t.OPTION_TOKEN_TYPES}});var o=n(1160);Object.defineProperty(r,"ALL_BORDER_POSITIONS",{enumerable:!0,get:function(){return o.ALL_BORDER_POSITIONS}});var e=n(4546);Object.defineProperty(r,"ALL_BORDER_STYLES",{enumerable:!0,get:function(){return e.ALL_BORDER_STYLES}});var c=n(3788);Object.defineProperty(r,"ALL_TOKEN_TYPES",{enumerable:!0,get:function(){return c.ALL_TOKEN_TYPES}});var y=n(7476);Object.defineProperty(r,"Alignment",{enumerable:!0,get:function(){return y.Alignment}});var l=n(8738);Object.defineProperty(r,"AssetFormat",{enumerable:!0,get:function(){return l.AssetFormat}});var p=n(915);Object.defineProperty(r,"AssetScale",{enumerable:!0,get:function(){return p.AssetScale}});var s=n(899);Object.defineProperty(r,"AssetScaleType",{enumerable:!0,get:function(){return s.AssetScaleType}});var d=n(6192);Object.defineProperty(r,"BlurType",{enumerable:!0,get:function(){return d.BlurType}});var g=n(1160);Object.defineProperty(r,"BorderPosition",{enumerable:!0,get:function(){return g.BorderPosition}});var b=n(4546);Object.defineProperty(r,"BorderStyle",{enumerable:!0,get:function(){return b.BorderStyle}});var S=n(5102);Object.defineProperty(r,"DocumentationLegacyCalloutType",{enumerable:!0,get:function(){return S.DocumentationLegacyCalloutType}});var P=n(2123);Object.defineProperty(r,"DocumentationLegacyGroupBehavior",{enumerable:!0,get:function(){return P.DocumentationLegacyGroupBehavior}});var h=n(9896);Object.defineProperty(r,"DocumentationLegacyHeadingType",{enumerable:!0,get:function(){return h.DocumentationLegacyHeadingType}});var O=n(7379);Object.defineProperty(r,"DocumentationLegacyItemType",{enumerable:!0,get:function(){return O.DocumentationLegacyItemType}});var E=n(1423);Object.defineProperty(r,"DocumentationLegacyPageAssetType",{enumerable:!0,get:function(){return E.DocumentationLegacyPageAssetType}});var I=n(1846);Object.defineProperty(r,"DocumentationLegacyPageBlockType",{enumerable:!0,get:function(){return I.DocumentationLegacyPageBlockType}});var H=n(1601);Object.defineProperty(r,"DocumentationLegacyPageBlockThemeType",{enumerable:!0,get:function(){return H.DocumentationLegacyPageBlockThemeType}});var U=n(2657);Object.defineProperty(r,"DocumentationLegacyPageBlockShortcutType",{enumerable:!0,get:function(){return U.DocumentationLegacyPageBlockShortcutType}});var W=n(5651);Object.defineProperty(r,"DocsBlockBehaviorDataType",{enumerable:!0,get:function(){return W.DocsBlockBehaviorDataType}});var V=n(3733);Object.defineProperty(r,"DocsBlockBehaviorSelectionType",{enumerable:!0,get:function(){return V.DocsBlockBehaviorSelectionType}});var Y=n(8890);Object.defineProperty(r,"DocsBlockImagePropertyAspectRatio",{enumerable:!0,get:function(){return Y.DocsBlockImagePropertyAspectRatio}});var G=n(9377);Object.defineProperty(r,"DocsBlockItemEntityType",{enumerable:!0,get:function(){return G.DocsBlockItemEntityType}});var K=n(5883);Object.defineProperty(r,"DocsBlockItemPropertyOptionRenderingStyle",{enumerable:!0,get:function(){return K.DocsBlockItemPropertyOptionRenderingStyle}});var z=n(8061);Object.defineProperty(r,"DocsBlockItemPropertyRichTextStyle",{enumerable:!0,get:function(){return z.DocsBlockItemPropertyRichTextStyle}});var q=n(7479);Object.defineProperty(r,"DocsBlockItemPropertyTextStyle",{enumerable:!0,get:function(){return q.DocsBlockItemPropertyTextStyle}});var Z=n(6839);Object.defineProperty(r,"DocsBlockItemPropertyType",{enumerable:!0,get:function(){return Z.DocsBlockItemPropertyType}});var X=n(8095);Object.defineProperty(r,"DocsBlockItemVariantLayoutType",{enumerable:!0,get:function(){return X.DocsBlockItemVariantLayoutType}});var Q=n(7291);Object.defineProperty(r,"DocsBlockItemVariantLayoutWidth",{enumerable:!0,get:function(){return Q.DocsBlockItemVariantLayoutWidth}});var J=n(5963);Object.defineProperty(r,"DocsBlockOptionRenderingStyle",{enumerable:!0,get:function(){return J.DocsBlockOptionRenderingStyle}});var ee=n(9133);Object.defineProperty(r,"DocsBlockOptionColor",{enumerable:!0,get:function(){return ee.DocsBlockOptionColor}});var te=n(6644);Object.defineProperty(r,"DocsBlockRichTextPropertyStyle",{enumerable:!0,get:function(){return te.DocsBlockRichTextPropertyStyle}});var oe=n(306);Object.defineProperty(r,"DocsBlockTextPropertyStyle",{enumerable:!0,get:function(){return oe.DocsBlockTextPropertyStyle}});var re=n(4068);Object.defineProperty(r,"DocsEntityGroupBehavior",{enumerable:!0,get:function(){return re.DocsEntityGroupBehavior}});var ne=n(1233);Object.defineProperty(r,"DocsEntityType",{enumerable:!0,get:function(){return ne.DocsEntityType}});var ae=n(7971);Object.defineProperty(r,"DocsSectionType",{enumerable:!0,get:function(){return ae.DocsSectionType}});var ie=n(5673);Object.defineProperty(r,"DocsLinkRefType",{enumerable:!0,get:function(){return ie.DocsLinkRefType}});var ce=n(9932);Object.defineProperty(r,"DocsImageRefType",{enumerable:!0,get:function(){return ce.DocsImageRefType}});var le=n(4652);Object.defineProperty(r,"SourceType",{enumerable:!0,get:function(){return le.SourceType}});var se=n(934);Object.defineProperty(r,"IconSet",{enumerable:!0,get:function(){return se.IconSet}});var ue=n(1255);Object.defineProperty(r,"FrameAlignment",{enumerable:!0,get:function(){return ue.FrameAlignment}});var pe=n(3718);Object.defineProperty(r,"FrameLayout",{enumerable:!0,get:function(){return pe.FrameLayout}});var de=n(1);Object.defineProperty(r,"GradientType",{enumerable:!0,get:function(){return de.GradientType}});var ye=n(2674);Object.defineProperty(r,"RichTextSpanAttributeType",{enumerable:!0,get:function(){return ye.RichTextSpanAttributeType}});var Te=n(9125);Object.defineProperty(r,"ShadowType",{enumerable:!0,get:function(){return Te.ShadowType}});var me=n(922);Object.defineProperty(r,"TextCase",{enumerable:!0,get:function(){return me.TextCase}});var fe=n(7040);Object.defineProperty(r,"TextDecoration",{enumerable:!0,get:function(){return fe.TextDecoration}});var ge=n(3788);Object.defineProperty(r,"TokenType",{enumerable:!0,get:function(){return ge.TokenType}});var be=n(8607);Object.defineProperty(r,"Unit",{enumerable:!0,get:function(){return be.Unit}});var Se=n(9478);Object.defineProperty(r,"UserRole",{enumerable:!0,get:function(){return Se.UserRole}});var ve=n(6141);Object.defineProperty(r,"VisibilityType",{enumerable:!0,get:function(){return ve.VisibilityType}});var Pe=n(5503);Object.defineProperty(r,"WorkspaceSubscriptionPlanInterval",{enumerable:!0,get:function(){return Pe.WorkspaceSubscriptionPlanInterval}});var he=n(4290);Object.defineProperty(r,"WorkspaceSubscriptionProductCode",{enumerable:!0,get:function(){return he.WorkspaceSubscriptionProductCode}});var ke=n(3607);Object.defineProperty(r,"WorkspaceSubscriptionStatus",{enumerable:!0,get:function(){return ke.WorkspaceSubscriptionStatus}});var Oe=n(6298);Object.defineProperty(r,"WorkspaceNPMRegistryAuthType",{enumerable:!0,get:function(){return Oe.WorkspaceNPMRegistryAuthType}});var _e=n(7968);Object.defineProperty(r,"WorkspaceNPMRegistryType",{enumerable:!0,get:function(){return _e.WorkspaceNPMRegistryType}});var Ce=n(8042);Object.defineProperty(r,"ImportWarningType",{enumerable:!0,get:function(){return Ce.ImportWarningType}});var A=n(5695);Object.defineProperty(r,"CustomDomainErrorCode",{enumerable:!0,get:function(){return A.CustomDomainErrorCode}});var rt=n(7737);Object.defineProperty(r,"CustomDomainState",{enumerable:!0,get:function(){return rt.CustomDomainState}});var Re=n(2802);Object.defineProperty(r,"OutputFileType",{enumerable:!0,get:function(){return Re.OutputFileType}}),Object.defineProperty(r,"PulsarExecutor",{enumerable:!0,get:function(){return Re.PulsarExecutor}})})();var m=a;for(var f in T)m[f]=T[f];T.__esModule&&Object.defineProperty(m,"__esModule",{value:!0})})()})(v);const vt=a=>a.replace(/\n{3,}/g,` +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function nt(a){if(a.__esModule)return a;var i=a.default;if(typeof i=="function"){var s=function n(){return this instanceof n?Reflect.construct(i,arguments,this.constructor):i.apply(this,arguments)};s.prototype=i.prototype}else s={};return Object.defineProperty(s,"__esModule",{value:!0}),Object.keys(a).forEach(function(n){var T=Object.getOwnPropertyDescriptor(a,n);Object.defineProperty(s,n,T.get?T:{enumerable:!0,get:function(){return a[n]}})}),s}var k={},Ie={},Be;function at(){return Be||(Be=1,function(a){(()=>{var i={9932:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.docsImageRefToUrl=t.DocsImageRefType=void 0,function(e){e.resource="Resource",e.figmaNode="FigmaNode"}(o||(t.DocsImageRefType=o={})),t.docsImageRefToUrl=function(e,c,y){var l;if(e)switch(e.type){case o.resource:return(l=e.resource)===null||l===void 0?void 0:l.url;case o.figmaNode:return!e.figmaNode||!e.figmaNode.sourceId||!e.figmaNode.frameReferenceId?void 0:c.resources.getFigmaFrameHostedUrl({designSystemId:y.dsId,versionId:y.versionId},e.figmaNode.frameReferenceId);default:return}}},5673:(r,t)=>{var o;function e(c){switch(c.type){case o.documentationItem:return`@page:${c.documentationItemId}`;case o.pageHeading:return`@page:${c.documentationItemId}#${c.pageHeadingId}`;case o.url:return c.url;default:return}}Object.defineProperty(t,"__esModule",{value:!0}),t.linkAttributeToDocsLink=t.docsLinkToLinkAttributes=t.docsLinkToUrl=t.DocsLinkRefType=void 0,function(c){c.documentationItem="DocumentationItem",c.pageHeading="PageHeading",c.url="Url"}(o||(t.DocsLinkRefType=o={})),t.docsLinkToUrl=e,t.docsLinkToLinkAttributes=function(c){const y=e(c);if(y)return{href:y,target:c.openInNewTab?"_blank":"_self"}},t.linkAttributeToDocsLink=function(c,y){if(!c)return;const l=y==="_blank";if(c.startsWith("@page:")){if(c.includes("#")){const[p,u]=c.replace("@page:","").split("#");return{type:o.pageHeading,documentationItemId:p,pageHeadingId:u,openInNewTab:l}}return{type:o.documentationItem,documentationItemId:c.replace("@page:",""),openInNewTab:l}}return{type:o.url,url:c,openInNewTab:l}}},2657:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentationLegacyPageBlockShortcut=t.DocumentationLegacyPageBlockShortcutType=void 0,function(e){e.external="External",e.internal="Internal"}(o||(t.DocumentationLegacyPageBlockShortcutType=o={})),t.DocumentationLegacyPageBlockShortcut=class{constructor(e){var c;e.url?this.type=o.external:this.type=o.internal,this.title=this.shortcutTitleFromModel(e,this.type),this.description=this.shortcutDescriptionFromModel(e,this.type),this.previewUrl=this.shortcutPreviewUrlFromModel(e),this.type===o.internal&&(!((c=e.documentationItemPreview)===null||c===void 0)&&c.valid)&&e.documentationItemId?this.internalId=e.documentationItemId:(this.internalId=null,this.type===o.external&&e.url?this.externalUrl=e.url:this.externalUrl=null)}shortcutTitleFromModel(e,c){var y,l,p,u,d;let g=null;return e.title&&e.title.trim().length>0?g=e.title:c===o.internal?g=(l=(y=e.documentationItemPreview)===null||y===void 0?void 0:y.title)!==null&&l!==void 0?l:null:c===o.external&&(g=(d=(u=(p=e.urlPreview)===null||p===void 0?void 0:p.title)!==null&&u!==void 0?u:e.url)!==null&&d!==void 0?d:null),g&&g.trim().length!==0?g:null}shortcutDescriptionFromModel(e,c){var y;let l=null;return e.description&&e.description.trim().length>0?l=e.description:c===o.external&&(l=(y=e.urlPreview)===null||y===void 0?void 0:y.description),l&&l.trim().length!==0?l:null}shortcutPreviewUrlFromModel(e){var c,y,l,p,u;return(u=(l=(c=e.assetUrl)!==null&&c!==void 0?c:(y=e.asset)===null||y===void 0?void 0:y.url)!==null&&l!==void 0?l:(p=e.urlPreview)===null||p===void 0?void 0:p.thumbnailUrl)!==null&&u!==void 0?u:null}}},7476:(r,t)=>{var o,e;Object.defineProperty(t,"__esModule",{value:!0}),t.TextAlignment=t.Alignment=void 0,function(c){c.left="Left",c.center="Center",c.stretch="Stretch"}(o||(t.Alignment=o={})),function(c){c.left="Left",c.center="Center",c.right="Right"}(e||(t.TextAlignment=e={}))},8738:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.AssetFormat=void 0,function(e){e.png="png",e.pdf="pdf",e.svg="svg"}(o||(t.AssetFormat=o={}))},915:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.AssetScale=void 0,function(e){e.x1="x1",e.x2="x2",e.x3="x3",e.x4="x4"}(o||(t.AssetScale=o={}))},899:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.AssetScaleType=void 0,function(e){e.aspectFill="AspectFill",e.aspectFit="AspectFit"}(o||(t.AssetScaleType=o={}))},6192:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.BlurType=void 0,function(e){e.layer="Layer",e.background="Background"}(o||(t.BlurType=o={}))},1160:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.ALL_BORDER_POSITIONS=t.BorderPosition=void 0,function(e){e.inside="Inside",e.center="Center",e.outside="Outside"}(o||(t.BorderPosition=o={})),t.ALL_BORDER_POSITIONS=[o.inside,o.center,o.outside]},4546:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.ALL_BORDER_STYLES=t.BorderStyle=void 0,function(e){e.dashed="Dashed",e.dotted="Dotted",e.solid="Solid",e.groove="Groove"}(o||(t.BorderStyle=o={})),t.ALL_BORDER_STYLES=[o.dashed,o.dotted,o.solid,o.groove]},8042:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.ImportWarningType=void 0,function(e){e.UnsupportedFill="UnsupportedFill",e.UnsupportedStroke="UnsupportedStroke",e.UnsupportedEffect="UnsupportedEffect",e.StyleNotApplied="StyleNotApplied",e.NoPublishedStyles="NoPublishedStyles",e.NoPublishedComponents="NoPublishedComponents",e.NoPublishedAssets="NoPublishedAssets",e.NoVersionFound="NoVersionFound",e.ComponentHasNoThumbnail="ComponentHasNoThumbnail",e.DuplicateImportedStyleId="DuplicateImportedStyleId",e.DuplicateImportedStylePath="DuplicateImportedStylePath",e.NoPublishedElements="NoPublishedElements",e.NoUnpublishedStyles="NoUnpublishedStyles"}(o||(t.ImportWarningType=o={}))},5695:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.CustomDomainErrorCode=void 0,function(e){e.generalError="GeneralError",e.dnsNotConfigured="DNSNotConfigured",e.maintenance="Maintenance"}(o||(t.CustomDomainErrorCode=o={}))},7737:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.CustomDomainState=void 0,function(e){e.initial="Initial",e.domainSetupInProgress="DomainSetupInProgress",e.domainSetupFailed="DomainSetupFailed",e.domainSetupsSucces="DomainSetupSuccess",e.sslSetupInProgress="SSLSetupInProgress",e.sslSetupFailed="SSLSetupFailed",e.sslSetupSuccess="SSLSetupSuccess"}(o||(t.CustomDomainState=o={}))},5651:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsBlockBehaviorDataType=void 0,function(e){e.item="Item",e.token="Token",e.asset="Asset",e.component="Component",e.figmaNode="FigmaNode",e.figmaComponent="FigmaComponent"}(o||(t.DocsBlockBehaviorDataType=o={}))},3733:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsBlockBehaviorSelectionType=void 0,function(e){e.entity="Entity",e.group="Group",e.entityAndGroup="EntityAndGroup"}(o||(t.DocsBlockBehaviorSelectionType=o={}))},8890:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsBlockImagePropertyAspectRatio=void 0,function(e){e.auto="Auto",e.square="Square",e.landscape="Landscape",e.portrait="Portrait",e.wide="Wide"}(o||(t.DocsBlockImagePropertyAspectRatio=o={}))},9377:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsBlockItemEntityType=void 0,function(e){e.token="Token",e.tokenGroup="TokenGroup",e.asset="Asset",e.assetGroup="AssetGroup",e.component="Component",e.componentGroup="ComponentGroup"}(o||(t.DocsBlockItemEntityType=o={}))},5883:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsBlockItemPropertyOptionRenderingStyle=void 0,function(e){e.segmentedControl="SegmentedControl",e.toggleButton="ToggleButton",e.select="Select",e.checkbox="Checkbox"}(o||(t.DocsBlockItemPropertyOptionRenderingStyle=o={}))},8061:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsBlockItemPropertyRichTextStyle=void 0,function(e){e.title1="Title1",e.title2="Title2",e.title3="Title3",e.title4="Title4",e.title5="Title5",e.quote="Quote",e.callout="Callout",e.ol="OL",e.ul="UL"}(o||(t.DocsBlockItemPropertyRichTextStyle=o={}))},7479:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsBlockItemPropertyTextStyle=void 0,function(e){e.small="Small",e.regular="Regular",e.bold="Bold"}(o||(t.DocsBlockItemPropertyTextStyle=o={}))},6839:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsBlockItemPropertyType=void 0,function(e){e.richText="RichText",e.multiRichText="MultiRichText",e.text="Text",e.boolean="Boolean",e.number="Number",e.singleSelect="SingleSelect",e.multiSelect="MultiSelect",e.image="Image",e.token="Token",e.tokenType="TokenType",e.tokenProperty="TokenProperty",e.component="Component",e.componentProperty="ComponentProperty",e.asset="Asset",e.assetProperty="AssetProperty",e.embedURL="EmbedURL",e.url="URL",e.markdown="Markdown",e.code="Code",e.codeSandbox="CodeSandbox",e.table="Table",e.divider="Divider",e.storybook="Storybook",e.color="Color",e.figmaNode="FigmaNode",e.figmaComponent="FigmaComponent"}(o||(t.DocsBlockItemPropertyType=o={}))},8095:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsBlockItemVariantLayoutType=void 0,function(e){e.column="Column",e.row="Row"}(o||(t.DocsBlockItemVariantLayoutType=o={}))},7291:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsBlockItemVariantLayoutWidth=void 0,function(e){e.c1="1",e.c2="2",e.c3="3",e.c4="4",e.c5="5",e.c6="6",e.c7="7",e.c8="8",e.c9="9",e.c10="10",e.c11="11",e.c12="12"}(o||(t.DocsBlockItemVariantLayoutWidth=o={}))},5963:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsBlockOptionRenderingStyle=void 0,function(e){e.segmentedControl="SegmentedControl",e.toggleButton="ToggleButton",e.select="Select",e.checkbox="Checkbox"}(o||(t.DocsBlockOptionRenderingStyle=o={}))},6644:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsBlockRichTextPropertyStyle=void 0,function(e){e.title1="Title1",e.title2="Title2",e.title3="Title3",e.title4="Title4",e.title5="Title5",e.quote="Quote",e.callout="Callout",e.default="Default"}(o||(t.DocsBlockRichTextPropertyStyle=o={}))},306:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsBlockTextPropertyStyle=void 0,function(e){e.title1="Title1",e.title2="Title2",e.title3="Title3",e.title4="Title4",e.title5="Title5",e.default="Default",e.defaultBold="DefaultBold",e.defaultSemibold="DefaultSemibold",e.small="Small",e.smallBold="SmallBold",e.smallSemibold="SmallSemibold",e.custom="Custom"}(o||(t.DocsBlockTextPropertyStyle=o={}))},4068:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsEntityGroupBehavior=void 0,function(e){e.group="Group",e.tabs="Tabs"}(o||(t.DocsEntityGroupBehavior=o={}))},1233:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsEntityType=void 0,function(e){e.group="Group",e.page="Page"}(o||(t.DocsEntityType=o={}))},7971:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsSectionType=void 0,function(e){e.plain="Plain",e.tabs="Tabs"}(o||(t.DocsSectionType=o={}))},5102:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentationLegacyCalloutType=void 0,function(e){e.info="Info",e.success="Success",e.warning="Warning",e.error="Error"}(o||(t.DocumentationLegacyCalloutType=o={}))},2123:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentationLegacyGroupBehavior=void 0,function(e){e.group="Group",e.tabs="Tabs"}(o||(t.DocumentationLegacyGroupBehavior=o={}))},9896:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentationLegacyHeadingType=void 0,function(e){e[e.h1=1]="h1",e[e.h2=2]="h2",e[e.h3=3]="h3"}(o||(t.DocumentationLegacyHeadingType=o={}))},7379:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentationLegacyItemType=void 0,function(e){e.group="Group",e.page="Page"}(o||(t.DocumentationLegacyItemType=o={}))},1423:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentationLegacyPageAssetType=void 0,function(e){e.image="image",e.figmaFrame="figmaFrame"}(o||(t.DocumentationLegacyPageAssetType=o={}))},1601:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentationLegacyPageBlockThemeType=void 0,function(e){e.override="Override",e.comparison="Comparison"}(o||(t.DocumentationLegacyPageBlockThemeType=o={}))},1846:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentationLegacyPageBlockType=void 0,function(e){e.text="Text",e.heading="Heading",e.code="Code",e.unorderedList="UnorderedList",e.orderedList="OrderedList",e.quote="Quote",e.callout="Callout",e.divider="Divider",e.image="Image",e.token="Token",e.tokenList="TokenList",e.tokenGroup="TokenGroup",e.shortcuts="Shortcuts",e.link="Link",e.figmaEmbed="FigmaEmbed",e.youtubeEmbed="YoutubeEmbed",e.storybookEmbed="StorybookEmbed",e.genericEmbed="Embed",e.figmaFrames="FigmaFrames",e.custom="Custom",e.renderCode="RenderCode",e.componentAssets="ComponentAssets",e.column="Column",e.columnItem="ColumnItem",e.tabs="Tabs",e.tabItem="TabItem",e.table="Table",e.tableCell="TableCell",e.tableRow="TableRow"}(o||(t.DocumentationLegacyPageBlockType=o={}))},1255:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.FrameAlignment=void 0,function(e){e.frameHeight="FrameHeight",e.center="Center"}(o||(t.FrameAlignment=o={}))},3718:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.FrameLayout=void 0,function(e){e.c8="C8",e.c7="C7",e.c6="C6",e.c5="C5",e.c4="C4",e.c3="C3",e.c2="C2",e.c1="C1",e.c175="C1_75"}(o||(t.FrameLayout=o={}))},1:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.GradientType=void 0,function(e){e.linear="Linear",e.radial="Radial",e.angular="Angular"}(o||(t.GradientType=o={}))},2674:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.RichTextSpanAttributeType=void 0,function(e){e.bold="Bold",e.italic="Italic",e.link="Link",e.strikethrough="Strikethrough",e.code="Code"}(o||(t.RichTextSpanAttributeType=o={}))},9125:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.ShadowType=void 0,function(e){e.drop="Drop",e.inner="Inner"}(o||(t.ShadowType=o={}))},4652:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.SourceType=void 0,function(e){e.figma="Figma",e.tokenStudio="TokenStudio",e.figmaVariablesPlugin="FigmaVariablesPlugin"}(o||(t.SourceType=o={}))},922:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.TextCase=void 0,function(e){e.original="Original",e.upper="Upper",e.lower="Lower",e.camel="Camel",e.smallCaps="SmallCaps"}(o||(t.TextCase=o={}))},7040:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.TextDecoration=void 0,function(e){e.original="None",e.underline="Underline",e.strikethrough="Strikethrough"}(o||(t.TextDecoration=o={}))},3788:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DT_TOKEN_TYPES=t.tokenTypeIsReferencable=t.REFERENCABLE_TOKEN_TYPES=t.REPLACABLE_TOKEN_TYPES=t.tokenTypeIsNonPure=t.tokenTypeIsPure=t.PURE_TOKEN_TYPES=t.ALL_TOKEN_TYPES=t.MS_DIMENSION_TOKEN_TYPES=t.RAW_DIMENSION_TOKEN_TYPES=t.DIMENSION_TOKEN_TYPES=t.OPTION_TOKEN_TYPES=t.STRING_TOKEN_TYPES=t.TokenType=void 0,function(e){e.color="Color",e.typography="Typography",e.shadow="Shadow",e.border="Border",e.gradient="Gradient",e.blur="Blur",e.radius="BorderRadius",e.borderWidth="BorderWidth",e.duration="Duration",e.fontSize="FontSize",e.dimension="Dimension",e.letterSpacing="LetterSpacing",e.lineHeight="LineHeight",e.opacity="Opacity",e.paragraphSpacing="ParagraphSpacing",e.size="Size",e.space="Space",e.zIndex="ZIndex",e.textDecoration="TextDecoration",e.textCase="TextCase",e.visibility="Visibility",e.fontFamily="FontFamily",e.fontWeight="FontWeight",e.string="String",e.productCopy="ProductCopy"}(o||(t.TokenType=o={})),t.STRING_TOKEN_TYPES=[o.string,o.productCopy,o.fontFamily,o.fontWeight],t.OPTION_TOKEN_TYPES=[o.textCase,o.textDecoration,o.visibility],t.DIMENSION_TOKEN_TYPES=[o.dimension,o.size,o.space,o.opacity,o.fontSize,o.lineHeight,o.letterSpacing,o.paragraphSpacing,o.borderWidth,o.radius,o.duration,o.zIndex],t.RAW_DIMENSION_TOKEN_TYPES=[o.opacity,o.zIndex],t.MS_DIMENSION_TOKEN_TYPES=[o.duration],t.ALL_TOKEN_TYPES=[...t.DIMENSION_TOKEN_TYPES,...t.STRING_TOKEN_TYPES,...t.OPTION_TOKEN_TYPES,o.color,o.gradient,o.border,o.radius,o.shadow,o.typography,o.blur],t.PURE_TOKEN_TYPES=[...t.DIMENSION_TOKEN_TYPES,...t.STRING_TOKEN_TYPES,...t.OPTION_TOKEN_TYPES],t.tokenTypeIsPure=e=>t.PURE_TOKEN_TYPES.includes(e),t.tokenTypeIsNonPure=e=>!(0,t.tokenTypeIsPure)(e),t.REPLACABLE_TOKEN_TYPES=[o.color,...t.DIMENSION_TOKEN_TYPES,...t.STRING_TOKEN_TYPES,...t.OPTION_TOKEN_TYPES],t.REFERENCABLE_TOKEN_TYPES=[o.color,...t.DIMENSION_TOKEN_TYPES,o.fontFamily,o.fontWeight,o.textCase,o.textDecoration],t.tokenTypeIsReferencable=e=>t.REFERENCABLE_TOKEN_TYPES.includes(e),t.DT_TOKEN_TYPES=[o.color,o.shadow,o.gradient,o.typography,o.border,...t.DIMENSION_TOKEN_TYPES,o.fontFamily,o.fontWeight,...t.OPTION_TOKEN_TYPES]},8607:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.MS_UNITS=t.PX_UNITS=t.RAW_UNITS=t.LINE_HEIGHT_UNITS=t.SIZE_UNITS=t.Unit=void 0,function(e){e.pixels="Pixels",e.percent="Percent",e.rem="Rem",e.ms="Ms",e.raw="Raw"}(o||(t.Unit=o={})),t.SIZE_UNITS=[o.pixels,o.percent,o.rem],t.LINE_HEIGHT_UNITS=[o.pixels,o.percent,o.rem,o.raw],t.RAW_UNITS=[o.raw],t.PX_UNITS=[o.pixels],t.MS_UNITS=[o.ms]},9478:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.UserRole=void 0,function(e){e.owner="Owner",e.admin="Admin",e.creator="Creator",e.billing="Billing",e.viewer="Viewer"}(o||(t.UserRole=o={}))},6141:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.VisibilityType=void 0,function(e){e.visible="Visible",e.hidden="Hidden"}(o||(t.VisibilityType=o={}))},6298:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.WorkspaceNPMRegistryAuthType=void 0,function(e){e.basic="Basic",e.bearer="Bearer"}(o||(t.WorkspaceNPMRegistryAuthType=o={}))},7968:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.WorkspaceNPMRegistryType=void 0,function(e){e.npmJS="NPMJS",e.gitHub="GitHub",e.azureDevOps="AzureDevOps",e.artifactory="Artifactory",e.custom="Custom"}(o||(t.WorkspaceNPMRegistryType=o={}))},5503:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.WorkspaceSubscriptionPlanInterval=void 0,function(e){e.yearly="yearly",e.monthly="monthly"}(o||(t.WorkspaceSubscriptionPlanInterval=o={}))},4290:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.WorkspaceSubscriptionProductCode=void 0,function(e){e.free="free",e.team="team",e.teamTest="team_test",e.company="company",e.enterprise="enterprise"}(o||(t.WorkspaceSubscriptionProductCode=o={}))},3607:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.WorkspaceSubscriptionStatus=void 0,function(e){e.active="active",e.gracePeriod="gracePeriod",e.cancelled="cancelled",e.suspended="suspended"}(o||(t.WorkspaceSubscriptionStatus=o={}))},2802:(r,t)=>{var o,e;Object.defineProperty(t,"__esModule",{value:!0}),t.PulsarExecutor=t.OutputFileType=void 0,function(c){c.copyRemoteUrl="copyRemoteUrl",c.text="text",c.binary="binary"}(o||(t.OutputFileType=o={})),function(c){c.supernova="supernova",c.local="local"}(e||(t.PulsarExecutor=e={}))}},s={};function n(r){var t=s[r];if(t!==void 0)return t.exports;var o=s[r]={exports:{}};return i[r](o,o.exports,n),o.exports}var T={};(()=>{var r=T;Object.defineProperty(r,"__esModule",{value:!0}),r.UserRole=r.Unit=r.TokenType=r.TextDecoration=r.TextCase=r.ShadowType=r.RichTextSpanAttributeType=r.GradientType=r.FrameLayout=r.FrameAlignment=r.SourceType=r.DocsImageRefType=r.DocsLinkRefType=r.DocsSectionType=r.DocsEntityType=r.DocsEntityGroupBehavior=r.DocsBlockTextPropertyStyle=r.DocsBlockRichTextPropertyStyle=r.DocsBlockOptionRenderingStyle=r.DocsBlockItemVariantLayoutWidth=r.DocsBlockItemVariantLayoutType=r.DocsBlockItemPropertyType=r.DocsBlockItemPropertyTextStyle=r.DocsBlockItemPropertyRichTextStyle=r.DocsBlockItemPropertyOptionRenderingStyle=r.DocsBlockItemEntityType=r.DocsBlockImagePropertyAspectRatio=r.DocsBlockBehaviorSelectionType=r.DocsBlockBehaviorDataType=r.DocumentationLegacyPageBlockShortcutType=r.DocumentationLegacyPageBlockThemeType=r.DocumentationLegacyPageBlockType=r.DocumentationLegacyPageAssetType=r.DocumentationLegacyItemType=r.DocumentationLegacyHeadingType=r.DocumentationLegacyGroupBehavior=r.DocumentationLegacyCalloutType=r.BorderStyle=r.BorderPosition=r.BlurType=r.AssetScaleType=r.AssetScale=r.AssetFormat=r.Alignment=r.ALL_TOKEN_TYPES=r.ALL_BORDER_STYLES=r.ALL_BORDER_POSITIONS=r.OPTION_TOKEN_TYPES=r.STRING_TOKEN_TYPES=r.DIMENSION_TOKEN_TYPES=void 0,r.PulsarExecutor=r.OutputFileType=r.CustomDomainState=r.CustomDomainErrorCode=r.ImportWarningType=r.WorkspaceNPMRegistryType=r.WorkspaceNPMRegistryAuthType=r.WorkspaceSubscriptionStatus=r.WorkspaceSubscriptionProductCode=r.WorkspaceSubscriptionPlanInterval=r.VisibilityType=void 0;var t=n(3788);Object.defineProperty(r,"DIMENSION_TOKEN_TYPES",{enumerable:!0,get:function(){return t.DIMENSION_TOKEN_TYPES}}),Object.defineProperty(r,"STRING_TOKEN_TYPES",{enumerable:!0,get:function(){return t.STRING_TOKEN_TYPES}}),Object.defineProperty(r,"OPTION_TOKEN_TYPES",{enumerable:!0,get:function(){return t.OPTION_TOKEN_TYPES}});var o=n(1160);Object.defineProperty(r,"ALL_BORDER_POSITIONS",{enumerable:!0,get:function(){return o.ALL_BORDER_POSITIONS}});var e=n(4546);Object.defineProperty(r,"ALL_BORDER_STYLES",{enumerable:!0,get:function(){return e.ALL_BORDER_STYLES}});var c=n(3788);Object.defineProperty(r,"ALL_TOKEN_TYPES",{enumerable:!0,get:function(){return c.ALL_TOKEN_TYPES}});var y=n(7476);Object.defineProperty(r,"Alignment",{enumerable:!0,get:function(){return y.Alignment}});var l=n(8738);Object.defineProperty(r,"AssetFormat",{enumerable:!0,get:function(){return l.AssetFormat}});var p=n(915);Object.defineProperty(r,"AssetScale",{enumerable:!0,get:function(){return p.AssetScale}});var u=n(899);Object.defineProperty(r,"AssetScaleType",{enumerable:!0,get:function(){return u.AssetScaleType}});var d=n(6192);Object.defineProperty(r,"BlurType",{enumerable:!0,get:function(){return d.BlurType}});var g=n(1160);Object.defineProperty(r,"BorderPosition",{enumerable:!0,get:function(){return g.BorderPosition}});var b=n(4546);Object.defineProperty(r,"BorderStyle",{enumerable:!0,get:function(){return b.BorderStyle}});var S=n(5102);Object.defineProperty(r,"DocumentationLegacyCalloutType",{enumerable:!0,get:function(){return S.DocumentationLegacyCalloutType}});var P=n(2123);Object.defineProperty(r,"DocumentationLegacyGroupBehavior",{enumerable:!0,get:function(){return P.DocumentationLegacyGroupBehavior}});var h=n(9896);Object.defineProperty(r,"DocumentationLegacyHeadingType",{enumerable:!0,get:function(){return h.DocumentationLegacyHeadingType}});var O=n(7379);Object.defineProperty(r,"DocumentationLegacyItemType",{enumerable:!0,get:function(){return O.DocumentationLegacyItemType}});var E=n(1423);Object.defineProperty(r,"DocumentationLegacyPageAssetType",{enumerable:!0,get:function(){return E.DocumentationLegacyPageAssetType}});var I=n(1846);Object.defineProperty(r,"DocumentationLegacyPageBlockType",{enumerable:!0,get:function(){return I.DocumentationLegacyPageBlockType}});var H=n(1601);Object.defineProperty(r,"DocumentationLegacyPageBlockThemeType",{enumerable:!0,get:function(){return H.DocumentationLegacyPageBlockThemeType}});var U=n(2657);Object.defineProperty(r,"DocumentationLegacyPageBlockShortcutType",{enumerable:!0,get:function(){return U.DocumentationLegacyPageBlockShortcutType}});var W=n(5651);Object.defineProperty(r,"DocsBlockBehaviorDataType",{enumerable:!0,get:function(){return W.DocsBlockBehaviorDataType}});var V=n(3733);Object.defineProperty(r,"DocsBlockBehaviorSelectionType",{enumerable:!0,get:function(){return V.DocsBlockBehaviorSelectionType}});var Y=n(8890);Object.defineProperty(r,"DocsBlockImagePropertyAspectRatio",{enumerable:!0,get:function(){return Y.DocsBlockImagePropertyAspectRatio}});var G=n(9377);Object.defineProperty(r,"DocsBlockItemEntityType",{enumerable:!0,get:function(){return G.DocsBlockItemEntityType}});var K=n(5883);Object.defineProperty(r,"DocsBlockItemPropertyOptionRenderingStyle",{enumerable:!0,get:function(){return K.DocsBlockItemPropertyOptionRenderingStyle}});var z=n(8061);Object.defineProperty(r,"DocsBlockItemPropertyRichTextStyle",{enumerable:!0,get:function(){return z.DocsBlockItemPropertyRichTextStyle}});var q=n(7479);Object.defineProperty(r,"DocsBlockItemPropertyTextStyle",{enumerable:!0,get:function(){return q.DocsBlockItemPropertyTextStyle}});var Z=n(6839);Object.defineProperty(r,"DocsBlockItemPropertyType",{enumerable:!0,get:function(){return Z.DocsBlockItemPropertyType}});var X=n(8095);Object.defineProperty(r,"DocsBlockItemVariantLayoutType",{enumerable:!0,get:function(){return X.DocsBlockItemVariantLayoutType}});var Q=n(7291);Object.defineProperty(r,"DocsBlockItemVariantLayoutWidth",{enumerable:!0,get:function(){return Q.DocsBlockItemVariantLayoutWidth}});var J=n(5963);Object.defineProperty(r,"DocsBlockOptionRenderingStyle",{enumerable:!0,get:function(){return J.DocsBlockOptionRenderingStyle}});var ee=n(6644);Object.defineProperty(r,"DocsBlockRichTextPropertyStyle",{enumerable:!0,get:function(){return ee.DocsBlockRichTextPropertyStyle}});var te=n(306);Object.defineProperty(r,"DocsBlockTextPropertyStyle",{enumerable:!0,get:function(){return te.DocsBlockTextPropertyStyle}});var oe=n(4068);Object.defineProperty(r,"DocsEntityGroupBehavior",{enumerable:!0,get:function(){return oe.DocsEntityGroupBehavior}});var re=n(1233);Object.defineProperty(r,"DocsEntityType",{enumerable:!0,get:function(){return re.DocsEntityType}});var ne=n(7971);Object.defineProperty(r,"DocsSectionType",{enumerable:!0,get:function(){return ne.DocsSectionType}});var ae=n(5673);Object.defineProperty(r,"DocsLinkRefType",{enumerable:!0,get:function(){return ae.DocsLinkRefType}});var ie=n(9932);Object.defineProperty(r,"DocsImageRefType",{enumerable:!0,get:function(){return ie.DocsImageRefType}});var ce=n(4652);Object.defineProperty(r,"SourceType",{enumerable:!0,get:function(){return ce.SourceType}});var le=n(1255);Object.defineProperty(r,"FrameAlignment",{enumerable:!0,get:function(){return le.FrameAlignment}});var se=n(3718);Object.defineProperty(r,"FrameLayout",{enumerable:!0,get:function(){return se.FrameLayout}});var ue=n(1);Object.defineProperty(r,"GradientType",{enumerable:!0,get:function(){return ue.GradientType}});var pe=n(2674);Object.defineProperty(r,"RichTextSpanAttributeType",{enumerable:!0,get:function(){return pe.RichTextSpanAttributeType}});var de=n(9125);Object.defineProperty(r,"ShadowType",{enumerable:!0,get:function(){return de.ShadowType}});var ye=n(922);Object.defineProperty(r,"TextCase",{enumerable:!0,get:function(){return ye.TextCase}});var Te=n(7040);Object.defineProperty(r,"TextDecoration",{enumerable:!0,get:function(){return Te.TextDecoration}});var me=n(3788);Object.defineProperty(r,"TokenType",{enumerable:!0,get:function(){return me.TokenType}});var fe=n(8607);Object.defineProperty(r,"Unit",{enumerable:!0,get:function(){return fe.Unit}});var ge=n(9478);Object.defineProperty(r,"UserRole",{enumerable:!0,get:function(){return ge.UserRole}});var be=n(6141);Object.defineProperty(r,"VisibilityType",{enumerable:!0,get:function(){return be.VisibilityType}});var Se=n(5503);Object.defineProperty(r,"WorkspaceSubscriptionPlanInterval",{enumerable:!0,get:function(){return Se.WorkspaceSubscriptionPlanInterval}});var ve=n(4290);Object.defineProperty(r,"WorkspaceSubscriptionProductCode",{enumerable:!0,get:function(){return ve.WorkspaceSubscriptionProductCode}});var Pe=n(3607);Object.defineProperty(r,"WorkspaceSubscriptionStatus",{enumerable:!0,get:function(){return Pe.WorkspaceSubscriptionStatus}});var he=n(6298);Object.defineProperty(r,"WorkspaceNPMRegistryAuthType",{enumerable:!0,get:function(){return he.WorkspaceNPMRegistryAuthType}});var ke=n(7968);Object.defineProperty(r,"WorkspaceNPMRegistryType",{enumerable:!0,get:function(){return ke.WorkspaceNPMRegistryType}});var Oe=n(8042);Object.defineProperty(r,"ImportWarningType",{enumerable:!0,get:function(){return Oe.ImportWarningType}});var _e=n(5695);Object.defineProperty(r,"CustomDomainErrorCode",{enumerable:!0,get:function(){return _e.CustomDomainErrorCode}});var Ce=n(7737);Object.defineProperty(r,"CustomDomainState",{enumerable:!0,get:function(){return Ce.CustomDomainState}});var A=n(2802);Object.defineProperty(r,"OutputFileType",{enumerable:!0,get:function(){return A.OutputFileType}}),Object.defineProperty(r,"PulsarExecutor",{enumerable:!0,get:function(){return A.PulsarExecutor}})})();var m=a;for(var f in T)m[f]=T[f];T.__esModule&&Object.defineProperty(m,"__esModule",{value:!0})})()}(Ie)),Ie}var _=function(){return _=Object.assign||function(i){for(var s,n=1,T=arguments.length;n0&&s>="0"&&s<="9"?"_"+s+n:""+s.toUpperCase()+n}function He(a){return a.charAt(0).toUpperCase()+a.slice(1).toLowerCase()}function Ue(a,i){return i===void 0&&(i={}),L(a,_({delimiter:"",transform:Ee},i))}function We(a,i){return i===0?a.toLowerCase():Ee(a,i)}function st(a,i){return i===0?a.toLowerCase():He(a)}function ut(a,i){return i===void 0&&(i={}),Ue(a,_({transform:We},i))}function Ve(a){return a.charAt(0).toUpperCase()+a.substr(1)}function Ye(a){return Ve(a.toLowerCase())}function Ge(a,i){return i===void 0&&(i={}),L(a,_({delimiter:" ",transform:Ye},i))}function pt(a){return a.toUpperCase()}function dt(a,i){return i===void 0&&(i={}),L(a,_({delimiter:"_",transform:pt},i))}function w(a,i){return i===void 0&&(i={}),L(a,_({delimiter:"."},i))}function yt(a,i){return i===void 0&&(i={}),Ge(a,_({delimiter:"-"},i))}function Tt(a,i){return i===void 0&&(i={}),w(a,_({delimiter:"-"},i))}function mt(a,i){return i===void 0&&(i={}),w(a,_({delimiter:"/"},i))}function Ke(a,i){var s=a.toLowerCase();return i===0?Ve(s):s}function ft(a,i){return i===void 0&&(i={}),L(a,_({delimiter:" ",transform:Ke},i))}function gt(a,i){return i===void 0&&(i={}),w(a,_({delimiter:"_"},i))}const bt=Object.freeze(Object.defineProperty({__proto__:null,camelCase:ut,camelCaseTransform:We,camelCaseTransformMerge:st,capitalCase:Ge,capitalCaseTransform:Ye,constantCase:dt,dotCase:w,headerCase:yt,noCase:L,paramCase:Tt,pascalCase:Ue,pascalCaseTransform:Ee,pascalCaseTransformMerge:He,pathCase:mt,sentenceCase:ft,sentenceCaseTransform:Ke,snakeCase:gt},Symbol.toStringTag,{value:"Module"})),St=nt(bt);(function(a){(()=>{var i={639:(r,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Iterators=void 0;const e=o(58);t.Iterators=class{static allTokenTypes(){return[e.TokenType.color,e.TokenType.typography,e.TokenType.dimension,e.TokenType.size,e.TokenType.space,e.TokenType.opacity,e.TokenType.fontSize,e.TokenType.lineHeight,e.TokenType.letterSpacing,e.TokenType.paragraphSpacing,e.TokenType.borderWidth,e.TokenType.radius,e.TokenType.duration,e.TokenType.zIndex,e.TokenType.shadow,e.TokenType.border,e.TokenType.gradient,e.TokenType.string,e.TokenType.productCopy,e.TokenType.fontFamily,e.TokenType.fontWeight,e.TokenType.textCase,e.TokenType.textDecoration,e.TokenType.visibility,e.TokenType.blur]}static allDimensionTokenTypes(){return[e.TokenType.dimension,e.TokenType.size,e.TokenType.space,e.TokenType.opacity,e.TokenType.fontSize,e.TokenType.lineHeight,e.TokenType.letterSpacing,e.TokenType.paragraphSpacing,e.TokenType.borderWidth,e.TokenType.radius,e.TokenType.duration,e.TokenType.zIndex]}static allStringTokenTypes(){return[e.TokenType.string,e.TokenType.productCopy,e.TokenType.fontFamily,e.TokenType.fontWeight]}static allOptionTokenTypes(){return[e.TokenType.textCase,e.TokenType.textDecoration,e.TokenType.visibility]}}},989:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.ColorFormat=void 0,(o=t.ColorFormat||(t.ColorFormat={})).rgb="rgb",o.rgba="rgba",o.smartRgba="smartRgba",o.hex6="hex6",o.hex8="hex8",o.hashHex6="hashHex6",o.hashHex8="hashHex8",o.smartHashHex="smartHashHex",o.smartHex="smartHex",o.hsl="hsl",o.hsla="hsla",o.smartHsla="smartHsla",o.smartUIColor="smartUIColor"},545:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.StringCase=void 0,(o=t.StringCase||(t.StringCase={})).camelCase="camelCase",o.capitalCase="capitalCase",o.constantCase="constantCase",o.dotCase="dotCase",o.headerCase="headerCase",o.noCase="noCase",o.paramCase="paramCase",o.pascalCase="pascalCase",o.pathCase="pathCase",o.sentenceCase="sentenceCase",o.snakeCase="snakeCase"},617:(r,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FileHelper=void 0;const e=o(58);t.FileHelper=class{static createCopyRemoteFile({relativePath:c,fileName:y,url:l}){return{path:c,name:y,type:e.OutputFileType.copyRemoteUrl,url:l}}static createTextFile({relativePath:c,fileName:y,content:l}){return{path:c,name:y,type:e.OutputFileType.text,content:l}}static createBinaryFile({relativePath:c,fileName:y,data:l}){return{path:c,name:y,type:e.OutputFileType.binary,data:l}}}},761:(r,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.sureOptionalReference=void 0,t.sureOptionalReference=function(o,e,c=!0){if(!o||!c)return null;const y=e.get(o);if(!y)throw new Error(`Trying to retrieve unknown referenced token ${o}`);return y}},118:(r,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NetworkHelper=void 0,t.NetworkHelper=class{static async fetchAsText(o,e,c){return(await this.performFetch(o,e,c)).text()}static async fetchAsJSON(o,e,c){return(await this.performFetch(o,e,c)).json()}static async fetchAsData(o,e,c){return(await this.performFetch(o,e,c)).arrayBuffer()}static async performFetch(o,e,c){try{const y=await o.network.fetch(e,c);if(!y.ok)throw new Error(`Request failed with status ${y.status}, error: ${await y.text()}`);return y}catch(y){throw y}}}},771:(r,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CSSHelper=void 0;const e=o(58),c=o(761),y=o(952);t.CSSHelper=class{static tokenToCSS(l,p,u){switch(l.tokenType){case e.TokenType.color:return this.colorTokenValueToCSS(l.value,p,u);case e.TokenType.border:return this.borderTokenValueToCSS(l.value,p,u);case e.TokenType.gradient:return this.gradientTokenValueToCSS(l.value,p,u);case e.TokenType.dimension:case e.TokenType.size:case e.TokenType.space:case e.TokenType.opacity:case e.TokenType.fontSize:case e.TokenType.lineHeight:case e.TokenType.letterSpacing:case e.TokenType.paragraphSpacing:case e.TokenType.borderWidth:case e.TokenType.radius:case e.TokenType.duration:case e.TokenType.zIndex:return this.dimensionTokenValueToCSS(l.value,p,u);case e.TokenType.shadow:return this.shadowTokenValueToCSS(l.value,p,u);case e.TokenType.fontWeight:return this.fontWeightTokenValueToCSS(l.value,p,u);case e.TokenType.fontFamily:case e.TokenType.productCopy:case e.TokenType.string:return this.stringTokenValueToCSS(l.value,p,u);case e.TokenType.textCase:case e.TokenType.textDecoration:case e.TokenType.visibility:return this.optionTokenValueToCSS(l.value,p,u,l.tokenType);case e.TokenType.blur:return this.blurTokenValueToCSS(l.value,p,u);case e.TokenType.typography:return this.typographyTokenValueToCSS(l.value,p,u);default:throw new e.UnreachableCaseError(l.tokenType,"Unsupported token type for transformation to CSS:")}}static colorTokenValueToCSS(l,p,u){return y.ColorHelper.formattedColorOrVariableName(l,p,u)}static borderTokenValueToCSS(l,p,u){const d=(0,c.sureOptionalReference)(l.referencedTokenId,p,u.allowReferences);if(d)return u.tokenToVariableRef(d);const g=this.dimensionTokenValueToCSS(l.width,p,u),b=this.borderStyleToCSS(l.style),S=this.colorTokenValueToCSS(l.color,p,u);return this.borderPositionToCSS(l.position),`${g} ${b} ${S}`}static gradientTokenValueToCSS(l,p,u){return l.map(d=>this.gradientLayerToCSS(d,p,u)).join(", ")}static gradientLayerToCSS(l,p,u){const d=(0,c.sureOptionalReference)(l.referencedTokenId,p,u.allowReferences);if(d)return u.tokenToVariableRef(d);let g="";switch(l.type){case e.GradientType.linear:g="linear-gradient(0deg, ";break;case e.GradientType.radial:g="radial-gradient(circle, ";break;case e.GradientType.angular:g="conic-gradient(";break;default:g="linear-gradient(0deg, "}return`${g}${l.stops.map(b=>`${this.colorTokenValueToCSS(b.color,p,u)} ${y.ColorHelper.roundToDecimals(100*b.position,u.decimals)}%`).join(", ")})`}static dimensionTokenValueToCSS(l,p,u){const d=(0,c.sureOptionalReference)(l.referencedTokenId,p,u.allowReferences);return d?u.tokenToVariableRef(d):`${y.ColorHelper.roundToDecimals(l.measure,u.decimals)}${this.unitToCSS(l.unit)}`}static shadowTokenValueToCSS(l,p,u){return l.map(d=>this.shadowLayerToCSS(d,p,u)).join(", ")}static shadowLayerToCSS(l,p,u){const d=(0,c.sureOptionalReference)(l.referencedTokenId,p,u.allowReferences);return d?u.tokenToVariableRef(d):`${l.type===e.ShadowType.inner?"inset ":""}${l.x}px ${l.y}px ${l.radius}px ${l.spread}px ${this.colorTokenValueToCSS({...l.color,...l.opacity&&{opacity:l.opacity}},p,u)}`}static fontWeightTokenValueToCSS(l,p,u){const d=(0,c.sureOptionalReference)(l.referencedTokenId,p,u.allowReferences);return d?u.tokenToVariableRef(d):`${l.text}`}static stringTokenValueToCSS(l,p,u){const d=(0,c.sureOptionalReference)(l.referencedTokenId,p,u.allowReferences);return d?u.tokenToVariableRef(d):`"${l.text}"`}static optionTokenValueToCSS(l,p,u,d){const g=(0,c.sureOptionalReference)(l.referencedTokenId,p,u.allowReferences);return g?u.tokenToVariableRef(g):d===e.TokenType.textCase?this.textCaseToCSS(l.value):d===e.TokenType.textDecoration?this.textDecorationToCSS(l.value):l.value}static blurTokenValueToCSS(l,p,u){const d=(0,c.sureOptionalReference)(l.referencedTokenId,p,u.allowReferences);return d?u.tokenToVariableRef(d):`blur(${this.dimensionTokenValueToCSS(l.radius,p,u)})`}static typographyTokenValueToCSS(l,p,u){const d=(0,c.sureOptionalReference)(l.referencedTokenId,p,u.allowReferences);if(d)return u.tokenToVariableRef(d);const g=(0,c.sureOptionalReference)(l.fontFamily.referencedTokenId,p,u.allowReferences),b=(0,c.sureOptionalReference)(l.fontWeight.referencedTokenId,p,u.allowReferences),S=(0,c.sureOptionalReference)(l.textDecoration.referencedTokenId,p,u.allowReferences),P=(0,c.sureOptionalReference)(l.textCase.referencedTokenId,p,u.allowReferences),h={fontFamily:g?u.tokenToVariableRef(g):l.fontFamily.text,fontWeight:b?u.tokenToVariableRef(b):l.fontWeight.text,textDecoration:S?u.tokenToVariableRef(S):l.textDecoration.value===e.TextDecoration.original?this.textDecorationToCSS(l.textDecoration.value):void 0,textCase:P?u.tokenToVariableRef(P):l.textCase.value===e.TextCase.original?this.textCaseToCSS(l.textCase.value):void 0,caps:l.textCase.value===e.TextCase.smallCaps,fontSize:this.dimensionTokenValueToCSS(l.fontSize,p,u),lineHeight:l.lineHeight?this.dimensionTokenValueToCSS(l.lineHeight,p,u):void 0},O=h.fontSize;return`${h.caps?"small-caps ":""}${h.fontWeight} ${h.lineHeight?`${O}/${h.lineHeight}`:O} ${g?h.fontFamily:`"${h.fontFamily}"`}`}static borderStyleToCSS(l){switch(l){case e.BorderStyle.dashed:return"dashed";case e.BorderStyle.dotted:return"dotted";case e.BorderStyle.solid:return"solid";case e.BorderStyle.groove:return"groove";default:return"solid"}}static borderPositionToCSS(l){switch(l){case e.BorderPosition.center:return"center";case e.BorderPosition.inside:return"inside";case e.BorderPosition.outside:default:return"outside"}}static unitToCSS(l){switch(l){case e.Unit.percent:return"%";case e.Unit.pixels:return"px";case e.Unit.rem:return"rem";case e.Unit.raw:return"";case e.Unit.ms:return"ms";default:return"px"}}static textCaseToCSS(l){switch(l){case e.TextCase.original:return"none";case e.TextCase.upper:return"uppercase";case e.TextCase.lower:return"lowercase";case e.TextCase.camel:case e.TextCase.smallCaps:return"capitalize"}}static textDecorationToCSS(l){switch(l){case e.TextDecoration.original:return"none";case e.TextDecoration.underline:return"underline";case e.TextDecoration.strikethrough:return"line-through"}}}},952:(r,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ColorHelper=void 0;const e=o(989),c=o(761);class y{static formattedColorOrVariableName(p,u,d){let g,b,S;const P=(0,c.sureOptionalReference)(p.referencedTokenId,u,d.allowReferences);if(P)g=d.tokenToVariableRef(P);else{const h=(0,c.sureOptionalReference)(p.color.referencedTokenId,u,d.allowReferences);h&&(b=d.tokenToVariableRef(h));const O=(0,c.sureOptionalReference)(p.opacity.referencedTokenId,u,d.allowReferences);O&&(S=d.tokenToVariableRef(O))}if(g)return g;if(!g&&!b&&!S)return this.formattedColor(p,d.colorFormat,d.decimals);switch(d.colorFormat){case e.ColorFormat.rgb:case e.ColorFormat.rgba:case e.ColorFormat.smartRgba:return this.colorToRgb(d.colorFormat,this.normalizedIntColor(p),p.opacity.measure,d.decimals,b,S);default:return this.formattedColor(p,d.colorFormat,d.decimals)}}static formattedColor(p,u,d=3){switch(u){case e.ColorFormat.hex6:case e.ColorFormat.hex8:case e.ColorFormat.hashHex6:case e.ColorFormat.hashHex8:case e.ColorFormat.smartHex:case e.ColorFormat.smartHashHex:return this.colorToHex(u,this.normalizedIntColor(p),p.opacity.measure);case e.ColorFormat.rgb:case e.ColorFormat.rgba:case e.ColorFormat.smartRgba:return this.colorToRgb(u,this.normalizedIntColor(p),p.opacity.measure,d,null,null);case e.ColorFormat.hsl:case e.ColorFormat.hsla:case e.ColorFormat.smartHsla:return this.colorToHsl(u,this.normalizedFractionalColor(p),p.opacity.measure,d);case e.ColorFormat.smartUIColor:return this.colorToUIColor(this.normalizedIntColor(p),p.opacity.measure,d)}}static colorToRgb(p,u,d,g,b,S){let P;return P=p===e.ColorFormat.rgba||p===e.ColorFormat.smartRgba&&d<1?`rgba(${b||`${u.r}, ${u.g}, ${u.b}`}, ${S||this.roundToDecimals(d,g)})`:`rgb(${b||`${u.r}, ${u.g}, ${u.b}`})`,P}static colorToHex(p,u,d){let g=`${this.pHex(u.r)}${this.pHex(u.g)}${this.pHex(u.b)}`;return(p===e.ColorFormat.hex8||p===e.ColorFormat.hashHex8||p===e.ColorFormat.smartHex&&d<1||p===e.ColorFormat.smartHashHex&&d<1)&&(g+=`${this.pHex(Math.round(255*d))}`),p!==e.ColorFormat.hashHex6&&p!==e.ColorFormat.hashHex8&&p!==e.ColorFormat.smartHashHex||(g=`#${g}`),g}static colorToHsl(p,u,d,g){const b=Math.max(u.r,u.g,u.b),S=Math.min(u.r,u.g,u.b);let P,h,O,E=(b+S)/2;if(b===S)P=h=0;else{const I=b-S;h=E>.5?I/(2-b-S):I/(b+S),b===u.r?P=(u.g-u.b)/I+(u.g{Object.defineProperty(t,"__esModule",{value:!0}),t.NamingHelper=void 0;const e=o(110),c=o(545);class y{static codeSafeVariableNameForToken(p,u,d,g){let b=[];return d&&(b=[...d.path],d.isRoot||b.push(d.name)),b.push(p.name),g&&g.length>0&&b.unshift(g),y.codeSafeVariableName(b,u)}static codeSafeVariableName(p,u){let d=typeof p=="string"?p:p.join(" ");switch(d=d.replaceAll(/[^a-zA-Z0-9_-]/g,"_"),u){case c.StringCase.camelCase:d=(0,e.camelCase)(d);break;case c.StringCase.capitalCase:d=(0,e.capitalCase)(d);break;case c.StringCase.constantCase:d=(0,e.constantCase)(d);break;case c.StringCase.dotCase:d=(0,e.dotCase)(d);break;case c.StringCase.headerCase:d=(0,e.headerCase)(d);break;case c.StringCase.noCase:d=(0,e.noCase)(d);break;case c.StringCase.paramCase:d=(0,e.paramCase)(d);break;case c.StringCase.pascalCase:d=(0,e.pascalCase)(d);break;case c.StringCase.pathCase:d=(0,e.pathCase)(d);break;case c.StringCase.sentenceCase:d=(0,e.sentenceCase)(d);break;case c.StringCase.snakeCase:d=(0,e.snakeCase)(d)}return u!==c.StringCase.snakeCase&&u!==c.StringCase.constantCase&&(d=d.replaceAll("_","")),d.match(/^[^a-zA-Z]/)&&(d="_"+d),d}static nameAsCSSVarReference(p){return`var(--${p})`}static nameAsCSSVarDeclaration(p){return`--${p}`}}t.NamingHelper=y},58:r=>{r.exports=at()},110:r=>{r.exports=St}},s={};function n(r){var t=s[r];if(t!==void 0)return t.exports;var o=s[r]={exports:{}};return i[r](o,o.exports,n),o.exports}var T={};(()=>{var r=T;Object.defineProperty(r,"__esModule",{value:!0}),r.ColorFormat=r.StringCase=r.Iterators=r.CSSHelper=r.FileHelper=r.ColorHelper=r.NamingHelper=r.NetworkHelper=void 0;var t=n(118);Object.defineProperty(r,"NetworkHelper",{enumerable:!0,get:function(){return t.NetworkHelper}});var o=n(453);Object.defineProperty(r,"NamingHelper",{enumerable:!0,get:function(){return o.NamingHelper}});var e=n(952);Object.defineProperty(r,"ColorHelper",{enumerable:!0,get:function(){return e.ColorHelper}});var c=n(617);Object.defineProperty(r,"FileHelper",{enumerable:!0,get:function(){return c.FileHelper}});var y=n(771);Object.defineProperty(r,"CSSHelper",{enumerable:!0,get:function(){return y.CSSHelper}});var l=n(639);Object.defineProperty(r,"Iterators",{enumerable:!0,get:function(){return l.Iterators}});var p=n(545);Object.defineProperty(r,"StringCase",{enumerable:!0,get:function(){return p.StringCase}});var u=n(989);Object.defineProperty(r,"ColorFormat",{enumerable:!0,get:function(){return u.ColorFormat}})})();var m=a;for(var f in T)m[f]=T[f];T.__esModule&&Object.defineProperty(m,"__esModule",{value:!0})})()})(k);var v={};(function(a){(()=>{var i={9932:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.docsImageRefToUrl=t.DocsImageRefType=void 0,function(e){e.resource="Resource",e.figmaNode="FigmaNode"}(o||(t.DocsImageRefType=o={})),t.docsImageRefToUrl=function(e,c,y){var l;if(e)switch(e.type){case o.resource:return(l=e.resource)===null||l===void 0?void 0:l.url;case o.figmaNode:return!e.figmaNode||!e.figmaNode.sourceId||!e.figmaNode.frameReferenceId?void 0:c.resources.getFigmaFrameHostedUrl({designSystemId:y.dsId,versionId:y.versionId},e.figmaNode.frameReferenceId);default:return}}},5673:(r,t)=>{var o;function e(c){switch(c.type){case o.documentationItem:return`@page:${c.documentationItemId}`;case o.pageHeading:return`@page:${c.documentationItemId}#${c.pageHeadingId}`;case o.url:return c.url;default:return}}Object.defineProperty(t,"__esModule",{value:!0}),t.linkAttributeToDocsLink=t.docsLinkToLinkAttributes=t.docsLinkToUrl=t.DocsLinkRefType=void 0,function(c){c.documentationItem="DocumentationItem",c.pageHeading="PageHeading",c.url="Url"}(o||(t.DocsLinkRefType=o={})),t.docsLinkToUrl=e,t.docsLinkToLinkAttributes=function(c){const y=e(c);if(y)return{href:y,target:c.openInNewTab?"_blank":"_self"}},t.linkAttributeToDocsLink=function(c,y){if(!c)return;const l=y==="_blank";if(c.startsWith("@page:")){if(c.includes("#")){const[p,u]=c.replace("@page:","").split("#");return{type:o.pageHeading,documentationItemId:p,pageHeadingId:u,openInNewTab:l}}return{type:o.documentationItem,documentationItemId:c.replace("@page:",""),openInNewTab:l}}return{type:o.url,url:c,openInNewTab:l}}},2657:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentationLegacyPageBlockShortcut=t.DocumentationLegacyPageBlockShortcutType=void 0,function(e){e.external="External",e.internal="Internal"}(o||(t.DocumentationLegacyPageBlockShortcutType=o={})),t.DocumentationLegacyPageBlockShortcut=class{constructor(e){var c;e.url?this.type=o.external:this.type=o.internal,this.title=this.shortcutTitleFromModel(e,this.type),this.description=this.shortcutDescriptionFromModel(e,this.type),this.previewUrl=this.shortcutPreviewUrlFromModel(e),this.type===o.internal&&(!((c=e.documentationItemPreview)===null||c===void 0)&&c.valid)&&e.documentationItemId?this.internalId=e.documentationItemId:(this.internalId=null,this.type===o.external&&e.url?this.externalUrl=e.url:this.externalUrl=null)}shortcutTitleFromModel(e,c){var y,l,p,u,d;let g=null;return e.title&&e.title.trim().length>0?g=e.title:c===o.internal?g=(l=(y=e.documentationItemPreview)===null||y===void 0?void 0:y.title)!==null&&l!==void 0?l:null:c===o.external&&(g=(d=(u=(p=e.urlPreview)===null||p===void 0?void 0:p.title)!==null&&u!==void 0?u:e.url)!==null&&d!==void 0?d:null),g&&g.trim().length!==0?g:null}shortcutDescriptionFromModel(e,c){var y;let l=null;return e.description&&e.description.trim().length>0?l=e.description:c===o.external&&(l=(y=e.urlPreview)===null||y===void 0?void 0:y.description),l&&l.trim().length!==0?l:null}shortcutPreviewUrlFromModel(e){var c,y,l,p,u;return(u=(l=(c=e.assetUrl)!==null&&c!==void 0?c:(y=e.asset)===null||y===void 0?void 0:y.url)!==null&&l!==void 0?l:(p=e.urlPreview)===null||p===void 0?void 0:p.thumbnailUrl)!==null&&u!==void 0?u:null}}},7476:(r,t)=>{var o,e;Object.defineProperty(t,"__esModule",{value:!0}),t.TextAlignment=t.Alignment=void 0,function(c){c.left="Left",c.center="Center",c.stretch="Stretch"}(o||(t.Alignment=o={})),function(c){c.left="Left",c.center="Center",c.right="Right"}(e||(t.TextAlignment=e={}))},8738:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.AssetFormat=void 0,function(e){e.png="png",e.pdf="pdf",e.svg="svg"}(o||(t.AssetFormat=o={}))},915:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.AssetScale=void 0,function(e){e.x1="x1",e.x2="x2",e.x3="x3",e.x4="x4"}(o||(t.AssetScale=o={}))},899:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.AssetScaleType=void 0,function(e){e.aspectFill="AspectFill",e.aspectFit="AspectFit"}(o||(t.AssetScaleType=o={}))},6192:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.BlurType=void 0,function(e){e.layer="Layer",e.background="Background"}(o||(t.BlurType=o={}))},1160:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.ALL_BORDER_POSITIONS=t.BorderPosition=void 0,function(e){e.inside="Inside",e.center="Center",e.outside="Outside"}(o||(t.BorderPosition=o={})),t.ALL_BORDER_POSITIONS=[o.inside,o.center,o.outside]},4546:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.ALL_BORDER_STYLES=t.BorderStyle=void 0,function(e){e.dashed="Dashed",e.dotted="Dotted",e.solid="Solid",e.groove="Groove"}(o||(t.BorderStyle=o={})),t.ALL_BORDER_STYLES=[o.dashed,o.dotted,o.solid,o.groove]},8042:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.ImportWarningType=void 0,function(e){e.UnsupportedFill="UnsupportedFill",e.UnsupportedStroke="UnsupportedStroke",e.UnsupportedEffect="UnsupportedEffect",e.StyleNotApplied="StyleNotApplied",e.NoPublishedStyles="NoPublishedStyles",e.NoPublishedComponents="NoPublishedComponents",e.NoPublishedAssets="NoPublishedAssets",e.NoVersionFound="NoVersionFound",e.ComponentHasNoThumbnail="ComponentHasNoThumbnail",e.DuplicateImportedStyleId="DuplicateImportedStyleId",e.DuplicateImportedStylePath="DuplicateImportedStylePath",e.NoPublishedElements="NoPublishedElements",e.NoUnpublishedStyles="NoUnpublishedStyles"}(o||(t.ImportWarningType=o={}))},5695:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.CustomDomainErrorCode=void 0,function(e){e.generalError="GeneralError",e.dnsNotConfigured="DNSNotConfigured",e.maintenance="Maintenance"}(o||(t.CustomDomainErrorCode=o={}))},7737:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.CustomDomainState=void 0,function(e){e.initial="Initial",e.domainSetupInProgress="DomainSetupInProgress",e.domainSetupFailed="DomainSetupFailed",e.domainSetupsSucces="DomainSetupSuccess",e.sslSetupInProgress="SSLSetupInProgress",e.sslSetupFailed="SSLSetupFailed",e.sslSetupSuccess="SSLSetupSuccess"}(o||(t.CustomDomainState=o={}))},5651:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsBlockBehaviorDataType=void 0,function(e){e.item="Item",e.token="Token",e.asset="Asset",e.component="Component",e.figmaNode="FigmaNode",e.figmaComponent="FigmaComponent"}(o||(t.DocsBlockBehaviorDataType=o={}))},3733:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsBlockBehaviorSelectionType=void 0,function(e){e.entity="Entity",e.group="Group",e.entityAndGroup="EntityAndGroup"}(o||(t.DocsBlockBehaviorSelectionType=o={}))},8890:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsBlockImagePropertyAspectRatio=void 0,function(e){e.auto="Auto",e.square="Square",e.landscape="Landscape",e.portrait="Portrait",e.wide="Wide"}(o||(t.DocsBlockImagePropertyAspectRatio=o={}))},9377:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsBlockItemEntityType=void 0,function(e){e.token="Token",e.tokenGroup="TokenGroup",e.asset="Asset",e.assetGroup="AssetGroup",e.component="Component",e.componentGroup="ComponentGroup"}(o||(t.DocsBlockItemEntityType=o={}))},5883:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsBlockItemPropertyOptionRenderingStyle=void 0,function(e){e.segmentedControl="SegmentedControl",e.toggleButton="ToggleButton",e.select="Select",e.checkbox="Checkbox"}(o||(t.DocsBlockItemPropertyOptionRenderingStyle=o={}))},8061:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsBlockItemPropertyRichTextStyle=void 0,function(e){e.title1="Title1",e.title2="Title2",e.title3="Title3",e.title4="Title4",e.title5="Title5",e.quote="Quote",e.callout="Callout",e.ol="OL",e.ul="UL"}(o||(t.DocsBlockItemPropertyRichTextStyle=o={}))},7479:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsBlockItemPropertyTextStyle=void 0,function(e){e.small="Small",e.regular="Regular",e.bold="Bold"}(o||(t.DocsBlockItemPropertyTextStyle=o={}))},6839:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsBlockItemPropertyType=void 0,function(e){e.richText="RichText",e.multiRichText="MultiRichText",e.text="Text",e.richTextEditor="RichTextEditor",e.boolean="Boolean",e.number="Number",e.singleSelect="SingleSelect",e.multiSelect="MultiSelect",e.image="Image",e.token="Token",e.tokenType="TokenType",e.tokenProperty="TokenProperty",e.component="Component",e.componentProperty="ComponentProperty",e.asset="Asset",e.assetProperty="AssetProperty",e.embedURL="EmbedURL",e.url="URL",e.markdown="Markdown",e.code="Code",e.codeSandbox="CodeSandbox",e.table="Table",e.divider="Divider",e.storybook="Storybook",e.color="Color",e.figmaNode="FigmaNode",e.figmaComponent="FigmaComponent"}(o||(t.DocsBlockItemPropertyType=o={}))},8095:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsBlockItemVariantLayoutType=void 0,function(e){e.column="Column",e.row="Row"}(o||(t.DocsBlockItemVariantLayoutType=o={}))},7291:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsBlockItemVariantLayoutWidth=void 0,function(e){e.c1="1",e.c2="2",e.c3="3",e.c4="4",e.c5="5",e.c6="6",e.c7="7",e.c8="8",e.c9="9",e.c10="10",e.c11="11",e.c12="12"}(o||(t.DocsBlockItemVariantLayoutWidth=o={}))},9133:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsBlockOptionColor=void 0,function(e){e.green="Green",e.red="Red",e.yellow="Yellow",e.blue="Blue",e.purple="Purple",e.orange="Orange",e.pink="Pink",e.teal="Teal",e.grey="Grey",e.lightGrey="LightGrey",e.cyan="Cyan",e.fuchsia="Fuchsia"}(o||(t.DocsBlockOptionColor=o={}))},5963:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsBlockOptionRenderingStyle=void 0,function(e){e.segmentedControl="SegmentedControl",e.toggleButton="ToggleButton",e.select="Select",e.checkbox="Checkbox"}(o||(t.DocsBlockOptionRenderingStyle=o={}))},6644:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsBlockRichTextPropertyStyle=void 0,function(e){e.title1="Title1",e.title2="Title2",e.title3="Title3",e.title4="Title4",e.title5="Title5",e.quote="Quote",e.callout="Callout",e.default="Default"}(o||(t.DocsBlockRichTextPropertyStyle=o={}))},306:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsBlockTextPropertyStyle=void 0,function(e){e.title1="Title1",e.title2="Title2",e.title3="Title3",e.title4="Title4",e.title5="Title5",e.default="Default",e.defaultBold="DefaultBold",e.defaultSemibold="DefaultSemibold",e.small="Small",e.smallBold="SmallBold",e.smallSemibold="SmallSemibold",e.custom="Custom"}(o||(t.DocsBlockTextPropertyStyle=o={}))},4068:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsEntityGroupBehavior=void 0,function(e){e.group="Group",e.tabs="Tabs"}(o||(t.DocsEntityGroupBehavior=o={}))},1233:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsEntityType=void 0,function(e){e.group="Group",e.page="Page"}(o||(t.DocsEntityType=o={}))},7971:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocsSectionType=void 0,function(e){e.plain="Plain",e.tabs="Tabs"}(o||(t.DocsSectionType=o={}))},5102:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentationLegacyCalloutType=void 0,function(e){e.info="Info",e.success="Success",e.warning="Warning",e.error="Error"}(o||(t.DocumentationLegacyCalloutType=o={}))},2123:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentationLegacyGroupBehavior=void 0,function(e){e.group="Group",e.tabs="Tabs"}(o||(t.DocumentationLegacyGroupBehavior=o={}))},9896:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentationLegacyHeadingType=void 0,function(e){e[e.h1=1]="h1",e[e.h2=2]="h2",e[e.h3=3]="h3"}(o||(t.DocumentationLegacyHeadingType=o={}))},7379:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentationLegacyItemType=void 0,function(e){e.group="Group",e.page="Page"}(o||(t.DocumentationLegacyItemType=o={}))},1423:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentationLegacyPageAssetType=void 0,function(e){e.image="image",e.figmaFrame="figmaFrame"}(o||(t.DocumentationLegacyPageAssetType=o={}))},1601:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentationLegacyPageBlockThemeType=void 0,function(e){e.override="Override",e.comparison="Comparison"}(o||(t.DocumentationLegacyPageBlockThemeType=o={}))},1846:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentationLegacyPageBlockType=void 0,function(e){e.text="Text",e.heading="Heading",e.code="Code",e.unorderedList="UnorderedList",e.orderedList="OrderedList",e.quote="Quote",e.callout="Callout",e.divider="Divider",e.image="Image",e.token="Token",e.tokenList="TokenList",e.tokenGroup="TokenGroup",e.shortcuts="Shortcuts",e.link="Link",e.figmaEmbed="FigmaEmbed",e.youtubeEmbed="YoutubeEmbed",e.storybookEmbed="StorybookEmbed",e.genericEmbed="Embed",e.figmaFrames="FigmaFrames",e.custom="Custom",e.renderCode="RenderCode",e.componentAssets="ComponentAssets",e.column="Column",e.columnItem="ColumnItem",e.tabs="Tabs",e.tabItem="TabItem",e.table="Table",e.tableCell="TableCell",e.tableRow="TableRow"}(o||(t.DocumentationLegacyPageBlockType=o={}))},1255:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.FrameAlignment=void 0,function(e){e.frameHeight="FrameHeight",e.center="Center"}(o||(t.FrameAlignment=o={}))},3718:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.FrameLayout=void 0,function(e){e.c8="C8",e.c7="C7",e.c6="C6",e.c5="C5",e.c4="C4",e.c3="C3",e.c2="C2",e.c1="C1",e.c175="C1_75"}(o||(t.FrameLayout=o={}))},1:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.GradientType=void 0,function(e){e.linear="Linear",e.radial="Radial",e.angular="Angular"}(o||(t.GradientType=o={}))},934:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.IconSet=void 0,function(e){e.checkCircle="CheckCircle",e.crossCircle="CrossCircle",e.alert="Alert"}(o||(t.IconSet=o={}))},2674:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.RichTextSpanAttributeType=void 0,function(e){e.bold="Bold",e.italic="Italic",e.link="Link",e.strikethrough="Strikethrough",e.code="Code"}(o||(t.RichTextSpanAttributeType=o={}))},9125:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.ShadowType=void 0,function(e){e.drop="Drop",e.inner="Inner"}(o||(t.ShadowType=o={}))},4652:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.SourceType=void 0,function(e){e.figma="Figma",e.tokenStudio="TokenStudio",e.figmaVariablesPlugin="FigmaVariablesPlugin"}(o||(t.SourceType=o={}))},922:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.TextCase=void 0,function(e){e.original="Original",e.upper="Upper",e.lower="Lower",e.camel="Camel",e.smallCaps="SmallCaps"}(o||(t.TextCase=o={}))},7040:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.TextDecoration=void 0,function(e){e.original="None",e.underline="Underline",e.strikethrough="Strikethrough"}(o||(t.TextDecoration=o={}))},3788:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.DT_TOKEN_TYPES=t.tokenTypeIsReferencable=t.REFERENCABLE_TOKEN_TYPES=t.REPLACABLE_TOKEN_TYPES=t.tokenTypeIsNonPure=t.tokenTypeIsPure=t.PURE_TOKEN_TYPES=t.ALL_TOKEN_TYPES=t.MS_DIMENSION_TOKEN_TYPES=t.RAW_DIMENSION_TOKEN_TYPES=t.DIMENSION_TOKEN_TYPES=t.OPTION_TOKEN_TYPES=t.STRING_TOKEN_TYPES=t.TokenType=void 0,function(e){e.color="Color",e.typography="Typography",e.shadow="Shadow",e.border="Border",e.gradient="Gradient",e.blur="Blur",e.radius="BorderRadius",e.borderWidth="BorderWidth",e.duration="Duration",e.fontSize="FontSize",e.dimension="Dimension",e.letterSpacing="LetterSpacing",e.lineHeight="LineHeight",e.opacity="Opacity",e.paragraphSpacing="ParagraphSpacing",e.size="Size",e.space="Space",e.zIndex="ZIndex",e.textDecoration="TextDecoration",e.textCase="TextCase",e.visibility="Visibility",e.fontFamily="FontFamily",e.fontWeight="FontWeight",e.string="String",e.productCopy="ProductCopy"}(o||(t.TokenType=o={})),t.STRING_TOKEN_TYPES=[o.string,o.productCopy,o.fontFamily,o.fontWeight],t.OPTION_TOKEN_TYPES=[o.textCase,o.textDecoration,o.visibility],t.DIMENSION_TOKEN_TYPES=[o.dimension,o.size,o.space,o.opacity,o.fontSize,o.lineHeight,o.letterSpacing,o.paragraphSpacing,o.borderWidth,o.radius,o.duration,o.zIndex],t.RAW_DIMENSION_TOKEN_TYPES=[o.opacity,o.zIndex],t.MS_DIMENSION_TOKEN_TYPES=[o.duration],t.ALL_TOKEN_TYPES=[...t.DIMENSION_TOKEN_TYPES,...t.STRING_TOKEN_TYPES,...t.OPTION_TOKEN_TYPES,o.color,o.gradient,o.border,o.radius,o.shadow,o.typography,o.blur],t.PURE_TOKEN_TYPES=[...t.DIMENSION_TOKEN_TYPES,...t.STRING_TOKEN_TYPES,...t.OPTION_TOKEN_TYPES],t.tokenTypeIsPure=e=>t.PURE_TOKEN_TYPES.includes(e),t.tokenTypeIsNonPure=e=>!(0,t.tokenTypeIsPure)(e),t.REPLACABLE_TOKEN_TYPES=[o.color,...t.DIMENSION_TOKEN_TYPES,...t.STRING_TOKEN_TYPES,...t.OPTION_TOKEN_TYPES],t.REFERENCABLE_TOKEN_TYPES=[o.color,...t.DIMENSION_TOKEN_TYPES,o.fontFamily,o.fontWeight,o.textCase,o.textDecoration],t.tokenTypeIsReferencable=e=>t.REFERENCABLE_TOKEN_TYPES.includes(e),t.DT_TOKEN_TYPES=[o.color,o.shadow,o.gradient,o.typography,o.border,...t.DIMENSION_TOKEN_TYPES,o.fontFamily,o.fontWeight,...t.OPTION_TOKEN_TYPES]},8607:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.MS_UNITS=t.PX_UNITS=t.RAW_UNITS=t.LINE_HEIGHT_UNITS=t.SIZE_UNITS=t.Unit=void 0,function(e){e.pixels="Pixels",e.percent="Percent",e.rem="Rem",e.ms="Ms",e.raw="Raw"}(o||(t.Unit=o={})),t.SIZE_UNITS=[o.pixels,o.percent,o.rem],t.LINE_HEIGHT_UNITS=[o.pixels,o.percent,o.rem,o.raw],t.RAW_UNITS=[o.raw],t.PX_UNITS=[o.pixels],t.MS_UNITS=[o.ms]},9478:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.UserRole=void 0,function(e){e.owner="Owner",e.admin="Admin",e.creator="Creator",e.contributor="Contributor",e.billing="Billing",e.viewer="Viewer"}(o||(t.UserRole=o={}))},6141:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.VisibilityType=void 0,function(e){e.visible="Visible",e.hidden="Hidden"}(o||(t.VisibilityType=o={}))},6298:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.WorkspaceNPMRegistryAuthType=void 0,function(e){e.basic="Basic",e.bearer="Bearer"}(o||(t.WorkspaceNPMRegistryAuthType=o={}))},7968:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.WorkspaceNPMRegistryType=void 0,function(e){e.npmJS="NPMJS",e.gitHub="GitHub",e.azureDevOps="AzureDevOps",e.artifactory="Artifactory",e.custom="Custom"}(o||(t.WorkspaceNPMRegistryType=o={}))},5503:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.WorkspaceSubscriptionPlanInterval=void 0,function(e){e.yearly="yearly",e.monthly="monthly"}(o||(t.WorkspaceSubscriptionPlanInterval=o={}))},4290:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.WorkspaceSubscriptionProductCode=void 0,function(e){e.free="free",e.team="team",e.teamTest="team_test",e.company="company",e.enterprise="enterprise"}(o||(t.WorkspaceSubscriptionProductCode=o={}))},3607:(r,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),t.WorkspaceSubscriptionStatus=void 0,function(e){e.active="active",e.gracePeriod="gracePeriod",e.cancelled="cancelled",e.suspended="suspended"}(o||(t.WorkspaceSubscriptionStatus=o={}))},2802:(r,t)=>{var o,e;Object.defineProperty(t,"__esModule",{value:!0}),t.PulsarExecutor=t.OutputFileType=void 0,function(c){c.copyRemoteUrl="copyRemoteUrl",c.text="text",c.binary="binary"}(o||(t.OutputFileType=o={})),function(c){c.supernova="supernova",c.local="local"}(e||(t.PulsarExecutor=e={}))}},s={};function n(r){var t=s[r];if(t!==void 0)return t.exports;var o=s[r]={exports:{}};return i[r](o,o.exports,n),o.exports}var T={};(()=>{var r=T;Object.defineProperty(r,"__esModule",{value:!0}),r.TokenType=r.TextDecoration=r.TextCase=r.ShadowType=r.RichTextSpanAttributeType=r.GradientType=r.FrameLayout=r.FrameAlignment=r.IconSet=r.SourceType=r.DocsImageRefType=r.DocsLinkRefType=r.DocsSectionType=r.DocsEntityType=r.DocsEntityGroupBehavior=r.DocsBlockTextPropertyStyle=r.DocsBlockRichTextPropertyStyle=r.DocsBlockOptionColor=r.DocsBlockOptionRenderingStyle=r.DocsBlockItemVariantLayoutWidth=r.DocsBlockItemVariantLayoutType=r.DocsBlockItemPropertyType=r.DocsBlockItemPropertyTextStyle=r.DocsBlockItemPropertyRichTextStyle=r.DocsBlockItemPropertyOptionRenderingStyle=r.DocsBlockItemEntityType=r.DocsBlockImagePropertyAspectRatio=r.DocsBlockBehaviorSelectionType=r.DocsBlockBehaviorDataType=r.DocumentationLegacyPageBlockShortcutType=r.DocumentationLegacyPageBlockThemeType=r.DocumentationLegacyPageBlockType=r.DocumentationLegacyPageAssetType=r.DocumentationLegacyItemType=r.DocumentationLegacyHeadingType=r.DocumentationLegacyGroupBehavior=r.DocumentationLegacyCalloutType=r.BorderStyle=r.BorderPosition=r.BlurType=r.AssetScaleType=r.AssetScale=r.AssetFormat=r.Alignment=r.ALL_TOKEN_TYPES=r.ALL_BORDER_STYLES=r.ALL_BORDER_POSITIONS=r.OPTION_TOKEN_TYPES=r.STRING_TOKEN_TYPES=r.DIMENSION_TOKEN_TYPES=void 0,r.PulsarExecutor=r.OutputFileType=r.CustomDomainState=r.CustomDomainErrorCode=r.ImportWarningType=r.WorkspaceNPMRegistryType=r.WorkspaceNPMRegistryAuthType=r.WorkspaceSubscriptionStatus=r.WorkspaceSubscriptionProductCode=r.WorkspaceSubscriptionPlanInterval=r.VisibilityType=r.UserRole=r.Unit=void 0;var t=n(3788);Object.defineProperty(r,"DIMENSION_TOKEN_TYPES",{enumerable:!0,get:function(){return t.DIMENSION_TOKEN_TYPES}}),Object.defineProperty(r,"STRING_TOKEN_TYPES",{enumerable:!0,get:function(){return t.STRING_TOKEN_TYPES}}),Object.defineProperty(r,"OPTION_TOKEN_TYPES",{enumerable:!0,get:function(){return t.OPTION_TOKEN_TYPES}});var o=n(1160);Object.defineProperty(r,"ALL_BORDER_POSITIONS",{enumerable:!0,get:function(){return o.ALL_BORDER_POSITIONS}});var e=n(4546);Object.defineProperty(r,"ALL_BORDER_STYLES",{enumerable:!0,get:function(){return e.ALL_BORDER_STYLES}});var c=n(3788);Object.defineProperty(r,"ALL_TOKEN_TYPES",{enumerable:!0,get:function(){return c.ALL_TOKEN_TYPES}});var y=n(7476);Object.defineProperty(r,"Alignment",{enumerable:!0,get:function(){return y.Alignment}});var l=n(8738);Object.defineProperty(r,"AssetFormat",{enumerable:!0,get:function(){return l.AssetFormat}});var p=n(915);Object.defineProperty(r,"AssetScale",{enumerable:!0,get:function(){return p.AssetScale}});var u=n(899);Object.defineProperty(r,"AssetScaleType",{enumerable:!0,get:function(){return u.AssetScaleType}});var d=n(6192);Object.defineProperty(r,"BlurType",{enumerable:!0,get:function(){return d.BlurType}});var g=n(1160);Object.defineProperty(r,"BorderPosition",{enumerable:!0,get:function(){return g.BorderPosition}});var b=n(4546);Object.defineProperty(r,"BorderStyle",{enumerable:!0,get:function(){return b.BorderStyle}});var S=n(5102);Object.defineProperty(r,"DocumentationLegacyCalloutType",{enumerable:!0,get:function(){return S.DocumentationLegacyCalloutType}});var P=n(2123);Object.defineProperty(r,"DocumentationLegacyGroupBehavior",{enumerable:!0,get:function(){return P.DocumentationLegacyGroupBehavior}});var h=n(9896);Object.defineProperty(r,"DocumentationLegacyHeadingType",{enumerable:!0,get:function(){return h.DocumentationLegacyHeadingType}});var O=n(7379);Object.defineProperty(r,"DocumentationLegacyItemType",{enumerable:!0,get:function(){return O.DocumentationLegacyItemType}});var E=n(1423);Object.defineProperty(r,"DocumentationLegacyPageAssetType",{enumerable:!0,get:function(){return E.DocumentationLegacyPageAssetType}});var I=n(1846);Object.defineProperty(r,"DocumentationLegacyPageBlockType",{enumerable:!0,get:function(){return I.DocumentationLegacyPageBlockType}});var H=n(1601);Object.defineProperty(r,"DocumentationLegacyPageBlockThemeType",{enumerable:!0,get:function(){return H.DocumentationLegacyPageBlockThemeType}});var U=n(2657);Object.defineProperty(r,"DocumentationLegacyPageBlockShortcutType",{enumerable:!0,get:function(){return U.DocumentationLegacyPageBlockShortcutType}});var W=n(5651);Object.defineProperty(r,"DocsBlockBehaviorDataType",{enumerable:!0,get:function(){return W.DocsBlockBehaviorDataType}});var V=n(3733);Object.defineProperty(r,"DocsBlockBehaviorSelectionType",{enumerable:!0,get:function(){return V.DocsBlockBehaviorSelectionType}});var Y=n(8890);Object.defineProperty(r,"DocsBlockImagePropertyAspectRatio",{enumerable:!0,get:function(){return Y.DocsBlockImagePropertyAspectRatio}});var G=n(9377);Object.defineProperty(r,"DocsBlockItemEntityType",{enumerable:!0,get:function(){return G.DocsBlockItemEntityType}});var K=n(5883);Object.defineProperty(r,"DocsBlockItemPropertyOptionRenderingStyle",{enumerable:!0,get:function(){return K.DocsBlockItemPropertyOptionRenderingStyle}});var z=n(8061);Object.defineProperty(r,"DocsBlockItemPropertyRichTextStyle",{enumerable:!0,get:function(){return z.DocsBlockItemPropertyRichTextStyle}});var q=n(7479);Object.defineProperty(r,"DocsBlockItemPropertyTextStyle",{enumerable:!0,get:function(){return q.DocsBlockItemPropertyTextStyle}});var Z=n(6839);Object.defineProperty(r,"DocsBlockItemPropertyType",{enumerable:!0,get:function(){return Z.DocsBlockItemPropertyType}});var X=n(8095);Object.defineProperty(r,"DocsBlockItemVariantLayoutType",{enumerable:!0,get:function(){return X.DocsBlockItemVariantLayoutType}});var Q=n(7291);Object.defineProperty(r,"DocsBlockItemVariantLayoutWidth",{enumerable:!0,get:function(){return Q.DocsBlockItemVariantLayoutWidth}});var J=n(5963);Object.defineProperty(r,"DocsBlockOptionRenderingStyle",{enumerable:!0,get:function(){return J.DocsBlockOptionRenderingStyle}});var ee=n(9133);Object.defineProperty(r,"DocsBlockOptionColor",{enumerable:!0,get:function(){return ee.DocsBlockOptionColor}});var te=n(6644);Object.defineProperty(r,"DocsBlockRichTextPropertyStyle",{enumerable:!0,get:function(){return te.DocsBlockRichTextPropertyStyle}});var oe=n(306);Object.defineProperty(r,"DocsBlockTextPropertyStyle",{enumerable:!0,get:function(){return oe.DocsBlockTextPropertyStyle}});var re=n(4068);Object.defineProperty(r,"DocsEntityGroupBehavior",{enumerable:!0,get:function(){return re.DocsEntityGroupBehavior}});var ne=n(1233);Object.defineProperty(r,"DocsEntityType",{enumerable:!0,get:function(){return ne.DocsEntityType}});var ae=n(7971);Object.defineProperty(r,"DocsSectionType",{enumerable:!0,get:function(){return ae.DocsSectionType}});var ie=n(5673);Object.defineProperty(r,"DocsLinkRefType",{enumerable:!0,get:function(){return ie.DocsLinkRefType}});var ce=n(9932);Object.defineProperty(r,"DocsImageRefType",{enumerable:!0,get:function(){return ce.DocsImageRefType}});var le=n(4652);Object.defineProperty(r,"SourceType",{enumerable:!0,get:function(){return le.SourceType}});var se=n(934);Object.defineProperty(r,"IconSet",{enumerable:!0,get:function(){return se.IconSet}});var ue=n(1255);Object.defineProperty(r,"FrameAlignment",{enumerable:!0,get:function(){return ue.FrameAlignment}});var pe=n(3718);Object.defineProperty(r,"FrameLayout",{enumerable:!0,get:function(){return pe.FrameLayout}});var de=n(1);Object.defineProperty(r,"GradientType",{enumerable:!0,get:function(){return de.GradientType}});var ye=n(2674);Object.defineProperty(r,"RichTextSpanAttributeType",{enumerable:!0,get:function(){return ye.RichTextSpanAttributeType}});var Te=n(9125);Object.defineProperty(r,"ShadowType",{enumerable:!0,get:function(){return Te.ShadowType}});var me=n(922);Object.defineProperty(r,"TextCase",{enumerable:!0,get:function(){return me.TextCase}});var fe=n(7040);Object.defineProperty(r,"TextDecoration",{enumerable:!0,get:function(){return fe.TextDecoration}});var ge=n(3788);Object.defineProperty(r,"TokenType",{enumerable:!0,get:function(){return ge.TokenType}});var be=n(8607);Object.defineProperty(r,"Unit",{enumerable:!0,get:function(){return be.Unit}});var Se=n(9478);Object.defineProperty(r,"UserRole",{enumerable:!0,get:function(){return Se.UserRole}});var ve=n(6141);Object.defineProperty(r,"VisibilityType",{enumerable:!0,get:function(){return ve.VisibilityType}});var Pe=n(5503);Object.defineProperty(r,"WorkspaceSubscriptionPlanInterval",{enumerable:!0,get:function(){return Pe.WorkspaceSubscriptionPlanInterval}});var he=n(4290);Object.defineProperty(r,"WorkspaceSubscriptionProductCode",{enumerable:!0,get:function(){return he.WorkspaceSubscriptionProductCode}});var ke=n(3607);Object.defineProperty(r,"WorkspaceSubscriptionStatus",{enumerable:!0,get:function(){return ke.WorkspaceSubscriptionStatus}});var Oe=n(6298);Object.defineProperty(r,"WorkspaceNPMRegistryAuthType",{enumerable:!0,get:function(){return Oe.WorkspaceNPMRegistryAuthType}});var _e=n(7968);Object.defineProperty(r,"WorkspaceNPMRegistryType",{enumerable:!0,get:function(){return _e.WorkspaceNPMRegistryType}});var Ce=n(8042);Object.defineProperty(r,"ImportWarningType",{enumerable:!0,get:function(){return Ce.ImportWarningType}});var A=n(5695);Object.defineProperty(r,"CustomDomainErrorCode",{enumerable:!0,get:function(){return A.CustomDomainErrorCode}});var rt=n(7737);Object.defineProperty(r,"CustomDomainState",{enumerable:!0,get:function(){return rt.CustomDomainState}});var Re=n(2802);Object.defineProperty(r,"OutputFileType",{enumerable:!0,get:function(){return Re.OutputFileType}}),Object.defineProperty(r,"PulsarExecutor",{enumerable:!0,get:function(){return Re.PulsarExecutor}})})();var m=a;for(var f in T)m[f]=T[f];T.__esModule&&Object.defineProperty(m,"__esModule",{value:!0})})()})(v);const vt=a=>a.replace(/\n{3,}/g,` `),Pt=a=>a.replace(/\n{2,}$/,` -`),ht={js:{indentation:" ",openingBracket:"{",closingBracket:"}"},scss:{indentation:" ",openingBracket:"(",closingBracket:")"}},ze=(a,i)=>{const u=i?"js":"scss",{indentation:n,openingBracket:T,closingBracket:m}=ht[u];let f=0,r="";const t=a.split(` +`),ht={js:{indentation:" ",openingBracket:"{",closingBracket:"}"},scss:{indentation:" ",openingBracket:"(",closingBracket:")"}},ze=(a,i)=>{const s=i?"js":"scss",{indentation:n,openingBracket:T,closingBracket:m}=ht[s];let f=0,r="";const t=a.split(` `);for(const o of t)o.includes(T)&&o.includes(m)?r+=`${n.repeat(f)}${o} `:o.includes(T)?(r+=`${n.repeat(f)}${o} `,f+=1):o.includes(m)?(f-=1,r+=`${n.repeat(f)}${o} `):r+=`${n.repeat(f)}${o} -`;return r=vt(r),r=Pt(r),r},xe=a=>({radius:"radii",spacing:"spaces"})[a]||(a.endsWith("s")?a:`${a}s`),C=a=>k.NamingHelper.codeSafeVariableName(a,k.StringCase.camelCase),D=(a,i,u)=>{let n;return u?n=i.find(T=>T.id===a.parentGroupId):n=null,k.NamingHelper.codeSafeVariableNameForToken(a,k.StringCase.paramCase,n,"")},kt=(a,i)=>a===0?0:`${a}${i}`,F=(a,i,u,n)=>{const T=n?kt(i,n):i;return u?`export const ${C(a)} = ${typeof T=="number"?T:`'${T}'`};`:`$${a}: ${T} !default;`},Ot=(a,i,u,n,T)=>a.sort((f,r)=>{if(T){const e=l=>l.tokenType===v.TokenType.dimension?l.value.measure:l.tokenType===v.TokenType.string?l.value.text:l.value,c=e(f),y=e(r);if(c&&y)return parseInt(c.toString(),10)-parseInt(y.toString(),10)}const t=D(f,i,u),o=D(r,i,u);return t.localeCompare(o)}),_t=a=>{let i=null;const u=[];return a.forEach(({css:n,parentGroupId:T})=>{i&&T!==i&&n&&u.push(""),n&&u.push(n),i=T}),u.join(` -`)},Ct=a=>{const i=/linear-gradient\(([^,]+),\s*(.+)\)/,u=a.match(i);if(u){const n=u[1].trim(),T=Number(n.match(/\d+/))+90,m=n.match(/deg/),f=u[2].trim();return`linear-gradient(var(--gradient-angle, ${T}${m}), ${f})`}return a},It=a=>a.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),Dt=a=>{const i=/^'([^']*)'$/;return a.replace(i,"$1")},Et=a=>typeof a=="number",Nt=a=>`{ +`;return r=vt(r),r=Pt(r),r},xe=a=>({radius:"radii",spacing:"spaces"})[a]||(a.endsWith("s")?a:`${a}s`),C=a=>k.NamingHelper.codeSafeVariableName(a,k.StringCase.camelCase),D=(a,i,s)=>{let n;return s?n=i.find(T=>T.id===a.parentGroupId):n=null,k.NamingHelper.codeSafeVariableNameForToken(a,k.StringCase.paramCase,n,"")},kt=(a,i)=>a===0?0:`${a}${i}`,F=(a,i,s,n)=>{const T=n?kt(i,n):i;return s?`export const ${C(a)} = ${typeof T=="number"?T:`'${T}'`};`:`$${a}: ${T} !default;`},Ot=(a,i,s,n,T)=>a.sort((f,r)=>{if(T){const e=l=>l.tokenType===v.TokenType.dimension?l.value.measure:l.tokenType===v.TokenType.string?l.value.text:l.value,c=e(f),y=e(r);if(c&&y)return parseInt(c.toString(),10)-parseInt(y.toString(),10)}const t=D(f,i,s),o=D(r,i,s);return t.localeCompare(o)}),_t=a=>{let i=null;const s=[];return a.forEach(({css:n,parentGroupId:T})=>{i&&T!==i&&n&&s.push(""),n&&s.push(n),i=T}),s.join(` +`)},Ct=a=>{const i=/linear-gradient\(([^,]+),\s*(.+)\)/,s=a.match(i);if(s){const n=s[1].trim(),T=Number(n.match(/\d+/))+90,m=n.match(/deg/),f=s[2].trim();return`linear-gradient(var(--gradient-angle, ${T}${m}), ${f})`}return a},It=a=>a.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),Dt=a=>{const i=/^'([^']*)'$/;return a.replace(i,"$1")},Et=a=>typeof a=="number",Nt=a=>`{ ${a.join(`, `)}, }`,Rt=a=>`( ${a.join(`, `)}, -)`,Bt=(a,i)=>`${a}: ${/\s/.test(i)?`"${i}"`:i}`,jt=(a,i)=>`${It(a)}: ${Et(i)?i:Dt(i)}`,Le=(a,i)=>Object.entries(a).map(u=>{const[n,T]=u;return i(n,T)}),xt=({fontFamily:a,fontSize:i,fontWeight:u,lineHeight:n},T,m)=>{const f={fontFamily:`'${a.text}', sans-serif`,fontSize:`'${i.measure}${i.unit==="Pixels"?"px":i.unit}'`,fontStyle:`'${T?"italic":"normal"}'`,fontWeight:u.text};n&&n.measure&&(f.lineHeight=n.measure/100);const r=Le(f,jt),t=Le(f,Bt);return m?Nt(t):Rt(r)},Ne="-colors",qe="Colors",j="colors",Fe="styles",Lt=(a,i,u,n)=>{const T=i,m=a.slice(0,2),f=Vt(a).toLowerCase(),r=Yt(a).toLowerCase();let t=u;m.forEach((o,e)=>{const c=n?C(f):`$${f}`,y=e===0?c:o;e===m.length-1?t[r]=xt(T.value,f.includes("italic"),n):(t[y]=t[y]||{},t=t[y])})},Ft=(a,i,u,n,T,m=!1)=>{let f=T;a.forEach((r,t)=>{const o=t===0?Kt(r,i.tokenType,m):r;if(t===a.length-1){const e=m?`${C(D(i,u,n))}`:`$${D(i,u,n)}`,c=Gt(i,m);f[c]=e}else f[m?C(o):o]=f[o]||{},f=f[m?C(o):o]})},At=(a,i,u,n,T)=>{var r,t;const{tokenType:m}=a,f=(t=(r=a.origin)==null?void 0:r.name)==null?void 0:t.split("/");return f&&(m===v.TokenType.typography?Lt(f,a,n,T):Ft(f,a,i,u,n,T)),n},Ze=(a,i)=>{const u=i?qe:Ne;return a.replace(u,"").replace("$","")},Mt=(a,i)=>({...a,[Ze(i,!1)]:i}),$t=(a,i)=>a.reduce((u,n)=>({...u,[Ze(n,i)]:n}),{}),wt=a=>a.reduce(Mt,{}),Ht=(a,i,u,n,T)=>{const m=a.reduce((t,o)=>{const e=At(o,u,n,t,T);return{...t,...e}},{}),f=Object.keys(m).filter(t=>t.endsWith(T?qe:Ne));if(f.length>0){const t=$t(f,T),o=T?j:`$${j}`;return{...m,[o]:t}}const r=Object.keys(m).filter(t=>t.includes("heading")||t.includes("body"));if(r.length>0){const t=wt(r),o=T?Fe:`$${Fe}`;return{...m,[o]:{...t,moveToTheEnd:"true"}}}return m},Ae={"radius-full":"full"},Ut=new Map([["breakpoint-mobile",0]]),De=(a,i)=>{const u=Ut.get(a);return typeof u==typeof i?u:i},Wt=a=>Ae[a]?Ae[a]:a,Xe=(a,i)=>{const u=Object.entries(i).reduce((m,[f,r])=>{let t;return typeof r=="object"&&r!==null&&typeof m[f]=="object"?t=Xe(m[f],r):t=r,{...m,[f]:t}},{...a}),n={},T={};return Object.entries(u).forEach(([m,f])=>{typeof f=="object"&&f!==null&&f.moveToTheEnd==="true"?(delete f.moveToTheEnd,T[m]=f):n[m]=f}),{...n,...T}};function Qe(a){return Object.entries(a).map(([i,u])=>{if(typeof u=="object"&&u!==null){const n=Qe(u);return`${i}: ( +)`,Bt=(a,i)=>`${a}: ${/\s/.test(i)?`"${i}"`:i}`,jt=(a,i)=>{const s=It(a);if(typeof i=="string"&&i.includes(", "))return`${s}: "${i}"`;const n=Et(i)?i:Dt(i);return`${s}: ${n}`},Le=(a,i)=>Object.entries(a).map(s=>{const[n,T]=s;return i(n,T)}),xt=({fontFamily:a,fontSize:i,fontWeight:s,lineHeight:n},T,m)=>{const f={fontFamily:`'${a.text}', sans-serif`,fontSize:`'${i.measure}${i.unit==="Pixels"?"px":i.unit}'`,fontStyle:`'${T?"italic":"normal"}'`,fontWeight:s.text};n&&n.measure&&(f.lineHeight=n.measure/100);const r=Le(f,jt),t=Le(f,Bt);return m?Nt(t):Rt(r)},Ne="-colors",qe="Colors",j="colors",Fe="styles",Lt=(a,i,s,n)=>{const T=i,m=a.slice(0,2),f=Vt(a).toLowerCase(),r=Yt(a).toLowerCase();let t=s;m.forEach((o,e)=>{const c=n?C(f):`$${f}`,y=e===0?c:o;e===m.length-1?t[r]=xt(T.value,f.includes("italic"),n):(t[y]=t[y]||{},t=t[y])})},Ft=(a,i,s,n,T,m=!1)=>{let f=T;a.forEach((r,t)=>{const o=t===0?Kt(r,i.tokenType,m):r;if(t===a.length-1){const e=m?`${C(D(i,s,n))}`:`$${D(i,s,n)}`,c=Gt(i,m);f[c]=e}else f[m?C(o):o]=f[o]||{},f=f[m?C(o):o]})},At=(a,i,s,n,T)=>{var r,t;const{tokenType:m}=a,f=(t=(r=a.origin)==null?void 0:r.name)==null?void 0:t.split("/");return f&&(m===v.TokenType.typography?Lt(f,a,n,T):Ft(f,a,i,s,n,T)),n},Ze=(a,i)=>{const s=i?qe:Ne;return a.replace(s,"").replace("$","")},Mt=(a,i)=>({...a,[Ze(i,!1)]:i}),$t=(a,i)=>a.reduce((s,n)=>({...s,[Ze(n,i)]:n}),{}),wt=a=>a.reduce(Mt,{}),Ht=(a,i,s,n,T)=>{const m=a.reduce((t,o)=>{const e=At(o,s,n,t,T);return{...t,...e}},{}),f=Object.keys(m).filter(t=>t.endsWith(T?qe:Ne));if(f.length>0){const t=$t(f,T),o=T?j:`$${j}`;return{...m,[o]:t}}const r=Object.keys(m).filter(t=>t.includes("heading")||t.includes("body"));if(r.length>0){const t=wt(r),o=T?Fe:`$${Fe}`;return{...m,[o]:{...t,moveToTheEnd:"true"}}}return m},Ae={"radius-full":"full"},Ut=new Map([["breakpoint-mobile",0]]),De=(a,i)=>{const s=Ut.get(a);return typeof s==typeof i?s:i},Wt=a=>Ae[a]?Ae[a]:a,Xe=(a,i)=>{const s=Object.entries(i).reduce((m,[f,r])=>{let t;return typeof r=="object"&&r!==null&&typeof m[f]=="object"?t=Xe(m[f],r):t=r,{...m,[f]:t}},{...a}),n={},T={};return Object.entries(s).forEach(([m,f])=>{typeof f=="object"&&f!==null&&f.moveToTheEnd==="true"?(delete f.moveToTheEnd,T[m]=f):n[m]=f}),{...n,...T}};function Qe(a){return Object.entries(a).map(([i,s])=>{if(typeof s=="object"&&s!==null){const n=Qe(s);return`${i}: ( ${n} ), -`}return`${i}: ${u}, -`}).join("").slice(0,-1)}const Je=a=>Object.entries(a).map(([i,u])=>{if(typeof u=="object"&&u!==null){const n=Je(u);return`${i}: { +`}return`${i}: ${s}, +`}).join("").slice(0,-1)}const Je=a=>Object.entries(a).map(([i,s])=>{if(typeof s=="object"&&s!==null){const n=Je(s);return`${i}: { ${n} }, -`}return i===u?`${i}, -`:`${i}: ${u}, -`}).join("").slice(0,-1),Vt=a=>a.length===4?a.filter((i,u)=>u!==1).join("-"):a.join("-"),Yt=a=>a.length===4?a[1]:"mobile",Gt=(a,i)=>{var m;let u;const n=(m=a.name.match(/\d+/))==null?void 0:m[0],T=Wt(a.name.toLowerCase());return a.tokenType!==v.TokenType.color&&n?u=n:u=i?C(T):T,u},Kt=(a,i,u)=>{if(i===v.TokenType.color){const n=`${a.toLowerCase()}${Ne}`;return u?C(n):`$${n}`}return u?xe(a.toLowerCase()):`$${xe(a.toLowerCase())}`},zt=3,et=4,qt=8,Zt=a=>a.length%2===0&&[...Array(a.length/2)].every((i,u)=>a[2*u]===a[2*u+1]),Xt=a=>a.split("").map((i,u)=>u%2===0?i:"").join(""),Qt=a=>a.length===qt&&a.endsWith("ff")?a.slice(0,-2):a.length===et&&a.endsWith("f")?a.slice(0,-1):a,Jt=a=>{const i=[zt,et].includes(a.length);let u;return i?u=a:Zt(a)?u=Xt(a):u=a,u=Qt(u),`#${u}`},eo=(a,i,u,n,T)=>{var f,r;const m=t=>{const{tokenType:o}=a;return o===t};if(m(v.TokenType.dimension)){const t=a,o=D(t,u,n);let e=(f=t.value)==null?void 0:f.measure;e=De(o,e);const c=k.CSSHelper.unitToCSS((r=t.value)==null?void 0:r.unit);return F(o,e,T,c)}if(m(v.TokenType.string)){const t=a,o=D(t,u,n);let e=t.value.text;return e=De(o,e),F(o,e,T)}if(m(v.TokenType.color)){const t=a,o=D(t,u,n);let e=k.CSSHelper.colorTokenValueToCSS(t.value,i,{allowReferences:!0,decimals:3,colorFormat:k.ColorFormat.hex8,tokenToVariableRef:()=>""});return e=Jt(e),e=De(o,e),F(o,e,T)}if(m(v.TokenType.shadow)){const t=a,o=D(a,u,n),{value:e}=t,c=k.CSSHelper.shadowTokenValueToCSS(e,i,{allowReferences:!0,decimals:3,colorFormat:k.ColorFormat.hashHex8,tokenToVariableRef:()=>""});return F(o,c,T).replace(/0px/g,"0")}if(m(v.TokenType.gradient)){const t=a,o=D(a,u,n),{value:e}=t;let c=k.CSSHelper.gradientTokenValueToCSS(e,i,{allowReferences:!0,colorFormat:k.ColorFormat.hashHex8,decimals:3,tokenToVariableRef:()=>""});return c=Ct(c),F(o,c,T)}return null},to=(a,i,u,n,T,m,f=!1)=>{const t=Ot(a,u,T,n,m).map(o=>({css:eo(o,i,u,T,f),parentGroupId:o.parentGroupId}));return _t(t)},oo=a=>`/* This file was generated by Supernova, don't change manually */ -${a}`,ro=(a,i,u)=>a.filter(n=>{var r,t;const T=n.tokenType===i,m=(t=(r=n.origin)==null?void 0:r.name)==null?void 0:t.includes(u),f=!(n.tokenType===v.TokenType.typography&&n.name.includes("-Underline"));return T&&m&&f}),tt=(a,i)=>a!==i-1?` +`}return i===s?`${i}, +`:`${i}: ${s}, +`}).join("").slice(0,-1),Vt=a=>a.length===4?a.filter((i,s)=>s!==1).join("-"):a.join("-"),Yt=a=>a.length===4?a[1]:"mobile",Gt=(a,i)=>{var m;let s;const n=(m=a.name.match(/\d+/))==null?void 0:m[0],T=Wt(a.name.toLowerCase());return a.tokenType!==v.TokenType.color&&n?s=n:s=i?C(T):T,s},Kt=(a,i,s)=>{if(i===v.TokenType.color){const n=`${a.toLowerCase()}${Ne}`;return s?C(n):`$${n}`}return s?xe(a.toLowerCase()):`$${xe(a.toLowerCase())}`},zt=3,et=4,qt=8,Zt=a=>a.length%2===0&&[...Array(a.length/2)].every((i,s)=>a[2*s]===a[2*s+1]),Xt=a=>a.split("").map((i,s)=>s%2===0?i:"").join(""),Qt=a=>a.length===qt&&a.endsWith("ff")?a.slice(0,-2):a.length===et&&a.endsWith("f")?a.slice(0,-1):a,Jt=a=>{const i=[zt,et].includes(a.length);let s;return i?s=a:Zt(a)?s=Xt(a):s=a,s=Qt(s),`#${s}`},eo=(a,i,s,n,T)=>{var f,r;const m=t=>{const{tokenType:o}=a;return o===t};if(m(v.TokenType.dimension)){const t=a,o=D(t,s,n);let e=(f=t.value)==null?void 0:f.measure;e=De(o,e);const c=k.CSSHelper.unitToCSS((r=t.value)==null?void 0:r.unit);return F(o,e,T,c)}if(m(v.TokenType.string)){const t=a,o=D(t,s,n);let e=t.value.text;return e=De(o,e),F(o,e,T)}if(m(v.TokenType.color)){const t=a,o=D(t,s,n);let e=k.CSSHelper.colorTokenValueToCSS(t.value,i,{allowReferences:!0,decimals:3,colorFormat:k.ColorFormat.hex8,tokenToVariableRef:()=>""});return e=Jt(e),e=De(o,e),F(o,e,T)}if(m(v.TokenType.shadow)){const t=a,o=D(a,s,n),{value:e}=t,c=k.CSSHelper.shadowTokenValueToCSS(e,i,{allowReferences:!0,decimals:3,colorFormat:k.ColorFormat.hashHex8,tokenToVariableRef:()=>""});return F(o,c,T).replace(/0px/g,"0")}if(m(v.TokenType.gradient)){const t=a,o=D(a,s,n),{value:e}=t;let c=k.CSSHelper.gradientTokenValueToCSS(e,i,{allowReferences:!0,colorFormat:k.ColorFormat.hashHex8,decimals:3,tokenToVariableRef:()=>""});return c=Ct(c),F(o,c,T)}return null},to=(a,i,s,n,T,m,f=!1)=>{const t=Ot(a,s,T,n,m).map(o=>({css:eo(o,i,s,T,f),parentGroupId:o.parentGroupId}));return _t(t)},oo=a=>`/* This file was generated by Supernova, don't change manually */ +${a}`,ro=(a,i,s)=>a.filter(n=>{var r,t;const T=n.tokenType===i,m=(t=(r=n.origin)==null?void 0:r.name)==null?void 0:t.includes(s),f=!(n.tokenType===v.TokenType.typography&&n.name.includes("-Underline"));return T&&m&&f}),tt=(a,i)=>a!==i-1?` `:` -`,no=a=>([i,u],n)=>`export const ${i} = { -${Je(u)} -};${tt(n,a)}`,ao=a=>([i,u],n)=>`${i}: ( -${Qe(u)} -) !default;${tt(n,a)}`,ot=(a,i)=>{const u=Object.entries(a);return u.map(i(u.length)).join("")},io=a=>ot(a,no),co=a=>ot(a,ao),lo=(a,i,u)=>{let n;if(i&&i.length>0){const m=a.filter(f=>!i.some(r=>{var t,o;return(o=(t=f.origin)==null?void 0:t.name)==null?void 0:o.includes(r)})).reduce((f,r)=>{var o,e;const t=(e=(o=r.origin)==null?void 0:o.name)==null?void 0:e.split("/")[0];return t&&!f.includes(t)&&f.push(t),f},[]);n=[...new Set(m)]}else n=u;return n},so=(a,i,u,n,T)=>{let m="",f={};const{groupNames:r=[""],hasParentPrefix:t=!0,sortByNumValue:o=!1,hasStylesObject:e=!0,tokenTypes:c,excludeGroupNames:y=null}=n;c.forEach(p=>{lo(a,y,r).forEach(d=>{const g=ro(a,p,d);p!==v.TokenType.typography&&(m+=to(g,i,u,d,t,o,T),m+=` +`,no=a=>([i,s],n)=>`export const ${i} = { +${Je(s)} +};${tt(n,a)}`,ao=a=>([i,s],n)=>`${i}: ( +${Qe(s)} +) !default;${tt(n,a)}`,ot=(a,i)=>{const s=Object.entries(a);return s.map(i(s.length)).join("")},io=a=>ot(a,no),co=a=>ot(a,ao),lo=(a,i,s)=>{let n;if(i&&i.length>0){const m=a.filter(f=>!i.some(r=>{var t,o;return(o=(t=f.origin)==null?void 0:t.name)==null?void 0:o.includes(r)})).reduce((f,r)=>{var o,e;const t=(e=(o=r.origin)==null?void 0:o.name)==null?void 0:e.split("/")[0];return t&&!f.includes(t)&&f.push(t),f},[]);n=[...new Set(m)]}else n=s;return n},so=(a,i,s,n,T)=>{let m="",f={};const{groupNames:r=[""],hasParentPrefix:t=!0,sortByNumValue:o=!1,hasStylesObject:e=!0,tokenTypes:c,excludeGroupNames:y=null}=n;c.forEach(p=>{lo(a,y,r).forEach(d=>{const g=ro(a,p,d);p!==v.TokenType.typography&&(m+=to(g,i,s,d,t,o,T),m+=` -`);const b=Ht(g,i,u,t,T);f=Xe(f,b)})});let l=m;return e&&(l+=T?io(f):co(f)),{content:oo(ze(l,T))}},Me=[{fileName:"borders",tokenTypes:[v.TokenType.dimension],groupNames:["Border"],hasStylesObject:!1,sortByNumValue:!0},{fileName:"other",tokenTypes:[v.TokenType.dimension,v.TokenType.string],excludeGroupNames:["Border","Radius","Spacing"],sortByNumValue:!0},{fileName:"radii",tokenTypes:[v.TokenType.dimension],groupNames:["Radius"],hasParentPrefix:!1,sortByNumValue:!0},{fileName:"spacing",tokenTypes:[v.TokenType.dimension],groupNames:["Spacing"],hasParentPrefix:!1,sortByNumValue:!0},{fileName:"shadows",tokenTypes:[v.TokenType.shadow],hasParentPrefix:!1},{fileName:"gradients",tokenTypes:[v.TokenType.gradient],hasParentPrefix:!0},{fileName:"typography",tokenTypes:[v.TokenType.typography],hasParentPrefix:!1}],$e=[{fileName:"colors",tokenTypes:[v.TokenType.color]}],x="themes",N="global",R="scss",B="js",M=(a,i,u,n,T=!1)=>n.map(m=>{const f=so(a,i,u,m,T);return{fileName:m.fileName,...f}}),$=(a,i=!1)=>`${a.map(u=>{const n=i?"ts":"scss",T=u.fileName.replace(/^_/,"").replace(new RegExp(`\\.${n}$`),"");return i?`export * from './${T}';`:`@forward '${T}';`}).join(` +`);const b=Ht(g,i,s,t,T);f=Xe(f,b)})});let l=m;return e&&(l+=T?io(f):co(f)),{content:oo(ze(l,T))}},Me=[{fileName:"borders",tokenTypes:[v.TokenType.dimension],groupNames:["Border"],hasStylesObject:!1,sortByNumValue:!0},{fileName:"other",tokenTypes:[v.TokenType.dimension,v.TokenType.string],excludeGroupNames:["Border","Radius","Spacing"],sortByNumValue:!0},{fileName:"radii",tokenTypes:[v.TokenType.dimension],groupNames:["Radius"],hasParentPrefix:!1,sortByNumValue:!0},{fileName:"spacing",tokenTypes:[v.TokenType.dimension],groupNames:["Spacing"],hasParentPrefix:!1,sortByNumValue:!0},{fileName:"shadows",tokenTypes:[v.TokenType.shadow],hasParentPrefix:!1},{fileName:"gradients",tokenTypes:[v.TokenType.gradient],hasParentPrefix:!0},{fileName:"typography",tokenTypes:[v.TokenType.typography],hasParentPrefix:!1}],$e=[{fileName:"colors",tokenTypes:[v.TokenType.color]}],x="themes",N="global",R="scss",B="js",M=(a,i,s,n,T=!1)=>n.map(m=>{const f=so(a,i,s,m,T);return{fileName:m.fileName,...f}}),$=(a,i=!1)=>`${a.map(s=>{const n=i?"ts":"scss",T=s.fileName.replace(/^_/,"").replace(new RegExp(`\\.${n}$`),"");return i?`export * from './${T}';`:`@forward '${T}';`}).join(` `)} `,uo=a=>`import * as ${C(a)} from './${x}/${a}';`,po=a=>`@use '${x}/${a}';`,yo=a=>i=>a?uo(i.name):po(i.name),To=(a,i)=>a.map(yo(i)).join(` -`),mo=(a,i)=>a.map(u=>i?`${C(u.name)}: { -${j}: ${C(u.name)}.${j} -},`:`${u.name}: ( -${j}: ${u.name}.$${j}, +`),mo=(a,i)=>a.map(s=>i?`${C(s.name)}: { +${j}: ${C(s.name)}.${j} +},`:`${s.name}: ( +${j}: ${s.name}.$${j}, ),`).join(` -`),we=(a,i=!1)=>{const u=To(a,i),n=mo(a,i),f=`${u} +`),we=(a,i=!1)=>{const s=To(a,i),n=mo(a,i),f=`${s} // The first theme is the default theme, as the left column in the Figma table. ${i?`export const themes = { @@ -48,6 +48,6 @@ ${i?`export const themes = { `}${n} ${i?`}; `:`); -`}`;return ze(f,i)},fo=async(a,i,u,n,T)=>{const m=[],f=M(a,i,u,Me),r=M(a,i,u,Me,!0),t=$(f),o=$(r,!0);m.push(...f.map(l=>({path:`./${R}/${N}`,fileName:`_${l.fileName}.scss`,content:l.content})),...r.map(l=>({path:`./${B}/${N}/`,fileName:`${l.fileName}.ts`,content:l.content}))),m.push({path:`./${R}/${N}/`,fileName:"index.scss",content:t}),m.push({path:`./${B}/${N}/`,fileName:"index.ts",content:o}),m.push({path:`./${R}/`,fileName:"@global.scss",content:`@forward '${N}'; +`}`;return ze(f,i)},fo=async(a,i,s,n,T)=>{const m=[],f=M(a,i,s,Me),r=M(a,i,s,Me,!0),t=$(f),o=$(r,!0);m.push(...f.map(l=>({path:`./${R}/${N}`,fileName:`_${l.fileName}.scss`,content:l.content})),...r.map(l=>({path:`./${B}/${N}/`,fileName:`${l.fileName}.ts`,content:l.content}))),m.push({path:`./${R}/${N}/`,fileName:"index.scss",content:t}),m.push({path:`./${B}/${N}/`,fileName:"index.ts",content:o}),m.push({path:`./${R}/`,fileName:"@global.scss",content:`@forward '${N}'; `}),m.push({path:`./${B}/`,fileName:"@global.ts",content:`export * from './${N}'; -`});const e=await Promise.all(n.map(async l=>({themedTokens:await T.tokens.computeTokensByApplyingThemes(a,[l]),theme:l})));for(const{themedTokens:l,theme:p}of e){const s=M(l,i,u,$e),d=M(l,i,u,$e,!0),g=$(s),b=$(d,!0);m.push(...s.map(S=>({path:`./${R}/${x}/${p.name}/`,fileName:`_${S.fileName}.scss`,content:S.content})),...d.map(S=>({path:`./${B}/${x}/${p.name}/`,fileName:`${S.fileName}.ts`,content:S.content}))),m.push({path:`./${R}/${x}/${p.name}/`,fileName:"index.scss",content:g}),m.push({path:`./${B}/${x}/${p.name}/`,fileName:"index.ts",content:b})}const c=we(n),y=we(n,!0);return m.push({path:`./${R}/`,fileName:"@themes.scss",content:c}),m.push({path:`./${B}/`,fileName:"@themes.ts",content:y}),m};Pulsar.export(async(a,i)=>{const u={designSystemId:i.dsId,versionId:i.versionId};let n=await a.tokens.getTokens(u),T=await a.tokens.getTokenGroups(u);i.brandId&&(n=n.filter(c=>c.brandId===i.brandId),T=T.filter(c=>c.brandId===i.brandId));const m=new Map(n.map(c=>[c.id,c])),f=await a.tokens.getTokenThemes(u),r=(c,y,l)=>k.FileHelper.createTextFile({relativePath:c,fileName:y,content:l});let t=[];t=(await fo(n,m,T,f,a)).map(c=>r(c.path,c.fileName,c.content));const e=c=>{let y=[];const l=JSON.stringify(c,(p,s)=>{if(typeof s=="object"&&s!==null){if(y!=null&&y.includes(s))return"CIRCULAR_REFERENCE";y==null||y.push(s)}return s},2);return y=null,l};return t.push(r("./original-data/","_original-tokens.json",e(n)),r("./original-data/","_original-groups.json",JSON.stringify(T,null,2))),t});const go=Pulsar.exportConfig();exports.exportConfiguration=go; +`});const e=await Promise.all(n.map(async l=>({themedTokens:await T.tokens.computeTokensByApplyingThemes(a,[l]),theme:l})));for(const{themedTokens:l,theme:p}of e){const u=M(l,i,s,$e),d=M(l,i,s,$e,!0),g=$(u),b=$(d,!0);m.push(...u.map(S=>({path:`./${R}/${x}/${p.name}/`,fileName:`_${S.fileName}.scss`,content:S.content})),...d.map(S=>({path:`./${B}/${x}/${p.name}/`,fileName:`${S.fileName}.ts`,content:S.content}))),m.push({path:`./${R}/${x}/${p.name}/`,fileName:"index.scss",content:g}),m.push({path:`./${B}/${x}/${p.name}/`,fileName:"index.ts",content:b})}const c=we(n),y=we(n,!0);return m.push({path:`./${R}/`,fileName:"@themes.scss",content:c}),m.push({path:`./${B}/`,fileName:"@themes.ts",content:y}),m};Pulsar.export(async(a,i)=>{const s={designSystemId:i.dsId,versionId:i.versionId};let n=await a.tokens.getTokens(s),T=await a.tokens.getTokenGroups(s);i.brandId&&(n=n.filter(c=>c.brandId===i.brandId),T=T.filter(c=>c.brandId===i.brandId));const m=new Map(n.map(c=>[c.id,c])),f=await a.tokens.getTokenThemes(s),r=(c,y,l)=>k.FileHelper.createTextFile({relativePath:c,fileName:y,content:l});let t=[];t=(await fo(n,m,T,f,a)).map(c=>r(c.path,c.fileName,c.content));const e=c=>{let y=[];const l=JSON.stringify(c,(p,u)=>{if(typeof u=="object"&&u!==null){if(y!=null&&y.includes(u))return"CIRCULAR_REFERENCE";y==null||y.push(u)}return u},2);return y=null,l};return t.push(r("./original-data/","_original-tokens.json",e(n)),r("./original-data/","_original-groups.json",JSON.stringify(T,null,2))),t});const go=Pulsar.exportConfig();exports.exportConfiguration=go; diff --git a/exporters/variables-scss/src/generators/__tests__/stylesObjectGenerator.test.ts b/exporters/variables-scss/src/generators/__tests__/stylesObjectGenerator.test.ts index e066abe33b..d35a7f4fec 100644 --- a/exporters/variables-scss/src/generators/__tests__/stylesObjectGenerator.test.ts +++ b/exporters/variables-scss/src/generators/__tests__/stylesObjectGenerator.test.ts @@ -70,12 +70,12 @@ describe('stylesObjectGenerator', () => { '$heading-xlarge-bold': { desktop: // eslint-disable-next-line quotes -- we are handling special characters - "(\nfont-family: 'Inter', sans-serif,\nfont-size: 64px,\nfont-style: normal,\nfont-weight: 700,\nline-height: 1.2,\n)", + '(\nfont-family: "\'Inter\', sans-serif",\nfont-size: 64px,\nfont-style: normal,\nfont-weight: 700,\nline-height: 1.2,\n)', }, '$heading-xlarge-bold-underline': { desktop: // eslint-disable-next-line quotes -- we are handling special characters - "(\nfont-family: 'Inter', sans-serif,\nfont-size: 64px,\nfont-style: normal,\nfont-weight: 700,\nline-height: 1.2,\n)", + '(\nfont-family: "\'Inter\', sans-serif",\nfont-size: 64px,\nfont-style: normal,\nfont-weight: 700,\nline-height: 1.2,\n)', }, $styles: { 'heading-xlarge-bold': '$heading-xlarge-bold', @@ -157,10 +157,10 @@ describe('stylesObjectGenerator', () => { '$heading-xlarge-bold': { desktop: // eslint-disable-next-line quotes -- we are handling special characters - "(\nfont-family: 'Inter', sans-serif,\nfont-size: 64px,\nfont-style: normal,\nfont-weight: 700,\nline-height: 1.2,\n)", + '(\nfont-family: "\'Inter\', sans-serif",\nfont-size: 64px,\nfont-style: normal,\nfont-weight: 700,\nline-height: 1.2,\n)', tablet: // eslint-disable-next-line quotes -- we are handling special characters - "(\nfont-family: 'Inter', sans-serif,\nfont-size: 32px,\nfont-style: normal,\nfont-weight: 700,\nline-height: 1.2,\n)", + '(\nfont-family: "\'Inter\', sans-serif",\nfont-size: 32px,\nfont-style: normal,\nfont-weight: 700,\nline-height: 1.2,\n)', }, }, description: 'should create object structure from typography token', @@ -168,7 +168,7 @@ describe('stylesObjectGenerator', () => { '$heading-xlarge-bold': { tablet: // eslint-disable-next-line quotes -- we are handling special characters - "(\nfont-family: 'Inter', sans-serif,\nfont-size: 32px,\nfont-style: normal,\nfont-weight: 700,\nline-height: 1.2,\n)", + '(\nfont-family: "\'Inter\', sans-serif",\nfont-size: 32px,\nfont-style: normal,\nfont-weight: 700,\nline-height: 1.2,\n)', }, } as StylesObjectType, hasJsOutput: false, @@ -216,7 +216,7 @@ describe('stylesObjectGenerator', () => { '$heading-xlarge-bold': { desktop: // eslint-disable-next-line quotes -- we are handling special characters - "(\nfont-family: 'Inter', sans-serif,\nfont-size: 64px,\nfont-style: normal,\nfont-weight: 700,\nline-height: 1.2,\n)", + '(\nfont-family: "\'Inter\', sans-serif",\nfont-size: 64px,\nfont-style: normal,\nfont-weight: 700,\nline-height: 1.2,\n)', }, exampleRef: 'exampleRef', }, diff --git a/exporters/variables-scss/src/helpers/tokenHelper.ts b/exporters/variables-scss/src/helpers/tokenHelper.ts index 95a505b8dc..8520c125e5 100644 --- a/exporters/variables-scss/src/helpers/tokenHelper.ts +++ b/exporters/variables-scss/src/helpers/tokenHelper.ts @@ -153,7 +153,15 @@ const jsKeyValueTemplate: KeyValueTemplateCallback = (key, value) => { }; const scssKeyValueTemplate: KeyValueTemplateCallback = (key, value) => { - return `${toKebabCase(key)}: ${isNumber(value) ? value : removePairQuotes(value as string)}`; + const formattedKey = toKebabCase(key); + + if (typeof value === 'string' && value.includes(', ')) { + return `${formattedKey}: "${value}"`; + } + + const formattedValue = isNumber(value) ? value : removePairQuotes(value as string); + + return `${formattedKey}: ${formattedValue}`; }; const passObjectKeyValueToCallback = (object: Shape, callback: KeyValueTemplateCallback) => { diff --git a/exporters/variables-scss/tests/fixtures/exampleTypographyTokens.ts b/exporters/variables-scss/tests/fixtures/exampleTypographyTokens.ts index 96f4e94040..4fc7f81fe1 100644 --- a/exporters/variables-scss/tests/fixtures/exampleTypographyTokens.ts +++ b/exporters/variables-scss/tests/fixtures/exampleTypographyTokens.ts @@ -33,7 +33,7 @@ exampleTypographyTokens.set('typographyRef2', { } as TypographyToken); export const expectedTypographyValue = `( -font-family: 'Inter', sans-serif, +font-family: "'Inter', sans-serif", font-size: 64px, font-style: italic, font-weight: 700,