@everfur/sdk 0.22.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +35 -3
- package/dist/{chunk-K5NVMNI5.js → chunk-3RVFIOWI.js} +1 -1
- package/dist/{chunk-FFMIX6HG.js → chunk-63X2JJZY.js} +1 -1
- package/dist/{chunk-ZASVU7CH.js → chunk-FNF5TLN6.js} +3 -3
- package/dist/chunk-VKLLSI2B.js +14 -0
- package/dist/client/index.cjs +1 -1
- package/dist/client/index.d.cts +1 -1
- package/dist/client/index.d.ts +1 -1
- package/dist/client/index.js +1 -1
- package/dist/core/index.cjs +1 -1
- package/dist/core/index.js +1 -1
- package/dist/health-plan/index.cjs +4 -4
- package/dist/health-plan/index.js +4 -4
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/records/index.cjs +1 -1
- package/dist/records/index.js +1 -1
- package/dist/server/events/index.cjs +1 -1
- package/dist/server/events/index.js +1 -1
- package/dist/server/index.cjs +1 -1
- package/dist/server/index.js +1 -1
- package/dist/shop/index.cjs +8 -8
- package/dist/shop/index.js +8 -8
- package/dist/slots/index.cjs +38 -38
- package/dist/slots/index.js +38 -38
- package/dist/ui/index.cjs +26 -26
- package/dist/ui/index.js +26 -26
- package/dist/web/health-plan/index.cjs +5 -5
- package/dist/web/health-plan/index.js +1 -1
- package/dist/web/index.cjs +2 -2
- package/dist/web/index.js +2 -2
- package/dist/web/records-sheet/index.cjs +1 -1
- package/dist/web/records-sheet/index.js +1 -1
- package/dist/web/shop/index.cjs +2 -2
- package/dist/web/shop/index.js +1 -1
- package/dist/web/televet/booking/index.cjs +2 -2
- package/dist/web/televet/booking/index.js +2 -2
- package/dist/web/televet/call/index.cjs +1 -1
- package/dist/web/televet/call/index.js +1 -1
- package/dist/web/ui/index.cjs +7 -7
- package/dist/web/ui/index.js +4 -4
- package/package.json +5 -5
- package/dist/chunk-AT7SU763.js +0 -14
package/dist/slots/index.js
CHANGED
|
@@ -24,7 +24,7 @@ return Object.freeze({reason:userFacingError("accessDenied"),level:"user_entitle
|
|
|
24
24
|
return Object.freeze(out)}function copyOf(raw){let out={};for(let[key,entry]of Object.entries(raw)){let text=typeof entry=="string"?entry:entry!==null&&typeof entry=="object"?entry.text:void 0;typeof text=="string"&&text.length<=500&&isPlainText(text)&&(out[key]=text)}/* @__PURE__ */
|
|
25
25
|
return Object.freeze(out)}function parseSlotDoc(raw,slot){if(sizeOf(raw)>65536)return{ok:false,reason:"too_large"};let refusal=schemaRefusal(raw);if(refusal!==null)return{ok:false,reason:refusal};let d=raw,docSlot=str4(d.slot,3,64),docVersion=d.docVersion===void 0||d.docVersion===null?null:int2(d.docVersion,1,Number.MAX_SAFE_INTEGER),minBlocks=d.minBlocks===void 0?1:int2(d.minBlocks,0,50),theme=d.theme===void 0||d.theme===null?{}:rec(d.theme),tokens=theme===BAD?BAD:rec(theme.tokens),copy=rec(d.copy),parts=Array.isArray(d.parts)&&d.parts.length>=1&&d.parts.length<=50?d.parts.map(readPart):BAD;return docSlot===BAD||docVersion===BAD||minBlocks===BAD||tokens===BAD||copy===BAD?{ok:false,reason:"unparseable"}:parts===BAD||parts.some(p=>p===BAD)?{ok:false,reason:"unparseable"}:docSlot!==slot?{ok:false,reason:"wrong_slot"}:{ok:true,doc:/* @__PURE__ */Object.freeze({schema:SLOT_SCHEMA,slot:docSlot,docVersion:docVersion,minBlocks:minBlocks,tokens:tokensOf(tokens),parts:/* @__PURE__ */Object.freeze(parts),copy:copyOf(copy)})}}function slotBodyOf(body){if(body===null)return{ok:false,reason:"too_large"};if(typeof body!="string")return{ok:true,raw:body};if(body.length>65536||utf8Length(body)>65536)return{ok:false,reason:"too_large"};try{return{ok:!0,raw:JSON.parse(body)}}catch{return{ok:false,reason:"unparseable"}}}function part(p){/* @__PURE__ */
|
|
26
26
|
return Object.freeze({settings:{},bind:{},actions:{},...p})}var SLOT_NAMED_PARTS=/* @__PURE__ */Object.freeze({focus:part({id:"focus",type:"PlanNeedCard",variant:"plan",bind:{title:"data:plan.needs"}}),needs:part({id:"needs",type:"PlanNeedCard",variant:"standard",repeat:"data:plan.needs"}),tips:part({id:"tips",type:"TipCard",variant:"plan",repeat:"data:plan.tips"}),shelf:part({id:"shelf",type:"ProductTile",variant:"standard",repeat:"data:plan.items"}),cartLines:part({id:"cart-lines",type:"CartLine",variant:"plan",repeat:"data:cart.lines"}),cartSummary:part({id:"cart-summary",type:"PriceSummary",bind:{rows:"data:cart.summary"},visibleIf:{source:"data:cart.summary",op:"present"}}),orders:part({id:"orders",type:"OrderRow",variant:"quiet",repeat:"data:orders.recent"})});function doc(slot,parts){/* @__PURE__ */
|
|
27
|
-
return Object.freeze({schema:SLOT_SCHEMA,slot:slot,docVersion:null,minBlocks:1,tokens:{},parts:/* @__PURE__ */Object.freeze([...parts]),copy:{}})}var P=SLOT_NAMED_PARTS,BUNDLED_SLOT_DOCS=/* @__PURE__ */Object.freeze({"health_plan.focus":doc("health_plan.focus",[P.focus,P.tips]),"today.health":doc("today.health",[P.focus,P.tips]),"shop.shelf":doc("shop.shelf",[P.shelf]),"shop.cart":doc("shop.cart",[P.cartLines,P.cartSummary]),"shop.orders":doc("shop.orders",[P.orders])});function bundledSlotDoc(slot){return Object.prototype.hasOwnProperty.call(BUNDLED_SLOT_DOCS,slot)?BUNDLED_SLOT_DOCS[slot]??null:null}function namedPartDoc(name){return doc(`part.${name.toLowerCase()}`,[SLOT_NAMED_PARTS[name]])}function toRgba(value){if(typeof value=="number")return argbIntToRgba(value);if(typeof value!="string")return null;let s=value.trim();if(s.length===0)return null;if(s.startsWith("#"))return fromHex(s.slice(1));if(s.toLowerCase().startsWith("0x"))return fromHex(s.slice(2));if(s.toLowerCase().startsWith("rgb"))return fromRgbFunc(s);if(/^[0-9a-fA-F]+$/.test(s)){let hex=fromHex(s);if(hex!==null)return hex}return/^\d+$/.test(s)?argbIntToRgba(Number.parseInt(s,10)):null}function fromHex(hex){let h=hex.trim();if(!/^[0-9a-fA-F]+$/.test(h))return null;if(h.length===3)return{r:dup(h[0]),g:dup(h[1]),b:dup(h[2]),a:1};if(h.length===6)return{r:byte(h,0),g:byte(h,2),b:byte(h,4),a:1};if(h.length===8){let a=byte(h,0);return{r:byte(h,2),g:byte(h,4),b:byte(h,6),a:a/255}}return null}function fromRgbFunc(input){let open=input.indexOf("("),close=input.indexOf(")");if(open<0||close<0||close<open)return null;let parts=input.slice(open+1,close).split(",").map(p=>p.trim());if(parts.length<3)return null;let r=clampByte(Number(parts[0])),g=clampByte(Number(parts[1])),b=clampByte(Number(parts[2]));if(r===null||g===null||b===null)return null;let a=1;if(parts.length>=4){let alpha=Number(parts[3]);if(!Number.isFinite(alpha))return null;a=Math.min(1,Math.max(0,alpha))}return{r:r,g:g,b:b,a:a}}function argbIntToRgba(n){if(!Number.isFinite(n))return null;let int3=Math.trunc(n)>>>0,a=int3>>>24&255;return{r:int3>>>16&255,g:int3>>>8&255,b:int3&255,a:a===0?1:a/255}}function byte(hex,at){return Number.parseInt(hex.slice(at,at+2),16)}function dup(nibble){return Number.parseInt(`${nibble??"0"}${nibble??"0"}`,16)}function clampByte(n){return Number.isFinite(n)?Math.min(255,Math.max(0,Math.round(n))):null}function rgbToHex(r,g,b){return`#${hex2(r)}${hex2(g)}${hex2(b)}`.toUpperCase()}function hex2(n){return n.toString(16).padStart(2,"0")}var NEAR_BLACK="#111111",WHITE="#FFFFFF",BLACK="#000000";function readableOn(background){let rgba=toRgba(background);if(rgba===null)return WHITE;let bg=relativeLuminance(rgba),black=relativeLuminance({r:17,g:17,b:17}),white=relativeLuminance({r:255,g:255,b:255});return luminanceContrast(bg,white)>=luminanceContrast(bg,black)?WHITE:NEAR_BLACK}function legibleOn(background,target){let first=readableOn(background);return contrastRatio(first,background)>=target?first:contrastRatio(WHITE,background)>=contrastRatio(BLACK,background)?WHITE:BLACK}function poleForGrounds(grounds){let worst=ink=>grounds.reduce((low,ground)=>Math.min(low,contrastRatio(ink,ground)),Number.POSITIVE_INFINITY);return worst(WHITE)>=worst(BLACK)?WHITE:BLACK}function relativeLuminance(rgba){let r=linearize(rgba.r/255),g=linearize(rgba.g/255),b=linearize(rgba.b/255);return.2126*r+.7152*g+.0722*b}function linearize(channel){return channel<=.03928?channel/12.92:Math.pow((channel+.055)/1.055,2.4)}function luminanceContrast(l1,l2){let lighter=Math.max(l1,l2),darker=Math.min(l1,l2);return(lighter+.05)/(darker+.05)}function contrastRatio(a,b){let fg=toRgba(a),bg=toRgba(b);if(fg===null||bg===null)return 1;let ground=bg.a>=1?bg:{...bg},fore=fg.a>=1?fg:composite(fg,ground);return luminanceContrast(relativeLuminance(fore),relativeLuminance(ground))}function composite(fg,bg){let a=fg.a,mix=(f,g)=>Math.round(f*a+g*(1-a));return{r:mix(fg.r,bg.r),g:mix(fg.g,bg.g),b:mix(fg.b,bg.b),a:1}}function flattenOnto(color,background){let fg=toRgba(color),bg=toRgba(background);if(fg===null||bg===null)return null;let out=fg.a>=1?fg:composite(fg,{...bg});return rgbToHex(out.r,out.g,out.b)}var PUSH_STEP=.05;function pushToContrast(color,grounds,pole,target){let first=grounds[0];if(first===void 0)return pole;let reads=candidate=>grounds.every(ground=>contrastRatio(candidate,ground)>=target);if(toRgba(color)===null)return pole;if(reads(color))return color;let flat=flattenOnto(color,first),from=flat===null?null:toRgba(flat),to=toRgba(pole);if(from===null||to===null)return pole;for(let step=1;step<1/PUSH_STEP;step+=1){let t=step*PUSH_STEP,mix=(a,b)=>Math.round(a+(b-a)*t),candidate=rgbToHex(mix(from.r,to.r),mix(from.g,to.g),mix(from.b,to.b));if(reads(candidate))return candidate}return pole}var TYPE_ROLE_DEFAULTS=/* @__PURE__ */Object.freeze({display:/* @__PURE__ */Object.freeze({size:29,lineHeight:1.06,weight:"800",face:"heading",letterSpacing:-.01,uppercase:false,tier:"heading"}),title:/* @__PURE__ */Object.freeze({size:23,lineHeight:1.12,weight:"800",face:"heading",letterSpacing:-.01,uppercase:false,tier:"heading"}),cardTitle:/* @__PURE__ */Object.freeze({size:19,lineHeight:1.22,weight:"800",face:"sans",letterSpacing:0,uppercase:false,tier:"heading"}),rowTitle:/* @__PURE__ */Object.freeze({size:15.5,lineHeight:1.4,weight:"700",face:"sans",letterSpacing:0,uppercase:false,tier:"content"}),body:/* @__PURE__ */Object.freeze({size:15,lineHeight:1.5,weight:"400",face:"sans",letterSpacing:0,uppercase:false,tier:"content"}),message:/* @__PURE__ */Object.freeze({size:15.5,lineHeight:1.5,weight:"400",face:"sans",letterSpacing:0,uppercase:false,tier:"content"}),bodySmall:/* @__PURE__ */Object.freeze({size:14.5,lineHeight:1.4,weight:"400",face:"sans",letterSpacing:0,uppercase:false,tier:"content"}),caption:/* @__PURE__ */Object.freeze({size:13,lineHeight:1.4,weight:"400",face:"sans",letterSpacing:0,uppercase:false,tier:"content"}),label:/* @__PURE__ */Object.freeze({size:10.5,lineHeight:1.4,weight:"400",face:"mono",letterSpacing:.05,uppercase:true,tier:"compact"}),eyebrow:/* @__PURE__ */Object.freeze({size:15,lineHeight:1.5,weight:"400",face:"mono",letterSpacing:.07,uppercase:true,tier:"compact"}),chip:/* @__PURE__ */Object.freeze({size:15,lineHeight:1.3,weight:"600",face:"sans",letterSpacing:0,uppercase:false,tier:"compact"}),tab:/* @__PURE__ */Object.freeze({size:16,lineHeight:1.5,weight:"600",face:"sans",letterSpacing:0,uppercase:false,tier:"compact"}),button:/* @__PURE__ */Object.freeze({size:15,lineHeight:1.5,weight:"700",face:"sans",letterSpacing:0,uppercase:false,tier:"control"}),badge:/* @__PURE__ */Object.freeze({size:12,lineHeight:1.5,weight:"700",face:"sans",letterSpacing:0,uppercase:false,tier:"badge"})});var freezeInPlace=Object.freeze;function deepFreeze(value){if(value!==null&&typeof value=="object"&&!Object.isFrozen(value)){freezeInPlace(value);for(let key of Object.keys(value))deepFreeze(value[key])}return value}var TEXT_SCALE_TIER_CAPS=/* @__PURE__ */Object.freeze({content:0,heading:2,control:1.8,compact:1.5,badge:1.3});var SPACE={xs:4,sm:8,md:12,lg:16,xl:24,xxl:32},RADIUS={tile:5,xs:6,sm:10,md:14,lg:20,xl:28,pill:500},TYPE_SIZE={nano:8,small:9,micro:10,tiny:11,caption:13,bodyTight:15,body:17,subtitle:20,heading:22,verdict:24},LINE_HEIGHT={tight:1.15,snug:1.3,normal:1.4,relaxed:1.55},WEIGHT={regular:"400",medium:"500",bold:"700"},LETTER_SPACING={eyebrow:1,monoWide:.9,headerBrand:-.42,tight:-.35},DEFAULT_MAX_FONT_SCALE=0,SYSTEM_FONT_FAMILY="System",SYSTEM_MONO_FAMILY="monospace",TIERS=["content","heading","control","compact","badge"];function authoredTierSizes(size){let out={};for(let tier of TIERS)out[tier]=size;return out}var NO_FONT_SOURCES=[];function baseType(){return{family:SYSTEM_FONT_FAMILY,mono:SYSTEM_MONO_FAMILY,fontUrl:null,families:{regular:SYSTEM_FONT_FAMILY,medium:SYSTEM_FONT_FAMILY,bold:SYSTEM_FONT_FAMILY,mono:SYSTEM_MONO_FAMILY,monoMedium:SYSTEM_MONO_FAMILY,monoBold:SYSTEM_MONO_FAMILY},namedFaces:{regular:false,medium:false,bold:false,mono:false,monoMedium:false,monoBold:false},fontUrls:{},size:TYPE_SIZE,tierSizes:authoredTierSizes(TYPE_SIZE),lineHeight:LINE_HEIGHT,weight:WEIGHT,letterSpacing:LETTER_SPACING,scale:1,maxScale:DEFAULT_MAX_FONT_SCALE,scaleCaps:TEXT_SCALE_TIER_CAPS,headingFamily:null,headingWeight:null,fontSources:NO_FONT_SOURCES,roles:TYPE_ROLE_DEFAULTS,typeScale:1}}var NO_SLOTS={},EASING_CURVES=/* @__PURE__ */Object.freeze({standard:/* @__PURE__ */Object.freeze([.2,0,0,1]),emphasized:/* @__PURE__ */Object.freeze([.2,.8,.2,1]),exit:/* @__PURE__ */Object.freeze([.4,0,1,1])});function cssCubicBezier(curve){return`cubic-bezier(${curve.join(", ")})`}var MOTION={duration:{instant:80,fast:140,normal:220,slow:320},spring:{gentle:{damping:18,stiffness:200}},easing:{standard:cssCubicBezier(EASING_CURVES.standard),emphasized:cssCubicBezier(EASING_CURVES.emphasized),exit:cssCubicBezier(EASING_CURVES.exit)},reducedMotion:false},LIGHT_COLOR={brand:"#10462E",brandSoft:"rgba(16,70,46,0.10)",brandSofter:"rgba(16,70,46,0.15)",brandBorder:"rgba(16,70,46,0.18)",borderHairlineGreen:"rgba(16,70,46,0.25)",brandBorderStrong:"rgba(16,70,46,0.55)",brandInk:"#10462E",linkInk:"#10462E",surface:"#FFFFFF",surfaceCream:"#FFFFFF",surfaceSubtle:"#F1F5F2",background:"#FFFFFF",borderRingCream:"#E4E4E4",chatGround:"#FFFFFF",composerFill:"#FFFFFF",composerBorder:"rgba(16,70,46,0.75)",shadow:"#0B3421",text:{primary:"#000000",secondary:"#0E462E",muted:"#6B6B6B",placeholder:"rgba(61,61,61,0.75)",onBrand:"#FFFFFF",metaCool:"#3D3D3D",timestamp:"rgba(61,61,61,0.75)"},primary:"#10462E",onPrimary:"#FFFFFF",accent:"#10462E",onAccent:"#FFFFFF",accentEdge:"#07C168",success:"#07C168",danger:"#C03410",onDanger:"#FFFFFF",errorRed:"#C03410",warningStrong:"#A45610",cautionAccent:"#D9821D",riskConcern:"#EFA700",sentiment:{up:"#07C168",neutral:"#FBC558",down:"#FF1B00"},badgeBgPositive:"rgba(7,193,104,0.12)",badgeBgCaution:"rgba(217,130,29,0.14)",badgeBgCritical:"rgba(192,52,16,0.06)",badgeBgNeutral:"rgba(107,107,107,0.12)",bubbleUser:"#10462E",bubbleAssistant:"#FFFFFF",bubbleVet:"#FFC3BC",onBubbleVet:"#000000",skeleton:"#E9F1E9",scanButtonPink:"#FFC3BC",highlight:"#FFC3BC",onHighlight:"#000000",mark:"#07C168",controlEdge:"rgba(16,70,46,0.18)",structureEdge:"rgba(16,70,46,0.25)",primaryEdge:"#10462E",checkupCardLowRiskBg:"rgba(7,193,104,0.10)",checkupCardConcernBg:"rgba(239,167,0,0.10)",info:"#10462E",badgeBgInfo:"rgba(16,70,46,0.10)",infoEdge:"rgba(16,70,46,0.25)"},EVERFUR_LIGHT=deepFreeze({brightness:"light",highContrast:false,meta:{displayName:"Everfur",logoUrl:null,placeholder:null,hidePoweredBy:false,assistantAvatarUrl:null},color:LIGHT_COLOR,space:SPACE,radius:RADIUS,type:baseType(),motion:MOTION,slots:NO_SLOTS}),DARK_COLOR={brand:"#6BD39A",brandSoft:"rgba(107,211,154,0.12)",brandSofter:"rgba(107,211,154,0.18)",brandBorder:"rgba(107,211,154,0.22)",borderHairlineGreen:"rgba(107,211,154,0.28)",brandBorderStrong:"rgba(107,211,154,0.55)",brandInk:"#6BD39A",linkInk:"#6BD39A",surface:"#1C1F23",surfaceCream:"#23272C",surfaceSubtle:"#23272C",background:"#15171A",borderRingCream:"#3A3F45",chatGround:"#1C1F23",composerFill:"#23272C",composerBorder:"rgba(107,211,154,0.75)",shadow:"#000000",text:{primary:"#F5F3F0",secondary:"#A9E4C4",muted:"#9A9A9A",placeholder:"rgba(255,255,255,0.55)",onBrand:"#0E1F17",metaCool:"#C9C9C9",timestamp:"rgba(245,243,240,0.7)"},primary:"#6BD39A",onPrimary:"#0E1F17",accent:"#6BD39A",onAccent:"#0E1F17",accentEdge:"#34D888",success:"#07C168",danger:"#F87171",onDanger:"#0E1F17",errorRed:"#FF6B5B",warningStrong:"#F0A35E",cautionAccent:"#D9821D",riskConcern:"#EFA700",sentiment:{up:"#07C168",neutral:"#FBC558",down:"#FF1B00"},badgeBgPositive:"rgba(7,193,104,0.18)",badgeBgCaution:"rgba(217,130,29,0.20)",badgeBgCritical:"rgba(185,28,28,0.22)",badgeBgNeutral:"rgba(255,255,255,0.10)",bubbleUser:"#6BD39A",bubbleAssistant:"#1C1F23",bubbleVet:"#FFC3BC",onBubbleVet:"#000000",skeleton:"#23272C",scanButtonPink:"#FFC3BC",highlight:"#605051",onHighlight:"#F5F3F0",mark:"#07C168",controlEdge:"rgba(107,211,154,0.22)",structureEdge:"rgba(107,211,154,0.28)",primaryEdge:"#6BD39A",checkupCardLowRiskBg:"rgba(7,193,104,0.16)",checkupCardConcernBg:"rgba(239,167,0,0.16)",info:"#6BD39A",badgeBgInfo:"rgba(107,211,154,0.12)",infoEdge:"rgba(107,211,154,0.28)"},EVERFUR_DARK=deepFreeze({brightness:"dark",highContrast:false,meta:{displayName:"Everfur",logoUrl:null,placeholder:null,hidePoweredBy:false,assistantAvatarUrl:null},color:DARK_COLOR,space:SPACE,radius:RADIUS,type:baseType(),motion:MOTION,slots:NO_SLOTS});function utf8Bytes(text){let out=[];for(let ch of text){let cp=ch.codePointAt(0);cp<128?out.push(cp):cp<2048?out.push(192|cp>>6,128|cp&63):cp<65536?out.push(224|cp>>12,128|cp>>6&63,128|cp&63):out.push(240|cp>>18,128|cp>>12&63,128|cp>>6&63,128|cp&63)}return out}function fnv1a64Hex(text){let hi=3421674724,lo=2216829733;for(let byte2 of utf8Bytes(text)){lo=(lo^byte2)>>>0;let loProduct=lo*435,carry=Math.floor(loProduct/4294967296),nextLo=loProduct>>>0;hi=hi*435+carry+lo*256>>>0,lo=nextLo}return hi.toString(16).padStart(8,"0")+lo.toString(16).padStart(8,"0")}var tenants=/* @__PURE__ */new WeakMap;function runtimeTenantOf(runtime){return tenants.get(runtime)}var SLOT_REGISTRY_HASH="sha256-0IDdNTQTtW2+pJ9GBCa/aWJrH/lf2X2jHhTQaCt6g5E=";var SLOT_BLOCKS={CartBar:{since:"0.4.0",variants:["standard","web"],platforms:["native","web"],settings:{lines:{type:"lines",values:["thumbs","total","sub","actionHiddenWord"]},variant:{type:"enum",values:["standard","web"],prop:"variant"}},props:["actionAccessibilityLabel","actionHiddenWord","actionLabel","busy","count","countLabel","disabled","fallback","loading","loadingLabel","sub","testID","thumbs","total","variant","visible"],required:["actionLabel","count"],fallback:"hide"},CartLine:{since:"0.2.0",variants:["standard","square","web","plan","drawer"],platforms:["native","web"],settings:{align:{type:"enum",values:["top","center"],prop:"align"},lines:{type:"lines",values:["badge","meta","wasPrice","smalls","note","metas","plan"]},thumbSize:{type:"enum",values:["sm","md","lg"],prop:"thumbSize"},variant:{type:"enum",values:["standard","square","web","plan","drawer"],prop:"variant"}},props:["actions","align","badge","error","fallback","image","imageAlt","loading","loadingLabel","meta","metas","name","namePress","note","plan","price","quantity","removeLabel","smalls","testID","thumbSize","variant","wasPrice"],required:["name"],fallback:null},CheckinSheet:{since:"0.4.0",variants:[],platforms:["native","web"],settings:{lines:{type:"lines",values:["kicker","note","doneText"]}},props:["action","closeLabel","doneText","fallback","flowLabel","image","imageKind","kicker","loading","loadingLabel","note","open","steps","testID","title"],required:["steps"],fallback:"hide"},OrderRow:{since:"0.2.0",variants:["standard","quiet","web"],platforms:["native","web"],settings:{actionGrid:{type:"boolean",prop:"actionGrid"},lines:{type:"lines",values:["meta","total","status","shots","notes"]},variant:{type:"enum",values:["standard","quiet","web"],prop:"variant"}},props:["accessibilityLabel","actionGrid","actions","error","loading","loadingLabel","meta","metaLink","notes","number","shots","status","testID","title","total","variant"],required:["title"],fallback:null},PlanNeedCard:{since:"0.2.0",variants:["standard","plan"],platforms:["native","web"],settings:{lines:{type:"lines",values:["source","sources","title","score","quote","jump"]},variant:{type:"enum",values:["standard","plan"],prop:"variant"}},props:["jump","kicker","loading","loadingLabel","more","quote","score","signals","source","sources","testID","title","variant"],required:["kicker","signals"],fallback:null},PriceSummary:{since:"0.2.0",variants:[],platforms:["native","web"],settings:{lines:{type:"lines",values:["total","note"]},size:{type:"enum",values:["checkout","drawer"],prop:"size",platforms:["web"],default:"checkout"},variant:{type:"enum",values:["standard","web"],prop:"variant",platforms:["web"],default:"standard"}},props:["loading","loadingLabel","note","rows","testID","total"],required:["rows"],fallback:null},ProductTile:{since:"0.2.0",variants:["standard","blend","web"],platforms:["native","web"],settings:{addLift:{type:"boolean",prop:"addLift"},ground:{type:"enum",values:["shelf","white"],prop:"ground"},imageInset:{type:"enum",values:["standard","even"],prop:"imageInset"},layout:{type:"enum",values:["tile","row","card"],prop:"layout"},lines:{type:"lines",values:["kicker","meta","price","wasPrice","per","badge","tag"]},metaTone:{type:"enum",values:["auto","autoDark"],prop:"metaTone"},variant:{type:"enum",values:["standard","blend","web"],prop:"variant"}},props:["action","addLift","badge","fallback","ground","image","imageAlt","imageInset","kicker","layout","loading","loadingLabel","meta","metaTone","name","per","price","stepper","tag","testID","variant","wasPrice"],required:["name"],fallback:null},ScoreLights:{since:"0.4.0",variants:[],platforms:["native","web"],settings:{lines:{type:"lines",values:["heading","since","source","next"]}},props:["heading","loading","loadingLabel","next","pill","since","source","state","testID","values","vizLabel"],required:["pill","state","values","vizLabel"],fallback:"hide"},SummaryList:{since:"0.1.0",variants:["standard","flush","card","inset"],platforms:["native","web"],settings:{lines:{type:"lines",values:["trailingRows","note"]},variant:{type:"enum",values:["standard","flush","card","inset"],prop:"variant"}},props:["loading","loadingLabel","note","rows","testID","total","trailingRows","variant"],required:["rows"],fallback:null},TipCard:{since:"0.2.0",variants:["standard","photo","web","plan"],platforms:["native","web"],settings:{footArrow:{type:"boolean",prop:"footArrow"},lines:{type:"lines",values:["text","foot"]},tone:{type:"enum",values:["y","c","g","r"],prop:"tone"},variant:{type:"enum",values:["standard","photo","web","plan"],prop:"variant"}},props:["accessibilityLabel","foot","footArrow","footPress","icon","image","loading","loadingLabel","number","pressTarget","testID","text","title","tone","variant"],required:["number","title"],fallback:null},WeatherAlert:{since:"0.4.0",variants:[],platforms:["native","web"],settings:{},props:["accessibilityLabel","loading","loadingLabel","testID","text","title"],required:["title"],fallback:"TipCard",fallbackProps:{number:{const:"!"},text:{from:"text"},title:{from:"title"},tone:{const:"r"}}},WeatherCard:{since:"0.4.0",variants:["walk","summary","tile","web"],platforms:["native","web"],settings:{lines:{type:"lines",values:["heading","condition","details","verdict","advice","comfort","label","note","action","units","tags"]},sky:{type:"enum",values:["sun","blue"],prop:"sky"},variant:{type:"enum",values:["walk","summary","tile","web"],prop:"variant"}},props:["action","advice","comfort","condition","details","glyph","heading","label","level","loading","loadingLabel","note","sky","tags","tagsLabel","temperature","testID","units","variant","verdict"],required:["temperature"],fallback:"hide"},WeatherDetails:{since:"0.4.0",variants:[],platforms:["native","web"],settings:{},props:["items","label","loading","loadingLabel","testID"],required:["items"],fallback:"hide"},WeatherForecast:{since:"0.4.0",variants:["plain","walk"],platforms:["native","web"],settings:{variant:{type:"enum",values:["plain","walk"],prop:"variant"}},props:["days","label","loading","loadingLabel","testID","variant"],required:["days"],fallback:"hide"},WeatherHours:{since:"0.4.0",variants:["plain","walk"],platforms:["native","web"],settings:{lines:{type:"lines",values:["windows","legend"]},variant:{type:"enum",values:["plain","walk"],prop:"variant"}},props:["hours","label","legend","loading","loadingLabel","testID","variant","windows"],required:["hours"],fallback:"hide"},WeatherLevels:{since:"0.4.0",variants:["phone","web"],platforms:["native","web"],settings:{variant:{type:"enum",values:["phone","web"],prop:"variant"}},props:["label","loading","loadingLabel","rows","testID","variant"],required:["rows"],fallback:"hide"},WeatherReading:{since:"0.4.0",variants:["phone","web"],platforms:["native","web"],settings:{lines:{type:"lines",values:["word","choices"]},variant:{type:"enum",values:["phone","web"],prop:"variant"}},props:["choices","loading","loadingLabel","testID","tone","value","variant","word"],required:["value"],fallback:"hide"},WhySheet:{since:"0.4.0",variants:["standard","web","plan"],platforms:["native","web"],settings:{lines:{type:"lines",values:["kind","sub","sections","link","score"]},tone:{type:"enum",values:["calm","y","c","g","r"],prop:"tone"},variant:{type:"enum",values:["standard","web","plan"],prop:"variant"}},props:["action","closeLabel","fallback","heading","image","imageKind","kind","link","loading","loadingLabel","rows","score","sections","sub","testID","title","tone","variant"],required:[],fallback:"hide"}};var SLOT_LKG_KEY="everfur.slots.v2",SLOT_INSTALL_ID_KEY="everfur.slots.installId.v2";var SLOT_CACHE_MS=6e4,SLOT_CACHE_MAX_MS=3e5,SLOT_FAILURE_MS=15e3,SLOT_LKG_MAX_AGE_MS=10080*60*1e3,ETAG=/^(W\/)?"[^"]{1,200}"$/,INSTALL_ID=/^[A-Za-z0-9_-]{8,128}$/,MAX_AGE=/(?:^|,)\s*max-age\s*=\s*"?(\d{1,10})"?\s*(?:,|$)/i,NO_STORE2=/(?:^|,)\s*(?:no-store|no-cache)\s*(?:,|$)/i,FIXED_SCOPE=/* @__PURE__ */Object.freeze({doc:"default",tenant:"default",epoch:0});function randomId(){let out="";for(let i=0;i<4;i++)out+=Math.floor(Math.random()*4294967296).toString(36).padStart(7,"0");return out}function slotCacheMs(cacheControl){if(cacheControl===null)return SLOT_CACHE_MS;if(NO_STORE2.test(cacheControl))return 0;let m=MAX_AGE.exec(cacheControl);return m===null?SLOT_CACHE_MS:Math.min(Number(m[1])*1e3,SLOT_CACHE_MAX_MS)}var has=(obj2,key)=>Object.prototype.hasOwnProperty.call(obj2,key);function createSlotClient(deps){let now=deps.now??Date.now,scopeOf=()=>{try{return deps.scope?.()??FIXED_SCOPE}catch{return FIXED_SCOPE}},memory=/* @__PURE__ */new Map,failures=/* @__PURE__ */new Map,inFlight=/* @__PURE__ */new Map,installId=null,epoch=null,rescoped=false,writes=Promise.resolve(),track=(event,props)=>{try{deps.telemetry?.track(event,props)}catch{}},observe=scope=>{epoch!==scope.epoch&&(epoch!==null&&(memory.clear(),failures.clear(),installId=null,rescoped=true),epoch=scope.epoch)},stale=scope=>{let current=scopeOf();return current.epoch!==scope.epoch||current.doc!==scope.doc},undoIfStale=async(scope,key,written)=>{if(!stale(scope))return false;try{await deps.kv.getItem(key)===written&&await deps.kv.removeItem(key)}catch{}return true},readInstallId=scope=>{let tenant=fnv1a64Hex(scope.tenant);if(installId?.tenant===tenant)return installId.id;let fresh2=rescoped;rescoped=false;let id=(async()=>{if(!fresh2)try{let raw=await deps.kv.getItem(SLOT_INSTALL_ID_KEY),kept=raw===null?null:JSON.parse(raw);if(kept?.tenant===tenant&&typeof kept.id=="string"&&INSTALL_ID.test(kept.id))return kept.id}catch{}try{let made=(deps.newId??randomId)();if(!INSTALL_ID.test(made))return null;let text=JSON.stringify({tenant:tenant,id:made});return await deps.kv.setItem(SLOT_INSTALL_ID_KEY,text),await undoIfStale(scope,SLOT_INSTALL_ID_KEY,text)?null:made}catch{return null}})();return installId={tenant:tenant,id:id},id},readFile=async scopeKey=>{try{let raw=await deps.kv.getItem(SLOT_LKG_KEY),file=raw===null?null:JSON.parse(raw);return file?.scope!==scopeKey||file.docs===null||typeof file.docs!="object"||Array.isArray(file.docs)?{docs:{}}:{docs:file.docs}}catch{return{docs:{}}}},readStored=async(scope,slot)=>{let file=await readFile(fnv1a64Hex(scope.doc)),entry=has(file.docs,slot)?file.docs[slot]:void 0;if(entry==null||typeof entry.at!="number")return null;let age=now()-entry.at;if(!(age<SLOT_LKG_MAX_AGE_MS)||age<-SLOT_CACHE_MAX_MS)return null;let parsed=parseSlotDoc(entry.doc,slot);if(!parsed.ok)return null;let etag=typeof entry.etag=="string"&&ETAG.test(entry.etag)?entry.etag:null;return{doc:parsed.doc,etag:etag}},update=(scope,slot,change)=>{let scopeKey=fnv1a64Hex(scope.doc);return writes=writes.then(async()=>{if(!stale(scope))try{let file=await readFile(scopeKey);if(stale(scope))return;let docs={...file.docs},next=change(has(docs,slot)?docs[slot]:void 0);if(next===null?delete docs[slot]:docs[slot]=next,Object.keys(docs).length===0)await deps.kv.removeItem(SLOT_LKG_KEY);else{let text=JSON.stringify({scope:scopeKey,docs:docs});await deps.kv.setItem(SLOT_LKG_KEY,text),await undoIfStale(scope,SLOT_LKG_KEY,text)}}catch{}}),writes},read=async(scope,slot)=>{let key=`${scope.doc}|${slot}`,mem=memory.get(key),stored=mem===void 0?await readStored(scope,slot):null,held=mem!==void 0?{doc:mem.doc,etag:mem.etag}:stored,install=await readInstallId(scope),headers={"x-everfur-blocks":deps.blocks??SLOT_REGISTRY_HASH};install!==null&&(headers["x-everfur-install-id"]=install),held?.doc&&held.etag!==null&&(headers["if-none-match"]=held.etag);let etag=null,ttl=SLOT_CACHE_MS,res=await deps.send("slots.read",{method:"GET",path:`/widget/v1/slots/${encodeURIComponent(slot)}`,headers:headers,rawText:65536,onResponseHeaders:header=>{let value=header("etag");etag=value!==null&&ETAG.test(value)?value:null,ttl=slotCacheMs(header("cache-control"))}}).catch(()=>null),fallBack=()=>held?.doc?{doc:held.doc,source:mem!==void 0?"cache":"last-known-good"}:{doc:null,source:"bundled"},failed=status2=>(failures.set(key,now()),track("slots.read_failed",{slot:slot,status:status2}),fallBack());if(stale(scope))return{doc:null,source:"bundled"};if(res===null)return failed(null);if(res.ok){let body=slotBodyOf(res.value);if(!body.ok)return track("slots.refused",{slot:slot,reason:body.reason}),fallBack();let parsed=parseSlotDoc(body.raw,slot);if(!parsed.ok)return track("slots.refused",{slot:slot,reason:parsed.reason}),fallBack();let at=now();return memory.set(key,{doc:parsed.doc,etag:etag,at:at,ttl:ttl}),await update(scope,slot,()=>({etag:etag,doc:body.raw,at:at})),{doc:parsed.doc,source:"live"}}let status=res.error.httpStatus;if(status===304&&held?.doc){let at=now();return memory.set(key,{doc:held.doc,etag:held.etag,at:at,ttl:ttl}),await update(scope,slot,entry=>entry===void 0?null:{...entry,at:at}),{doc:held.doc,source:"live"}}return status===404?(memory.set(key,{doc:null,etag:null,at:now(),ttl:ttl}),await update(scope,slot,()=>null),{doc:null,source:"bundled"}):failed(status??null)},peekIn=(scope,slot)=>{let mem=memory.get(`${scope.doc}|${slot}`);return mem===void 0||now()-mem.at>=mem.ttl?null:mem.doc===null?{doc:null,source:"bundled"}:{doc:mem.doc,source:"cache"}},storedIn=async(scope,slot)=>{let mem=memory.get(`${scope.doc}|${slot}`);if(mem!==void 0)return mem.doc===null?{doc:null,source:"bundled"}:{doc:mem.doc,source:"cache"};let kept=await readStored(scope,slot);return kept===null?{doc:null,source:"bundled"}:{doc:kept.doc,source:"last-known-good"}};return{peek(slot){let scope=scopeOf();return observe(scope),peekIn(scope,slot)},stored(slot){let scope=scopeOf();return observe(scope),storedIn(scope,slot).catch(()=>({doc:null,source:"bundled"}))},load(slot){let scope=scopeOf();observe(scope);let fromCache=peekIn(scope,slot);if(fromCache!==null)return Promise.resolve(fromCache);let key=`${scope.doc}|${slot}`,flight=`${scope.epoch}|${key}`,pending=inFlight.get(flight);if(pending!==void 0)return pending;let failedAt=failures.get(key),next=(failedAt!==void 0&&now()-failedAt<SLOT_FAILURE_MS?storedIn(scope,slot):read(scope,slot)).catch(()=>({doc:null,source:"bundled"})).finally(()=>inFlight.delete(flight));return inFlight.set(flight,next),next}}}function runtimeSlotScope(runtime){let tenant=runtimeTenantOf(runtime)??"unknown",auth=runtime.registry.services.authFor(null),who=auth.mode==="personalized"?`u:${auth.userRef??""}`:`a:${auth.userRef??""}`;return{doc:`${tenant}|${who}`,tenant:tenant,epoch:runtime.scopeEpoch??0}}var CLIENTS_SYMBOL=/* @__PURE__ */Symbol.for("@everfur/sdk#SlotClients@v1");function slotClientFor(runtime,make=runtimeSlotClient){let host2=globalThis,all=host2[CLIENTS_SYMBOL];all instanceof WeakMap||(all=/* @__PURE__ */new WeakMap,host2[CLIENTS_SYMBOL]=all);let map=all,client=map.get(runtime);return client===void 0&&(client=make(runtime),map.set(runtime,client)),client}function runtimeSlotClient(runtime){let{services:services}=runtime.registry;return createSlotClient({send:(call,req)=>createRequestFunnel({auth:services.authFor(null),...services.errorPolicy?{errorPolicy:services.errorPolicy}:{}}).send(call,req),kv:services.kv,telemetry:services.telemetry,scope:()=>runtimeSlotScope(runtime)})}function drawn(slot,load){return{doc:load.doc??bundledSlotDoc(slot),source:load.source}}function useSlotDoc(slot,enabled){let{runtime:runtime,scopeEpoch:scopeEpoch}=useEverfurContext(),client=enabled?slotClientFor(runtime):null,[state,setState]=useState(()=>{let fresh2=client?.peek(slot);return fresh2?{slot:slot,epoch:scopeEpoch,value:drawn(slot,fresh2)}:null});return useEffect(()=>{if(client===null)return;let live=true,landed=false,fresh2=client.peek(slot);if(fresh2!==null){setState({slot:slot,epoch:scopeEpoch,value:drawn(slot,fresh2)});return}return client.stored(slot).then(held=>{live&&!landed&&setState({slot:slot,epoch:scopeEpoch,value:drawn(slot,held)})}),client.load(slot).then(load=>{landed=true,live&&setState({slot:slot,epoch:scopeEpoch,value:drawn(slot,load)})}),()=>{live=false}},[client,slot,scopeEpoch]),enabled?state!==null&&state.slot===slot&&state.epoch===scopeEpoch?state.value:{doc:null,source:"pending"}:{doc:bundledSlotDoc(slot),source:"bundled"}}var UI_RN_WX_SUN=[{color:"#D5AD47",icon:{strokes:[{width:1.3,cap:true,closed:false,points:[18.2,12,19.8,12]},{width:1.3,cap:true,closed:false,points:[16.385,16.385,17.515,17.515]},{width:1.3,cap:true,closed:false,points:[12,18.2,12,19.8]},{width:1.3,cap:true,closed:false,points:[7.615,16.385,6.485,17.515]},{width:1.3,cap:true,closed:false,points:[5.8,12,4.2,12]},{width:1.3,cap:true,closed:false,points:[7.615,7.615,6.485,6.485]},{width:1.3,cap:true,closed:false,points:[12,5.8,12,4.2]},{width:1.3,cap:true,closed:false,points:[16.385,7.615,17.515,6.485]}],boxes:[],triangles:[],seams:[]}},{color:"#F2C763",icon:{strokes:[],boxes:[{x:9.75,y:9.75,w:4.5,h:4.5,radius:2.25,width:4.5}],triangles:[],seams:[]}},{color:"#D5AD47",icon:{strokes:[],boxes:[{x:7.5,y:7.5,w:9,h:9,radius:4.5,width:1}],triangles:[],seams:[]}}],UI_RN_WX_SUN_LG=[{color:"#F2C763",icon:{strokes:[{width:1.5,cap:true,closed:false,points:[12,.75,12,3.429]},{width:1.5,cap:true,closed:false,points:[12,20.571,12,23.25]},{width:1.5,cap:true,closed:false,points:[.75,12,3.429,12]},{width:1.5,cap:true,closed:false,points:[20.571,12,23.25,12]},{width:1.5,cap:true,closed:false,points:[4.072,4.072,5.947,5.947]},{width:1.5,cap:true,closed:false,points:[18.054,18.054,19.929,19.929]},{width:1.5,cap:true,closed:false,points:[19.929,4.072,18.054,5.947]},{width:1.5,cap:true,closed:false,points:[5.947,18.054,4.072,19.929]}],boxes:[],triangles:[[7.064,14.085,7.558,14.995,6.752,13.08],[9.915,7.064,9.005,7.558,10.92,6.752],[14.085,16.936,14.995,16.442,13.08,17.248],[16.936,9.915,16.442,9.005,17.248,10.92],[6.643,12,6.752,13.08,7.558,14.995],[6.643,12,7.558,9.005,6.752,10.92],[12,6.643,14.995,7.558,13.08,6.752],[12,6.643,10.92,6.752,9.005,7.558],[12,17.357,13.08,17.248,14.995,16.442],[12,17.357,9.005,16.442,10.92,17.248],[17.357,12,16.442,14.995,17.248,13.08],[17.357,12,17.248,10.92,16.442,9.005],[7.558,14.995,8.212,15.788,6.643,12],[7.064,9.915,6.752,10.92,7.558,9.005],[14.085,7.064,13.08,6.752,14.995,7.558],[9.005,7.558,8.212,8.212,12,6.643],[14.995,16.442,15.788,15.788,12,17.357],[9.915,16.936,10.92,17.248,9.005,16.442],[16.936,14.085,17.248,13.08,16.442,14.995],[16.442,9.005,15.788,8.212,17.357,12],[8.212,15.788,8.212,8.212,6.643,12],[7.558,9.005,6.643,12,8.212,8.212],[14.995,7.558,12,6.643,15.788,8.212],[15.788,8.212,12,6.643,8.212,8.212],[12,17.357,17.357,12,8.212,15.788],[15.788,15.788,17.357,12,12,17.357],[9.005,16.442,12,17.357,8.212,15.788],[8.212,8.212,8.212,15.788,17.357,12],[16.442,14.995,17.357,12,15.788,15.788],[15.788,8.212,8.212,8.212,17.357,12]],seams:[[6.752,13.08,7.558,14.995,5.121,5.035],[9.005,7.558,10.92,6.752,5.035,5.121],[13.08,17.248,14.995,16.442,5.121,5.035],[16.442,9.005,17.248,10.92,5.035,5.121],[6.643,12,7.558,14.995,5.179,4.892],[6.643,12,7.558,9.005,5.179,4.892],[6.752,10.92,7.558,9.005,5.121,5.035],[12,6.643,14.995,7.558,5.179,4.892],[13.08,6.752,14.995,7.558,5.121,5.035],[9.005,7.558,12,6.643,4.892,5.179],[12,17.357,14.995,16.442,5.179,4.892],[9.005,16.442,12,17.357,4.892,5.179],[9.005,16.442,10.92,17.248,5.035,5.121],[16.442,14.995,17.357,12,4.892,5.179],[16.442,14.995,17.248,13.08,5.035,5.121],[16.442,9.005,17.357,12,4.892,5.179],[6.643,12,8.212,15.788,5.179,1.633],[8.212,8.212,12,6.643,1.633,5.179],[12,17.357,15.788,15.788,5.179,1.633],[15.788,8.212,17.357,12,1.633,5.179],[8.212,8.212,8.212,15.788,1.207,1.207],[6.643,12,8.212,8.212,5.179,1.633],[12,6.643,15.788,8.212,5.179,1.633],[8.212,8.212,15.788,8.212,1.207,1.207],[12,17.357,17.357,12,1.207,1.207],[8.212,15.788,17.357,12,.5,1.207],[8.212,15.788,12,17.357,1.633,5.179],[15.788,15.788,17.357,12,1.633,5.179],[8.212,8.212,17.357,12,1.207,.5]]}}],UI_RN_WX_PLAY={strokes:[],boxes:[],triangles:[[8.241,19.053,8.849,19.39,9.53,19.25],[8,18.4,8.241,19.053,9.53,19.25],[9.53,4.75,8.849,4.61,8.241,4.947],[9.53,4.75,8.241,4.947,8,5.6],[19.73,12.85,20.146,12.332,20.146,11.668],[19.73,12.85,20.146,11.668,19.73,11.15],[8,18.4,9.53,19.25,19.73,12.85],[8,5.6,8,18.4,19.73,12.85],[19.73,11.15,9.53,4.75,8,5.6],[8,5.6,19.73,12.85,19.73,11.15]],seams:[[8.241,19.053,9.53,19.25,1.348,1.348],[8,18.4,9.53,19.25,.581,1.348],[8.241,4.947,9.53,4.75,1.348,1.348],[8,5.6,9.53,4.75,.581,1.348],[19.73,12.85,20.146,11.668,1.42,1.42],[19.73,11.15,19.73,12.85,.622,1.42],[19.73,12.85,8,18.4,4.202,.358],[19.73,12.85,8,5.6,.324,4.459],[19.73,11.15,8,5.6,4.202,4.459]]};var everfurTokens=/* @__PURE__ */Object.freeze({color:/* @__PURE__ */Object.freeze({efDarkGreen:"#10462E",efWhite:"#FFFFFF",efBlack:"#000000",efDustyPink:"#FFC3BC",efBrightGreen:"#07C168",efYellow:"#F2C763",efDustyBlue:"#A8B9DA",efSkyBlue:"#4E98C9",efCharcoal:"#3D3D3D",efIconHoney:"#926F06",efIconLeaf:"#16864A",efIconSky:"#1E7AB7",efIconTeal:"#05827E",efIconCocoa:"#865B3F",efIconNavy:"#223E80",efIconBerry:"#B6407F",efIconAmber:"#B25E05",efIconMoss:"#5E7E1E",efIconSlate:"#5A6087",efIconRose:"#CA4463",efRedDeep:"#6D1D14",efRedBright:"#C03410",bg:"#FFFFFF",bgBrand:"#10462E",bgAccent:"#FFC3BC",bgAccentB2b:"#A8B9DA",bgWarm:"#F2C763",text:"#000000",textBrand:"#10462E",textOnBrand:"#FFFFFF",textCta:"#07C168",textMuted:"#6B6B6B",bgMist:"#F1F5F2",border:"#E4E4E4",borderStrong:"#3D3D3D",hi:"#DAF6E8",hiStrong:"#ABEACC",hiEdge:"#0B8A4E",now:"#0C844B",alert:"#C03410",alertDeep:"#6D1D14",btnPrimaryBg:"#10462E",btnPrimaryText:"#FFFFFF",btnSecondaryBg:"rgba(0, 0, 0, 0)",btnSecondaryText:"#10462E",btnSecondaryBorder:"#10462E",mixMint:"#7FE8AE",mixLegal:"#A9C4B5",mixPromptGreen:"#BFEFD8",mixPromptYellow:"#F7DC9E",mixRx:"#E0E6F2",mixShelf:"#F3F3F3",mixEar:"#F09FA3",efBone:"#FAF9F6",efTennisBall:"#DCEF5A",efFawn:"#E8CAA4",efPine:"#12301F",efPine70:"rgba(18, 48, 31, 0.72)",efLiver:"#7A4330",efMerle:"#AEB8C1",efNose:"#E9B6A6"}),font:/* @__PURE__ */Object.freeze({family:/* @__PURE__ */Object.freeze({base:'Azeret, "Helvetica Neue", Arial, sans-serif',mono:'"Azeret Mono", ui-monospace, "SF Mono", Menlo, monospace'}),size:/* @__PURE__ */Object.freeze({xs:13,sm:15,md:17,lg:20,xl:24,"2xl":32,"3xl":40,"4xl":56}),lineHeight:/* @__PURE__ */Object.freeze({body:1.55,display:1.15}),weight:/* @__PURE__ */Object.freeze({regular:400,medium:500,bold:700})}),space:/* @__PURE__ */Object.freeze({1:4,2:8,3:12,4:16,5:24,6:32,7:48,8:64,9:96}),radius:/* @__PURE__ */Object.freeze({sm:6,md:10,lg:20,xl:28,pill:999}),shadow:/* @__PURE__ */Object.freeze({sm:/* @__PURE__ */Object.freeze({x:0,y:1,blur:2,spread:0,color:"rgba(16, 70, 46, 0.06)"}),md:/* @__PURE__ */Object.freeze({x:0,y:4,blur:16,spread:0,color:"rgba(16, 70, 46, 0.08)"})}),layout:/* @__PURE__ */Object.freeze({container:1200,containerNarrow:720}),motion:/* @__PURE__ */Object.freeze({easing:/* @__PURE__ */Object.freeze({out:/* @__PURE__ */Object.freeze([.23,1,.32,1]),inOut:/* @__PURE__ */Object.freeze([.77,0,.175,1]),drawer:/* @__PURE__ */Object.freeze([.32,.72,0,1]),expo:/* @__PURE__ */Object.freeze([.16,1,.3,1]),bark:/* @__PURE__ */Object.freeze([.34,1.56,.64,1])}),duration:/* @__PURE__ */Object.freeze({press:160,fade:200,enter:300,sheet:420,sheetOut:240,draw:900})}),web:/* @__PURE__ */Object.freeze({serif:'Azeret, "Helvetica Neue", Arial, sans-serif',sans:'Azeret, "Helvetica Neue", Arial, sans-serif',tSmall:14,max:1312}),role:/* @__PURE__ */Object.freeze({color:/* @__PURE__ */Object.freeze({ink:"#10462E",go:"#07C168",muted:"#6B6B6B",line:"#E4E4E4",pink50:"#FFE1DE",tintSage:"#E6ECE8",tintPink:"#FFEAE8",tintPinkSoft:"#FFF6F5",tintBlue:"#EAEEF6",tintYellow:"#FCF0D6",tintYellowEdge:"#F6D892",tintRed:"#FBF1EE",tintGo:"#DCF6EA",icoGrey:"#6B6B6B",icoSage:"#819E90",icoBlue:"#4E98C9",icoWarm:"#D6D0C2",icoAmber:"#B67B3F",amberText:"#A05E32",wxSun:"#F2C763",wxSunEdge:"#D5AD47",wxCloud:"#FFFFFF",wxCloudEdge:"#DEDEDE",wxCloudDark:"#EAEAEA",wxCloudDarkEdge:"#C5C5C5",wxRain:"#75AFD5",wxSnow:"#AFD1E7",wxMist:"#D4D4D4",cwShelf:"#FFFFFF",cwShelfDeep:"#F1F4F2",cwRx:"#E0E6F2",cwRxInk:"#5A6087",cwEdgeC:"#C6D3CD",nItch:"#CA4463",nJoints:"#5E7E1E",nItchC:"#FFC3BC",nJointsC:"#D8E0C9",lvlGood:"#77DDAC",lvlOk:"#F4CF7A",lvlHot:"#DC8F7C",lvlStorm:"#8DA4BB",mapLand:"#F5F5F5",mapEdge:"#EAEAEA",mapPark:"#D7F5E7",mapWater:"#D8E0EE",mapSand:"#FCF3DD"}),size:/* @__PURE__ */Object.freeze({max:1440,gutter:16,sideW:220,cardPad:16,barH:48,tabH:58,dock:64,side:16,stackGap:12})})});var BLOCK_BOX={shown:true,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},BLOCK_TEXT={shown:true,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},blockBox=p=>({...BLOCK_BOX,...p}),blockText=p=>({...BLOCK_TEXT,...p}),everfurMetrics={button:{ink:{fill:false,minHeight:52,paddingX:24,gap:8,borderWidth:1.5,ring:false,fontSize:17,fontWeight:700,lineHeight:1,iconSize:24},go:{fill:false,minHeight:52,paddingX:24,gap:8,borderWidth:1.5,ring:false,fontSize:17,fontWeight:700,lineHeight:1,iconSize:24},outline:{fill:false,minHeight:52,paddingX:24,gap:8,borderWidth:1.5,ring:false,fontSize:17,fontWeight:400,lineHeight:1,iconSize:24},pink:{fill:true,minHeight:60,paddingX:16,gap:8,borderWidth:1,ring:false,fontSize:18,fontWeight:700,lineHeight:1,iconSize:24},danger:{fill:false,minHeight:46,paddingX:16,gap:8,borderWidth:1.5,ring:false,fontSize:15,fontWeight:700,lineHeight:1.55,iconSize:20},inkSm:{fill:false,minHeight:46,paddingX:16,gap:8,borderWidth:1.5,ring:false,fontSize:15,fontWeight:700,lineHeight:1,iconSize:20},goSm:{fill:false,minHeight:46,paddingX:16,gap:8,borderWidth:1.5,ring:false,fontSize:15,fontWeight:700,lineHeight:1,iconSize:20},outlineSm:{fill:false,minHeight:46,paddingX:16,gap:8,borderWidth:1.5,ring:false,fontSize:15,fontWeight:400,lineHeight:1,iconSize:20},pinkSm:{fill:true,minHeight:46,paddingX:16,gap:8,borderWidth:1,ring:false,fontSize:15,fontWeight:700,lineHeight:1,iconSize:20},row:{fill:false,minHeight:36,paddingX:14,gap:8,borderWidth:1.5,ring:false,fontSize:14,fontWeight:400,lineHeight:1,iconSize:17},outlineInSheetWeight:700,money:{fill:false,minHeight:52,paddingX:24,gap:8,borderWidth:1,ring:false,fontSize:17,fontWeight:700,lineHeight:1,iconSize:24,bg:"pink",fg:"ink",edgeColor:"ink"},moneySm:{fill:false,minHeight:46,paddingX:16,gap:8,borderWidth:1,ring:false,fontSize:15,fontWeight:700,lineHeight:1,iconSize:20,bg:"pink",fg:"ink",edgeColor:"ink"},warn:{fill:false,minHeight:52,paddingX:24,gap:8,borderWidth:1.5,ring:false,fontSize:17,fontWeight:700,lineHeight:1,iconSize:24,bg:"none",fg:"alertDeep",edgeColor:"alert"},warnSm:{fill:false,minHeight:46,paddingX:16,gap:8,borderWidth:1.5,ring:false,fontSize:15,fontWeight:700,lineHeight:1,iconSize:20,bg:"none",fg:"alertDeep",edgeColor:"alert"},text:{fontSize:15,fontWeight:700,lineHeight:1.4,color:"ink",pressOpacity:.6}},pill:{minHeight:24,paddingX:10,fontSize:12,fontWeight:700,lineHeight:1,letterSpacing:.72,ring:{soon:1.25,overdue:1.25,clear:1.5,later:1.25,plain:1.5,new:1.5},plainRingAlpha:.2,dot:6,dotGap:6,allergyDot:{size:6,gap:6,color:"alert"},mono:true,upper:true,tones:{rx:{bg:"#E0E6F2",fg:"ink",ring:0,ringColor:"ink"},soon:{bg:"surface",fg:"ink",ring:1.25,ringColor:"tintYellowEdge"},overdue:{bg:"surface",fg:"alert",ring:1.25,ringColor:"alert"},clear:{bg:"surface",fg:"go",ring:1.5,ringColor:"go"},stable:{bg:"tintGo",fg:"ink",ring:0,ringColor:"ink"},later:{bg:"surface",fg:"muted",ring:1.25,ringColor:"line"},plain:{bg:"surface",fg:"ink",ring:1.5,ringColor:"ink/0.2"},new:{bg:"surface",fg:"ink",ring:1.5,ringColor:"go"},pink:{bg:"tintPink",fg:"ink",ring:0,ringColor:"ink"},watch:{bg:"#F9E6B9",fg:"ink",ring:0,ringColor:"ink"},high:{bg:"surface",fg:"alert",ring:1.25,ringColor:"alert"},allergy:{bg:"surface",fg:"alertDeep",ring:1.25,ringColor:"alert"}}},chip:{minHeight:42,paddingX:16,gap:8,borderWidth:1,fontSize:15,fontWeight:500,lineHeight:1.3},card:{padding:16,radius:20,borderWidth:1,titleSize:18,titleWeight:700,titleLineHeight:1.25,titleTracking:-.36,titleGap:12,leadSize:15,leadLineHeight:1.5,leadGap:12,headGapX:16,headGapY:8,headGap:12,bodySize:17,bodyLineHeight:1.55,ghost:{borderStyle:"dashed",borderColor:"#B9C9C2"}},sectionHeader:{gapX:12,gapY:8,marginTop:8},kicker:{fontSize:12,fontWeight:700,lineHeight:1.55,letterSpacing:.96,gap:8},quantityStepper:{borderWidth:1,borderColor:"line",ring:false,button:40,icon:18,valueMinWidth:28,offColor:"line",offOpacity:1,valueSize:17,valueWeight:700,valueLineHeight:1.55},tabs:{minHeight:44,gap:6,fontSize:15,fontWeight:500,currentWeight:700,lineHeight:1.55,indicator:3,hairline:1,dot:7},sheet:{radius:28,grabHeight:20,grabBarWidth:36,grabBarHeight:5,grabBarRadius:3,headPaddingTop:4,headPaddingX:16,headPaddingBottom:12,headGap:12,titlesGap:2,titleSize:18,close:36,closeIcon:20,bodyGap:12,bodyPaddingX:16,bodyPaddingBottom:24,actsGap:12,actsMarginTop:4},empty:{gap:8,titleSize:22,titleWeight:500,titleLineHeight:1.2,titleTracking:-.33,leadSize:15,leadLineHeight:1.5,actsGap:12,actsMarginTop:12,buttonMinWidth:200,linkMinHeight:44,linkPaddingX:4,linkSize:15,linkWeight:700,linkUnderlineOffset:3},skeleton:{gap:10,lineHeight:12,widths:[100,82,64]},summary:{paddingX:24,paddingY:0,radius:20,borderWidth:1,background:"surface",shadow:{color:"",x:0,y:0,blur:0,spread:0},rowDivider:1,rowMinHeight:0,rowCenter:false,rowPaddingY:14,termColor:"muted",valueColor:"ink",tabular:false,totalRowMinHeight:0,totalTermSize:15,totalTermWeight:400,totalTermColor:"muted",totalWeight:700,rowGapX:16,rowGapY:2,termSize:15,termLineHeight:1.55,valueSize:15,valueWeight:700,valueLineHeight:1.4,totalSize:20,totalLineHeight:1.4,off:{shown:true,size:15,weight:700,lineHeight:21,color:"go",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0}},icon:{size:24},timeline:{row:{shown:true,w:361,h:69.281,padding:[0,0,24,0],marginTop:0,marginBottom:0,gap:[16,16],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},done:{shown:true,w:28,h:28,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[14,14],bg:"ink",edge:{width:2,color:"ink",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"surface",fit:"cover",x:0,y:0,dy:0},now:{shown:true,w:28,h:28,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[14,14],bg:"surface",edge:{width:2,color:"ink",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},next:{shown:true,w:28,h:28,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[14,14],bg:"surface",edge:{width:2,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},nowInner:{size:10,color:"go"},check:{shown:true,w:16,h:16,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"surface",fit:"cover",x:0,y:0,dy:0},lineDoneDone:{x:13,top:30,bottom:2,width:2,color:"ink"},lineDoneNow:{x:13,top:30,bottom:2,width:2,color:"ink"},lineNowNext:{x:13,top:30,bottom:2,width:2,color:"line"},title:{shown:true,size:17,weight:700,lineHeight:22.1,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:3},head:{shown:true,w:317,h:27,padding:[3,0,0,0],marginTop:0,marginBottom:0,gap:[8,4],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},nextTitle:{shown:true,size:17,weight:700,lineHeight:22.1,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:3},when:{shown:true,size:13,weight:400,lineHeight:18.2,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:2,paddingTop:0},text:{shown:true,size:15,weight:400,lineHeight:22.5,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:2,paddingTop:0}},thumbnail:{xs:{frame:{shown:true,w:48,h:48,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[6,6],bg:"surface",edge:{width:1,color:"line",ring:true},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"contain",x:0,y:0,dy:0},img:{shown:false,w:48,h:48,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[6,6],bg:"surface",edge:{width:1,color:"line",ring:true},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"contain",x:0,y:0,dy:0},empty:{shown:true,w:48,h:48,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[10,10],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"#1E7AB7",fit:"cover",x:0,y:0,dy:0},icon:{shown:true,w:22,h:22,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"#1E7AB7",fit:"cover",x:0,y:0,dy:0},top:false},sm:{frame:{shown:true,w:64,h:64,padding:[8,8,8,8],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[14,14],bg:"#F3F3F3",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},img:{shown:true,w:48,h:48,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"contain",x:0,y:0,dy:0},empty:{shown:true,w:64,h:64,padding:[8,8,8,8],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[14,14],bg:"#F3F3F3",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},icon:{shown:true,w:22,h:22,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"#1E7AB7",fit:"cover",x:0,y:0,dy:0},top:false},md:{frame:{shown:true,w:156,h:156,padding:[0,0,0,0],marginTop:0,marginBottom:6,gap:[0,0],minHeight:0,radius:[20,20],bg:"#F5F5F5",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},img:{shown:true,w:156,h:156,padding:[10,10,10,10],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"contain",x:0,y:0,dy:0},empty:{shown:true,w:156,h:156,padding:[0,0,0,0],marginTop:0,marginBottom:6,gap:[0,0],minHeight:0,radius:[20,20],bg:"#F5F5F5",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},icon:{shown:true,w:22,h:22,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"#1E7AB7",fit:"cover",x:0,y:0,dy:0},top:false},lg:{frame:{shown:true,w:174.5,h:174.5,padding:[0,0,0,0],marginTop:0,marginBottom:8,gap:[0,0],minHeight:0,radius:[20,20],bg:"#F3F3F3",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},img:{shown:true,w:174.5,h:174.5,padding:[14,14,18,14],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"contain",x:0,y:0,dy:0},empty:{shown:true,w:174.5,h:174.5,padding:[0,0,0,0],marginTop:0,marginBottom:8,gap:[0,0],minHeight:0,radius:[20,20],bg:"#F3F3F3",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},icon:{shown:true,w:22,h:22,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"#1E7AB7",fit:"cover",x:0,y:0,dy:0},top:false}},text:{display:{shown:true,size:40,weight:500,lineHeight:39.2,color:"ink",tracking:-1.2,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},headline:{shown:true,size:30,weight:500,lineHeight:33,color:"ink",tracking:-.45,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},title:{shown:true,size:22,weight:500,lineHeight:26.4,color:"ink",tracking:-.33,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},heading:{shown:true,size:18,weight:700,lineHeight:22.5,color:"ink",tracking:-.36,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},body:{shown:true,size:17,weight:400,lineHeight:26.35,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},lead:{shown:true,size:15,weight:400,lineHeight:21.75,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},label:{shown:true,size:15,weight:700,lineHeight:21,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},meta:{shown:true,size:13,weight:400,lineHeight:18.85,color:"muted",tracking:0,face:"mono",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},caption:{shown:true,size:13,weight:400,lineHeight:19.5,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},overline:{shown:true,size:12,weight:700,lineHeight:16.8,color:"muted",tracking:.72,face:"mono",upper:true,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},kicker:{shown:true,size:12,weight:700,lineHeight:18.6,color:"muted",tracking:.96,face:"mono",upper:true,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0}},field:{gap:6,label:{shown:true,size:15,weight:700,lineHeight:21,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},input:{shown:true,w:361,h:52,padding:[0,16,0,16],marginTop:0,marginBottom:0,gap:[10,10],minHeight:52,radius:[10,10],bg:"surface",edge:{width:1.5,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},focusEdge:"ink",errorEdge:"alert",value:{shown:true,size:17,weight:400,lineHeight:26.35,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:1},valueInset:[2,1],icon:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"muted",fit:"cover",x:0,y:0,dy:0},area:{shown:true,w:361,h:158,padding:[12,16,12,16],marginTop:0,marginBottom:0,gap:[10,10],minHeight:52,radius:[10,10],bg:"surface",edge:{width:1.5,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},areaValue:{shown:true,size:17,weight:400,lineHeight:25.5,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:2},areaValueMinHeight:132,areaInset:[2,2],hint:{shown:true,size:13,weight:400,lineHeight:19.5,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},error:{shown:true,size:15,weight:400,lineHeight:21.75,color:"alertDeep",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},placeholder:"muted"},checkbox:{row:{shown:true,w:361,h:45,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[12,12],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},labelX:34,box:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:1,marginBottom:0,gap:[0,0],minHeight:0,radius:[6,6],bg:"surface",edge:{width:1.5,color:"icoSage",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},on:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:1,marginBottom:0,gap:[0,0],minHeight:0,radius:[6,6],bg:"ink",edge:{width:1.5,color:"ink",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},tick:{w:5,h:10,stroke:2,color:"surface",rotate:45,dy:-1},label:{shown:true,size:15,weight:400,lineHeight:22.5,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},boxed:{shown:true,w:361,h:50.5,padding:[14,16,14,16],marginTop:0,marginBottom:0,gap:[12,12],minHeight:0,radius:[10,10],bg:"bgMist",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0}},choice:{row:{shown:true,w:361,h:56.344,padding:[14,16,14,16],marginTop:0,marginBottom:0,gap:[12,12],minHeight:0,radius:[10,10],bg:"surface",edge:{width:1.5,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},selected:{shown:true,w:361,h:56.344,padding:[14,16,14,16],marginTop:0,marginBottom:0,gap:[12,12],minHeight:0,radius:[10,10],bg:"pink",edge:{width:1.5,color:"ink",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},radio:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[10,10],bg:"surface",edge:{width:1.5,color:"icoSage",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},radioOn:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[10,10],bg:"surface",edge:{width:6,color:"ink",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},textX:34,title:{shown:true,size:17,weight:700,lineHeight:22.1,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},strut:26.35,meta:{shown:true,size:13,weight:400,lineHeight:18.2,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:2,paddingTop:0},end:{shown:true,size:13,weight:400,lineHeight:20.15,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},group:{gap:8,legend:{shown:true,size:15,weight:700,lineHeight:21,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},legendPaddingX:2,legendGap:0}},switch:{track:{shown:true,w:48,h:28,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[999,999],bg:"#D0D6D3",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},on:"ink",thumb:{size:22,inset:3,travel:20,color:"surface",shadow:{color:"rgba(16, 70, 46, 0.06)",x:0,y:1,blur:2,spread:0}}},iconButton:{bare:{shown:true,w:44,h:44,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[22,22],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},bareIcon:22,offColor:"line",ring:{shown:true,w:36,h:36,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[18,18],bg:"surface",edge:{width:1.5,color:"ink",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},ringIcon:18,ringPressed:"tintSage",ringPressScale:.94},link:{text:{shown:true,size:17,weight:400,lineHeight:22.1,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"underline",decoOffset:3,decoThickness:0,marginTop:0,paddingTop:0},danger:{shown:true,size:15,weight:700,lineHeight:23.25,color:"alert",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"underline",decoOffset:3,decoThickness:0,marginTop:0,paddingTop:0},inline:{shown:true,size:17,weight:400,lineHeight:26.35,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"underline",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0}},lists:{rows:{row:{shown:true,w:327,h:94.781,padding:[16,0,16,0],marginTop:0,marginBottom:0,gap:[16,8],minHeight:0,radius:[0,0],bg:"none",edge:{width:1,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},title:{shown:true,size:17,weight:700,lineHeight:22.1,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},subtitle:{shown:true,size:13,weight:400,lineHeight:18.85,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:2,paddingTop:0}},tiles:{list:{shown:true,w:343,h:175.813,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[4,4],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},outdent:8,row:{shown:true,w:343,h:62.281,padding:[10,8,10,8],marginTop:0,marginBottom:0,gap:[12,12],minHeight:0,radius:[10,10],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},leading:22,leadingFace:40,icon:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"muted",fit:"cover",x:0,y:0,dy:0},text:{shown:true,w:261,h:42.281,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[2,2],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},title:{shown:true,size:17,weight:700,lineHeight:22.1,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},subtitle:{shown:true,size:13,weight:400,lineHeight:18.2,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},pressed:"#EDF2EF",alert:{bg:"tintRed",icon:"alert",title:"alertDeep",subtitle:"alert"}},end:{text:{shown:true,size:15,weight:400,lineHeight:23.25,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},gap:8,chevron:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"#819D90",fit:"cover",x:0,y:0,dy:0}},section:{title:{shown:true,size:18,weight:700,lineHeight:22.5,color:"ink",tracking:-.36,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},titleGap:12,head:{shown:true,w:361,h:22.5,padding:[0,0,0,0],marginTop:8,marginBottom:0,gap:[12,8],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},note:{shown:true,size:13,weight:400,lineHeight:19.5,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:12,paddingTop:0}},avatar:{sizes:{xs:20,sm:36,md:48,lg:64,xl:128},face:40,bg:"surface",edge:{width:1,color:"line",ring:true},initials:{shown:true,size:15,weight:700,lineHeight:23.25,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},initialsXs:{shown:true,size:9,weight:700,lineHeight:13.95,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},tints:{default:"tintPink",pink:"#FFCFC9",blue:"#C2CEE5",yellow:"#F6D78F",sage:"#C6D3CD"},ring:{width:2,offset:2,color:"go"},ringXl:{width:3,offset:4,color:"go"},dot:{size:12,edge:2,edgeColor:"surface"}},stack:{size:28,overlap:-8,initialsSize:12,halo:{width:2,color:"surface"}},banner:{box:{shown:true,w:361,h:155.391,padding:[16,16,16,16],marginTop:0,marginBottom:0,gap:[12,4],minHeight:0,radius:[20,20],bg:"#F1F5F2",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},icon:{shown:true,w:22,h:22,padding:[0,0,0,0],marginTop:1,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"ink",fit:"cover",x:0,y:0,dy:0},iconRows:3,kicker:{shown:true,size:12,weight:700,lineHeight:16.8,color:"#5B5B5B",tracking:.72,face:"mono",upper:true,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},title:{shown:true,size:17,weight:700,lineHeight:22.1,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},text:{shown:true,size:15,weight:400,lineHeight:21.75,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},acts:{shown:true,w:295,h:21,padding:[0,0,0,0],marginTop:8,marginBottom:0,gap:[16,8],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},link:{shown:true,size:15,weight:700,lineHeight:21,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},tones:{info:{bg:"#F1F5F2",icon:"ink"},success:{bg:"tintGo",icon:"ink"},warn:{bg:"#FCF0D6",icon:"#926F06"},danger:{bg:"tintRed",icon:"alert"}}},toast:{box:{shown:true,w:200.281,h:40.25,padding:[10,16,10,16],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[999,999],bg:"ink",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"surface",fit:"cover",x:0,y:0,dy:0},text:{shown:true,size:15,weight:400,lineHeight:20.25,color:"onInk",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:10},inset:16,rise:8,fade:200,hold:2600},spinner:{size:16,border:2,turn:700,openSide:true,reducedOpacity:.5},offbar:{box:{shown:true,w:361,h:56,padding:[6,16,6,16],marginTop:0,marginBottom:0,gap:[10,10],minHeight:44,radius:[0,0],bg:"#FCF0D6",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:48,dy:0},text:{shown:true,size:15,weight:500,lineHeight:19.5,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},icon:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"ink",fit:"cover",x:0,y:0,dy:0},action:{shown:true,w:69.859,h:44,padding:[0,2,0,2],marginTop:0,marginBottom:0,gap:[6,6],minHeight:44,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},actionText:{shown:true,size:15,weight:700,lineHeight:19.5,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"underline",decoOffset:3,decoThickness:0,marginTop:0,paddingTop:0},online:{bg:"ink",color:"onInk"},fade:200},progress:{track:{shown:true,w:361,h:4,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[999,999],bg:"line",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},fill:"go",move:300},divider:{width:1,color:"line",label:{shown:true,size:12,weight:400,lineHeight:18.6,color:"muted",tracking:.72,face:"mono",upper:true,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},labelGap:12,labelLine:{width:1,color:"line"}},errorInline:{text:{shown:true,size:15,weight:400,lineHeight:21,color:"alertDeep",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},acts:{shown:true,w:361,h:21,padding:[0,0,0,0],marginTop:8,marginBottom:0,gap:[16,8],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},link:{shown:true,size:15,weight:700,lineHeight:21,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0}},linkPressedOpacity:.6},variants:{drawer:{frame:{shown:true,w:393,h:226.594,padding:[10,20,40,20],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[28,0],bg:"surface",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"ink",fit:"cover",x:0,y:293.406,dy:0},maxHeight:.8,grab:{shown:true,w:40,h:5,padding:[0,0,0,0],marginTop:0,marginBottom:10,gap:[0,0],minHeight:0,radius:[2.5,2.5],bg:"#DAD7D1",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"ink",fit:"cover",x:0,y:0,dy:0},top:{shown:true,w:353,h:40,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},kicker:{shown:true,size:11,weight:400,lineHeight:16.5,color:"muted",tracking:.88,face:"mono",upper:true,wrap:"auto",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},close:{shown:true,w:40,h:40,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[20,20],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},closeEnd:-8,closeIcon:22,title:{shown:true,size:24,weight:800,lineHeight:27.6,color:"ink",tracking:-.24,face:"serif",upper:false,wrap:"balance",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},body:{shown:true,w:353,h:82,padding:[0,0,0,0],marginTop:12,marginBottom:0,gap:[10,10],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},text:{shown:true,size:16,weight:400,lineHeight:24,color:"text",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},scrim:"ink/0.38",motion:{enterMs:320,enterEasing:[.32,.72,0,1],exitMs:220,exitEasing:[.23,1,.32,1],scrimEnterMs:240,scrimExitMs:200,scrimEasing:[.25,.1,.25,1]}},button:{ink:{fill:false,minHeight:48,paddingX:22,gap:8,borderWidth:0,ring:false,fontSize:16,fontWeight:700,lineHeight:1.5,iconSize:20},outline:{fill:false,minHeight:48,paddingX:22,gap:8,borderWidth:1.5,ring:true,fontSize:16,fontWeight:700,lineHeight:1.5,iconSize:20},sm:{fill:false,minHeight:40,paddingX:16,gap:8,borderWidth:1.5,ring:true,fontSize:15,fontWeight:700,lineHeight:1.5,iconSize:20},lg:{fill:false,minHeight:56,paddingX:28,gap:8,borderWidth:0,ring:false,fontSize:17,fontWeight:700,lineHeight:1.5,iconSize:20},disabledOpacity:.32,press:.97,transition:"transform 160ms cubic-bezier(0.23, 1, 0.32, 1), opacity 160ms ease"},segmented:{track:{shown:true,w:361,h:44,padding:[4,4,4,4],marginTop:0,marginBottom:0,gap:[4,4],minHeight:0,radius:[22,22],bg:"surface",edge:{width:1.5,color:"#DAD7D1",ring:true},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"ink",fit:"cover",x:0,y:0,dy:0},option:{shown:true,w:115,h:36,padding:[0,6,0,6],marginTop:0,marginBottom:0,gap:[0,0],minHeight:36,radius:[18,18],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"ink",fit:"cover",x:0,y:0,dy:0},label:{shown:true,size:14,weight:700,lineHeight:21,color:"ink",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},chosen:{shown:true,w:115,h:36,padding:[0,6,0,6],marginTop:0,marginBottom:0,gap:[0,0],minHeight:36,radius:[18,18],bg:"ink",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"onInk",fit:"cover",x:0,y:0,dy:0},chosenLabel:{shown:true,size:14,weight:700,lineHeight:21,color:"onInk",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},press:.96,transition:"background-color 160ms ease, transform 160ms cubic-bezier(0.23, 1, 0.32, 1)"},stepper:{track:{shown:true,w:110,h:40,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[20,20],bg:"surface",edge:{width:1.5,color:"#DAD7D1",ring:true},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},button:{shown:true,w:40,h:40,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[20,20],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},icon:16,value:{shown:true,size:15.5,weight:800,lineHeight:23.25,color:"ink",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:true,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},valueWidth:30,disabledOpacity:.3,press:.9,transition:"transform 160ms cubic-bezier(0.23, 1, 0.32, 1)"},summary:{box:{shown:true,w:361,h:144,padding:[6,16,6,16],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[16,16],bg:"surface",edge:{width:0,color:"line",ring:false},shadow:{color:"rgba(38, 37, 35, 0.06)",x:0,y:1,blur:3,spread:0},center:false,color:"ink",fit:"cover",x:0,y:0,dy:0},row:{shown:true,w:329,h:34,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[12,12],minHeight:34,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},term:{shown:true,size:15,weight:400,lineHeight:22.5,color:"#4A4845",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:true,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},value:{shown:true,size:15,weight:400,lineHeight:22.5,color:"ink",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:true,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},totalRow:{shown:true,w:329,h:42,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[12,12],minHeight:42,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},totalTerm:{shown:true,size:17,weight:800,lineHeight:25.5,color:"ink",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:true,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},total:{shown:true,size:17,weight:800,lineHeight:25.5,color:"ink",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:true,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},renewRow:{shown:true,w:329,h:28,padding:[0,0,0,0],marginTop:-6,marginBottom:0,gap:[12,12],minHeight:28,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},renewTerm:{shown:true,size:14,weight:400,lineHeight:21,color:"#4A4845",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:true,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},renew:{shown:true,size:14,weight:400,lineHeight:21,color:"ink",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:true,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},inset:{shown:true,w:361,h:88,padding:[6,16,6,16],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[16,16],bg:"bg",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"ink",fit:"cover",x:0,y:0,dy:0}},toast:{box:{shown:true,w:361,h:64.594,padding:[12,15,12,15],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[16,16],bg:"ink",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"onInk",fit:"cover",x:16,y:62,dy:0},text:{shown:true,size:14.5,weight:400,lineHeight:20.3,color:"onInk",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:12},motion:{enterMs:220,exitMs:160,easing:[.23,1,.32,1],rise:-8}},focus:{width:2,offset:2,color:"ink"}},press:{button:.97,iconButton:.94,card:.98},colors:{grab:"#C9C9C9",scrim:"rgba(0, 0, 0, 0.32)",watch:"#F9E6B9",planInk:"#262523",planOnInk:"#FFFFFF",planAccent:"#FFCE34",planLink:"#00707C",planAccentWash:"#FFF7DC",planAccentChip:"#FFE7A1",planLinkWash:"#E0FDFF",planLinkChip:"#C8F4F8"}},everfurBlocksMetrics={order:{card:blockBox({w:361,h:163.547}),top:blockBox({w:361,h:39.547,gap:[12,12]}),title:blockText({size:16,weight:700,lineHeight:20,tracking:-.16}),meta:blockText({size:13,weight:400,lineHeight:17.55,color:"muted"}),total:blockText({size:16,weight:700,lineHeight:24.8,tabular:true}),shots:blockBox({w:361,h:64,marginTop:8,gap:[8,8]}),acts:blockBox({w:361,h:40,marginTop:12,gap:[8,8]}),go:blockBox({w:176.5,h:40,padding:[0,12,0,12],gap:[6,6],minHeight:40,radius:[999,999],bg:"go",center:true}),goText:blockText({size:14,weight:700,lineHeight:21.7}),plain:blockBox({w:176.5,h:40,padding:[0,12,0,12],gap:[6,6],minHeight:40,radius:[999,999],bg:"#F3F3F3",center:true}),plainText:blockText({size:14,weight:700,lineHeight:21.7}),note:blockText({size:13,weight:500,lineHeight:17.55,marginTop:8}),icon:blockBox({w:16,h:16}),actsColumns:2,shotPressScale:.96},orderQuiet:{top:blockBox({w:361,h:43.547,gap:[12,12]}),when:blockBox({w:300.063,h:24,gap:[8,4],center:true}),title:blockText({size:16,weight:700,lineHeight:20.8}),chip:blockBox({w:86.031,h:24,padding:[0,9,0,5],gap:[4,4],minHeight:24,radius:[999,999],bg:"tintGo",center:true,color:"ink"}),chipText:blockText({size:12,weight:700,lineHeight:15.6,color:"ink"}),chipIcon:blockBox({w:14,h:14,color:"ink"}),meta:blockText({size:13,weight:400,lineHeight:17.55,color:"muted",marginTop:2}),total:blockText({size:16,weight:700,lineHeight:24.8,tabular:true}),shots:blockBox({w:361,h:64,marginTop:8,gap:[8,8]}),shot:blockBox({w:64,h:64,radius:[14,14],bg:"#F3F3F3"}),shotImg:blockBox({w:64,h:64,padding:[6.391,6.391,6.391,6.391],fit:"contain"}),shotBlend:"multiply",acts:blockBox({w:361,h:44,marginTop:12,gap:[12,12],center:true}),plain:blockBox({w:162.109,h:44,padding:[0,16,0,16],gap:[6,6],minHeight:44,radius:[999,999],bg:"#F3F3F3",center:true}),plainText:blockText({size:14,weight:700,lineHeight:21.7}),icon:blockBox({w:16,h:16}),link:blockBox({w:62.578,h:44,padding:[0,6,0,6],minHeight:44}),linkText:blockText({size:14,weight:700,lineHeight:21.7,deco:"underline",decoOffset:3,decoThickness:1.5})},orderWeb:{card:blockBox({w:952,h:127.781,padding:[16,24,16,16],gap:[24,16],radius:[20,20],bg:"surface",shadow:{color:"rgba(0, 0, 0, 0.04)",x:0,y:1,blur:2,spread:0},center:true}),lift:{color:"rgba(0, 0, 0, 0.05)",x:0,y:6,blur:20,spread:0},shots:blockBox({w:172,h:72}),sq:blockBox({w:72,h:72,radius:[14,14],bg:"#F3F3F3"}),sqRing:3,sqOverlap:22,imgInset:.1,imgFit:"contain",imgBlend:"multiply",text:blockBox({w:446.547,h:95.781,gap:[2,2]}),when:blockBox({w:446.547,h:26,gap:[12,4],center:true}),title:blockText({size:19,weight:700,lineHeight:24.7,tabular:true}),total:blockText({size:19,weight:900,lineHeight:24.7,tabular:true}),chip:blockBox({w:94.547,h:26,padding:[0,10,0,6],gap:[4,4],minHeight:26,radius:[999,999],bg:"tintGo",center:true,color:"ink"}),chipText:blockText({size:13,weight:700,lineHeight:16.9,color:"ink",tabular:true}),chipIcon:blockBox({w:16,h:16,color:"ink"}),meta:blockText({size:16,weight:400,lineHeight:22.4}),note:blockText({size:15,weight:400,lineHeight:21}),acts:blockBox({w:245.453,h:46,gap:[24,8],center:true}),plain:blockBox({w:160.031,h:46,padding:[0,20,0,20],gap:[8,8],minHeight:46,radius:[999,999],bg:"surface",edge:{width:1.5,color:"#C6D3CD",ring:true},center:true,color:"ink"}),plainText:blockText({size:16,weight:700,lineHeight:19.2,color:"ink"}),icon:blockBox({w:18,h:18,color:"ink"}),link:blockBox({w:61.422,h:44,gap:[8,8],minHeight:44,center:true,color:"ink"}),linkText:blockText({size:17,weight:700,lineHeight:20.4,color:"ink",deco:"underline",decoOffset:4}),go:blockBox({w:228.75,h:52,padding:[0,24,0,24],gap:[8,8],minHeight:52,radius:[999,999],bg:"ink",center:true,color:"surface"}),goText:blockText({size:17,weight:700,lineHeight:20.4,color:"surface",wrap:"auto"}),pressScale:.97,hoverFill:{color:"ink",share:.06,over:"surface"},chipOff:blockBox({w:97.422,h:26,padding:[0,10,0,6],gap:[4,4],minHeight:26,radius:[999,999],center:true,color:"ink"}),metaLink:blockText({size:16,weight:400,lineHeight:22.4,deco:"underline"}),narrow:{upTo:599,card:blockBox({w:560,h:247.391,padding:[16,16,16,16],gap:[24,16],radius:[20,20],bg:"surface",center:true}),sq:blockBox({w:64,h:64,radius:[14,14],bg:"#F3F3F3",shadow:{color:"#FFFFFF",x:0,y:0,blur:0,spread:3}}),sqOverlap:16},phone:{upTo:639,card:blockBox({w:335,h:120.984,gap:[12,8],center:true}),sq:blockBox({w:48,h:48,radius:[12,12],bg:"#F3F3F3"}),sqRing:2,sqOverlap:18,when:blockBox({w:215,h:46.797,gap:[12,2],center:true}),title:blockText({size:16,weight:700,lineHeight:20.8,tabular:true}),total:blockText({size:16,weight:900,lineHeight:20.8,tabular:true}),chip:blockBox({w:90.031,h:24,padding:[0,10,0,6],gap:[4,4],minHeight:24,radius:[999,999],bg:"tintGo",center:true,color:"ink"}),chipText:blockText({size:12,weight:700,lineHeight:15.6,color:"ink",tabular:true}),whatHidden:true,note:blockText({size:13,weight:400,lineHeight:18.2}),acts:blockBox({w:335,h:46,gap:[24,8],center:true}),plain:blockBox({w:144.531,h:46,padding:[0,16,0,16],gap:[8,8],minHeight:46,radius:[999,999],bg:"surface",edge:{width:1.5,color:"#C6D3CD",ring:true},center:true,color:"ink"}),plainText:blockText({size:15,weight:700,lineHeight:18,color:"ink"}),linkText:blockText({size:15,weight:700,lineHeight:18,color:"ink",deco:"underline",decoOffset:4})}},product:{card:blockBox({w:156,h:310.969,gap:[4,4]}),kicker:blockText({size:12,weight:400,lineHeight:15.6,color:"muted",tracking:.12,face:"mono"}),name:blockText({size:15,weight:700,lineHeight:19.5,wrap:"balance"}),meta:blockText({size:13,weight:400,lineHeight:18.2,color:"muted"}),buy:blockBox({w:156,h:36,marginTop:6,gap:[8,8],center:true}),price:blockText({size:15,weight:700,lineHeight:23.25,tabular:true})},productCard:{card:blockBox({w:174.5,h:249.219,gap:[2,2]}),tag:blockBox({w:84.563,h:26,padding:[0,9,0,6],gap:[4,4],minHeight:26,radius:[999,999],bg:"surface",center:true,x:8,y:8}),tagIcon:blockBox({w:16,h:16,color:"#CA4463"}),tagText:blockText({size:12,weight:700,lineHeight:12}),price:blockBox({w:174.5,h:26.344,gap:[6,6]}),priceText:blockText({size:17,weight:700,lineHeight:26.35,tracking:-.17,tabular:true}),was:blockText({size:13,weight:400,lineHeight:20.15,color:"muted",tabular:true,deco:"strike"}),name:blockText({size:14,weight:500,lineHeight:18.2,wrap:"balance"}),meta:blockText({size:12,weight:400,lineHeight:16.2,color:"muted"}),metaAuto:blockText({size:12,weight:500,lineHeight:16.2,color:"#16864A"}),step:blockBox({w:112,h:38,radius:[19,19],bg:"surface",center:true,x:54.5,y:128.5}),stepIn:blockBox({w:112,h:38,radius:[19,19],bg:"ink",center:true,color:"surface",x:54.5,y:128.5}),stepAt:{right:8,bottom:8},stepButton:blockBox({w:38,h:38,radius:[19,19],center:true}),stepIcon:blockBox({w:18,h:18}),count:blockText({size:15,weight:700,lineHeight:23.25,color:"surface",tabular:true}),lift:{color:"rgba(0, 0, 0, 0.14)",x:0,y:2,blur:8,spread:0},per:blockText({size:12,weight:400,lineHeight:16.2,color:"muted",tabular:true}),metaAutoDark:blockText({size:12,weight:500,lineHeight:16.2,color:"ink"}),pill:blockBox({w:62.234,h:36,padding:[0,14,0,14],gap:[4,4],minHeight:36,radius:[999,999],bg:"go",center:true,x:104.266,y:130.5}),pillText:blockText({size:14,weight:700,lineHeight:21.7}),pillOn:blockBox({w:90.016,h:36,padding:[0,14,0,14],gap:[4,4],minHeight:36,radius:[999,999],bg:"surface",edge:{width:2,color:"text",ring:true},center:true,x:76.484,y:130.5}),pillOnText:blockText({size:14,weight:700,lineHeight:21.7}),pillIcon:blockBox({w:16,h:16}),pillSoft:blockBox({w:80.125,h:36,padding:[0,14,0,14],gap:[4,4],minHeight:36,radius:[999,999],bg:"surface",shadow:{color:"rgba(0, 0, 0, 0.14)",x:0,y:2,blur:8,spread:0},center:true,x:86.375,y:130.5}),pillSoftText:blockText({size:14,weight:700,lineHeight:21.7}),pillAt:{right:8,bottom:8},pillPressScale:.96},productBlend:{img:blockBox({w:174.5,h:174.5,padding:[32,14,16,14],fit:"contain"}),imgBlend:"multiply",lift:{color:"rgba(0, 0, 0, 0.08)",x:0,y:2,blur:8,spread:0},pill:blockBox({w:62.234,h:36,padding:[0,14,0,14],gap:[4,4],minHeight:36,radius:[999,999],bg:"pink",edge:{width:1,color:"ink",ring:true},center:true,color:"ink",x:104.266,y:130.5}),pillText:blockText({size:14,weight:700,lineHeight:21.7,color:"ink"}),pillOn:blockBox({w:90.016,h:36,padding:[0,14,0,14],gap:[4,4],minHeight:36,radius:[999,999],bg:"surface",edge:{width:2,color:"ink",ring:true},center:true,color:"ink",x:76.484,y:130.5}),pillOnText:blockText({size:14,weight:700,lineHeight:21.7,color:"ink"}),pillPressScale:.97},productWeb:{card:blockBox({w:306.656,h:370.641,gap:[2,2]}),square:blockBox({w:306.656,h:306.656,marginBottom:10,radius:[20,20],bg:"#F5F5F5"}),imgInsetTag:{share:[.11,.11,.1,.11],px:[26,0,0,0]},imgInset:{share:[.07,.07,.07,.07],px:[0,0,0,0]},imgFit:"contain",imgBlend:"multiply",tag:blockBox({w:112.516,h:30,padding:[0,12,0,8],gap:[5,5],minHeight:30,radius:[999,999],bg:"#F7E3E8",center:true,color:"ink",x:10,y:10}),tagText:blockText({size:13,weight:700,lineHeight:14.3,color:"ink"}),tagIcon:blockBox({w:16,h:16,color:"#CA4463"}),tagMix:.15,name:blockText({size:17,weight:500,lineHeight:22.1,wrap:"balance"}),nameLeading:1.3,coverRadius:20,price:blockBox({w:306.656,h:27.891,gap:[8,2]}),priceText:blockText({size:18,weight:700,lineHeight:27.9,tracking:-.18,tabular:true}),was:blockText({size:15,weight:400,lineHeight:23.25,tabular:true,deco:"strike"}),per:blockText({size:15,weight:400,lineHeight:23.25,tabular:true}),badge:blockBox({w:32.625,h:22,padding:[0,8,0,8],radius:[999,999],bg:"#DEE4F1",edge:{width:1.5,color:"rgba(90, 96, 135, 0.45)",ring:true},center:true}),badgeText:blockText({size:13,weight:700,lineHeight:13,tabular:true}),meta:blockText({size:15,weight:400,lineHeight:21}),add:blockBox({w:44,h:44,radius:[22,22],bg:"surface",shadow:{color:"rgba(0, 0, 0, 0.14)",x:0,y:2,blur:8,spread:0},center:true}),addIcon:blockBox({w:20,h:20}),actAt:{right:10,bottom:10},step:blockBox({w:116,h:44,radius:[22,22],bg:"ink",center:true,color:"surface"}),stepButton:blockBox({w:44,h:44,radius:[22,22],center:true,color:"surface"}),stepIcon:blockBox({w:18,h:18,color:"surface"}),count:blockText({size:15,weight:700,lineHeight:23.25,color:"surface",tabular:true}),pill:blockBox({w:68.688,h:44,padding:[0,16,0,16],gap:[6,6],minHeight:44,radius:[999,999],bg:"ink",center:true,color:"surface"}),pillText:blockText({size:15,weight:700,lineHeight:15,color:"surface"}),pillOn:blockBox({w:101.016,h:44,padding:[0,16,0,16],gap:[6,6],minHeight:44,radius:[999,999],bg:"surface",edge:{width:2,color:"ink",ring:true},center:true,color:"ink"}),pillOnText:blockText({size:15,weight:700,lineHeight:15,color:"ink"}),pillIcon:blockBox({w:18,h:18,color:"ink"}),pillSoft:blockBox({w:87.859,h:44,padding:[0,16,0,16],gap:[6,6],minHeight:44,radius:[999,999],bg:"surface",shadow:{color:"rgba(0, 0, 0, 0.14)",x:0,y:2,blur:8,spread:0},center:true}),pillSoftText:blockText({size:15,weight:700,lineHeight:15}),nameSteps:[{upTo:599,name:blockText({size:16,weight:500,lineHeight:20.8,wrap:"balance"})},{upTo:399,name:blockText({size:14,weight:500,lineHeight:18.2,wrap:"balance"})}],addPressScale:.94,stepPressScale:.88,pillPressScale:.97,imgInsetEven:{share:[.07,.07,.07,.07],px:[0,0,0,0]},imgInsetWhite:{share:[.11,.11,.14,.11],px:[0,0,0,0]},groundWhite:"surface",focusOffset:3,hover:{ring:{width:1.5,share:.45,color:"ink"},underlineOffset:3}},productRow:{card:blockBox({shown:false,w:361,h:109.328,gap:[12,12],center:true}),name:blockText({shown:false,size:17,weight:700,lineHeight:22.1,color:"ink"}),meta:blockText({shown:false,size:13,weight:400,lineHeight:18.85,color:"muted",marginTop:2})},cart:{line:blockBox({w:361,h:109.328,gap:[12,12],center:true}),name:blockBox({w:289,h:24,gap:[8,4],center:true,color:"ink"}),nameText:blockText({size:17,weight:700,lineHeight:22.1,color:"ink"}),meta:blockText({size:13,weight:400,lineHeight:18.85,color:"muted",marginTop:2}),price:blockText({size:17,weight:700,lineHeight:26.35,color:"ink",tabular:true}),was:blockText({shown:false,size:13,weight:400,lineHeight:18.85,color:"muted",marginTop:2}),acts:blockBox({w:289,h:20.141,marginTop:6,gap:[16,16]}),remove:blockText({size:13,weight:700,lineHeight:20.15,color:"ink",deco:"underline",decoOffset:3}),removeBox:blockBox({w:53.016,h:20.141,color:"ink"}),end:blockBox({w:289,h:26.344,gap:[4,4]})},cartSquare:{line:blockBox({w:361,h:95.094,gap:[12,12]}),sm:blockBox({w:48,h:48,radius:[12,12],bg:"#F3F3F3"}),md:blockBox({w:52,h:52,radius:[12,12],bg:"#F3F3F3"}),lg:blockBox({w:56,h:56,radius:[12,12],bg:"#F3F3F3"}),imgInset:.1,imgFit:"contain",imgBlend:"multiply",name:blockBox({w:239.109,h:20,gap:[6,4],center:true}),nameText:blockText({size:15,weight:700,lineHeight:19.5}),link:blockText({size:15,weight:700,lineHeight:19.5}),linkReach:4,badge:blockBox({w:29.344,h:20,padding:[0,7,0,7],radius:[999,999],bg:"#E0E6F2",edge:{width:1.5,color:"rgba(90, 96, 135, 0.45)",ring:true},center:true}),badgeText:blockText({size:12,weight:700,lineHeight:12}),meta:blockText({size:13,weight:400,lineHeight:17.55,color:"muted",marginTop:2}),acts:blockBox({w:239.109,h:32,marginTop:6,gap:[16,16]}),act:blockText({size:13,weight:700,lineHeight:20.15,color:"ink",deco:"underline",decoOffset:3}),actBox:blockBox({w:84.531,h:32,minHeight:32,color:"ink"}),price:blockText({size:15,weight:700,lineHeight:23.25,tabular:true}),was:blockText({size:13,weight:400,lineHeight:20.15,color:"muted",tabular:true,deco:"strike"})},cartWeb:{line:blockBox({w:404,h:88,gap:[16,0],center:true}),sq:blockBox({w:88,h:88,radius:[14,14],bg:"#F3F3F3"}),imgInset:.1,imgFit:"contain",imgBlend:"multiply",name:blockBox({w:225.875,h:24.688,gap:[8,4],center:true}),nameText:blockText({size:19,weight:700,lineHeight:24.7}),link:blockText({size:19,weight:700,lineHeight:24.7}),linkReach:4,badge:blockBox({w:32.625,h:22,padding:[0,8,0,8],radius:[999,999],bg:"#DEE4F1",center:true}),badgeText:blockText({size:13,weight:700,lineHeight:13}),meta:blockText({size:15,weight:400,lineHeight:21,marginTop:2}),price:blockText({size:19,weight:700,lineHeight:29.45,tabular:true}),was:blockText({size:15,weight:400,lineHeight:23.25,tabular:true,deco:"strike"}),narrow:{upTo:599,sq:blockBox({w:64,h:64,radius:[14,14],bg:"#F3F3F3"}),cost:blockBox({w:432,h:29.438,marginTop:4,gap:[8,8]}),nameText:blockText({size:17,weight:700,lineHeight:22.1}),link:blockText({size:17,weight:700,lineHeight:22.1})},narrower:{upTo:330,sq:blockBox({w:56,h:56,radius:[14,14],bg:"#F3F3F3"}),cost:blockBox({w:216,h:29.438,marginTop:4,gap:[8,8]}),nameText:blockText({size:17,weight:700,lineHeight:22.1}),link:blockText({size:17,weight:700,lineHeight:22.1})},phone:{upTo:639,line:blockBox({w:303,h:81.25,gap:[12,0],center:true}),sq:blockBox({w:56,h:56,radius:[12,12],bg:"#F3F3F3"}),cost:blockBox({w:235,h:23.25,marginTop:2,gap:[8,8]}),nameText:blockText({size:15,weight:700,lineHeight:19.5}),link:blockText({size:15,weight:700,lineHeight:19.5}),meta:blockText({size:13,weight:400,lineHeight:17.55,marginTop:2}),price:blockText({size:15,weight:700,lineHeight:23.25,tabular:true}),was:blockText({size:13,weight:400,lineHeight:20.15,tabular:true,deco:"strike"}),smallUpTo:359,smallSq:48}},cartDrawer:{line:blockBox({w:360,h:147.094,gap:[14,0]}),img:blockBox({w:64,h:64,radius:[14,14],bg:"surface",edge:{width:1.5,color:"#C6D3CD",ring:true}}),imgInset:6,imgFit:"contain",name:blockBox({w:216,h:22.094,gap:[8,4],center:true}),nameText:blockText({size:17,weight:700,lineHeight:22.1,wrap:"auto"}),badge:blockBox({w:32.625,h:22,padding:[0,8,0,8],radius:[999,999],bg:"#DEE4F1",edge:{width:1.5,color:"rgba(90, 96, 135, 0.45)",ring:true},center:true}),badgeText:blockText({size:13,weight:700,lineHeight:13,wrap:"auto"}),meta:blockText({size:15,weight:400,lineHeight:21,marginTop:2}),note:blockText({size:15,weight:700,lineHeight:21,color:"ink",marginTop:2}),acts:blockBox({w:282,h:92,marginTop:10,gap:[12,8],center:true}),plan:blockBox({w:193.703,h:44,padding:[3,3,3,3],radius:[999,999],bg:"surface",edge:{width:1.5,color:"#C6D3CD",ring:true}}),planBtn:blockBox({w:63.859,h:38,padding:[0,14,0,14],minHeight:38,radius:[999,999]}),planText:blockText({size:15,weight:500,lineHeight:23.25,wrap:"auto"}),planOn:blockBox({w:123.844,h:38,padding:[0,14,0,14],minHeight:38,radius:[999,999],bg:"ink",color:"surface"}),planOnText:blockText({size:15,weight:700,lineHeight:23.25,color:"surface",wrap:"auto"}),qty:blockBox({w:104,h:40,radius:[999,999],bg:"surface",edge:{width:1.5,color:"#C6D3CD",ring:true},center:true}),countMin:24,qtyBtn:blockBox({w:40,h:40,radius:[20,20],center:true}),qtyIcon:blockBox({w:16,h:16}),count:blockText({size:15,weight:700,lineHeight:23.25,wrap:"auto",tabular:true}),remove:blockBox({w:58.359,h:40,minHeight:40,color:"ink"}),removeText:blockText({size:15,weight:700,lineHeight:23.25,color:"ink",wrap:"auto",deco:"underline",decoOffset:3}),price:blockText({size:17,weight:700,lineHeight:22.1,wrap:"auto",tabular:true}),was:blockText({size:15,weight:400,lineHeight:19.5,wrap:"auto",tabular:true,deco:"strike"}),pressScale:.9,hover:{color:"ink",share:.06,over:"surface"},motion:{press:140,fill:150,planFill:150}},price:{note:blockText({size:13,weight:400,lineHeight:19.5,color:"muted",marginTop:12}),noteStrong:blockText({size:13,weight:700,lineHeight:19.5,color:"muted"})},priceWeb:{rows:blockBox({w:536,h:166.625,gap:[10,10]}),row:blockBox({w:536,h:26.344,gap:[16,16]}),term:blockText({size:17,weight:400,lineHeight:26.35,wrap:"balance"}),value:blockText({size:17,weight:700,lineHeight:26.35,tabular:true}),off:blockText({size:17,weight:700,lineHeight:26.35,color:"ink",wrap:"balance"}),total:blockBox({w:536,h:49.594,marginTop:8,gap:[16,16]}),totalTerm:blockText({size:20,weight:700,lineHeight:31,wrap:"balance"}),totalValue:blockText({size:32,weight:700,lineHeight:49.6,tracking:-.64,tabular:true}),note:blockText({size:15,weight:400,lineHeight:22.5,marginTop:16}),noteStrong:blockText({size:15,weight:700,lineHeight:22.5,color:"ink"}),phone:{upTo:639,rows:blockBox({w:239,h:145.141,gap:[8,8]}),term:blockText({size:15,weight:400,lineHeight:23.25,wrap:"balance"}),value:blockText({size:15,weight:700,lineHeight:23.25,tabular:true}),totalTerm:blockText({size:18,weight:700,lineHeight:27.9,wrap:"balance"}),totalValue:blockText({size:28,weight:700,lineHeight:43.4,tracking:-.56,tabular:true}),note:blockText({size:15,weight:400,lineHeight:22.5,marginTop:12})},drawer:{rows:blockBox({w:360,h:154.219,marginTop:32,gap:[10,10]}),term:blockText({size:17,weight:400,lineHeight:26.35,wrap:"balance"}),value:blockText({size:17,weight:700,lineHeight:26.35,tabular:true}),totalTerm:blockText({size:20,weight:700,lineHeight:31,wrap:"balance"}),totalValue:blockText({size:24,weight:700,lineHeight:37.2,tabular:true}),note:blockText({size:15,weight:400,lineHeight:22.5,marginTop:12})}},need:{card:blockBox({w:325,h:125.25,padding:[14,16,14,16],radius:[0,20],bg:"surface",shadow:{color:"rgba(0, 0, 0, 0.06)",x:0,y:2,blur:3,spread:-1}}),kicker:blockBox({w:293,h:24,gap:[8,8],center:true}),kickerText:blockText({size:15,weight:700,lineHeight:23.25}),source:blockBox({w:116.719,h:24,padding:[0,9,0,9],radius:[999,999],bg:"#DAF6E8",center:true,color:"ink"}),sourceText:blockText({size:12,weight:700,lineHeight:18.6,color:"ink"}),title:blockText({shown:false,size:15,weight:700,lineHeight:23.25}),signal:blockBox({w:293,h:65.25,marginTop:8,gap:[9,9],color:"#4D4D4D"}),signalText:blockText({size:15,weight:400,lineHeight:21.75,color:"#4D4D4D"}),signalLead:blockText({size:15,weight:700,lineHeight:21.75}),dot:blockBox({w:9,h:9,radius:[4.5,4.5],bg:"alert",color:"#4D4D4D",dy:-1}),score:blockBox({w:293,h:99.859,padding:[10,14,10,14],marginTop:12,gap:[12,12],radius:[10,10],bg:"#FCF0D6",center:true}),scoreLabel:blockText({size:14,weight:600,lineHeight:18.9,color:"#4D4D4D"}),scoreTag:blockBox({w:63.125,h:20.188,padding:[2,6,2,6],marginTop:3,radius:[6,6],bg:"surface"}),scoreTagText:blockText({size:12,weight:600,lineHeight:16.2,tracking:.72,face:"mono",upper:true,marginTop:3,paddingTop:2}),scoreNums:blockBox({w:106.109,h:51.141,gap:[6,0],center:true}),scoreWas:blockText({size:17,weight:700,lineHeight:26.35,color:"muted",deco:"strike",decoThickness:1.5}),scoreArrow:blockBox({w:16,h:16,color:"muted"}),scoreArrowFlip:true,scoreNow:blockText({size:28,weight:700,lineHeight:28,tracking:-.84,tabular:true}),scoreOf:blockText({size:15,weight:700,lineHeight:15,color:"#4D4D4D",tabular:true}),scoreSince:blockText({size:13,weight:700,lineHeight:20.15,color:"ink",marginTop:3})},needPlan:{card:blockBox({w:329,h:380.172,padding:[16,16,16,16],marginTop:14,radius:[22,22],bg:"surface",shadow:{color:"rgba(38, 37, 35, 0.06)",x:0,y:1,blur:3,spread:0},color:"#262523"}),kicker:blockBox({w:297,h:24,gap:[8,8],center:true,color:"#262523"}),kickerText:blockText({size:15,weight:800,lineHeight:22.5,color:"#262523"}),source:blockBox({w:83.375,h:24,padding:[0,9,0,9],radius:[999,999],bg:"#F2F1EE",center:true,color:"#4A4845"}),sourceText:blockText({size:12,weight:700,lineHeight:18,color:"#4A4845"}),title:blockText({size:19,weight:800,lineHeight:23.18,color:"#262523",marginTop:12}),signal:blockBox({w:297,h:65.25,marginTop:6,gap:[9,9],color:"#4A4845"}),signalText:blockText({size:15,weight:400,lineHeight:21.75,color:"#4A4845"}),signalLead:blockText({size:15,weight:800,lineHeight:21.75,color:"#262523"}),dot:blockBox({w:9,h:9,radius:[4.5,4.5],bg:"#E5372B",color:"#4A4845",dy:-1}),score:blockBox({w:297,h:69.75,padding:[10,14,10,14],marginTop:12,gap:[12,12],radius:[14,14],bg:"planAccentWash",center:true,color:"#262523"}),scoreLabel:blockText({size:13.5,weight:600,lineHeight:18.225,color:"#4A4845",wrap:"balance"}),scoreTag:blockBox({w:51.609,h:17.5,padding:[2,6,2,6],marginTop:3,radius:[5,5],bg:"surface",color:"#262523"}),scoreTagText:blockText({size:10,weight:600,lineHeight:13.5,color:"#262523",tracking:.6,face:"mono",upper:true,wrap:"balance",marginTop:3,paddingTop:2}),scoreNums:blockBox({w:94.75,h:49.75,gap:[6,0],center:true,color:"#262523"}),scoreWas:blockText({size:17,weight:700,lineHeight:25.5,color:"#6B6863",deco:"strike"}),scoreArrow:blockBox({w:16,h:16,color:"#6B6863"}),scoreArrowFlip:true,scoreNow:blockText({size:28,weight:800,lineHeight:28,color:"#262523"}),scoreOf:blockText({size:13,weight:800,lineHeight:13,color:"muted"}),scoreSince:blockText({size:12.5,weight:700,lineHeight:18.75,color:"planLink",marginTop:3}),sources:blockBox({w:131.375,h:24,gap:[4,4],color:"#262523"}),sourceDna:blockBox({w:44,h:24,padding:[0,9,0,9],radius:[999,999],bg:"planLinkWash",center:true,color:"planLink"}),sourceDnaText:blockText({size:12,weight:700,lineHeight:18,color:"planLink"}),dotWatch:blockBox({w:9,h:9,radius:[4.5,4.5],bg:"#E5A000",color:"#4A4845",dy:-1}),dotClear:blockBox({w:9,h:9,radius:[4.5,4.5],bg:"#5FA82B",color:"#4A4845",dy:-1}),scoreLabelMax:135,says:blockBox({w:297,h:52,padding:[10,12,10,12],marginTop:12,gap:[10,10],radius:[14,14],bg:"#F8F7F4",color:"#262523"}),saysImg:blockBox({w:32,h:32,radius:[16,16],color:"#262523"}),saysText:blockText({size:14.5,weight:400,lineHeight:20.3,color:"#4A4845"}),saysBy:blockText({size:14.5,weight:800,lineHeight:20.3,color:"#262523"}),saysByGap:2,saysTag:blockBox({w:51.609,h:15,padding:[2,6,2,6],radius:[5,5],bg:"surface",color:"#262523"}),saysTagText:blockText({size:10,weight:400,lineHeight:14,color:"#262523",tracking:.6,face:"mono",upper:true,paddingTop:2}),saysBare:blockBox({w:297,h:81,padding:[10,12,10,12],marginTop:12,gap:[10,10],radius:[14,14],bg:"#F8F7F4",color:"#262523"}),saysKicker:blockText({size:17,weight:400,lineHeight:25.5,color:"#262523"}),saysSerif:blockText({size:17,weight:800,lineHeight:25.5,color:"#262523",tracking:-.17,wrap:"balance"}),jump:blockBox({w:297,h:60,padding:[8,14,8,8],marginTop:12,gap:[12,12],radius:[14,14],bg:"planInk",center:true,color:"planOnInk"}),jumpImg:blockBox({w:44,h:44,radius:[10,10],bg:"surface",color:"surface"}),jumpKicker:blockText({size:13,weight:800,lineHeight:19.5,color:"planAccent"}),jumpTitle:blockText({size:15,weight:800,lineHeight:18.75,color:"planOnInk"}),jumpGo:blockText({size:14,weight:800,lineHeight:21,color:"planOnInk"}),jumpPressScale:.98,more:blockBox({w:87.547,h:36,marginTop:6,marginBottom:-4,gap:[4,4],minHeight:36,center:true,color:"planLink"}),moreText:blockText({size:15,weight:800,lineHeight:22.5,color:"planLink"}),moreIcon:blockBox({w:16,h:16,color:"planLink"}),moreInset:16,moreTurn:{closed:90,open:-90},rep:blockBox({w:297,h:48.5,padding:[14,14,12,14],marginTop:10,radius:[16,16],bg:"#F8F7F4",color:"#262523"})},tip:{card:blockBox({w:201.5,h:275.031,padding:[8,10,10,10],radius:[20,20],bg:"#FCF0D6"}),tones:{y:"#FCF0D6",c:"tintBlue",g:"tintGo",r:"tintPink"},img:blockBox({w:181.5,h:113.438,radius:[10,10],bg:"#F3F3F3"}),n:blockBox({w:28,h:28,radius:[14,14],bg:"surface",center:true,x:8,y:8}),nText:blockText({size:14,weight:700,lineHeight:14}),title:blockText({size:16,weight:700,lineHeight:20,marginTop:10}),text:blockText({size:15,weight:400,lineHeight:21,color:"#4D4D4D",marginTop:4}),foot:blockBox({w:181.5,h:26.594,padding:[8,0,0,0],gap:[4,4],center:true,color:"ink"}),footText:blockText({size:12,weight:400,lineHeight:18.6,color:"ink",tracking:.48,face:"mono",upper:true,paddingTop:8}),footArrow:blockBox({w:14,h:14,color:"ink"}),footArrowFlip:true,pressScale:.98,bare:blockBox({w:181.5,h:42,padding:[2,0,0,0],center:true}),thumb:blockBox({w:40,h:40,radius:[10,10],bg:"surface",center:true}),thumbIcon:blockBox({w:22,h:22})},tipPhoto:{card:blockBox({w:221,h:152,padding:[8,8,12,8],radius:[20,20],bg:"#FCF0D6"}),tones:{y:"#FCF0D6",c:"#EEDCC8",g:"tintGo",r:"tintPink"},img:blockBox({w:205,h:102.5,radius:[10,10],bg:"#F3F3F3"}),imgAspect:2,n:blockBox({w:28,h:28,radius:[14,14],bg:"surface",center:true,x:8,y:8}),nText:blockText({size:14,weight:700,lineHeight:14}),title:blockText({size:15,weight:700,lineHeight:19.5,marginTop:10}),titleInset:4,pressScale:.98,bare:blockBox({w:205,h:42,padding:[2,0,0,0],center:true}),thumb:blockBox({w:40,h:40,radius:[10,10],bg:"surface",center:true}),thumbIcon:blockBox({w:22,h:22,color:"ink"})},tipWeb:{card:blockBox({w:226,h:172.047,gap:[10,10]}),img:blockBox({w:226,h:141.25,radius:[14,14]}),imgAspect:1.6,title:blockText({size:16,weight:700,lineHeight:20.8,wrap:"balance"}),coverRadius:10,row:{from:440,card:blockBox({w:400,h:80,padding:[6,0,6,0],gap:[10,10],minHeight:80,center:true}),img:blockBox({w:64,h:64,radius:[10,10]}),arrowColumn:18,arrow:blockBox({w:18,h:18,color:"ink"}),arrowTurn:180},phone:{upTo:639,card:blockBox({w:216,h:162.5,gap:[8,8]}),img:blockBox({w:216,h:135,radius:[14,14]}),imgAspect:1.6,title:blockText({size:15,weight:700,lineHeight:19.5,wrap:"balance"}),smallUpTo:359,smallW:208},mark:{tile:blockBox({w:226,h:141.25,radius:[14,14],bg:"#F5F5F5",center:true,color:"ink"}),icon:{share:.36,min:16,max:40,color:"ink"}},ring:{width:2,offset:2,color:"text"},hoverOffset:3},tipPlan:{card:blockBox({w:225.406,h:182.844,padding:[14,14,12,14],radius:[18,18],bg:"planAccentChip",color:"#262523"}),tones:{y:"planAccentChip",c:"planLinkChip",g:"#DDEFC4",r:"#FFD8D6"},top:blockBox({w:197.406,h:30,center:true,color:"#262523"}),nText:blockText({size:30,weight:900,lineHeight:30,color:"#262523"}),icon:blockBox({w:26,h:26,color:"#262523"}),title:blockText({size:17,weight:800,lineHeight:21.25,color:"#262523",marginTop:14}),text:blockText({size:14.5,weight:400,lineHeight:20.3,color:"#4A4845",marginTop:4}),foot:blockBox({w:197.406,h:25.75,padding:[10,0,0,0],color:"planLink"}),footText:blockText({size:10.5,weight:400,lineHeight:15.75,color:"planLink",tracking:.42,face:"mono",upper:true,paddingTop:10})},cartPlan:{line:blockBox({w:297,h:95.625,gap:[12,12],color:"#262523"}),img:blockBox({w:64,h:64,radius:[14,14],bg:"planLinkWash",center:true,color:"planLink"}),icon:blockBox({w:28,h:28,color:"planLink"}),name:blockText({size:16.5,weight:800,lineHeight:20.625,color:"#262523",wrap:"balance"}),prices:blockBox({w:221,h:24,marginTop:3,gap:[8,2],center:true,color:"#262523"}),price:blockText({size:16,weight:800,lineHeight:24,color:"#262523",tabular:true}),was:blockText({size:14,weight:600,lineHeight:21,color:"#6B6863",deco:"strike"}),small:blockText({size:14,weight:400,lineHeight:21,color:"#6B6863"}),acts:blockBox({w:221,h:40,marginTop:8,gap:[16,16],center:true,color:"#262523"}),step:blockBox({w:110,h:40,radius:[999,999],bg:"surface",edge:{width:1.5,color:"#DAD7D1",ring:true},center:true,color:"#262523"}),remove:blockBox({w:56.422,h:40,minHeight:40,color:"#4A4845"}),removeText:blockText({size:14.5,weight:700,lineHeight:21.75,color:"#4A4845",deco:"underline",decoOffset:3,decoThickness:1.5})},cartBar:{bar:blockBox({w:361,h:66,padding:[8,8,8,10],gap:[10,10],minHeight:60,radius:[22,22],bg:"surface",shadow:{color:"rgba(0, 0, 0, 0.06)",x:0,y:1,blur:3,spread:0},center:true,x:16}),lift:{color:"rgba(0, 0, 0, 0.09)",x:0,y:10,blur:28,spread:0},thumbs:blockBox({w:88,h:44,padding:[0,4,0,0],center:true}),thumb:blockBox({w:40,h:40,radius:[12,12],bg:"#F3F3F3"}),thumbRing:2,thumbOverlap:18,imgInset:4,imgFit:"contain",imgBlend:"multiply",count:blockBox({w:20,h:20,padding:[0,5,0,5],radius:[10,10],bg:"text",center:true,color:"surface",x:72,y:-4}),countText:blockText({size:12,weight:700,lineHeight:12,color:"surface",tabular:true}),countAt:{top:-4,right:-4},sum:blockBox({w:130.656,h:35.688,gap:[2,2]}),total:blockText({size:17,weight:700,lineHeight:18.7,tracking:-.17,tabular:true}),sub:blockText({size:12,weight:400,lineHeight:15,color:"muted"}),go:blockBox({w:104.344,h:50,padding:[0,18,0,18],gap:[6,6],minHeight:50,radius:[999,999],bg:"pink",edge:{width:1,color:"ink",ring:true},center:true,color:"ink"}),goText:blockText({size:15,weight:700,lineHeight:23.25,color:"ink"}),pressScale:.97,hover:{color:"pink",share:.9,over:"text"},motion:{rise:{duration:240,from:24,fade:false},bump:{duration:240,scale:1.12,peakAt:.5,curve:"ease-out"}}},cartBarWeb:{bar:blockBox({w:600,h:68,padding:[10,10,10,14],gap:[14,14],minHeight:68,radius:[26,26],bg:"surface",shadow:{color:"rgba(0, 0, 0, 0.06)",x:0,y:1,blur:3,spread:0},center:true}),lift:{color:"rgba(0, 0, 0, 0.09)",x:0,y:10,blur:28,spread:0},thumbs:blockBox({w:102,h:44,padding:[0,6,0,0],center:true}),thumb:blockBox({w:44,h:44,padding:[4,4,4,4],radius:[12,12],bg:"surface",shadow:{color:"rgba(0, 0, 0, 0.14)",x:0,y:1,blur:3,spread:0},fit:"contain"}),thumbRing:2,thumbOverlap:18,imgInset:4,imgFit:"contain",imgBlend:"normal",count:blockBox({w:22,h:22,padding:[0,6,0,6],radius:[11,11],bg:"go",center:true,x:83,y:-5}),countText:blockText({size:12,weight:700,lineHeight:12,wrap:"auto",tabular:true}),countAt:{top:-5,right:-3},sum:blockBox({w:307.484,h:43.5,gap:[2,2]}),total:blockText({size:20,weight:700,lineHeight:22,color:"ink",tracking:-.2,tabular:true}),sub:blockText({size:15,weight:400,lineHeight:19.5}),go:blockBox({w:138.516,h:48,padding:[0,22,0,22],minHeight:48,radius:[999,999],bg:"ink",color:"surface"}),goText:blockText({size:17,weight:700,lineHeight:26.35,color:"surface",wrap:"auto"}),pressScale:.97,hover:{color:"ink",share:.86,over:"text"},motion:{rise:{duration:260,from:24,fade:true},bump:{duration:240,scale:1.1,peakAt:.5,curve:"out"}},phone:{upTo:559,bar:blockBox({w:335,h:79,padding:[8,8,8,10],gap:[10,10],minHeight:64,radius:[22,22],bg:"surface",center:true}),thumb:blockBox({w:40,h:40,padding:[4,4,4,4],radius:[12,12],bg:"surface",shadow:{color:"#FFFFFF",x:0,y:0,blur:0,spread:2},fit:"contain"}),go:blockBox({w:94.594,h:48,padding:[0,18,0,18],minHeight:48,radius:[999,999],bg:"ink",color:"surface"}),lastOnly:true,wordHidden:true}},why:{card:blockBox({w:393,h:655.609}),head:blockBox({w:393,h:126.328,padding:[4,16,12,16],gap:[12,12]}),pic:blockBox({w:64,h:64,radius:[10,10],bg:"#F3F3F3"}),packInset:.08,kind:blockText({size:12,weight:700,lineHeight:18.6,color:"ink",tracking:.72,face:"mono",upper:true}),title:blockText({size:22,weight:700,lineHeight:24.64,tracking:-.55,marginTop:2}),sub:blockText({size:14,weight:400,lineHeight:18.9,color:"#4D4D4D",marginTop:3}),close:blockBox({w:36,h:36,padding:[1,6,1,6],radius:[18,18],center:true,color:"ink"}),closeIcon:blockBox({w:20,h:20,color:"ink"}),body:blockBox({w:393,h:529.281,padding:[0,16,24,16],gap:[12,12]}),box:blockBox({w:361,h:169.281,padding:[14,14,14,14],radius:[20,20],bg:"tintPink"}),heading:blockText({size:17,weight:700,lineHeight:21.25}),rows:blockBox({w:333,h:110.031,marginTop:10,gap:[10,10]}),row:blockText({size:15,weight:400,lineHeight:21.75}),rowHead:blockText({size:12,weight:400,lineHeight:17.4,color:"ink",tracking:.48,face:"mono",upper:true}),secHeading:blockText({size:17,weight:700,lineHeight:21.25}),how:blockBox({w:361,h:49.5,marginTop:8,gap:[6,6]}),bullet:blockBox({w:361,h:21.75,gap:[8,8],color:"#4D4D4D"}),bulletText:blockText({size:15,weight:400,lineHeight:21.75,color:"#4D4D4D"}),bulletColumn:14,dot:{size:6,top:9,color:"ink"},para:blockText({size:15,weight:400,lineHeight:22.5,color:"#4D4D4D",marginTop:6}),acts:blockBox({w:361,h:98,gap:[2,2]}),btn:blockBox({w:361,h:52,padding:[0,20,0,20],gap:[8,8],minHeight:52,radius:[999,999],bg:"ink",center:true,color:"surface"}),btnText:blockText({size:16,weight:700,lineHeight:24.8,color:"surface"}),more:blockBox({w:164.891,h:44,padding:[0,12,0,12],minHeight:44,center:true,color:"ink"}),moreText:blockText({size:15,weight:700,lineHeight:23.25,color:"ink",deco:"underline",decoOffset:3,decoThickness:1.5}),tones:{calm:"tintBlue",y:"#FCF0D6",c:"#EEDCC8",g:"tintGo",r:"tintPink"},photoBg:"#F3F3F3",closeHover:"tintSage",pressScale:.97,hover:{color:"ink",share:.88,over:"surface"}},whyWeb:{card:blockBox({w:558,h:571.375}),head:blockBox({w:558,h:105.375,padding:[24,24,12,24],gap:[12,12]}),pic:blockBox({w:64,h:64,radius:[10,10],bg:"#F5F5F5"}),packInset:.08,kind:blockText({size:15,weight:700,lineHeight:19.5,color:"ink"}),title:blockText({size:22,weight:500,lineHeight:24.64,color:"ink",tracking:-.44,marginTop:2}),sub:blockText({size:15,weight:400,lineHeight:20.25,marginTop:3}),close:blockBox({w:40,h:40,padding:[1,6,1,6],radius:[20,20],center:true}),closeIcon:blockBox({w:20,h:20}),body:blockBox({w:558,h:466,padding:[0,24,24,24],gap:[22,22]}),box:blockBox({w:510,h:129}),heading:blockText({size:16,weight:700,lineHeight:20}),rows:blockBox({w:510,h:99,marginTop:10,gap:[12,12]}),row:blockText({size:15,weight:400,lineHeight:21.75}),rowHead:blockText({size:15,weight:700,lineHeight:21.75,color:"ink"}),secHeading:blockText({size:16,weight:700,lineHeight:20}),how:blockBox({w:510,h:49.5,marginTop:8,gap:[6,6]}),bullet:blockBox({w:510,h:21.75,gap:[8,8]}),bulletText:blockText({size:15,weight:400,lineHeight:21.75}),bulletColumn:14,dot:{size:6,top:9.75,color:"ink"},para:blockText({size:15,weight:400,lineHeight:22.5,marginTop:6}),acts:blockBox({w:510,h:92,gap:[2,2]}),btn:blockBox({w:510,h:46,padding:[0,20,0,20],gap:[8,8],minHeight:46,radius:[999,999],bg:"ink",center:true,color:"surface"}),btnText:blockText({size:17,weight:400,lineHeight:26.35,color:"surface",wrap:"auto"}),more:blockBox({w:164.891,h:44,padding:[0,12,0,12],minHeight:44,center:true,color:"ink"}),moreText:blockText({size:15,weight:700,lineHeight:23.25,color:"ink",wrap:"auto",deco:"underline",decoOffset:3,decoThickness:1.5}),photoBg:"surface",closeHover:"none",pressScale:.97,hover:{color:"ink",share:.88,over:"surface"},phone:{upTo:419,head:blockBox({w:341,h:145.031,padding:[24,24,12,24],gap:[10,10]}),pic:blockBox({w:48,h:48,radius:[10,10],bg:"#F5F5F5"}),title:blockText({size:20,weight:500,lineHeight:22.4,color:"ink",tracking:-.4,marginTop:2})}},whyPlan:{card:blockBox({w:329,h:323.109,padding:[12,14,12,14],radius:[16,16],edge:{width:1.5,color:"#262523",ring:true},color:"#262523"}),heading:blockText({size:10.5,weight:400,lineHeight:15.75,color:"#6B6863",tracking:.63,face:"mono",upper:true}),row:blockBox({w:301,h:59.688,marginTop:10,gap:[10,10],color:"#262523"}),chipColumn:58,chips:{dna:{box:blockBox({w:58,h:22,radius:[6,6],bg:"planLinkWash",center:true,color:"planLink"}),text:blockText({size:10.5,weight:700,lineHeight:15.75,color:"planLink",tracking:.42,face:"mono",upper:true})},record:{box:blockBox({w:58,h:22,radius:[6,6],bg:"#F2F1EE",center:true,color:"#4A4845"}),text:blockText({size:10.5,weight:700,lineHeight:15.75,color:"#4A4845",tracking:.42,face:"mono",upper:true})},ask:{box:blockBox({w:58,h:22,radius:[6,6],bg:"planAccentWash",center:true,color:"#262523"}),text:blockText({size:10.5,weight:700,lineHeight:15.75,color:"#262523",tracking:.42,face:"mono",upper:true})}},rowTitle:blockText({size:15,weight:800,lineHeight:19.5,color:"#262523"}),rowBody:blockText({size:14,weight:400,lineHeight:19.6,color:"#4A4845",marginTop:1}),score:blockBox({w:301,h:42.797,padding:[11,12,11,14],marginTop:12,gap:[8,8],radius:[12,12],bg:"planInk",center:true,color:"planOnInk"}),scoreText:blockText({size:14.5,weight:800,lineHeight:18.85,color:"planOnInk"}),scoreValue:blockText({size:16,weight:700,lineHeight:20.8,color:"planAccent",face:"mono"})},lights:{card:blockBox({w:325,h:134,marginTop:14}),head:blockBox({w:325,h:24,marginBottom:10,gap:[12,12],center:true}),lead:blockText({size:14,weight:400,lineHeight:18.2,color:"#3D3D3D"}),name:blockText({size:14,weight:700,lineHeight:18.2,color:"ink"}),pills:{better:{box:blockBox({w:66.094,h:24,padding:[0,10,0,10],minHeight:24,radius:[999,999],bg:"#D7F5E7",center:true,color:"ink"}),text:blockText({size:12,weight:700,lineHeight:12,color:"ink",tracking:.48,face:"mono"})},same:{box:blockBox({w:50.734,h:24,padding:[0,10,0,10],minHeight:24,radius:[999,999],bg:"#FBEED0",center:true,color:"ink"}),text:blockText({size:12,weight:700,lineHeight:12,color:"ink",tracking:.48,face:"mono"})},worse:{box:blockBox({w:58.406,h:24,padding:[0,10,0,10],minHeight:24,radius:[999,999],bg:"#F6EBDE",center:true,color:"#834D0D"}),text:blockText({size:12,weight:700,lineHeight:12,color:"#834D0D",tracking:.48,face:"mono"})}},viz:blockBox({w:325,h:56}),grid:{rows:10,gap:1.5,radius:1.5,widthShare:.6},zones:{lot:6.5,some:3.5},colors:{go:"go",some:"#E4BA55",lot:"#BC6E13"},src:blockBox({w:325,h:44,gap:[16,0],center:true}),srcBtn:blockBox({w:181.5,h:44,gap:[6,6],minHeight:44,center:true,color:"#4D4D4D"}),srcText:blockText({size:14,weight:400,lineHeight:21.7,color:"#4D4D4D"}),srcIcon:blockBox({w:16,h:16,color:"#5A6087"}),act:blockBox({w:221.172,h:44,padding:[0,20,0,20],marginTop:6,marginBottom:14,minHeight:44,radius:[999,999],bg:"surface",edge:{width:1.5,color:"ink",ring:true},center:true,color:"ink"}),actText:blockText({size:15,weight:700,lineHeight:23.25,color:"ink",marginTop:6})},checkin:{card:blockBox({w:393,h:179.25}),body:blockBox({w:393,h:99.25,padding:[0,16,24,16],gap:[24,24]}),question:blockText({size:17,weight:700,lineHeight:21.25}),picks:blockBox({w:361,h:96,marginTop:10,gap:[8,8]}),pick:blockBox({w:115,h:44,padding:[4,4,4,4],gap:[6,6],minHeight:44,radius:[999,999],bg:"surface",edge:{width:1,color:"ink",ring:false},center:true,color:"ink"}),pickText:blockText({size:15,weight:400,lineHeight:18,color:"ink",wrap:"balance",paddingTop:4}),pickOn:blockBox({w:115,h:44,padding:[4,4,4,4],gap:[6,6],minHeight:44,radius:[999,999],bg:"pink",edge:{width:1,color:"pink",ring:false},center:true,color:"ink"}),pickOnText:blockText({size:15,weight:700,lineHeight:18,color:"ink",wrap:"balance",paddingTop:4}),pickHover:{color:"pink",share:.3,over:"surface"},stepTop:16,row:blockBox({w:361,h:44,gap:[8,8],minHeight:44,center:true}),rowLabel:blockText({size:15,weight:400,lineHeight:18.75}),rowValue:blockText({size:15,weight:700,lineHeight:18.75}),rowIcon:blockBox({w:18,h:18,color:"ink"}),rowTurn:90,rowPressScale:.98,note:blockBox({w:361,h:60.594,padding:[10,12,10,12],marginTop:12,radius:[10,10],bg:"#FFE8E6"}),noteText:blockText({size:14,weight:400,lineHeight:20.3,marginTop:12,paddingTop:10}),noteLink:blockText({size:14,weight:700,lineHeight:20.3,deco:"underline",decoOffset:3}),done:blockText({size:15,weight:400,lineHeight:21,wrap:"balance",marginTop:12}),acts:blockBox({w:361,h:52,gap:[2,2]}),btn:blockBox({w:361,h:52,padding:[0,20,0,20],gap:[8,8],minHeight:52,radius:[999,999],bg:"ink",center:true,color:"surface"}),btnText:blockText({size:16,weight:700,lineHeight:24.8,color:"surface"})},weather:{card:blockBox({w:361,h:321.734,padding:[16,16,16,16],gap:[16,16],radius:[20,20],bg:"#FCF4E0"}),skies:{sun:"#FCF4E0",blue:"tintBlue"},now:blockBox({w:329,h:113.891,gap:[12,12],center:true}),temp:blockText({size:64,weight:700,lineHeight:60.8,color:"ink",tracking:-2.56,tabular:true}),cond:blockText({size:17,weight:700,lineHeight:22.1,color:"ink",marginTop:8}),hl:blockText({size:15,weight:400,lineHeight:21,tabular:true,marginTop:2}),glyph:blockBox({w:88,h:88}),walk:blockBox({w:329,h:159.844,padding:[12,16,12,16],gap:[4,4],radius:[10,10],bg:"surface"}),walkTitle:blockBox({w:297,h:22.094,gap:[8,8],center:true,color:"ink"}),walkTitleText:blockText({size:17,weight:700,lineHeight:22.1,color:"ink"}),walkText:blockText({size:15,weight:400,lineHeight:21.75}),lvl:blockBox({w:10,h:10,radius:[5,5],bg:"#77DDAC",color:"ink"}),levels:{good:"#77DDAC",ok:"#F4CF7A",hot:"#DC8F7C",storm:"#8DA4BB"},comfort:blockBox({w:297,h:32.5,padding:[12,0,0,0],marginTop:8,gap:[8,6],center:true}),comfortRule:{width:1,color:"line"},comfortLabel:blockText({size:13,weight:400,lineHeight:16.9,color:"muted"}),comfortValue:blockText({size:15,weight:700,lineHeight:19.5,color:"ink"}),bar:blockBox({w:82,h:8,gap:[3,3]}),pipOn:blockBox({w:14,h:8,radius:[2,2],bg:"#77DDAC"}),pipOff:blockBox({w:14,h:8,radius:[2,2],bg:"#F1F5F2"})},weatherSummary:{card:blockBox({w:361,h:265.484,padding:[24,16,24,16],radius:[20,20],bg:"#FCF4E0"}),glyph:blockBox({w:88,h:88}),temp:blockText({size:72,weight:700,lineHeight:68.4,color:"ink",tracking:-2.88,tabular:true,marginTop:8}),cond:blockText({size:17,weight:700,lineHeight:22.1,color:"ink",marginTop:8}),hl:blockText({size:15,weight:400,lineHeight:21,tabular:true,marginTop:2})},weatherTile:{card:blockBox({w:272,h:187.984,padding:[16,16,16,16],gap:[8,8],radius:[20,20],bg:"#F5F5F5"}),top:blockBox({w:240,h:24,gap:[8,8],center:true}),label:blockText({size:12,weight:700,lineHeight:15.6,color:"ink",tracking:.72,face:"mono",upper:true}),glyph:blockBox({w:36,h:36,marginTop:-6,marginBottom:-6}),glyphMargin:[-6,-4,-6,0],big:blockText({size:28,weight:700,lineHeight:30.8,color:"ink",tracking:-.56,tabular:true}),small:blockText({size:15,weight:700,lineHeight:16.5,color:"muted",tabular:true}),smallGap:4,meta:blockText({size:14,weight:400,lineHeight:19.6}),btn:blockBox({w:137.375,h:38,padding:[0,12,0,12],gap:[8,8],minHeight:38,radius:[999,999],bg:"ink",edge:{width:1.5,color:"ink",ring:false},center:true,color:"surface"}),btnText:blockText({size:15,weight:700,lineHeight:15,color:"surface"}),btnIcon:blockBox({w:20,h:20,color:"surface"})},weatherWeb:{card:blockBox({w:533.078,h:242,padding:[24,24,24,24],radius:[20,20],bg:"surface",edge:{width:1,color:"line",ring:false}}),head:blockBox({w:483.078,h:34,marginBottom:16,gap:[12,12],center:true}),city:blockText({size:24,weight:700,lineHeight:28.8,color:"ink",tracking:-.48,wrap:"auto"}),units:blockBox({w:78,h:34,padding:[2,2,2,2],radius:[999,999],edge:{width:1,color:"line",ring:false}}),unit:blockBox({w:36,h:28,minHeight:28,radius:[999,999],center:true,color:"muted"}),unitText:blockText({size:13,weight:700,lineHeight:20.15,color:"muted",wrap:"auto"}),unitOn:blockBox({w:36,h:28,minHeight:28,radius:[999,999],bg:"ink",center:true,color:"surface"}),unitOnText:blockText({size:13,weight:700,lineHeight:20.15,color:"surface",wrap:"auto"}),now:blockBox({w:483.078,h:88,gap:[24,12],center:true}),glyph:blockBox({w:88,h:88}),temp:blockText({size:51.2,weight:700,lineHeight:51.2,color:"ink",tracking:-1.536,wrap:"auto",tabular:true}),tempFluid:{min:44,vw:4,max:56},sky:blockText({size:15,weight:400,lineHeight:21,color:"muted",wrap:"auto",marginTop:6}),tags:blockBox({w:483.078,h:30,marginTop:24,gap:[8,8]}),tag:blockBox({w:123.75,h:30,padding:[0,14,0,14],gap:[8,8],minHeight:30,radius:[999,999],bg:"surface",edge:{width:1,color:"#F2C763",ring:false},center:true,color:"ink"}),tagText:blockText({size:13,weight:700,lineHeight:20.15,color:"ink",wrap:"auto"}),dot:7,hues:{red:"alert",yellow:"#F2C763",green:"go",blue:"#4E98C9",plain:"line",plainDot:"muted"},phone:{upTo:559,card:blockBox({w:335,h:272,padding:[18,18,18,18],radius:[20,20],bg:"surface",edge:{width:1,color:"line",ring:false}}),glyph:blockBox({w:64,h:64})}},weatherAlert:{card:blockBox({w:361,h:48,padding:[0,16,0,16],gap:[12,12],minHeight:48,radius:[10,10],bg:"#FBF1EE",center:true,color:"#6D1D14"}),icon:blockBox({w:20,h:20,color:"alert"}),title:blockText({size:15,weight:700,lineHeight:23.25,color:"#6D1D14"}),titleGap:6,text:blockText({size:15,weight:400,lineHeight:23.25,color:"#6D1D14"}),chev:blockBox({w:16,h:16,color:"#6D1D14"}),pressScale:.98},weatherDetails:{grid:blockBox({w:361,h:591.25,gap:[12,12]}),tile:blockBox({w:174.5,h:143.359,padding:[14,14,14,14],gap:[6,6],minHeight:120,radius:[20,20],bg:"surface",edge:{width:1,color:"line",ring:false}}),label:blockText({size:12,weight:700,lineHeight:15.6,color:"muted",tracking:.72,face:"mono",upper:true}),labelGap:6,icon:blockBox({w:16,h:16,color:"ink"}),chev:blockBox({w:14,h:14,color:"muted"}),value:blockText({size:28,weight:700,lineHeight:30.8,color:"ink",tracking:-.56,tabular:true}),valueGap:6,unit:blockText({size:15,weight:700,lineHeight:16.5,color:"ink",tabular:true}),note:blockText({size:13,weight:400,lineHeight:18.2}),pressScale:.98},weatherHours:{cell:blockBox({w:54,h:100,padding:[2,0,0,0],gap:[4,4],center:true}),column:54,rows:[18,32,16,20,6],time:blockText({size:13,weight:400,lineHeight:15.6,color:"muted"}),timeNow:blockText({size:13,weight:700,lineHeight:15.6,color:"ink"}),glyph:blockBox({w:32,h:32}),icon:blockBox({w:24,h:24,color:"#926F06"}),chance:blockText({size:12,weight:700,lineHeight:12,color:"#1E7AB7",face:"mono"}),temp:blockText({size:15,weight:700,lineHeight:18,color:"ink",tabular:true}),quiet:blockText({size:13,weight:400,lineHeight:15.6,color:"muted",tabular:true}),bar:blockBox({w:52,h:6,radius:[3,3],bg:"#77DDAC"}),barInset:1,levels:{good:"#77DDAC",ok:"#F4CF7A",hot:"#DC8F7C",storm:"#8DA4BB"},windows:blockBox({w:327,h:76.594,marginBottom:12,gap:[8,8]}),window:blockBox({w:159.5,h:76.594,padding:[10,12,10,12],gap:[2,2],radius:[10,10],bg:"tintGo"}),windowTitle:blockText({size:15,weight:700,lineHeight:19.5,color:"ink",tabular:true}),windowText:blockText({size:13,weight:400,lineHeight:17.55}),legend:blockBox({w:327,h:18.188,marginTop:12,gap:[14,4],color:"muted"}),legendItem:blockBox({w:47.813,h:18.188,gap:[6,6],center:true,color:"muted"}),legendText:blockText({size:13,weight:400,lineHeight:18.2,color:"muted",marginTop:12}),legendDot:blockBox({w:10,h:10,radius:[5,5],bg:"#77DDAC",color:"muted"})},weatherForecast:{row:blockBox({w:327,h:48,gap:[8,8],minHeight:48,center:true}),rule:{width:1,color:"line"},columns:[48,32,30,155,30],walkColumns:[42,30,28,73,28,86],day:blockText({size:15,weight:700,lineHeight:18,color:"ink"}),sky:blockBox({w:32,h:30,gap:[1,1]}),glyph:blockBox({w:30,h:30}),chance:blockText({size:12,weight:700,lineHeight:12,color:"#1E7AB7",face:"mono"}),low:blockText({size:14,weight:400,lineHeight:14,color:"muted",face:"mono",tabular:true}),high:blockText({size:14,weight:400,lineHeight:14,color:"ink",face:"mono",tabular:true}),bar:blockBox({w:155,h:6,radius:[3,3],bg:"#F1F5F2"}),fill:blockBox({w:99.203,h:6,radius:[3,3],bg:"#DDB44F",x:23.25}),tag:blockBox({w:42.016,h:24,padding:[0,10,0,10],minHeight:24,radius:[999,999],bg:"#FCF0D6",edge:{width:1,color:"tintYellowEdge",ring:true},center:true,color:"ink"}),tagText:blockText({size:12,weight:700,lineHeight:14.4,color:"ink"}),tags:{good:{bg:"tintGo",ring:"#8FE3BB",ringWidth:1,color:"ink"},ok:{bg:"#FCF0D6",ring:"tintYellowEdge",ringWidth:1,color:"ink"},warn:{bg:"#FBF1EE",ring:"#E9B8AB",ringWidth:1,color:"#6D1D14"},rain:{bg:"tintBlue",ring:"#AFD1E7",ringWidth:1,color:"ink"}}},weatherLevels:{phone:{list:blockBox({w:361,h:140,marginTop:16,marginBottom:16,gap:[12,12]}),row:blockBox({w:361,h:26,gap:[8,8],center:true}),columns:[24,56,185,72],icon:blockBox({w:26,h:26}),name:blockText({size:15,weight:400,lineHeight:23.25}),bar:blockBox({w:185,h:8,radius:[999,999],bg:"#ECECEC"}),fills:{high:"#B67A3F",mid:"#F2C763",low:"ink"},level:{high:blockText({size:13,weight:700,lineHeight:20.15,color:"#A05E32",face:"mono"}),mid:blockText({size:13,weight:400,lineHeight:20.15,color:"#A05E32",face:"mono"}),low:blockText({size:13,weight:400,lineHeight:20.15,color:"muted",face:"mono"})}},web:{list:blockBox({w:344.891,h:140,marginTop:16,marginBottom:16,gap:[12,12]}),row:blockBox({w:344.891,h:26,gap:[12,12],center:true}),columns:[26,64,138.891,80],icon:blockBox({w:26,h:26}),name:blockText({size:15,weight:400,lineHeight:23.25,wrap:"auto"}),bar:blockBox({w:138.891,h:8,radius:[999,999],bg:"#ECECEC"}),fills:{high:"#B67A3F",mid:"#F2C763",low:"ink"},level:{high:blockText({size:13,weight:700,lineHeight:20.15,color:"#A05E32",face:"mono",wrap:"auto"}),mid:blockText({size:13,weight:400,lineHeight:20.15,color:"#A05E32",face:"mono",wrap:"auto"}),low:blockText({size:13,weight:400,lineHeight:20.15,color:"muted",face:"mono",wrap:"auto"})}},webPhoneUpTo:559},weatherReading:{phone:{body:blockBox({w:361,h:88.344,gap:[12,12]}),gap:12,picks:blockBox({w:361,h:36,gap:[10,10]}),on:blockBox({w:103.016,h:36,padding:[0,12,0,12],gap:[6,6],minHeight:36,radius:[999,999],bg:"pink",edge:{width:1,color:"pink",ring:false},center:true,color:"ink"}),onText:blockText({size:15,weight:700,lineHeight:19.5,color:"ink"}),off:blockBox({w:86.875,h:36,padding:[0,12,0,12],gap:[6,6],minHeight:36,radius:[999,999],bg:"surface",edge:{width:1,color:"ink",ring:false},center:true,color:"ink"}),offText:blockText({size:15,weight:400,lineHeight:19.5,color:"ink"}),check:blockBox({w:16,h:16,color:"ink"}),read:blockBox({w:361,h:40.344,gap:[12,0]}),value:blockText({size:36,weight:700,lineHeight:37.8,color:"ink",tracking:-.72,tabular:true}),word:blockText({size:17,weight:700,lineHeight:26.35,color:"alert",tracking:.34,face:"mono",upper:true})},web:{body:blockBox({w:344.891,h:140.344}),gap:16,picks:blockBox({w:344.891,h:82,marginTop:16,marginBottom:16,gap:[10,10]}),on:blockBox({w:107.016,h:36,padding:[0,14,0,14],gap:[6,6],minHeight:36,radius:[999,999],bg:"pink",edge:{width:1,color:"pink",ring:false},center:true,color:"ink"}),onText:blockText({size:15,weight:700,lineHeight:19.5,color:"ink",wrap:"auto"}),off:blockBox({w:90.875,h:36,padding:[0,14,0,14],gap:[6,6],minHeight:36,radius:[999,999],bg:"surface",edge:{width:1,color:"ink",ring:false},center:true,color:"ink"}),offText:blockText({size:15,weight:400,lineHeight:19.5,color:"ink",wrap:"auto"}),check:blockBox({w:16,h:16,color:"ink"}),read:blockBox({w:344.891,h:42.344,gap:[12,0]}),value:blockText({size:38.4,weight:700,lineHeight:40.32,color:"ink",tracking:-.768,wrap:"auto",tabular:true}),word:blockText({size:17,weight:700,lineHeight:26.35,color:"#A05E32",tracking:.34,face:"mono",upper:true,wrap:"auto"})},fluid:{min:36,vw:3,max:44},tones:{good:"#0C844B",ok:"#A05E32",low:"alert"}}};function deepFreeze2(value){if(value!==null&&typeof value=="object"&&!Object.isFrozen(value))for(let v of Object.values(value))deepFreeze2(v);return value}var k=everfurTokens,PRESET=/* @__PURE__ */Symbol.for("@everfur-health/ui-core#preset@v1");function asPreset(theme){return Object.defineProperty(theme,PRESET,{value:theme,enumerable:true}),deepFreeze2(theme)}var SCALE_CAPS={content:0,heading:2,control:1.8,compact:1.5,badge:1.3},everfurTheme=asPreset({name:"everfur",colors:{bg:k.color.bg,surface:k.color.efWhite,text:k.color.text,ink:k.role.color.ink,onInk:k.color.efWhite,muted:k.role.color.muted,line:k.role.color.line,go:k.role.color.go,onGo:k.role.color.ink,pink:k.color.efDustyPink,onPink:k.role.color.ink,alert:k.color.alert,alertDeep:k.color.alertDeep,icoSage:k.role.color.icoSage,bgMist:k.color.bgMist,tintSage:k.role.color.tintSage,tintBlue:k.role.color.tintBlue,tintGo:k.role.color.tintGo,tintPink:k.role.color.tintPink,tintYellowEdge:k.role.color.tintYellowEdge,tintWatch:everfurMetrics.colors.watch,tintRed:k.role.color.tintRed,scrim:everfurMetrics.colors.scrim,grab:everfurMetrics.colors.grab,focus:k.role.color.ink,planInk:everfurMetrics.colors.planInk,planOnInk:everfurMetrics.colors.planOnInk,planAccent:everfurMetrics.colors.planAccent,planLink:everfurMetrics.colors.planLink,planAccentWash:everfurMetrics.colors.planAccentWash,planAccentChip:everfurMetrics.colors.planAccentChip,planLinkWash:everfurMetrics.colors.planLinkWash,planLinkChip:everfurMetrics.colors.planLinkChip},radius:{...k.radius},space:{...k.space},type:{family:k.font.family.base,mono:k.font.family.mono,faces:{regular:"Azeret-Regular",medium:"Azeret-Medium",bold:"Azeret-Bold",mono:"AzeretMono-Regular",monoBold:"AzeretMono-Bold"},namedFaces:true,size:{xs:k.font.size.xs,sm:k.font.size.sm,md:k.font.size.md,lg:k.font.size.lg,xl:k.font.size.xl},weight:{...k.font.weight},lineHeight:{...k.font.lineHeight},scaleCaps:SCALE_CAPS},motion:{duration:{press:k.motion.duration.press,fade:k.motion.duration.fade,enter:k.motion.duration.enter,sheet:k.motion.duration.sheet,sheetOut:k.motion.duration.sheetOut},easing:{out:k.motion.easing.out,drawer:k.motion.easing.drawer},pop:{duration:k.motion.duration.enter,from:.95,peakAt:.55,amplitude:.035,switchAmplitude:.06},reduced:false},metrics:everfurMetrics});function presetOf(theme){return theme[PRESET]??everfurTheme}function isObject(v){return v!==null&&typeof v=="object"&&!Array.isArray(v)}function merge(base3,over){if(!isObject(base3)||!isObject(over))return over===void 0?base3:over;let out={...base3};for(let[key,value]of Object.entries(over))value!==void 0&&(out[key]=merge(base3[key],value));return out}function resolveTheme(partial,base3=everfurTheme){if(!partial)return base3;let merged=merge(base3,partial),given=partial.colors;if(given){let colors=merged.colors;for(let[wash,from,share2]of PLAN_WASHES){let c=given[from];c!==void 0&&given[wash]===void 0&&(colors[wash]=mixHex(c,share2,colors.surface)??colors[wash]??c)}}return deepFreeze2(merged)}var PLAN_WASHES=[["planAccentWash","planAccent",.17],["planAccentChip","planAccent",.47],["planLinkWash","planLink",.12],["planLinkChip","planLink",.2]];function mixHex(color,share2,ground){let ch=v=>{let m=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.exec(v??"");return m?[m[1],m[2],m[3]].map(h=>parseInt(h,16)):void 0},[c,g]=[ch(color),ch(ground)];if(!(!c||!g))return`#${c.map((v,i)=>Math.round(v*share2+(g[i]??0)*(1-share2)).toString(16).padStart(2,"0")).join("").toUpperCase()}`}var ThemeContext=/* @__PURE__ */(()=>{let key=/* @__PURE__ */Symbol.for("@everfur-health/ui-core#ThemeContext@v1"),host2=globalThis,context=host2[key]??(host2[key]=createContext(null));return context.displayName??(context.displayName="EverfurThemeContext"),context})();function ThemeProvider({theme:theme,children:children}){let outer=useTheme(),key=theme===void 0||isComplete(theme)?theme:contentKey(theme),value=useMemo(()=>isComplete(theme)?filled(theme):resolveTheme(theme,outer),[key,outer]);return createElement(ThemeContext.Provider,{value:value},children)}function contentKey(value){return JSON.stringify(value,(_,v)=>isObject(v)&&!Array.isArray(v)?Object.fromEntries(Object.keys(v).sort().map(k2=>[k2,v[k2]])):v)}function isComplete(theme){return theme!==void 0&&Object.isFrozen(theme)&&GROUPS.every(g=>g in theme)}var GROUPS=["name","colors","radius","space","type","motion","metrics"];function hasEvery(shape,value){if(shape===void 0)return true;if(!isObject(shape))return value!==void 0;if(!isObject(value))return false;for(let key of Object.keys(shape))if(!hasEvery(shape[key],value[key]))return false;return true}var fills=/* @__PURE__ */new WeakMap;function filled(theme){let hit=fills.get(theme);if(hit)return hit;if(hasEvery(everfurTheme,theme))return fills.set(theme,theme),theme;let preset=presetOf(theme),merged=merge(everfurTheme,preset===everfurTheme?theme:merge(preset,theme));merged[PRESET]=preset;let out=deepFreeze2(merged);return fills.set(theme,out),out}function useTheme(){let explicit=useContext(ThemeContext);return explicit?filled(explicit):everfurTheme}var px=n=>Math.round(n*1e3)/1e3;function faceOf(weight,mono=false){return mono?weight>450?"monoBold":"mono":weight>500?"bold":weight>450?"medium":"regular"}function withAlpha(color,alpha){let m=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.exec(color);if(!m)return color;let[r,g,b]=[m[1],m[2],m[3]].map(h=>parseInt(h,16));return`rgba(${r}, ${g}, ${b}, ${alpha})`}function channelsOf(color){let hex=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.exec(color);if(hex)return[hex[1],hex[2],hex[3]].map(h=>parseInt(h,16));let rgb=/^rgba?\(\s*([\d.]+)[\s,]+([\d.]+)[\s,]+([\d.]+)/i.exec(color);return rgb?[rgb[1],rgb[2],rgb[3]].map(Number):void 0}function mixColor(color,share2,base3,fallback){let[c,b]=[channelsOf(color),channelsOf(base3)];return!c||!b?fallback:`rgb(${c.map((v,i)=>Math.round(v*share2+(b[i]??0)*(1-share2))).join(", ")})`}function colorOf(t,value){let m=/^([a-zA-Z]+)(?:\/([\d.]+))?$/.exec(value),role=m?.[1];if(!m||role===void 0||!(role in t.colors))return value;let c=t.colors[role];return m[2]===void 0?c:withAlpha(c,Number(m[2]))}function fillOf(t,value){return value==="none"?"transparent":colorOf(t,value)}var DISABLED_OPACITY=.45;function buttonSpec(t,tone,size,inSheet=false){let b=t.metrics.button;if(tone==="text"){let m2=b.text;return{minHeight:0,paddingX:0,gap:b.ink.gap,radius:0,borderWidth:0,borderColor:"transparent",background:"transparent",iconSize:b.inkSm.iconSize,text:{size:m2.fontSize,weight:m2.fontWeight,lineHeight:px(m2.fontSize*m2.lineHeight),color:colorOf(t,m2.color)},pressScale:1,pressOpacity:m2.pressOpacity,disabledOpacity:b.blockedOpacity??DISABLED_OPACITY,fill:false,ring:false}}let v=t.metrics.variants.button,compact=isCompactSize(size),edged=tone==="outline"||tone==="danger"||tone==="warn",m=compact?{...size==="compactSm"?v.sm:size==="compactLg"?v.lg:v.ink,borderWidth:edged?v.outline.borderWidth:0,ring:v.outline.ring}:size==="row"?b.row:tone==="danger"?b.danger:size==="sm"?b[`${tone}Sm`]:b[tone],c=t.colors,own=tone==="money"||tone==="warn"?b[tone]:void 0,paint={ink:{bg:c.ink,fg:c.onInk,edge:c.ink},go:{bg:c.go,fg:c.onGo,edge:c.ink},outline:{bg:"transparent",fg:c.ink,edge:c.ink},pink:{bg:c.pink,fg:c.onPink,edge:c.ink},danger:{bg:c.surface,fg:c.alert,edge:c.alert}},p=own?{bg:fillOf(t,own.bg),fg:colorOf(t,own.fg),edge:colorOf(t,own.edgeColor)}:paint[tone],weight=tone==="outline"&&inSheet&&!compact?b.outlineInSheetWeight:m.fontWeight;return{minHeight:m.minHeight,paddingX:m.paddingX,gap:m.gap,radius:t.radius.pill,borderWidth:m.borderWidth,borderColor:p.edge,background:p.bg,iconSize:m.iconSize,text:{size:m.fontSize,weight:weight,lineHeight:px(m.fontSize*m.lineHeight),color:p.fg},pressScale:t.motion.reduced?1:compact?v.press:t.metrics.press.button,pressOpacity:1,disabledOpacity:compact?v.disabledOpacity:b.blockedOpacity??DISABLED_OPACITY,fill:m.fill,ring:m.ring}}function isCompactSize(size){return size==="compact"||size==="compactSm"||size==="compactLg"}function pillSpec(t,tone){let m=t.metrics.pill,p=m.tones[tone],fg=tone==="clear"?t.colors.ink:colorOf(t,p.fg);return{minHeight:m.minHeight,paddingX:m.paddingX,radius:t.radius.pill,background:colorOf(t,p.bg),ring:p.ring>0?{width:p.ring,color:colorOf(t,p.ringColor)}:null,dot:tone==="new"?{size:m.dot,gap:m.dotGap,color:t.colors.go}:tone==="allergy"?{size:m.allergyDot.size,gap:m.allergyDot.gap,color:colorOf(t,m.allergyDot.color)}:null,text:{size:m.fontSize,weight:m.fontWeight,lineHeight:px(m.fontSize*m.lineHeight),color:fg,mono:m.mono,tracking:m.letterSpacing,upper:m.upper}}}function sheetTitleSpec(t,narrow){let m=t.metrics.sheet,size=m.titleSize,lineHeight=m.titleLineHeight??t.metrics.card.titleLineHeight;return{size:size,weight:m.titleWeight??t.metrics.card.titleWeight,lineHeight:px(size*lineHeight),color:colorOf(t,m.titleColor??"ink"),tracking:m.titleTracking??t.metrics.card.titleTracking}}function textSpecs(t){let m=t.metrics,c=t.colors;return{cardTitle:{size:m.card.titleSize,weight:m.card.titleWeight,lineHeight:px(m.card.titleSize*m.card.titleLineHeight),color:c.ink,tracking:m.card.titleTracking},cardLead:{size:m.card.leadSize,weight:t.type.weight.regular,lineHeight:px(m.card.leadSize*m.card.leadLineHeight),color:c.text},body:{size:m.card.bodySize,weight:t.type.weight.regular,lineHeight:px(m.card.bodySize*m.card.bodyLineHeight),color:c.text},kicker:{size:m.kicker.fontSize,weight:m.kicker.fontWeight,lineHeight:px(m.kicker.fontSize*m.kicker.lineHeight),color:c.muted,mono:true,tracking:m.kicker.letterSpacing,upper:true},sheetTitle:sheetTitleSpec(t),stepperValue:{size:m.quantityStepper.valueSize,weight:m.quantityStepper.valueWeight,lineHeight:px(m.quantityStepper.valueSize*m.quantityStepper.valueLineHeight),color:colorOf(t,m.quantityStepper.valueColor??"text")},tab:{size:m.tabs.fontSize,weight:m.tabs.fontWeight,lineHeight:px(m.tabs.fontSize*m.tabs.lineHeight),color:c.muted},tabCurrent:{size:m.tabs.fontSize,weight:m.tabs.currentWeight,lineHeight:px(m.tabs.fontSize*m.tabs.lineHeight),color:c.ink},emptyTitle:{size:m.empty.titleSize,weight:m.empty.titleWeight,lineHeight:px(m.empty.titleSize*m.empty.titleLineHeight),color:c.ink,tracking:m.empty.titleTracking},emptyLead:{size:m.empty.leadSize,weight:t.type.weight.regular,lineHeight:px(m.empty.leadSize*m.empty.leadLineHeight),color:c.text},emptyLink:{size:m.empty.linkSize,weight:m.empty.linkWeight,lineHeight:px(m.empty.linkSize*m.card.bodyLineHeight),color:c.ink},sumTerm:{size:m.summary.termSize,weight:t.type.weight.regular,lineHeight:px(m.summary.termSize*m.summary.termLineHeight),color:c.muted},sumValue:{size:m.summary.valueSize,weight:m.summary.valueWeight,lineHeight:px(m.summary.valueSize*m.summary.valueLineHeight),color:c.ink},sumTotal:{size:m.summary.totalSize,weight:m.summary.valueWeight,lineHeight:px(m.summary.totalSize*m.summary.totalLineHeight),color:c.ink}}}function quantityStepperSpec(t){let m=t.metrics.quantityStepper;return{edge:{width:m.borderWidth,color:colorOf(t,m.borderColor),inset:m.ring},button:m.button,icon:m.icon,valueMinWidth:m.valueMinWidth,fill:fillOf(t,m.fill??"none"),glyph:colorOf(t,m.glyph??"ink"),off:{color:colorOf(t,m.offColor),opacity:m.offOpacity}}}function textPartSpec(t,p){return{size:p.size,weight:p.weight,lineHeight:p.lineHeight,color:colorOf(t,p.color),...p.face==="mono"?{mono:true}:{},...p.face==="serif"?{serif:true}:{},...p.tracking?{tracking:p.tracking}:{},...p.upper?{upper:true}:{},...p.deco==="none"?{}:{deco:p.deco==="strike"?"strike":"underline",decoOffset:p.decoOffset,decoThickness:p.decoThickness},...p.tabular?{tabular:true}:{},...p.wrap==="auto"?{}:{wrap:p.wrap==="balance"?"balance":"pretty"}}}function partFill(t,value){return value==="none"?void 0:colorOf(t,value)}function summarySpec(t){let m=t.metrics.summary,lh=(size,ratio)=>px(size*ratio);return{paddingX:m.paddingX,paddingY:m.paddingY,radius:m.radius,borderWidth:m.borderWidth,borderColor:t.colors.line,background:colorOf(t,m.background),shadow:m.shadow,row:{paddingY:m.rowPaddingY,minHeight:m.rowMinHeight,gapX:m.rowGapX,gapY:m.rowGapY,divider:m.rowDivider,center:m.rowCenter},totalRowMinHeight:m.totalRowMinHeight,gap:m.gap??0,totalMarginTop:m.totalMarginTop??0,tabular:m.tabular,term:{size:m.termSize,weight:t.type.weight.regular,lineHeight:lh(m.termSize,m.termLineHeight),color:colorOf(t,m.termColor)},value:{size:m.valueSize,weight:m.valueWeight,lineHeight:lh(m.valueSize,m.valueLineHeight),color:colorOf(t,m.valueColor)},totalTerm:{size:m.totalTermSize,weight:m.totalTermWeight,lineHeight:lh(m.totalTermSize,m.termLineHeight),color:colorOf(t,m.totalTermColor)},total:{size:m.totalSize,weight:m.totalWeight,lineHeight:lh(m.totalSize,m.totalLineHeight),color:colorOf(t,m.valueColor)},off:textPartSpec(t,t.metrics.summary.off)}}function skeletonWidth(t,index){let widths=t.metrics.skeleton.widths;return`${widths[index%widths.length]}%`}function clampStep(value,min,max){return Math.max(min,max===void 0?value:Math.min(max,value))}function itemTestID(parent,key,own){return own!==void 0?own:parent===void 0?void 0:`${parent}-${key}`}var nums=group=>group,isBox=v=>"edge"in v&&"shadow"in v&&"fit"in v,isText=v=>"deco"in v&&"face"in v&&"tabular"in v;function byValue(group){let out=/* @__PURE__ */new Map;for(let[k2,v]of Object.entries(group))out.has(v)||out.set(v,k2);return out}var groups,derived=/* @__PURE__ */new WeakMap;function tokenOf(map,theme,v){let k2=map.get(v),t=k2===void 0?void 0:theme[k2];return typeof t=="number"?t:v}function blocksMetrics(theme){let base3=everfurBlocksMetrics,p=everfurTheme;if(theme.space===p.space&&theme.radius===p.radius&&theme.type.size===p.type.size&&theme.type.weight===p.type.weight)return base3;let hit=derived.get(theme);if(hit)return hit;groups??(groups={space:byValue(nums(p.space)),radius:byValue(nums(p.radius)),size:byValue(nums(p.type.size)),weight:byValue(nums(p.type.weight))});let g=groups,space=v=>tokenOf(g.space,nums(theme.space),v),radius=v=>tokenOf(g.radius,nums(theme.radius),v),walk=v=>Array.isArray(v)?v.map(walk):v===null||typeof v!="object"?v:isBox(v)?{...v,padding:v.padding.map(space),gap:v.gap.map(space),marginTop:space(v.marginTop),marginBottom:space(v.marginBottom),radius:v.radius.map(radius)}:isText(v)?{...v,size:tokenOf(g.size,nums(theme.type.size),v.size),weight:tokenOf(g.weight,nums(theme.type.weight),v.weight),marginTop:space(v.marginTop),paddingTop:space(v.paddingTop)}:Object.fromEntries(Object.entries(v).map(([k2,x])=>[k2,walk(x)])),out=walk(base3);return derived.set(theme,out),out}function scoreLightsLayout(values,width,height,m,rtl=false){let n=values.length;if(n===0||width<=0)return[];let{rows:rows,gap:gap,widthShare:widthShare}=m.grid,p=width/n,cw=Math.max(1,Math.round(p*widthShare)),ch=Number(((height-(rows-1)*gap)/rows).toFixed(2));return values.map((raw,i)=>{let v=Number.isFinite(raw)?Math.min(10,Math.max(0,raw)):0,lights=[];for(let k2=0;k2<rows;k2+=1){let opacity=Number(Math.max(0,Math.min(1,v-k2)).toFixed(3));opacity>0&&lights.push({y:Number((height-(k2+1)*((height-(rows-1)*gap)/rows)-k2*gap).toFixed(2)),height:ch,opacity:opacity})}let x=Math.round(i*p+(p-cw)/2);return{x:rtl?Math.round(width-x-cw):x,width:cw,zone:v>=m.zones.lot?"lot":v>=m.zones.some?"some":"go",lights:lights}})}var UiSurfaceContext=/* @__PURE__ */(()=>{let key=/* @__PURE__ */Symbol.for("@everfur-health/ui-core#SurfaceContext@v1"),host2=globalThis;return host2[key]??(host2[key]=createContext(null))})();function useUiSurface(){return useContext(UiSurfaceContext)}var TEXT_VARIANT_TIERS={display:"heading",headline:"heading",title:"heading",heading:"heading",body:"content",lead:"content",label:"control",meta:"compact",caption:"content",overline:"compact",kicker:"compact"};function textToneColor(t,tone){let c=t.colors;switch(tone){case"ink":return c.ink;case"text":return c.text;case"muted":return c.muted;case"danger":return c.alertDeep;case"inverse":return c.onInk;default:return}}function textVariantSpec(t,variant,tone,weight){let base3=textPartSpec(t,t.metrics.text[variant]),color=textToneColor(t,tone);return{...base3,...color?{color:color}:{},...weight?{weight:t.type.weight[weight]}:{}}}var PressFeedbackContext=/* @__PURE__ */(()=>{let key=/* @__PURE__ */Symbol.for("@everfur-health/ui-core#PressFeedbackContext@v1"),host2=globalThis,context=host2[key]??(host2[key]=createContext(null));return context.displayName??(context.displayName="EverfurPressFeedbackContext"),context})();function usePressFeedback(){return useContext(PressFeedbackContext)}function pressHandlers(feedback,event,onPress,options={}){if(!feedback||options.disabled)return{onPress:onPress,onPressIn:void 0};let{onPressIn:reportIn,onPress:report,haptic:haptic}=feedback,tick=options.haptics!==false&&event.haptic&&haptic?haptic:void 0;return{onPress:onPress&&(report||tick)?()=>{tick?.(event),report?.(event),onPress()}:onPress,onPressIn:reportIn?()=>reportIn(event):void 0}}function pressScaleFor(feedback,component,designScale=1){return feedback?.pressScale?.[component]??designScale}var TEXT_VARIANT_BREAKS={display:"balance",headline:"balance",title:"balance",heading:"balance",body:"pretty",lead:"pretty",meta:"pretty",caption:"pretty",label:"auto",overline:"auto",kicker:"auto"};function textVariantTier(t,variant){return t.type.variantTiers?.[variant]??TEXT_VARIANT_TIERS[variant]}var ReducedMotionContext=/* @__PURE__ */(()=>{let key=/* @__PURE__ */Symbol.for("@everfur-health/ui-native#ReducedMotionContext@v1"),host2=globalThis,context=host2[key]??(host2[key]=createContext(null));return context.displayName??(context.displayName="EverfurReducedMotionContext"),context})();function useKnownReducedMotion(){return useContext(ReducedMotionContext)}function rnText(t,spec){let face2=faceOf(spec.weight,spec.mono===true);return{fontFamily:spec.serif?t.type.faces.serif??t.type.faces.bold:t.type.faces[face2],...t.type.namedFaces?{}:{fontWeight:String(spec.weight)},fontSize:spec.size,lineHeight:spec.lineHeight,color:spec.color,...spec.tracking?{letterSpacing:spec.tracking}:{},...spec.upper?{textTransform:"uppercase"}:{},...spec.deco?rnDeco(spec):{},...spec.tabular?{fontVariant:["tabular-nums"]}:{},...spec.wrap&&Platform.OS==="web"?{textWrap:spec.wrap}:{}}}function rnDeco(spec){let base3={textDecorationLine:spec.deco==="strike"?"line-through":"underline"};return Platform.OS!=="web"?base3:{...base3,...spec.decoOffset?{textUnderlineOffset:spec.decoOffset}:{},...spec.decoThickness?{textDecorationThickness:spec.decoThickness}:{}}}function rnBox(t,b){let[pt=0,pr=0,pb=0,pl=0]=b.padding,[rt=0,rb=0]=b.radius,fill=partFill(t,b.bg);return{paddingTop:pt,paddingRight:pr,paddingBottom:pb,paddingLeft:pl,...b.marginTop?{marginTop:b.marginTop}:{},...b.gap[0]?{columnGap:b.gap[0]}:{},...b.gap[1]?{rowGap:b.gap[1]}:{},...rt===rb?rt?{borderRadius:rt}:{}:{borderTopLeftRadius:rt,borderTopRightRadius:rt,borderBottomLeftRadius:rb,borderBottomRightRadius:rb},...fill?{backgroundColor:fill}:{},...b.edge.width>0&&!b.edge.ring?{borderWidth:b.edge.width,borderColor:colorOf(t,b.edge.color)}:{},...b.minHeight?{minHeight:b.minHeight}:{},...rnShadow(b.shadow)}}function rnRing(t,b){return b.edge.width>0&&b.edge.ring?ringOverlay(b.edge.width,colorOf(t,b.edge.color),b.radius[0]??0):null}function webReducedMotion(){if(Platform.OS!=="web")return false;let g=globalThis;return typeof g.matchMedia=="function"&&g.matchMedia("(prefers-reduced-motion: reduce)").matches}function useOsReducedMotion(known){let[reduced,setReduced]=useState(()=>known===null&&webReducedMotion());return useEffect(()=>{if(known!==null)return;let mounted=true,query=AccessibilityInfo?.isReduceMotionEnabled;if(typeof query=="function"){let result=query.call(AccessibilityInfo);result!=null&&typeof result.then=="function"&&result.then(value=>{mounted&&setReduced(value===true)},()=>{})}let subscription=AccessibilityInfo?.addEventListener?.("reduceMotionChanged",value=>setReduced(value===true));return()=>{mounted=false,subscription?.remove?.()}},[known]),known??reduced}function useRnReduced(t){let os=useOsReducedMotion(useKnownReducedMotion());return t.motion.reduced||os}function ariaState(expanded,pressed,current){return{...expanded===void 0?{}:{expanded:expanded},...pressed===void 0?{}:{checked:pressed},...current===void 0?{}:{selected:current!==false}}}function slopFor(size){let pad=Math.max(0,Math.ceil((44-size)/2));return pad===0?void 0:{top:pad,bottom:pad,left:pad,right:pad}}function rnShadow(s){return s.blur===0&&s.y===0&&s.x===0?null:{shadowColor:s.color,shadowOffset:{width:s.x,height:s.y},shadowOpacity:1,shadowRadius:s.blur,elevation:1}}function ringOverlay(width,color,radius){let fill={position:"absolute",top:0,right:0,bottom:0,left:0,borderRadius:radius};return Platform.OS==="web"?{...fill,boxShadow:`inset 0 0 0 ${width}px ${color}`}:{...fill,borderWidth:width,borderColor:color}}var unnamedClose=/* @__PURE__ */new Set;function warnUnnamedClose(component,onClose,closeLabel){let dev=typeof __DEV__<"u"?__DEV__:typeof process<"u"&&process.env.NODE_ENV!=="production";!onClose||closeLabel||unnamedClose.has(component)||!dev||(unnamedClose.add(component),console.warn(`@everfur-health/ui-native: ${component} draws its close (onClose) without a closeLabel, so a screen reader cannot name it. Pass closeLabel with onClose.`))}function breakProps(mode){return mode==="auto"?null:Platform.OS==="ios"?{lineBreakStrategyIOS:"push-out"}:Platform.OS==="android"&&mode==="balance"?{textBreakStrategy:"balanced"}:null}function weightStyle(t,weight){let w=t.type.weight[weight];return t.type.namedFaces?{fontFamily:t.type.faces[faceOf(w)]}:{fontWeight:String(w)}}function Text({tier:tier,variant:variant,tone:tone,weight:weight,level:level,lineBreak:lineBreak,...props}){let t=useTheme(),cap=t.type.scaleCaps[tier??(variant?textVariantTier(t,variant):"content")],breaks=breakProps(lineBreak??(variant?TEXT_VARIANT_BREAKS[variant]:"auto"));if(variant===void 0&&tone===void 0&&weight===void 0&&level===void 0)return breaks?createElement(Text$1,{...cap>0?{maxFontSizeMultiplier:cap}:{},...breaks,...props}):createElement(Text$1,cap>0?{maxFontSizeMultiplier:cap,...props}:props);let color=textToneColor(t,tone),own=variant?rnText(t,textVariantSpec(t,variant,tone,weight)):{...color?{color:color}:{},...weight?weightStyle(t,weight):{}},heading=level===void 0?{}:{accessibilityRole:"header",...Platform.OS==="web"?{"aria-level":level}:{}};return createElement(Text$1,{...cap>0?{maxFontSizeMultiplier:cap}:{},...breaks,...heading,...props,style:[own,props.style]})}var BOX=24,FINE=16,SEAM=.8,fine=dp=>Math.round(dp*FINE);function place(cx,cy,W,H,ux,uy){let left=cx-W/2,top=cy-H/2,x=Math.round(left),y=Math.round(top);return{position:"absolute",left:x,top:y,width:W,height:H,transform:[{translateX:left-x},{translateY:top-y},{rotate:`${Math.atan2(uy,ux)*180/Math.PI}deg`},{scale:1/FINE}]}}function strokePieces(icon,k2,out){for(let s of icon.strokes){let w=s.width*k2,pts=s.points,n=pts.length/2,last=s.closed?n:n-1;for(let i=0;i<last;i+=1){let j=(i+1)%n,px2=(pts[i*2]??0)*k2,py=(pts[i*2+1]??0)*k2,dx=(pts[j*2]??0)*k2-px2,dy=(pts[j*2+1]??0)*k2-py,len=Math.hypot(dx,dy);if(len===0&&!(n===2&&s.cap))continue;let ux=len===0?1:dx/len,uy=len===0?0:dy/len,e0=s.closed||i>0||s.cap?w/2:0,e1=s.closed||j!==n-1||s.cap?w/2:0,along=(len+e1-e0)/2;out.push({paint:"backgroundColor",style:{...place(px2+ux*along,py+uy*along,fine(len+e0+e1),fine(w),ux,uy),borderTopLeftRadius:e0>0?fine(w)/2:0,borderBottomLeftRadius:e0>0?fine(w)/2:0,borderTopRightRadius:e1>0?fine(w)/2:0,borderBottomRightRadius:e1>0?fine(w)/2:0,...s.opacity===void 0?{}:{opacity:s.opacity}}})}}}function boxPieces(icon,k2,out){for(let b of icon.boxes){let w=(b.w+b.width)*k2,h=(b.h+b.width)*k2;out.push({paint:"borderColor",style:{...place((b.x-b.width/2)*k2+w/2,(b.y-b.width/2)*k2+h/2,fine(w),fine(h),1,0),borderWidth:fine(b.width*k2),borderRadius:(b.radius+b.width/2)*k2*FINE,...b.opacity===void 0?{}:{opacity:b.opacity}}})}}function trianglePieces(icon,k2,out){for(let t of icon.triangles){let p=[0,1,2].map(i=>[(t[i*2]??0)*k2,(t[i*2+1]??0)*k2]),base3=0,len=-1;for(let i=0;i<3;i+=1){let a2=p[i]??[0,0],b=p[(i+1)%3]??[0,0],d=Math.hypot(b[0]-a2[0],b[1]-a2[1]);d>len&&(len=d,base3=i)}if(len<=0)continue;let b0=p[base3]??[0,0],b1=p[(base3+1)%3]??[0,0],a=p[(base3+2)%3]??[0,0],ux=(b1[0]-b0[0])/len,uy=(b1[1]-b0[1])/len,along=(a[0]-b0[0])*ux+(a[1]-b0[1])*uy,across=(a[0]-b0[0])*-uy+(a[1]-b0[1])*ux,h=Math.abs(across),up=across<0,mid=up?-h/2:h/2,bl=fine(along),br=fine(len)-bl,bh=fine(h);out.push({paint:up?"borderBottomColor":"borderTopColor",style:{...place(b0[0]+ux*(len/2)-uy*mid,b0[1]+uy*(len/2)+ux*mid,bl+br,bh,ux,uy),width:0,height:0,borderLeftWidth:bl,borderRightWidth:br,borderLeftColor:"transparent",borderRightColor:"transparent",...up?{borderBottomWidth:bh}:{borderTopWidth:bh}}})}for(let e of icon.seams){let x0=(e[0]??0)*k2,y0=(e[1]??0)*k2,dx=(e[2]??0)*k2-x0,dy=(e[3]??0)*k2-y0,d=Math.hypot(dx,dy),in0=SEAM*(e[4]??0),in1=SEAM*(e[5]??0),bar=d-in0-in1;if(d===0||bar<=0)continue;let mid=in0+bar/2;out.push({paint:"backgroundColor",style:place(x0+dx/d*mid,y0+dy/d*mid,fine(bar),fine(SEAM),dx/d,dy/d)})}}var cache=/* @__PURE__ */new WeakMap;function piecesOf(icon,size){let sizes=cache.get(icon);sizes===void 0&&(sizes=/* @__PURE__ */new Map,cache.set(icon,sizes));let hit=sizes.get(size);if(hit!==void 0)return hit;let out=[],k2=size/BOX;return boxPieces(icon,k2,out),strokePieces(icon,k2,out),trianglePieces(icon,k2,out),sizes.set(size,out),out}function Glyph({icon:icon,size:size,color:color,label:label,testID:testID,style:style}){let t=useTheme(),side=size??t.metrics.icon.size,ink=color??t.colors.ink;/* @__PURE__ */
|
|
27
|
+
return Object.freeze({schema:SLOT_SCHEMA,slot:slot,docVersion:null,minBlocks:1,tokens:{},parts:/* @__PURE__ */Object.freeze([...parts]),copy:{}})}var P=SLOT_NAMED_PARTS,BUNDLED_SLOT_DOCS=/* @__PURE__ */Object.freeze({"health_plan.focus":doc("health_plan.focus",[P.focus,P.tips]),"today.health":doc("today.health",[P.focus,P.tips]),"shop.shelf":doc("shop.shelf",[P.shelf]),"shop.cart":doc("shop.cart",[P.cartLines,P.cartSummary]),"shop.orders":doc("shop.orders",[P.orders])});function bundledSlotDoc(slot){return Object.prototype.hasOwnProperty.call(BUNDLED_SLOT_DOCS,slot)?BUNDLED_SLOT_DOCS[slot]??null:null}function namedPartDoc(name){return doc(`part.${name.toLowerCase()}`,[SLOT_NAMED_PARTS[name]])}function toRgba(value){if(typeof value=="number")return argbIntToRgba(value);if(typeof value!="string")return null;let s=value.trim();if(s.length===0)return null;if(s.startsWith("#"))return fromHex(s.slice(1));if(s.toLowerCase().startsWith("0x"))return fromHex(s.slice(2));if(s.toLowerCase().startsWith("rgb"))return fromRgbFunc(s);if(/^[0-9a-fA-F]+$/.test(s)){let hex=fromHex(s);if(hex!==null)return hex}return/^\d+$/.test(s)?argbIntToRgba(Number.parseInt(s,10)):null}function fromHex(hex){let h=hex.trim();if(!/^[0-9a-fA-F]+$/.test(h))return null;if(h.length===3)return{r:dup(h[0]),g:dup(h[1]),b:dup(h[2]),a:1};if(h.length===6)return{r:byte(h,0),g:byte(h,2),b:byte(h,4),a:1};if(h.length===8){let a=byte(h,0);return{r:byte(h,2),g:byte(h,4),b:byte(h,6),a:a/255}}return null}function fromRgbFunc(input){let open=input.indexOf("("),close=input.indexOf(")");if(open<0||close<0||close<open)return null;let parts=input.slice(open+1,close).split(",").map(p=>p.trim());if(parts.length<3)return null;let r=clampByte(Number(parts[0])),g=clampByte(Number(parts[1])),b=clampByte(Number(parts[2]));if(r===null||g===null||b===null)return null;let a=1;if(parts.length>=4){let alpha=Number(parts[3]);if(!Number.isFinite(alpha))return null;a=Math.min(1,Math.max(0,alpha))}return{r:r,g:g,b:b,a:a}}function argbIntToRgba(n){if(!Number.isFinite(n))return null;let int3=Math.trunc(n)>>>0,a=int3>>>24&255;return{r:int3>>>16&255,g:int3>>>8&255,b:int3&255,a:a===0?1:a/255}}function byte(hex,at){return Number.parseInt(hex.slice(at,at+2),16)}function dup(nibble){return Number.parseInt(`${nibble??"0"}${nibble??"0"}`,16)}function clampByte(n){return Number.isFinite(n)?Math.min(255,Math.max(0,Math.round(n))):null}function rgbToHex(r,g,b){return`#${hex2(r)}${hex2(g)}${hex2(b)}`.toUpperCase()}function hex2(n){return n.toString(16).padStart(2,"0")}var NEAR_BLACK="#111111",WHITE="#FFFFFF",BLACK="#000000";function readableOn(background){let rgba=toRgba(background);if(rgba===null)return WHITE;let bg=relativeLuminance(rgba),black=relativeLuminance({r:17,g:17,b:17}),white=relativeLuminance({r:255,g:255,b:255});return luminanceContrast(bg,white)>=luminanceContrast(bg,black)?WHITE:NEAR_BLACK}function legibleOn(background,target){let first=readableOn(background);return contrastRatio(first,background)>=target?first:contrastRatio(WHITE,background)>=contrastRatio(BLACK,background)?WHITE:BLACK}function poleForGrounds(grounds){let worst=ink=>grounds.reduce((low,ground)=>Math.min(low,contrastRatio(ink,ground)),Number.POSITIVE_INFINITY);return worst(WHITE)>=worst(BLACK)?WHITE:BLACK}function relativeLuminance(rgba){let r=linearize(rgba.r/255),g=linearize(rgba.g/255),b=linearize(rgba.b/255);return.2126*r+.7152*g+.0722*b}function linearize(channel){return channel<=.03928?channel/12.92:Math.pow((channel+.055)/1.055,2.4)}function luminanceContrast(l1,l2){let lighter=Math.max(l1,l2),darker=Math.min(l1,l2);return(lighter+.05)/(darker+.05)}function contrastRatio(a,b){let fg=toRgba(a),bg=toRgba(b);if(fg===null||bg===null)return 1;let ground=bg.a>=1?bg:{...bg},fore=fg.a>=1?fg:composite(fg,ground);return luminanceContrast(relativeLuminance(fore),relativeLuminance(ground))}function composite(fg,bg){let a=fg.a,mix=(f,g)=>Math.round(f*a+g*(1-a));return{r:mix(fg.r,bg.r),g:mix(fg.g,bg.g),b:mix(fg.b,bg.b),a:1}}function flattenOnto(color,background){let fg=toRgba(color),bg=toRgba(background);if(fg===null||bg===null)return null;let out=fg.a>=1?fg:composite(fg,{...bg});return rgbToHex(out.r,out.g,out.b)}var PUSH_STEP=.05;function pushToContrast(color,grounds,pole,target){let first=grounds[0];if(first===void 0)return pole;let reads=candidate=>grounds.every(ground=>contrastRatio(candidate,ground)>=target);if(toRgba(color)===null)return pole;if(reads(color))return color;let flat=flattenOnto(color,first),from=flat===null?null:toRgba(flat),to=toRgba(pole);if(from===null||to===null)return pole;for(let step=1;step<1/PUSH_STEP;step+=1){let t=step*PUSH_STEP,mix=(a,b)=>Math.round(a+(b-a)*t),candidate=rgbToHex(mix(from.r,to.r),mix(from.g,to.g),mix(from.b,to.b));if(reads(candidate))return candidate}return pole}var TYPE_ROLE_DEFAULTS=/* @__PURE__ */Object.freeze({display:/* @__PURE__ */Object.freeze({size:29,lineHeight:1.06,weight:"800",face:"heading",letterSpacing:-.01,uppercase:false,tier:"heading"}),title:/* @__PURE__ */Object.freeze({size:23,lineHeight:1.12,weight:"800",face:"heading",letterSpacing:-.01,uppercase:false,tier:"heading"}),cardTitle:/* @__PURE__ */Object.freeze({size:19,lineHeight:1.22,weight:"800",face:"sans",letterSpacing:0,uppercase:false,tier:"heading"}),rowTitle:/* @__PURE__ */Object.freeze({size:15.5,lineHeight:1.4,weight:"700",face:"sans",letterSpacing:0,uppercase:false,tier:"content"}),body:/* @__PURE__ */Object.freeze({size:15,lineHeight:1.5,weight:"400",face:"sans",letterSpacing:0,uppercase:false,tier:"content"}),message:/* @__PURE__ */Object.freeze({size:15.5,lineHeight:1.5,weight:"400",face:"sans",letterSpacing:0,uppercase:false,tier:"content"}),bodySmall:/* @__PURE__ */Object.freeze({size:14.5,lineHeight:1.4,weight:"400",face:"sans",letterSpacing:0,uppercase:false,tier:"content"}),caption:/* @__PURE__ */Object.freeze({size:13,lineHeight:1.4,weight:"400",face:"sans",letterSpacing:0,uppercase:false,tier:"content"}),label:/* @__PURE__ */Object.freeze({size:10.5,lineHeight:1.4,weight:"400",face:"mono",letterSpacing:.05,uppercase:true,tier:"compact"}),eyebrow:/* @__PURE__ */Object.freeze({size:15,lineHeight:1.5,weight:"400",face:"mono",letterSpacing:.07,uppercase:true,tier:"compact"}),chip:/* @__PURE__ */Object.freeze({size:15,lineHeight:1.3,weight:"600",face:"sans",letterSpacing:0,uppercase:false,tier:"compact"}),tab:/* @__PURE__ */Object.freeze({size:16,lineHeight:1.5,weight:"600",face:"sans",letterSpacing:0,uppercase:false,tier:"compact"}),button:/* @__PURE__ */Object.freeze({size:15,lineHeight:1.5,weight:"700",face:"sans",letterSpacing:0,uppercase:false,tier:"control"}),badge:/* @__PURE__ */Object.freeze({size:12,lineHeight:1.5,weight:"700",face:"sans",letterSpacing:0,uppercase:false,tier:"badge"})});var freezeInPlace=Object.freeze;function deepFreeze(value){if(value!==null&&typeof value=="object"&&!Object.isFrozen(value)){freezeInPlace(value);for(let key of Object.keys(value))deepFreeze(value[key])}return value}var TEXT_SCALE_TIER_CAPS=/* @__PURE__ */Object.freeze({content:0,heading:2,control:1.8,compact:1.5,badge:1.3});var SPACE={xs:4,sm:8,md:12,lg:16,xl:24,xxl:32},RADIUS={tile:5,xs:6,sm:10,md:14,lg:20,xl:28,pill:500},TYPE_SIZE={nano:8,small:9,micro:10,tiny:11,caption:13,bodyTight:15,body:17,subtitle:20,heading:22,verdict:24},LINE_HEIGHT={tight:1.15,snug:1.3,normal:1.4,relaxed:1.55},WEIGHT={regular:"400",medium:"500",bold:"700"},LETTER_SPACING={eyebrow:1,monoWide:.9,headerBrand:-.42,tight:-.35},DEFAULT_MAX_FONT_SCALE=0,SYSTEM_FONT_FAMILY="System",SYSTEM_MONO_FAMILY="monospace",TIERS=["content","heading","control","compact","badge"];function authoredTierSizes(size){let out={};for(let tier of TIERS)out[tier]=size;return out}var NO_FONT_SOURCES=[];function baseType(){return{family:SYSTEM_FONT_FAMILY,mono:SYSTEM_MONO_FAMILY,fontUrl:null,families:{regular:SYSTEM_FONT_FAMILY,medium:SYSTEM_FONT_FAMILY,bold:SYSTEM_FONT_FAMILY,mono:SYSTEM_MONO_FAMILY,monoMedium:SYSTEM_MONO_FAMILY,monoBold:SYSTEM_MONO_FAMILY},namedFaces:{regular:false,medium:false,bold:false,mono:false,monoMedium:false,monoBold:false},fontUrls:{},size:TYPE_SIZE,tierSizes:authoredTierSizes(TYPE_SIZE),lineHeight:LINE_HEIGHT,weight:WEIGHT,letterSpacing:LETTER_SPACING,scale:1,maxScale:DEFAULT_MAX_FONT_SCALE,scaleCaps:TEXT_SCALE_TIER_CAPS,headingFamily:null,headingWeight:null,fontSources:NO_FONT_SOURCES,roles:TYPE_ROLE_DEFAULTS,typeScale:1}}var NO_SLOTS={},EASING_CURVES=/* @__PURE__ */Object.freeze({standard:/* @__PURE__ */Object.freeze([.2,0,0,1]),emphasized:/* @__PURE__ */Object.freeze([.2,.8,.2,1]),exit:/* @__PURE__ */Object.freeze([.4,0,1,1])});function cssCubicBezier(curve){return`cubic-bezier(${curve.join(", ")})`}var MOTION={duration:{instant:80,fast:140,normal:220,slow:320},spring:{gentle:{damping:18,stiffness:200}},easing:{standard:cssCubicBezier(EASING_CURVES.standard),emphasized:cssCubicBezier(EASING_CURVES.emphasized),exit:cssCubicBezier(EASING_CURVES.exit)},reducedMotion:false},LIGHT_COLOR={brand:"#10462E",brandSoft:"rgba(16,70,46,0.10)",brandSofter:"rgba(16,70,46,0.15)",brandBorder:"rgba(16,70,46,0.18)",borderHairlineGreen:"rgba(16,70,46,0.25)",brandBorderStrong:"rgba(16,70,46,0.55)",brandInk:"#10462E",linkInk:"#10462E",surface:"#FFFFFF",surfaceCream:"#FFFFFF",surfaceSubtle:"#F1F5F2",background:"#FFFFFF",borderRingCream:"#E4E4E4",chatGround:"#FFFFFF",composerFill:"#FFFFFF",composerBorder:"rgba(16,70,46,0.75)",shadow:"#0B3421",text:{primary:"#000000",secondary:"#0E462E",muted:"#6B6B6B",placeholder:"rgba(61,61,61,0.75)",onBrand:"#FFFFFF",metaCool:"#3D3D3D",timestamp:"rgba(61,61,61,0.75)"},primary:"#10462E",onPrimary:"#FFFFFF",accent:"#10462E",onAccent:"#FFFFFF",accentEdge:"#07C168",success:"#07C168",danger:"#C03410",onDanger:"#FFFFFF",errorRed:"#C03410",warningStrong:"#A45610",cautionAccent:"#D9821D",riskConcern:"#EFA700",sentiment:{up:"#07C168",neutral:"#FBC558",down:"#FF1B00"},badgeBgPositive:"rgba(7,193,104,0.12)",badgeBgCaution:"rgba(217,130,29,0.14)",badgeBgCritical:"rgba(192,52,16,0.06)",badgeBgNeutral:"rgba(107,107,107,0.12)",bubbleUser:"#10462E",bubbleAssistant:"#FFFFFF",bubbleVet:"#FFC3BC",onBubbleVet:"#000000",skeleton:"#E9F1E9",scanButtonPink:"#FFC3BC",highlight:"#FFC3BC",onHighlight:"#000000",mark:"#07C168",controlEdge:"rgba(16,70,46,0.18)",structureEdge:"rgba(16,70,46,0.25)",primaryEdge:"#10462E",checkupCardLowRiskBg:"rgba(7,193,104,0.10)",checkupCardConcernBg:"rgba(239,167,0,0.10)",info:"#10462E",badgeBgInfo:"rgba(16,70,46,0.10)",infoEdge:"rgba(16,70,46,0.25)"},EVERFUR_LIGHT=deepFreeze({brightness:"light",highContrast:false,meta:{displayName:"Everfur",logoUrl:null,placeholder:null,hidePoweredBy:false,assistantAvatarUrl:null},color:LIGHT_COLOR,space:SPACE,radius:RADIUS,type:baseType(),motion:MOTION,slots:NO_SLOTS}),DARK_COLOR={brand:"#6BD39A",brandSoft:"rgba(107,211,154,0.12)",brandSofter:"rgba(107,211,154,0.18)",brandBorder:"rgba(107,211,154,0.22)",borderHairlineGreen:"rgba(107,211,154,0.28)",brandBorderStrong:"rgba(107,211,154,0.55)",brandInk:"#6BD39A",linkInk:"#6BD39A",surface:"#1C1F23",surfaceCream:"#23272C",surfaceSubtle:"#23272C",background:"#15171A",borderRingCream:"#3A3F45",chatGround:"#1C1F23",composerFill:"#23272C",composerBorder:"rgba(107,211,154,0.75)",shadow:"#000000",text:{primary:"#F5F3F0",secondary:"#A9E4C4",muted:"#9A9A9A",placeholder:"rgba(255,255,255,0.55)",onBrand:"#0E1F17",metaCool:"#C9C9C9",timestamp:"rgba(245,243,240,0.7)"},primary:"#6BD39A",onPrimary:"#0E1F17",accent:"#6BD39A",onAccent:"#0E1F17",accentEdge:"#34D888",success:"#07C168",danger:"#F87171",onDanger:"#0E1F17",errorRed:"#FF6B5B",warningStrong:"#F0A35E",cautionAccent:"#D9821D",riskConcern:"#EFA700",sentiment:{up:"#07C168",neutral:"#FBC558",down:"#FF1B00"},badgeBgPositive:"rgba(7,193,104,0.18)",badgeBgCaution:"rgba(217,130,29,0.20)",badgeBgCritical:"rgba(185,28,28,0.22)",badgeBgNeutral:"rgba(255,255,255,0.10)",bubbleUser:"#6BD39A",bubbleAssistant:"#1C1F23",bubbleVet:"#FFC3BC",onBubbleVet:"#000000",skeleton:"#23272C",scanButtonPink:"#FFC3BC",highlight:"#605051",onHighlight:"#F5F3F0",mark:"#07C168",controlEdge:"rgba(107,211,154,0.22)",structureEdge:"rgba(107,211,154,0.28)",primaryEdge:"#6BD39A",checkupCardLowRiskBg:"rgba(7,193,104,0.16)",checkupCardConcernBg:"rgba(239,167,0,0.16)",info:"#6BD39A",badgeBgInfo:"rgba(107,211,154,0.12)",infoEdge:"rgba(107,211,154,0.28)"},EVERFUR_DARK=deepFreeze({brightness:"dark",highContrast:false,meta:{displayName:"Everfur",logoUrl:null,placeholder:null,hidePoweredBy:false,assistantAvatarUrl:null},color:DARK_COLOR,space:SPACE,radius:RADIUS,type:baseType(),motion:MOTION,slots:NO_SLOTS});function utf8Bytes(text){let out=[];for(let ch of text){let cp=ch.codePointAt(0);cp<128?out.push(cp):cp<2048?out.push(192|cp>>6,128|cp&63):cp<65536?out.push(224|cp>>12,128|cp>>6&63,128|cp&63):out.push(240|cp>>18,128|cp>>12&63,128|cp>>6&63,128|cp&63)}return out}function fnv1a64Hex(text){let hi=3421674724,lo=2216829733;for(let byte2 of utf8Bytes(text)){lo=(lo^byte2)>>>0;let loProduct=lo*435,carry=Math.floor(loProduct/4294967296),nextLo=loProduct>>>0;hi=hi*435+carry+lo*256>>>0,lo=nextLo}return hi.toString(16).padStart(8,"0")+lo.toString(16).padStart(8,"0")}var tenants=/* @__PURE__ */new WeakMap;function runtimeTenantOf(runtime){return tenants.get(runtime)}var SLOT_REGISTRY_HASH="sha256-0IDdNTQTtW2+pJ9GBCa/aWJrH/lf2X2jHhTQaCt6g5E=";var SLOT_BLOCKS={CartBar:{since:"0.4.0",variants:["standard","web"],platforms:["native","web"],settings:{lines:{type:"lines",values:["thumbs","total","sub","actionHiddenWord"]},variant:{type:"enum",values:["standard","web"],prop:"variant"}},props:["actionAccessibilityLabel","actionHiddenWord","actionLabel","busy","count","countLabel","disabled","fallback","loading","loadingLabel","sub","testID","thumbs","total","variant","visible"],required:["actionLabel","count"],fallback:"hide"},CartLine:{since:"0.2.0",variants:["standard","square","web","plan","drawer"],platforms:["native","web"],settings:{align:{type:"enum",values:["top","center"],prop:"align"},lines:{type:"lines",values:["badge","meta","wasPrice","smalls","note","metas","plan"]},thumbSize:{type:"enum",values:["sm","md","lg"],prop:"thumbSize"},variant:{type:"enum",values:["standard","square","web","plan","drawer"],prop:"variant"}},props:["actions","align","badge","error","fallback","image","imageAlt","loading","loadingLabel","meta","metas","name","namePress","note","plan","price","quantity","removeLabel","smalls","testID","thumbSize","variant","wasPrice"],required:["name"],fallback:null},CheckinSheet:{since:"0.4.0",variants:[],platforms:["native","web"],settings:{lines:{type:"lines",values:["kicker","note","doneText"]}},props:["action","closeLabel","doneText","fallback","flowLabel","image","imageKind","kicker","loading","loadingLabel","note","open","steps","testID","title"],required:["steps"],fallback:"hide"},OrderRow:{since:"0.2.0",variants:["standard","quiet","web"],platforms:["native","web"],settings:{actionGrid:{type:"boolean",prop:"actionGrid"},lines:{type:"lines",values:["meta","total","status","shots","notes"]},variant:{type:"enum",values:["standard","quiet","web"],prop:"variant"}},props:["accessibilityLabel","actionGrid","actions","error","loading","loadingLabel","meta","metaLink","notes","number","shots","status","testID","title","total","variant"],required:["title"],fallback:null},PlanNeedCard:{since:"0.2.0",variants:["standard","plan"],platforms:["native","web"],settings:{lines:{type:"lines",values:["source","sources","title","score","quote","jump"]},variant:{type:"enum",values:["standard","plan"],prop:"variant"}},props:["jump","kicker","loading","loadingLabel","more","quote","score","signals","source","sources","testID","title","variant"],required:["kicker","signals"],fallback:null},PriceSummary:{since:"0.2.0",variants:[],platforms:["native","web"],settings:{lines:{type:"lines",values:["total","note"]},size:{type:"enum",values:["checkout","drawer"],prop:"size",platforms:["web"],default:"checkout"},variant:{type:"enum",values:["standard","web"],prop:"variant",platforms:["web"],default:"standard"}},props:["loading","loadingLabel","note","rows","testID","total"],required:["rows"],fallback:null},ProductTile:{since:"0.2.0",variants:["standard","blend","web"],platforms:["native","web"],settings:{addLift:{type:"boolean",prop:"addLift"},ground:{type:"enum",values:["shelf","white"],prop:"ground"},imageInset:{type:"enum",values:["standard","even"],prop:"imageInset"},layout:{type:"enum",values:["tile","row","card"],prop:"layout"},lines:{type:"lines",values:["kicker","meta","price","wasPrice","per","badge","tag"]},metaTone:{type:"enum",values:["auto","autoDark"],prop:"metaTone"},variant:{type:"enum",values:["standard","blend","web"],prop:"variant"}},props:["action","addLift","badge","fallback","ground","image","imageAlt","imageInset","kicker","layout","loading","loadingLabel","meta","metaTone","name","per","price","stepper","tag","testID","variant","wasPrice"],required:["name"],fallback:null},ScoreLights:{since:"0.4.0",variants:[],platforms:["native","web"],settings:{lines:{type:"lines",values:["heading","since","source","next"]}},props:["heading","loading","loadingLabel","next","pill","since","source","state","testID","values","vizLabel"],required:["pill","state","values","vizLabel"],fallback:"hide"},SummaryList:{since:"0.1.0",variants:["standard","flush","card","inset"],platforms:["native","web"],settings:{lines:{type:"lines",values:["trailingRows","note"]},variant:{type:"enum",values:["standard","flush","card","inset"],prop:"variant"}},props:["loading","loadingLabel","note","rows","testID","total","trailingRows","variant"],required:["rows"],fallback:null},TipCard:{since:"0.2.0",variants:["standard","photo","web","plan"],platforms:["native","web"],settings:{footArrow:{type:"boolean",prop:"footArrow"},lines:{type:"lines",values:["text","foot"]},tone:{type:"enum",values:["y","c","g","r"],prop:"tone"},variant:{type:"enum",values:["standard","photo","web","plan"],prop:"variant"}},props:["accessibilityLabel","foot","footArrow","footPress","icon","image","loading","loadingLabel","number","pressTarget","testID","text","title","tone","variant"],required:["number","title"],fallback:null},WeatherAlert:{since:"0.4.0",variants:[],platforms:["native","web"],settings:{},props:["accessibilityLabel","loading","loadingLabel","testID","text","title"],required:["title"],fallback:"TipCard",fallbackProps:{number:{const:"!"},text:{from:"text"},title:{from:"title"},tone:{const:"r"}}},WeatherCard:{since:"0.4.0",variants:["walk","summary","tile","web"],platforms:["native","web"],settings:{lines:{type:"lines",values:["heading","condition","details","verdict","advice","comfort","label","note","action","units","tags"]},sky:{type:"enum",values:["sun","blue"],prop:"sky"},variant:{type:"enum",values:["walk","summary","tile","web"],prop:"variant"}},props:["action","advice","comfort","condition","details","glyph","heading","label","level","loading","loadingLabel","note","sky","tags","tagsLabel","temperature","testID","units","variant","verdict"],required:["temperature"],fallback:"hide"},WeatherDetails:{since:"0.4.0",variants:[],platforms:["native","web"],settings:{},props:["items","label","loading","loadingLabel","testID"],required:["items"],fallback:"hide"},WeatherForecast:{since:"0.4.0",variants:["plain","walk"],platforms:["native","web"],settings:{variant:{type:"enum",values:["plain","walk"],prop:"variant"}},props:["days","label","loading","loadingLabel","testID","variant"],required:["days"],fallback:"hide"},WeatherHours:{since:"0.4.0",variants:["plain","walk"],platforms:["native","web"],settings:{lines:{type:"lines",values:["windows","legend"]},variant:{type:"enum",values:["plain","walk"],prop:"variant"}},props:["hours","label","legend","loading","loadingLabel","testID","variant","windows"],required:["hours"],fallback:"hide"},WeatherLevels:{since:"0.4.0",variants:["phone","web"],platforms:["native","web"],settings:{variant:{type:"enum",values:["phone","web"],prop:"variant"}},props:["label","loading","loadingLabel","rows","testID","variant"],required:["rows"],fallback:"hide"},WeatherReading:{since:"0.4.0",variants:["phone","web"],platforms:["native","web"],settings:{lines:{type:"lines",values:["word","choices"]},variant:{type:"enum",values:["phone","web"],prop:"variant"}},props:["choices","loading","loadingLabel","testID","tone","value","variant","word"],required:["value"],fallback:"hide"},WhySheet:{since:"0.4.0",variants:["standard","web","plan"],platforms:["native","web"],settings:{lines:{type:"lines",values:["kind","sub","sections","link","score"]},tone:{type:"enum",values:["calm","y","c","g","r"],prop:"tone"},variant:{type:"enum",values:["standard","web","plan"],prop:"variant"}},props:["action","closeLabel","fallback","heading","image","imageKind","kind","link","loading","loadingLabel","rows","score","sections","sub","testID","title","tone","variant"],required:[],fallback:"hide"}};var SLOT_LKG_KEY="everfur.slots.v2",SLOT_INSTALL_ID_KEY="everfur.slots.installId.v2";var SLOT_CACHE_MS=6e4,SLOT_CACHE_MAX_MS=3e5,SLOT_FAILURE_MS=15e3,SLOT_LKG_MAX_AGE_MS=10080*60*1e3,ETAG=/^(W\/)?"[^"]{1,200}"$/,INSTALL_ID=/^[A-Za-z0-9_-]{8,128}$/,MAX_AGE=/(?:^|,)\s*max-age\s*=\s*"?(\d{1,10})"?\s*(?:,|$)/i,NO_STORE2=/(?:^|,)\s*(?:no-store|no-cache)\s*(?:,|$)/i,FIXED_SCOPE=/* @__PURE__ */Object.freeze({doc:"default",tenant:"default",epoch:0});function randomId(){let out="";for(let i=0;i<4;i++)out+=Math.floor(Math.random()*4294967296).toString(36).padStart(7,"0");return out}function slotCacheMs(cacheControl){if(cacheControl===null)return SLOT_CACHE_MS;if(NO_STORE2.test(cacheControl))return 0;let m=MAX_AGE.exec(cacheControl);return m===null?SLOT_CACHE_MS:Math.min(Number(m[1])*1e3,SLOT_CACHE_MAX_MS)}var has=(obj2,key)=>Object.prototype.hasOwnProperty.call(obj2,key);function createSlotClient(deps){let now=deps.now??Date.now,scopeOf=()=>{try{return deps.scope?.()??FIXED_SCOPE}catch{return FIXED_SCOPE}},memory=/* @__PURE__ */new Map,failures=/* @__PURE__ */new Map,inFlight=/* @__PURE__ */new Map,installId=null,epoch=null,rescoped=false,writes=Promise.resolve(),track=(event,props)=>{try{deps.telemetry?.track(event,props)}catch{}},observe=scope=>{epoch!==scope.epoch&&(epoch!==null&&(memory.clear(),failures.clear(),installId=null,rescoped=true),epoch=scope.epoch)},stale=scope=>{let current=scopeOf();return current.epoch!==scope.epoch||current.doc!==scope.doc},undoIfStale=async(scope,key,written)=>{if(!stale(scope))return false;try{await deps.kv.getItem(key)===written&&await deps.kv.removeItem(key)}catch{}return true},readInstallId=scope=>{let tenant=fnv1a64Hex(scope.tenant);if(installId?.tenant===tenant)return installId.id;let fresh2=rescoped;rescoped=false;let id=(async()=>{if(!fresh2)try{let raw=await deps.kv.getItem(SLOT_INSTALL_ID_KEY),kept=raw===null?null:JSON.parse(raw);if(kept?.tenant===tenant&&typeof kept.id=="string"&&INSTALL_ID.test(kept.id))return kept.id}catch{}try{let made=(deps.newId??randomId)();if(!INSTALL_ID.test(made))return null;let text=JSON.stringify({tenant:tenant,id:made});return await deps.kv.setItem(SLOT_INSTALL_ID_KEY,text),await undoIfStale(scope,SLOT_INSTALL_ID_KEY,text)?null:made}catch{return null}})();return installId={tenant:tenant,id:id},id},readFile=async scopeKey=>{try{let raw=await deps.kv.getItem(SLOT_LKG_KEY),file=raw===null?null:JSON.parse(raw);return file?.scope!==scopeKey||file.docs===null||typeof file.docs!="object"||Array.isArray(file.docs)?{docs:{}}:{docs:file.docs}}catch{return{docs:{}}}},readStored=async(scope,slot)=>{let file=await readFile(fnv1a64Hex(scope.doc)),entry=has(file.docs,slot)?file.docs[slot]:void 0;if(entry==null||typeof entry.at!="number")return null;let age=now()-entry.at;if(!(age<SLOT_LKG_MAX_AGE_MS)||age<-SLOT_CACHE_MAX_MS)return null;let parsed=parseSlotDoc(entry.doc,slot);if(!parsed.ok)return null;let etag=typeof entry.etag=="string"&&ETAG.test(entry.etag)?entry.etag:null;return{doc:parsed.doc,etag:etag}},update=(scope,slot,change)=>{let scopeKey=fnv1a64Hex(scope.doc);return writes=writes.then(async()=>{if(!stale(scope))try{let file=await readFile(scopeKey);if(stale(scope))return;let docs={...file.docs},next=change(has(docs,slot)?docs[slot]:void 0);if(next===null?delete docs[slot]:docs[slot]=next,Object.keys(docs).length===0)await deps.kv.removeItem(SLOT_LKG_KEY);else{let text=JSON.stringify({scope:scopeKey,docs:docs});await deps.kv.setItem(SLOT_LKG_KEY,text),await undoIfStale(scope,SLOT_LKG_KEY,text)}}catch{}}),writes},read=async(scope,slot)=>{let key=`${scope.doc}|${slot}`,mem=memory.get(key),stored=mem===void 0?await readStored(scope,slot):null,held=mem!==void 0?{doc:mem.doc,etag:mem.etag}:stored,install=await readInstallId(scope),headers={"x-everfur-blocks":deps.blocks??SLOT_REGISTRY_HASH};install!==null&&(headers["x-everfur-install-id"]=install),held?.doc&&held.etag!==null&&(headers["if-none-match"]=held.etag);let etag=null,ttl=SLOT_CACHE_MS,res=await deps.send("slots.read",{method:"GET",path:`/widget/v1/slots/${encodeURIComponent(slot)}`,headers:headers,rawText:65536,onResponseHeaders:header=>{let value=header("etag");etag=value!==null&&ETAG.test(value)?value:null,ttl=slotCacheMs(header("cache-control"))}}).catch(()=>null),fallBack=()=>held?.doc?{doc:held.doc,source:mem!==void 0?"cache":"last-known-good"}:{doc:null,source:"bundled"},failed=status2=>(failures.set(key,now()),track("slots.read_failed",{slot:slot,status:status2}),fallBack());if(stale(scope))return{doc:null,source:"bundled"};if(res===null)return failed(null);if(res.ok){let body=slotBodyOf(res.value);if(!body.ok)return track("slots.refused",{slot:slot,reason:body.reason}),fallBack();let parsed=parseSlotDoc(body.raw,slot);if(!parsed.ok)return track("slots.refused",{slot:slot,reason:parsed.reason}),fallBack();let at=now();return memory.set(key,{doc:parsed.doc,etag:etag,at:at,ttl:ttl}),await update(scope,slot,()=>({etag:etag,doc:body.raw,at:at})),{doc:parsed.doc,source:"live"}}let status=res.error.httpStatus;if(status===304&&held?.doc){let at=now();return memory.set(key,{doc:held.doc,etag:held.etag,at:at,ttl:ttl}),await update(scope,slot,entry=>entry===void 0?null:{...entry,at:at}),{doc:held.doc,source:"live"}}return status===404?(memory.set(key,{doc:null,etag:null,at:now(),ttl:ttl}),await update(scope,slot,()=>null),{doc:null,source:"bundled"}):failed(status??null)},peekIn=(scope,slot)=>{let mem=memory.get(`${scope.doc}|${slot}`);return mem===void 0||now()-mem.at>=mem.ttl?null:mem.doc===null?{doc:null,source:"bundled"}:{doc:mem.doc,source:"cache"}},storedIn=async(scope,slot)=>{let mem=memory.get(`${scope.doc}|${slot}`);if(mem!==void 0)return mem.doc===null?{doc:null,source:"bundled"}:{doc:mem.doc,source:"cache"};let kept=await readStored(scope,slot);return kept===null?{doc:null,source:"bundled"}:{doc:kept.doc,source:"last-known-good"}};return{peek(slot){let scope=scopeOf();return observe(scope),peekIn(scope,slot)},stored(slot){let scope=scopeOf();return observe(scope),storedIn(scope,slot).catch(()=>({doc:null,source:"bundled"}))},load(slot){let scope=scopeOf();observe(scope);let fromCache=peekIn(scope,slot);if(fromCache!==null)return Promise.resolve(fromCache);let key=`${scope.doc}|${slot}`,flight=`${scope.epoch}|${key}`,pending=inFlight.get(flight);if(pending!==void 0)return pending;let failedAt=failures.get(key),next=(failedAt!==void 0&&now()-failedAt<SLOT_FAILURE_MS?storedIn(scope,slot):read(scope,slot)).catch(()=>({doc:null,source:"bundled"})).finally(()=>inFlight.delete(flight));return inFlight.set(flight,next),next}}}function runtimeSlotScope(runtime){let tenant=runtimeTenantOf(runtime)??"unknown",auth=runtime.registry.services.authFor(null),who=auth.mode==="personalized"?`u:${auth.userRef??""}`:`a:${auth.userRef??""}`;return{doc:`${tenant}|${who}`,tenant:tenant,epoch:runtime.scopeEpoch??0}}var CLIENTS_SYMBOL=/* @__PURE__ */Symbol.for("@everfur/sdk#SlotClients@v1");function slotClientFor(runtime,make=runtimeSlotClient){let host2=globalThis,all=host2[CLIENTS_SYMBOL];all instanceof WeakMap||(all=/* @__PURE__ */new WeakMap,host2[CLIENTS_SYMBOL]=all);let map=all,client=map.get(runtime);return client===void 0&&(client=make(runtime),map.set(runtime,client)),client}function runtimeSlotClient(runtime){let{services:services}=runtime.registry;return createSlotClient({send:(call,req)=>createRequestFunnel({auth:services.authFor(null),...services.errorPolicy?{errorPolicy:services.errorPolicy}:{}}).send(call,req),kv:services.kv,telemetry:services.telemetry,scope:()=>runtimeSlotScope(runtime)})}function drawn(slot,load){return{doc:load.doc??bundledSlotDoc(slot),source:load.source}}function useSlotDoc(slot,enabled){let{runtime:runtime,scopeEpoch:scopeEpoch}=useEverfurContext(),client=enabled?slotClientFor(runtime):null,[state,setState]=useState(()=>{let fresh2=client?.peek(slot);return fresh2?{slot:slot,epoch:scopeEpoch,value:drawn(slot,fresh2)}:null});return useEffect(()=>{if(client===null)return;let live=true,landed=false,fresh2=client.peek(slot);if(fresh2!==null){setState({slot:slot,epoch:scopeEpoch,value:drawn(slot,fresh2)});return}return client.stored(slot).then(held=>{live&&!landed&&setState({slot:slot,epoch:scopeEpoch,value:drawn(slot,held)})}),client.load(slot).then(load=>{landed=true,live&&setState({slot:slot,epoch:scopeEpoch,value:drawn(slot,load)})}),()=>{live=false}},[client,slot,scopeEpoch]),enabled?state!==null&&state.slot===slot&&state.epoch===scopeEpoch?state.value:{doc:null,source:"pending"}:{doc:bundledSlotDoc(slot),source:"bundled"}}var UI_RN_WX_SUN=[{color:"#D5AD47",icon:{strokes:[{width:1.3,cap:true,closed:false,points:[18.2,12,19.8,12]},{width:1.3,cap:true,closed:false,points:[16.385,16.385,17.515,17.515]},{width:1.3,cap:true,closed:false,points:[12,18.2,12,19.8]},{width:1.3,cap:true,closed:false,points:[7.615,16.385,6.485,17.515]},{width:1.3,cap:true,closed:false,points:[5.8,12,4.2,12]},{width:1.3,cap:true,closed:false,points:[7.615,7.615,6.485,6.485]},{width:1.3,cap:true,closed:false,points:[12,5.8,12,4.2]},{width:1.3,cap:true,closed:false,points:[16.385,7.615,17.515,6.485]}],boxes:[],triangles:[],seams:[]}},{color:"#F2C763",icon:{strokes:[],boxes:[{x:9.75,y:9.75,w:4.5,h:4.5,radius:2.25,width:4.5}],triangles:[],seams:[]}},{color:"#D5AD47",icon:{strokes:[],boxes:[{x:7.5,y:7.5,w:9,h:9,radius:4.5,width:1}],triangles:[],seams:[]}}],UI_RN_WX_SUN_LG=[{color:"#F2C763",icon:{strokes:[{width:1.5,cap:true,closed:false,points:[12,.75,12,3.429]},{width:1.5,cap:true,closed:false,points:[12,20.571,12,23.25]},{width:1.5,cap:true,closed:false,points:[.75,12,3.429,12]},{width:1.5,cap:true,closed:false,points:[20.571,12,23.25,12]},{width:1.5,cap:true,closed:false,points:[4.072,4.072,5.947,5.947]},{width:1.5,cap:true,closed:false,points:[18.054,18.054,19.929,19.929]},{width:1.5,cap:true,closed:false,points:[19.929,4.072,18.054,5.947]},{width:1.5,cap:true,closed:false,points:[5.947,18.054,4.072,19.929]}],boxes:[],triangles:[[7.064,14.085,7.558,14.995,6.752,13.08],[9.915,7.064,9.005,7.558,10.92,6.752],[14.085,16.936,14.995,16.442,13.08,17.248],[16.936,9.915,16.442,9.005,17.248,10.92],[6.643,12,6.752,13.08,7.558,14.995],[6.643,12,7.558,9.005,6.752,10.92],[12,6.643,14.995,7.558,13.08,6.752],[12,6.643,10.92,6.752,9.005,7.558],[12,17.357,13.08,17.248,14.995,16.442],[12,17.357,9.005,16.442,10.92,17.248],[17.357,12,16.442,14.995,17.248,13.08],[17.357,12,17.248,10.92,16.442,9.005],[7.558,14.995,8.212,15.788,6.643,12],[7.064,9.915,6.752,10.92,7.558,9.005],[14.085,7.064,13.08,6.752,14.995,7.558],[9.005,7.558,8.212,8.212,12,6.643],[14.995,16.442,15.788,15.788,12,17.357],[9.915,16.936,10.92,17.248,9.005,16.442],[16.936,14.085,17.248,13.08,16.442,14.995],[16.442,9.005,15.788,8.212,17.357,12],[8.212,15.788,8.212,8.212,6.643,12],[7.558,9.005,6.643,12,8.212,8.212],[14.995,7.558,12,6.643,15.788,8.212],[15.788,8.212,12,6.643,8.212,8.212],[12,17.357,17.357,12,8.212,15.788],[15.788,15.788,17.357,12,12,17.357],[9.005,16.442,12,17.357,8.212,15.788],[8.212,8.212,8.212,15.788,17.357,12],[16.442,14.995,17.357,12,15.788,15.788],[15.788,8.212,8.212,8.212,17.357,12]],seams:[[6.752,13.08,7.558,14.995,5.121,5.035],[9.005,7.558,10.92,6.752,5.035,5.121],[13.08,17.248,14.995,16.442,5.121,5.035],[16.442,9.005,17.248,10.92,5.035,5.121],[6.643,12,7.558,14.995,5.179,4.892],[6.643,12,7.558,9.005,5.179,4.892],[6.752,10.92,7.558,9.005,5.121,5.035],[12,6.643,14.995,7.558,5.179,4.892],[13.08,6.752,14.995,7.558,5.121,5.035],[9.005,7.558,12,6.643,4.892,5.179],[12,17.357,14.995,16.442,5.179,4.892],[9.005,16.442,12,17.357,4.892,5.179],[9.005,16.442,10.92,17.248,5.035,5.121],[16.442,14.995,17.357,12,4.892,5.179],[16.442,14.995,17.248,13.08,5.035,5.121],[16.442,9.005,17.357,12,4.892,5.179],[6.643,12,8.212,15.788,5.179,1.633],[8.212,8.212,12,6.643,1.633,5.179],[12,17.357,15.788,15.788,5.179,1.633],[15.788,8.212,17.357,12,1.633,5.179],[8.212,8.212,8.212,15.788,1.207,1.207],[6.643,12,8.212,8.212,5.179,1.633],[12,6.643,15.788,8.212,5.179,1.633],[8.212,8.212,15.788,8.212,1.207,1.207],[12,17.357,17.357,12,1.207,1.207],[8.212,15.788,17.357,12,.5,1.207],[8.212,15.788,12,17.357,1.633,5.179],[15.788,15.788,17.357,12,1.633,5.179],[8.212,8.212,17.357,12,1.207,.5]]}}],UI_RN_WX_PLAY={strokes:[],boxes:[],triangles:[[8.241,19.053,8.849,19.39,9.53,19.25],[8,18.4,8.241,19.053,9.53,19.25],[9.53,4.75,8.849,4.61,8.241,4.947],[9.53,4.75,8.241,4.947,8,5.6],[19.73,12.85,20.146,12.332,20.146,11.668],[19.73,12.85,20.146,11.668,19.73,11.15],[8,18.4,9.53,19.25,19.73,12.85],[8,5.6,8,18.4,19.73,12.85],[19.73,11.15,9.53,4.75,8,5.6],[8,5.6,19.73,12.85,19.73,11.15]],seams:[[8.241,19.053,9.53,19.25,1.348,1.348],[8,18.4,9.53,19.25,.581,1.348],[8.241,4.947,9.53,4.75,1.348,1.348],[8,5.6,9.53,4.75,.581,1.348],[19.73,12.85,20.146,11.668,1.42,1.42],[19.73,11.15,19.73,12.85,.622,1.42],[19.73,12.85,8,18.4,4.202,.358],[19.73,12.85,8,5.6,.324,4.459],[19.73,11.15,8,5.6,4.202,4.459]]};var everfurTokens=/* @__PURE__ */Object.freeze({color:/* @__PURE__ */Object.freeze({efDarkGreen:"#10462E",efWhite:"#FFFFFF",efBlack:"#000000",efDustyPink:"#FFC3BC",efBrightGreen:"#07C168",efYellow:"#F2C763",efDustyBlue:"#A8B9DA",efSkyBlue:"#4E98C9",efCharcoal:"#3D3D3D",efIconHoney:"#926F06",efIconLeaf:"#16864A",efIconSky:"#1E7AB7",efIconTeal:"#05827E",efIconCocoa:"#865B3F",efIconNavy:"#223E80",efIconBerry:"#B6407F",efIconAmber:"#B25E05",efIconMoss:"#5E7E1E",efIconSlate:"#5A6087",efIconRose:"#CA4463",efRedDeep:"#6D1D14",efRedBright:"#C03410",bg:"#FFFFFF",bgBrand:"#10462E",bgAccent:"#FFC3BC",bgAccentB2b:"#A8B9DA",bgWarm:"#F2C763",text:"#000000",textBrand:"#10462E",textOnBrand:"#FFFFFF",textCta:"#07C168",textMuted:"#6B6B6B",bgMist:"#F1F5F2",border:"#E4E4E4",borderStrong:"#3D3D3D",hi:"#DAF6E8",hiStrong:"#ABEACC",hiEdge:"#0B8A4E",now:"#0C844B",alert:"#C03410",alertDeep:"#6D1D14",btnPrimaryBg:"#10462E",btnPrimaryText:"#FFFFFF",btnSecondaryBg:"rgba(0, 0, 0, 0)",btnSecondaryText:"#10462E",btnSecondaryBorder:"#10462E",mixMint:"#7FE8AE",mixLegal:"#A9C4B5",mixPromptGreen:"#BFEFD8",mixPromptYellow:"#F7DC9E",mixRx:"#E0E6F2",mixShelf:"#F3F3F3",mixEar:"#F09FA3",efBone:"#FAF9F6",efTennisBall:"#DCEF5A",efFawn:"#E8CAA4",efPine:"#12301F",efPine70:"rgba(18, 48, 31, 0.72)",efLiver:"#7A4330",efMerle:"#AEB8C1",efNose:"#E9B6A6"}),font:/* @__PURE__ */Object.freeze({family:/* @__PURE__ */Object.freeze({base:'Azeret, "Helvetica Neue", Arial, sans-serif',mono:'"Azeret Mono", ui-monospace, "SF Mono", Menlo, monospace'}),size:/* @__PURE__ */Object.freeze({xs:13,sm:15,md:17,lg:20,xl:24,"2xl":32,"3xl":40,"4xl":56}),lineHeight:/* @__PURE__ */Object.freeze({body:1.55,display:1.15}),weight:/* @__PURE__ */Object.freeze({regular:400,medium:500,bold:700})}),space:/* @__PURE__ */Object.freeze({1:4,2:8,3:12,4:16,5:24,6:32,7:48,8:64,9:96}),radius:/* @__PURE__ */Object.freeze({sm:6,md:10,lg:20,xl:28,pill:999}),shadow:/* @__PURE__ */Object.freeze({sm:/* @__PURE__ */Object.freeze({x:0,y:1,blur:2,spread:0,color:"rgba(16, 70, 46, 0.06)"}),md:/* @__PURE__ */Object.freeze({x:0,y:4,blur:16,spread:0,color:"rgba(16, 70, 46, 0.08)"})}),layout:/* @__PURE__ */Object.freeze({container:1200,containerNarrow:720}),motion:/* @__PURE__ */Object.freeze({easing:/* @__PURE__ */Object.freeze({out:/* @__PURE__ */Object.freeze([.23,1,.32,1]),inOut:/* @__PURE__ */Object.freeze([.77,0,.175,1]),drawer:/* @__PURE__ */Object.freeze([.32,.72,0,1]),expo:/* @__PURE__ */Object.freeze([.16,1,.3,1]),bark:/* @__PURE__ */Object.freeze([.34,1.56,.64,1])}),duration:/* @__PURE__ */Object.freeze({press:160,fade:200,enter:300,sheet:420,sheetOut:240,draw:900})}),web:/* @__PURE__ */Object.freeze({serif:'Azeret, "Helvetica Neue", Arial, sans-serif',sans:'Azeret, "Helvetica Neue", Arial, sans-serif',tSmall:14,max:1312}),role:/* @__PURE__ */Object.freeze({color:/* @__PURE__ */Object.freeze({ink:"#10462E",go:"#07C168",muted:"#6B6B6B",line:"#E4E4E4",pink50:"#FFE1DE",tintSage:"#E6ECE8",tintPink:"#FFEAE8",tintPinkSoft:"#FFF6F5",tintBlue:"#EAEEF6",tintYellow:"#FCF0D6",tintYellowEdge:"#F6D892",tintRed:"#FBF1EE",tintGo:"#DCF6EA",icoGrey:"#6B6B6B",icoSage:"#819E90",icoBlue:"#4E98C9",icoWarm:"#D6D0C2",icoAmber:"#B67B3F",amberText:"#A05E32",wxSun:"#F2C763",wxSunEdge:"#D5AD47",wxCloud:"#FFFFFF",wxCloudEdge:"#DEDEDE",wxCloudDark:"#EAEAEA",wxCloudDarkEdge:"#C5C5C5",wxRain:"#75AFD5",wxSnow:"#AFD1E7",wxMist:"#D4D4D4",cwShelf:"#FFFFFF",cwShelfDeep:"#F1F4F2",cwRx:"#E0E6F2",cwRxInk:"#5A6087",cwEdgeC:"#C6D3CD",nItch:"#CA4463",nJoints:"#5E7E1E",nItchC:"#FFC3BC",nJointsC:"#D8E0C9",lvlGood:"#77DDAC",lvlOk:"#F4CF7A",lvlHot:"#DC8F7C",lvlStorm:"#8DA4BB",mapLand:"#F5F5F5",mapEdge:"#EAEAEA",mapPark:"#D7F5E7",mapWater:"#D8E0EE",mapSand:"#FCF3DD"}),size:/* @__PURE__ */Object.freeze({max:1440,gutter:16,sideW:220,cardPad:16,barH:48,tabH:58,dock:64,side:16,stackGap:12})})});var BLOCK_BOX={shown:true,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},BLOCK_TEXT={shown:true,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},blockBox=p=>({...BLOCK_BOX,...p}),blockText=p=>({...BLOCK_TEXT,...p}),everfurMetrics={button:{ink:{fill:false,minHeight:52,paddingX:24,gap:8,borderWidth:1.5,ring:false,fontSize:17,fontWeight:700,lineHeight:1,iconSize:24},go:{fill:false,minHeight:52,paddingX:24,gap:8,borderWidth:1.5,ring:false,fontSize:17,fontWeight:700,lineHeight:1,iconSize:24},outline:{fill:false,minHeight:52,paddingX:24,gap:8,borderWidth:1.5,ring:false,fontSize:17,fontWeight:400,lineHeight:1,iconSize:24},pink:{fill:true,minHeight:60,paddingX:16,gap:8,borderWidth:1,ring:false,fontSize:18,fontWeight:700,lineHeight:1,iconSize:24},danger:{fill:false,minHeight:46,paddingX:16,gap:8,borderWidth:1.5,ring:false,fontSize:15,fontWeight:700,lineHeight:1.55,iconSize:20},inkSm:{fill:false,minHeight:46,paddingX:16,gap:8,borderWidth:1.5,ring:false,fontSize:15,fontWeight:700,lineHeight:1,iconSize:20},goSm:{fill:false,minHeight:46,paddingX:16,gap:8,borderWidth:1.5,ring:false,fontSize:15,fontWeight:700,lineHeight:1,iconSize:20},outlineSm:{fill:false,minHeight:46,paddingX:16,gap:8,borderWidth:1.5,ring:false,fontSize:15,fontWeight:400,lineHeight:1,iconSize:20},pinkSm:{fill:true,minHeight:46,paddingX:16,gap:8,borderWidth:1,ring:false,fontSize:15,fontWeight:700,lineHeight:1,iconSize:20},row:{fill:false,minHeight:36,paddingX:14,gap:8,borderWidth:1.5,ring:false,fontSize:14,fontWeight:400,lineHeight:1,iconSize:17},outlineInSheetWeight:700,money:{fill:false,minHeight:52,paddingX:24,gap:8,borderWidth:1,ring:false,fontSize:17,fontWeight:700,lineHeight:1,iconSize:24,bg:"pink",fg:"ink",edgeColor:"ink"},moneySm:{fill:false,minHeight:46,paddingX:16,gap:8,borderWidth:1,ring:false,fontSize:15,fontWeight:700,lineHeight:1,iconSize:20,bg:"pink",fg:"ink",edgeColor:"ink"},warn:{fill:false,minHeight:52,paddingX:24,gap:8,borderWidth:1.5,ring:false,fontSize:17,fontWeight:700,lineHeight:1,iconSize:24,bg:"none",fg:"alertDeep",edgeColor:"alert"},warnSm:{fill:false,minHeight:46,paddingX:16,gap:8,borderWidth:1.5,ring:false,fontSize:15,fontWeight:700,lineHeight:1,iconSize:20,bg:"none",fg:"alertDeep",edgeColor:"alert"},text:{fontSize:15,fontWeight:700,lineHeight:1.4,color:"ink",pressOpacity:.6}},pill:{minHeight:24,paddingX:10,fontSize:12,fontWeight:700,lineHeight:1,letterSpacing:.72,ring:{soon:1.25,overdue:1.25,clear:1.5,later:1.25,plain:1.5,new:1.5},plainRingAlpha:.2,dot:6,dotGap:6,allergyDot:{size:6,gap:6,color:"alert"},mono:true,upper:true,tones:{rx:{bg:"#E0E6F2",fg:"ink",ring:0,ringColor:"ink"},soon:{bg:"surface",fg:"ink",ring:1.25,ringColor:"tintYellowEdge"},overdue:{bg:"surface",fg:"alert",ring:1.25,ringColor:"alert"},clear:{bg:"surface",fg:"go",ring:1.5,ringColor:"go"},stable:{bg:"tintGo",fg:"ink",ring:0,ringColor:"ink"},later:{bg:"surface",fg:"muted",ring:1.25,ringColor:"line"},plain:{bg:"surface",fg:"ink",ring:1.5,ringColor:"ink/0.2"},new:{bg:"surface",fg:"ink",ring:1.5,ringColor:"go"},pink:{bg:"tintPink",fg:"ink",ring:0,ringColor:"ink"},watch:{bg:"#F9E6B9",fg:"ink",ring:0,ringColor:"ink"},high:{bg:"surface",fg:"alert",ring:1.25,ringColor:"alert"},allergy:{bg:"surface",fg:"alertDeep",ring:1.25,ringColor:"alert"}}},chip:{minHeight:42,paddingX:16,gap:8,borderWidth:1,fontSize:15,fontWeight:500,lineHeight:1.3},card:{padding:16,radius:20,borderWidth:1,titleSize:18,titleWeight:700,titleLineHeight:1.25,titleTracking:-.36,titleGap:12,leadSize:15,leadLineHeight:1.5,leadGap:12,headGapX:16,headGapY:8,headGap:12,bodySize:17,bodyLineHeight:1.55,ghost:{borderStyle:"dashed",borderColor:"#B9C9C2"}},sectionHeader:{gapX:12,gapY:8,marginTop:8},kicker:{fontSize:12,fontWeight:700,lineHeight:1.55,letterSpacing:.96,gap:8},quantityStepper:{borderWidth:1,borderColor:"line",ring:false,button:40,icon:18,valueMinWidth:28,offColor:"line",offOpacity:1,valueSize:17,valueWeight:700,valueLineHeight:1.55},tabs:{minHeight:44,gap:6,fontSize:15,fontWeight:500,currentWeight:700,lineHeight:1.55,indicator:3,hairline:1,dot:7},sheet:{radius:28,grabHeight:20,grabBarWidth:36,grabBarHeight:5,grabBarRadius:3,headPaddingTop:4,headPaddingX:16,headPaddingBottom:12,headGap:12,titlesGap:2,titleSize:18,close:36,closeIcon:20,bodyGap:12,bodyPaddingX:16,bodyPaddingBottom:24,actsGap:12,actsMarginTop:4},empty:{gap:8,titleSize:22,titleWeight:500,titleLineHeight:1.2,titleTracking:-.33,leadSize:15,leadLineHeight:1.5,actsGap:12,actsMarginTop:12,buttonMinWidth:200,linkMinHeight:44,linkPaddingX:4,linkSize:15,linkWeight:700,linkUnderlineOffset:3},skeleton:{gap:10,lineHeight:12,widths:[100,82,64]},summary:{paddingX:24,paddingY:0,radius:20,borderWidth:1,background:"surface",shadow:{color:"",x:0,y:0,blur:0,spread:0},rowDivider:1,rowMinHeight:0,rowCenter:false,rowPaddingY:14,termColor:"muted",valueColor:"ink",tabular:false,totalRowMinHeight:0,totalTermSize:15,totalTermWeight:400,totalTermColor:"muted",totalWeight:700,rowGapX:16,rowGapY:2,termSize:15,termLineHeight:1.55,valueSize:15,valueWeight:700,valueLineHeight:1.4,totalSize:20,totalLineHeight:1.4,off:{shown:true,size:15,weight:700,lineHeight:21,color:"go",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0}},icon:{size:24},timeline:{row:{shown:true,w:361,h:69.281,padding:[0,0,24,0],marginTop:0,marginBottom:0,gap:[16,16],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},done:{shown:true,w:28,h:28,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[14,14],bg:"ink",edge:{width:2,color:"ink",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"surface",fit:"cover",x:0,y:0,dy:0},now:{shown:true,w:28,h:28,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[14,14],bg:"surface",edge:{width:2,color:"ink",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},next:{shown:true,w:28,h:28,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[14,14],bg:"surface",edge:{width:2,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},nowInner:{size:10,color:"go"},check:{shown:true,w:16,h:16,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"surface",fit:"cover",x:0,y:0,dy:0},lineDoneDone:{x:13,top:30,bottom:2,width:2,color:"ink"},lineDoneNow:{x:13,top:30,bottom:2,width:2,color:"ink"},lineNowNext:{x:13,top:30,bottom:2,width:2,color:"line"},title:{shown:true,size:17,weight:700,lineHeight:22.1,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:3},head:{shown:true,w:317,h:27,padding:[3,0,0,0],marginTop:0,marginBottom:0,gap:[8,4],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},nextTitle:{shown:true,size:17,weight:700,lineHeight:22.1,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:3},when:{shown:true,size:13,weight:400,lineHeight:18.2,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:2,paddingTop:0},text:{shown:true,size:15,weight:400,lineHeight:22.5,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:2,paddingTop:0}},thumbnail:{xs:{frame:{shown:true,w:48,h:48,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[6,6],bg:"surface",edge:{width:1,color:"line",ring:true},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"contain",x:0,y:0,dy:0},img:{shown:false,w:48,h:48,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[6,6],bg:"surface",edge:{width:1,color:"line",ring:true},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"contain",x:0,y:0,dy:0},empty:{shown:true,w:48,h:48,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[10,10],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"#1E7AB7",fit:"cover",x:0,y:0,dy:0},icon:{shown:true,w:22,h:22,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"#1E7AB7",fit:"cover",x:0,y:0,dy:0},top:false},sm:{frame:{shown:true,w:64,h:64,padding:[8,8,8,8],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[14,14],bg:"#F3F3F3",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},img:{shown:true,w:48,h:48,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"contain",x:0,y:0,dy:0},empty:{shown:true,w:64,h:64,padding:[8,8,8,8],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[14,14],bg:"#F3F3F3",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},icon:{shown:true,w:22,h:22,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"#1E7AB7",fit:"cover",x:0,y:0,dy:0},top:false},md:{frame:{shown:true,w:156,h:156,padding:[0,0,0,0],marginTop:0,marginBottom:6,gap:[0,0],minHeight:0,radius:[20,20],bg:"#F5F5F5",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},img:{shown:true,w:156,h:156,padding:[10,10,10,10],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"contain",x:0,y:0,dy:0},empty:{shown:true,w:156,h:156,padding:[0,0,0,0],marginTop:0,marginBottom:6,gap:[0,0],minHeight:0,radius:[20,20],bg:"#F5F5F5",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},icon:{shown:true,w:22,h:22,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"#1E7AB7",fit:"cover",x:0,y:0,dy:0},top:false},lg:{frame:{shown:true,w:174.5,h:174.5,padding:[0,0,0,0],marginTop:0,marginBottom:8,gap:[0,0],minHeight:0,radius:[20,20],bg:"#F3F3F3",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},img:{shown:true,w:174.5,h:174.5,padding:[14,14,18,14],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"contain",x:0,y:0,dy:0},empty:{shown:true,w:174.5,h:174.5,padding:[0,0,0,0],marginTop:0,marginBottom:8,gap:[0,0],minHeight:0,radius:[20,20],bg:"#F3F3F3",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},icon:{shown:true,w:22,h:22,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"#1E7AB7",fit:"cover",x:0,y:0,dy:0},top:false}},text:{display:{shown:true,size:40,weight:500,lineHeight:39.2,color:"ink",tracking:-1.2,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},headline:{shown:true,size:30,weight:500,lineHeight:33,color:"ink",tracking:-.45,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},title:{shown:true,size:22,weight:500,lineHeight:26.4,color:"ink",tracking:-.33,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},heading:{shown:true,size:18,weight:700,lineHeight:22.5,color:"ink",tracking:-.36,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},body:{shown:true,size:17,weight:400,lineHeight:26.35,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},lead:{shown:true,size:15,weight:400,lineHeight:21.75,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},label:{shown:true,size:15,weight:700,lineHeight:21,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},meta:{shown:true,size:13,weight:400,lineHeight:18.85,color:"muted",tracking:0,face:"mono",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},caption:{shown:true,size:13,weight:400,lineHeight:19.5,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},overline:{shown:true,size:12,weight:700,lineHeight:16.8,color:"muted",tracking:.72,face:"mono",upper:true,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},kicker:{shown:true,size:12,weight:700,lineHeight:18.6,color:"muted",tracking:.96,face:"mono",upper:true,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0}},field:{gap:6,label:{shown:true,size:15,weight:700,lineHeight:21,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},input:{shown:true,w:361,h:52,padding:[0,16,0,16],marginTop:0,marginBottom:0,gap:[10,10],minHeight:52,radius:[10,10],bg:"surface",edge:{width:1.5,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},focusEdge:"ink",errorEdge:"alert",value:{shown:true,size:17,weight:400,lineHeight:26.35,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:1},valueInset:[2,1],icon:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"muted",fit:"cover",x:0,y:0,dy:0},area:{shown:true,w:361,h:158,padding:[12,16,12,16],marginTop:0,marginBottom:0,gap:[10,10],minHeight:52,radius:[10,10],bg:"surface",edge:{width:1.5,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},areaValue:{shown:true,size:17,weight:400,lineHeight:25.5,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:2},areaValueMinHeight:132,areaInset:[2,2],hint:{shown:true,size:13,weight:400,lineHeight:19.5,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},error:{shown:true,size:15,weight:400,lineHeight:21.75,color:"alertDeep",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},placeholder:"muted"},checkbox:{row:{shown:true,w:361,h:45,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[12,12],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},labelX:34,box:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:1,marginBottom:0,gap:[0,0],minHeight:0,radius:[6,6],bg:"surface",edge:{width:1.5,color:"icoSage",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},on:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:1,marginBottom:0,gap:[0,0],minHeight:0,radius:[6,6],bg:"ink",edge:{width:1.5,color:"ink",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},tick:{w:5,h:10,stroke:2,color:"surface",rotate:45,dy:-1},label:{shown:true,size:15,weight:400,lineHeight:22.5,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},boxed:{shown:true,w:361,h:50.5,padding:[14,16,14,16],marginTop:0,marginBottom:0,gap:[12,12],minHeight:0,radius:[10,10],bg:"bgMist",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0}},choice:{row:{shown:true,w:361,h:56.344,padding:[14,16,14,16],marginTop:0,marginBottom:0,gap:[12,12],minHeight:0,radius:[10,10],bg:"surface",edge:{width:1.5,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},selected:{shown:true,w:361,h:56.344,padding:[14,16,14,16],marginTop:0,marginBottom:0,gap:[12,12],minHeight:0,radius:[10,10],bg:"pink",edge:{width:1.5,color:"ink",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},radio:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[10,10],bg:"surface",edge:{width:1.5,color:"icoSage",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},radioOn:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[10,10],bg:"surface",edge:{width:6,color:"ink",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},textX:34,title:{shown:true,size:17,weight:700,lineHeight:22.1,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},strut:26.35,meta:{shown:true,size:13,weight:400,lineHeight:18.2,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:2,paddingTop:0},end:{shown:true,size:13,weight:400,lineHeight:20.15,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},group:{gap:8,legend:{shown:true,size:15,weight:700,lineHeight:21,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},legendPaddingX:2,legendGap:0}},switch:{track:{shown:true,w:48,h:28,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[999,999],bg:"#D0D6D3",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},on:"ink",thumb:{size:22,inset:3,travel:20,color:"surface",shadow:{color:"rgba(16, 70, 46, 0.06)",x:0,y:1,blur:2,spread:0}}},iconButton:{bare:{shown:true,w:44,h:44,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[22,22],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},bareIcon:22,offColor:"line",ring:{shown:true,w:36,h:36,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[18,18],bg:"surface",edge:{width:1.5,color:"ink",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},ringIcon:18,ringPressed:"tintSage",ringPressScale:.94},link:{text:{shown:true,size:17,weight:400,lineHeight:22.1,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"underline",decoOffset:3,decoThickness:0,marginTop:0,paddingTop:0},danger:{shown:true,size:15,weight:700,lineHeight:23.25,color:"alert",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"underline",decoOffset:3,decoThickness:0,marginTop:0,paddingTop:0},inline:{shown:true,size:17,weight:400,lineHeight:26.35,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"underline",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0}},lists:{rows:{row:{shown:true,w:327,h:94.781,padding:[16,0,16,0],marginTop:0,marginBottom:0,gap:[16,8],minHeight:0,radius:[0,0],bg:"none",edge:{width:1,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},title:{shown:true,size:17,weight:700,lineHeight:22.1,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},subtitle:{shown:true,size:13,weight:400,lineHeight:18.85,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:2,paddingTop:0}},tiles:{list:{shown:true,w:343,h:175.813,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[4,4],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},outdent:8,row:{shown:true,w:343,h:62.281,padding:[10,8,10,8],marginTop:0,marginBottom:0,gap:[12,12],minHeight:0,radius:[10,10],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},leading:22,leadingFace:40,icon:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"muted",fit:"cover",x:0,y:0,dy:0},text:{shown:true,w:261,h:42.281,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[2,2],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},title:{shown:true,size:17,weight:700,lineHeight:22.1,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},subtitle:{shown:true,size:13,weight:400,lineHeight:18.2,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},pressed:"#EDF2EF",alert:{bg:"tintRed",icon:"alert",title:"alertDeep",subtitle:"alert"}},end:{text:{shown:true,size:15,weight:400,lineHeight:23.25,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},gap:8,chevron:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"#819D90",fit:"cover",x:0,y:0,dy:0}},section:{title:{shown:true,size:18,weight:700,lineHeight:22.5,color:"ink",tracking:-.36,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},titleGap:12,head:{shown:true,w:361,h:22.5,padding:[0,0,0,0],marginTop:8,marginBottom:0,gap:[12,8],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},note:{shown:true,size:13,weight:400,lineHeight:19.5,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:12,paddingTop:0}},avatar:{sizes:{xs:20,sm:36,md:48,lg:64,xl:128},face:40,bg:"surface",edge:{width:1,color:"line",ring:true},initials:{shown:true,size:15,weight:700,lineHeight:23.25,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},initialsXs:{shown:true,size:9,weight:700,lineHeight:13.95,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},tints:{default:"tintPink",pink:"#FFCFC9",blue:"#C2CEE5",yellow:"#F6D78F",sage:"#C6D3CD"},ring:{width:2,offset:2,color:"go"},ringXl:{width:3,offset:4,color:"go"},dot:{size:12,edge:2,edgeColor:"surface"}},stack:{size:28,overlap:-8,initialsSize:12,halo:{width:2,color:"surface"}},banner:{box:{shown:true,w:361,h:155.391,padding:[16,16,16,16],marginTop:0,marginBottom:0,gap:[12,4],minHeight:0,radius:[20,20],bg:"#F1F5F2",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},icon:{shown:true,w:22,h:22,padding:[0,0,0,0],marginTop:1,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"ink",fit:"cover",x:0,y:0,dy:0},iconRows:3,kicker:{shown:true,size:12,weight:700,lineHeight:16.8,color:"#5B5B5B",tracking:.72,face:"mono",upper:true,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},title:{shown:true,size:17,weight:700,lineHeight:22.1,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},text:{shown:true,size:15,weight:400,lineHeight:21.75,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},acts:{shown:true,w:295,h:21,padding:[0,0,0,0],marginTop:8,marginBottom:0,gap:[16,8],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},link:{shown:true,size:15,weight:700,lineHeight:21,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},tones:{info:{bg:"#F1F5F2",icon:"ink"},success:{bg:"tintGo",icon:"ink"},warn:{bg:"#FCF0D6",icon:"#926F06"},danger:{bg:"tintRed",icon:"alert"}}},toast:{box:{shown:true,w:200.281,h:40.25,padding:[10,16,10,16],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[999,999],bg:"ink",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"surface",fit:"cover",x:0,y:0,dy:0},text:{shown:true,size:15,weight:400,lineHeight:20.25,color:"onInk",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:10},inset:16,rise:8,fade:200,hold:2600},spinner:{size:16,border:2,turn:700,openSide:true,reducedOpacity:.5},offbar:{box:{shown:true,w:361,h:56,padding:[6,16,6,16],marginTop:0,marginBottom:0,gap:[10,10],minHeight:44,radius:[0,0],bg:"#FCF0D6",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:48,dy:0},text:{shown:true,size:15,weight:500,lineHeight:19.5,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},icon:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"ink",fit:"cover",x:0,y:0,dy:0},action:{shown:true,w:69.859,h:44,padding:[0,2,0,2],marginTop:0,marginBottom:0,gap:[6,6],minHeight:44,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},actionText:{shown:true,size:15,weight:700,lineHeight:19.5,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"underline",decoOffset:3,decoThickness:0,marginTop:0,paddingTop:0},online:{bg:"ink",color:"onInk"},fade:200},progress:{track:{shown:true,w:361,h:4,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[999,999],bg:"line",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},fill:"go",move:300},divider:{width:1,color:"line",label:{shown:true,size:12,weight:400,lineHeight:18.6,color:"muted",tracking:.72,face:"mono",upper:true,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},labelGap:12,labelLine:{width:1,color:"line"}},errorInline:{text:{shown:true,size:15,weight:400,lineHeight:21,color:"alertDeep",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},acts:{shown:true,w:361,h:21,padding:[0,0,0,0],marginTop:8,marginBottom:0,gap:[16,8],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},link:{shown:true,size:15,weight:700,lineHeight:21,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0}},linkPressedOpacity:.6},variants:{drawer:{frame:{shown:true,w:393,h:226.594,padding:[10,20,40,20],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[28,0],bg:"surface",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"ink",fit:"cover",x:0,y:293.406,dy:0},maxHeight:.8,grab:{shown:true,w:40,h:5,padding:[0,0,0,0],marginTop:0,marginBottom:10,gap:[0,0],minHeight:0,radius:[2.5,2.5],bg:"#DAD7D1",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"ink",fit:"cover",x:0,y:0,dy:0},top:{shown:true,w:353,h:40,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},kicker:{shown:true,size:11,weight:400,lineHeight:16.5,color:"muted",tracking:.88,face:"mono",upper:true,wrap:"auto",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},close:{shown:true,w:40,h:40,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[20,20],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},closeEnd:-8,closeIcon:22,title:{shown:true,size:24,weight:800,lineHeight:27.6,color:"ink",tracking:-.24,face:"serif",upper:false,wrap:"balance",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},body:{shown:true,w:353,h:82,padding:[0,0,0,0],marginTop:12,marginBottom:0,gap:[10,10],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},text:{shown:true,size:16,weight:400,lineHeight:24,color:"text",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},scrim:"ink/0.38",motion:{enterMs:320,enterEasing:[.32,.72,0,1],exitMs:220,exitEasing:[.23,1,.32,1],scrimEnterMs:240,scrimExitMs:200,scrimEasing:[.25,.1,.25,1]}},button:{ink:{fill:false,minHeight:48,paddingX:22,gap:8,borderWidth:0,ring:false,fontSize:16,fontWeight:700,lineHeight:1.5,iconSize:20},outline:{fill:false,minHeight:48,paddingX:22,gap:8,borderWidth:1.5,ring:true,fontSize:16,fontWeight:700,lineHeight:1.5,iconSize:20},sm:{fill:false,minHeight:40,paddingX:16,gap:8,borderWidth:1.5,ring:true,fontSize:15,fontWeight:700,lineHeight:1.5,iconSize:20},lg:{fill:false,minHeight:56,paddingX:28,gap:8,borderWidth:0,ring:false,fontSize:17,fontWeight:700,lineHeight:1.5,iconSize:20},disabledOpacity:.32,press:.97,transition:"transform 160ms cubic-bezier(0.23, 1, 0.32, 1), opacity 160ms ease"},segmented:{track:{shown:true,w:361,h:44,padding:[4,4,4,4],marginTop:0,marginBottom:0,gap:[4,4],minHeight:0,radius:[22,22],bg:"surface",edge:{width:1.5,color:"#DAD7D1",ring:true},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"ink",fit:"cover",x:0,y:0,dy:0},option:{shown:true,w:115,h:36,padding:[0,6,0,6],marginTop:0,marginBottom:0,gap:[0,0],minHeight:36,radius:[18,18],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"ink",fit:"cover",x:0,y:0,dy:0},label:{shown:true,size:14,weight:700,lineHeight:21,color:"ink",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},chosen:{shown:true,w:115,h:36,padding:[0,6,0,6],marginTop:0,marginBottom:0,gap:[0,0],minHeight:36,radius:[18,18],bg:"ink",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"onInk",fit:"cover",x:0,y:0,dy:0},chosenLabel:{shown:true,size:14,weight:700,lineHeight:21,color:"onInk",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},press:.96,transition:"background-color 160ms ease, transform 160ms cubic-bezier(0.23, 1, 0.32, 1)"},stepper:{track:{shown:true,w:110,h:40,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[20,20],bg:"surface",edge:{width:1.5,color:"#DAD7D1",ring:true},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},button:{shown:true,w:40,h:40,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[20,20],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},icon:16,value:{shown:true,size:15.5,weight:800,lineHeight:23.25,color:"ink",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:true,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},valueWidth:30,disabledOpacity:.3,press:.9,transition:"transform 160ms cubic-bezier(0.23, 1, 0.32, 1)"},summary:{box:{shown:true,w:361,h:144,padding:[6,16,6,16],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[16,16],bg:"surface",edge:{width:0,color:"line",ring:false},shadow:{color:"rgba(38, 37, 35, 0.06)",x:0,y:1,blur:3,spread:0},center:false,color:"ink",fit:"cover",x:0,y:0,dy:0},row:{shown:true,w:329,h:34,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[12,12],minHeight:34,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},term:{shown:true,size:15,weight:400,lineHeight:22.5,color:"#4A4845",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:true,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},value:{shown:true,size:15,weight:400,lineHeight:22.5,color:"ink",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:true,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},totalRow:{shown:true,w:329,h:42,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[12,12],minHeight:42,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},totalTerm:{shown:true,size:17,weight:800,lineHeight:25.5,color:"ink",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:true,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},total:{shown:true,size:17,weight:800,lineHeight:25.5,color:"ink",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:true,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},renewRow:{shown:true,w:329,h:28,padding:[0,0,0,0],marginTop:-6,marginBottom:0,gap:[12,12],minHeight:28,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},renewTerm:{shown:true,size:14,weight:400,lineHeight:21,color:"#4A4845",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:true,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},renew:{shown:true,size:14,weight:400,lineHeight:21,color:"ink",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:true,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},inset:{shown:true,w:361,h:88,padding:[6,16,6,16],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[16,16],bg:"bg",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"ink",fit:"cover",x:0,y:0,dy:0}},toast:{box:{shown:true,w:361,h:64.594,padding:[12,15,12,15],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[16,16],bg:"ink",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"onInk",fit:"cover",x:16,y:62,dy:0},text:{shown:true,size:14.5,weight:400,lineHeight:20.3,color:"onInk",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:12},motion:{enterMs:220,exitMs:160,easing:[.23,1,.32,1],rise:-8}},focus:{width:2,offset:2,color:"ink"}},press:{button:.97,iconButton:.94,card:.98},colors:{grab:"#C9C9C9",scrim:"rgba(0, 0, 0, 0.32)",watch:"#F9E6B9",planInk:"#262523",planOnInk:"#FFFFFF",planAccent:"#FFCE34",planLink:"#00707C",planAccentWash:"#FFF7DC",planAccentChip:"#FFE7A1",planLinkWash:"#E0FDFF",planLinkChip:"#C8F4F8"}},orderBlockMetrics={card:/* @__PURE__ */blockBox({w:361,h:163.547}),top:/* @__PURE__ */blockBox({w:361,h:39.547,gap:[12,12]}),title:/* @__PURE__ */blockText({size:16,weight:700,lineHeight:20,tracking:-.16}),meta:/* @__PURE__ */blockText({size:13,weight:400,lineHeight:17.55,color:"muted"}),total:/* @__PURE__ */blockText({size:16,weight:700,lineHeight:24.8,tabular:true}),shots:/* @__PURE__ */blockBox({w:361,h:64,marginTop:8,gap:[8,8]}),acts:/* @__PURE__ */blockBox({w:361,h:40,marginTop:12,gap:[8,8]}),go:/* @__PURE__ */blockBox({w:176.5,h:40,padding:[0,12,0,12],gap:[6,6],minHeight:40,radius:[999,999],bg:"go",center:true}),goText:/* @__PURE__ */blockText({size:14,weight:700,lineHeight:21.7}),plain:/* @__PURE__ */blockBox({w:176.5,h:40,padding:[0,12,0,12],gap:[6,6],minHeight:40,radius:[999,999],bg:"#F3F3F3",center:true}),plainText:/* @__PURE__ */blockText({size:14,weight:700,lineHeight:21.7}),note:/* @__PURE__ */blockText({size:13,weight:500,lineHeight:17.55,marginTop:8}),icon:/* @__PURE__ */blockBox({w:16,h:16}),actsColumns:2,shotPressScale:.96},orderQuietBlockMetrics={top:/* @__PURE__ */blockBox({w:361,h:43.547,gap:[12,12]}),when:/* @__PURE__ */blockBox({w:300.063,h:24,gap:[8,4],center:true}),title:/* @__PURE__ */blockText({size:16,weight:700,lineHeight:20.8}),chip:/* @__PURE__ */blockBox({w:86.031,h:24,padding:[0,9,0,5],gap:[4,4],minHeight:24,radius:[999,999],bg:"tintGo",center:true,color:"ink"}),chipText:/* @__PURE__ */blockText({size:12,weight:700,lineHeight:15.6,color:"ink"}),chipIcon:/* @__PURE__ */blockBox({w:14,h:14,color:"ink"}),meta:/* @__PURE__ */blockText({size:13,weight:400,lineHeight:17.55,color:"muted",marginTop:2}),total:/* @__PURE__ */blockText({size:16,weight:700,lineHeight:24.8,tabular:true}),shots:/* @__PURE__ */blockBox({w:361,h:64,marginTop:8,gap:[8,8]}),shot:/* @__PURE__ */blockBox({w:64,h:64,radius:[14,14],bg:"#F3F3F3"}),shotImg:/* @__PURE__ */blockBox({w:64,h:64,padding:[6.391,6.391,6.391,6.391],fit:"contain"}),shotBlend:"multiply",acts:/* @__PURE__ */blockBox({w:361,h:44,marginTop:12,gap:[12,12],center:true}),plain:/* @__PURE__ */blockBox({w:162.109,h:44,padding:[0,16,0,16],gap:[6,6],minHeight:44,radius:[999,999],bg:"#F3F3F3",center:true}),plainText:/* @__PURE__ */blockText({size:14,weight:700,lineHeight:21.7}),icon:/* @__PURE__ */blockBox({w:16,h:16}),link:/* @__PURE__ */blockBox({w:62.578,h:44,padding:[0,6,0,6],minHeight:44}),linkText:/* @__PURE__ */blockText({size:14,weight:700,lineHeight:21.7,deco:"underline",decoOffset:3,decoThickness:1.5})},orderWebBlockMetrics={card:/* @__PURE__ */blockBox({w:952,h:127.781,padding:[16,24,16,16],gap:[24,16],radius:[20,20],bg:"surface",shadow:{color:"rgba(0, 0, 0, 0.04)",x:0,y:1,blur:2,spread:0},center:true}),lift:{color:"rgba(0, 0, 0, 0.05)",x:0,y:6,blur:20,spread:0},shots:/* @__PURE__ */blockBox({w:172,h:72}),sq:/* @__PURE__ */blockBox({w:72,h:72,radius:[14,14],bg:"#F3F3F3"}),sqRing:3,sqOverlap:22,imgInset:.1,imgFit:"contain",imgBlend:"multiply",text:/* @__PURE__ */blockBox({w:446.547,h:95.781,gap:[2,2]}),when:/* @__PURE__ */blockBox({w:446.547,h:26,gap:[12,4],center:true}),title:/* @__PURE__ */blockText({size:19,weight:700,lineHeight:24.7,tabular:true}),total:/* @__PURE__ */blockText({size:19,weight:900,lineHeight:24.7,tabular:true}),chip:/* @__PURE__ */blockBox({w:94.547,h:26,padding:[0,10,0,6],gap:[4,4],minHeight:26,radius:[999,999],bg:"tintGo",center:true,color:"ink"}),chipText:/* @__PURE__ */blockText({size:13,weight:700,lineHeight:16.9,color:"ink",tabular:true}),chipIcon:/* @__PURE__ */blockBox({w:16,h:16,color:"ink"}),meta:/* @__PURE__ */blockText({size:16,weight:400,lineHeight:22.4}),note:/* @__PURE__ */blockText({size:15,weight:400,lineHeight:21}),acts:/* @__PURE__ */blockBox({w:245.453,h:46,gap:[24,8],center:true}),plain:/* @__PURE__ */blockBox({w:160.031,h:46,padding:[0,20,0,20],gap:[8,8],minHeight:46,radius:[999,999],bg:"surface",edge:{width:1.5,color:"#C6D3CD",ring:true},center:true,color:"ink"}),plainText:/* @__PURE__ */blockText({size:16,weight:700,lineHeight:19.2,color:"ink"}),icon:/* @__PURE__ */blockBox({w:18,h:18,color:"ink"}),link:/* @__PURE__ */blockBox({w:61.422,h:44,gap:[8,8],minHeight:44,center:true,color:"ink"}),linkText:/* @__PURE__ */blockText({size:17,weight:700,lineHeight:20.4,color:"ink",deco:"underline",decoOffset:4}),go:/* @__PURE__ */blockBox({w:228.75,h:52,padding:[0,24,0,24],gap:[8,8],minHeight:52,radius:[999,999],bg:"ink",center:true,color:"surface"}),goText:/* @__PURE__ */blockText({size:17,weight:700,lineHeight:20.4,color:"surface",wrap:"auto"}),pressScale:.97,hoverFill:{color:"ink",share:.06,over:"surface"},chipOff:/* @__PURE__ */blockBox({w:97.422,h:26,padding:[0,10,0,6],gap:[4,4],minHeight:26,radius:[999,999],center:true,color:"ink"}),metaLink:/* @__PURE__ */blockText({size:16,weight:400,lineHeight:22.4,deco:"underline"}),narrow:{upTo:599,card:/* @__PURE__ */blockBox({w:560,h:247.391,padding:[16,16,16,16],gap:[24,16],radius:[20,20],bg:"surface",center:true}),sq:/* @__PURE__ */blockBox({w:64,h:64,radius:[14,14],bg:"#F3F3F3",shadow:{color:"#FFFFFF",x:0,y:0,blur:0,spread:3}}),sqOverlap:16},phone:{upTo:639,card:/* @__PURE__ */blockBox({w:335,h:120.984,gap:[12,8],center:true}),sq:/* @__PURE__ */blockBox({w:48,h:48,radius:[12,12],bg:"#F3F3F3"}),sqRing:2,sqOverlap:18,when:/* @__PURE__ */blockBox({w:215,h:46.797,gap:[12,2],center:true}),title:/* @__PURE__ */blockText({size:16,weight:700,lineHeight:20.8,tabular:true}),total:/* @__PURE__ */blockText({size:16,weight:900,lineHeight:20.8,tabular:true}),chip:/* @__PURE__ */blockBox({w:90.031,h:24,padding:[0,10,0,6],gap:[4,4],minHeight:24,radius:[999,999],bg:"tintGo",center:true,color:"ink"}),chipText:/* @__PURE__ */blockText({size:12,weight:700,lineHeight:15.6,color:"ink",tabular:true}),whatHidden:true,note:/* @__PURE__ */blockText({size:13,weight:400,lineHeight:18.2}),acts:/* @__PURE__ */blockBox({w:335,h:46,gap:[24,8],center:true}),plain:/* @__PURE__ */blockBox({w:144.531,h:46,padding:[0,16,0,16],gap:[8,8],minHeight:46,radius:[999,999],bg:"surface",edge:{width:1.5,color:"#C6D3CD",ring:true},center:true,color:"ink"}),plainText:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:18,color:"ink"}),linkText:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:18,color:"ink",deco:"underline",decoOffset:4})}},productBlockMetrics={card:/* @__PURE__ */blockBox({w:156,h:310.969,gap:[4,4]}),kicker:/* @__PURE__ */blockText({size:12,weight:400,lineHeight:15.6,color:"muted",tracking:.12,face:"mono"}),name:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:19.5,wrap:"balance"}),meta:/* @__PURE__ */blockText({size:13,weight:400,lineHeight:18.2,color:"muted"}),buy:/* @__PURE__ */blockBox({w:156,h:36,marginTop:6,gap:[8,8],center:true}),price:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:23.25,tabular:true})},productCardBlockMetrics={card:/* @__PURE__ */blockBox({w:174.5,h:249.219,gap:[2,2]}),tag:/* @__PURE__ */blockBox({w:84.563,h:26,padding:[0,9,0,6],gap:[4,4],minHeight:26,radius:[999,999],bg:"surface",center:true,x:8,y:8}),tagIcon:/* @__PURE__ */blockBox({w:16,h:16,color:"#CA4463"}),tagText:/* @__PURE__ */blockText({size:12,weight:700,lineHeight:12}),price:/* @__PURE__ */blockBox({w:174.5,h:26.344,gap:[6,6]}),priceText:/* @__PURE__ */blockText({size:17,weight:700,lineHeight:26.35,tracking:-.17,tabular:true}),was:/* @__PURE__ */blockText({size:13,weight:400,lineHeight:20.15,color:"muted",tabular:true,deco:"strike"}),name:/* @__PURE__ */blockText({size:14,weight:500,lineHeight:18.2,wrap:"balance"}),meta:/* @__PURE__ */blockText({size:12,weight:400,lineHeight:16.2,color:"muted"}),metaAuto:/* @__PURE__ */blockText({size:12,weight:500,lineHeight:16.2,color:"#16864A"}),step:/* @__PURE__ */blockBox({w:112,h:38,radius:[19,19],bg:"surface",center:true,x:54.5,y:128.5}),stepIn:/* @__PURE__ */blockBox({w:112,h:38,radius:[19,19],bg:"ink",center:true,color:"surface",x:54.5,y:128.5}),stepAt:{right:8,bottom:8},stepButton:/* @__PURE__ */blockBox({w:38,h:38,radius:[19,19],center:true}),stepIcon:/* @__PURE__ */blockBox({w:18,h:18}),count:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:23.25,color:"surface",tabular:true}),lift:{color:"rgba(0, 0, 0, 0.14)",x:0,y:2,blur:8,spread:0},per:/* @__PURE__ */blockText({size:12,weight:400,lineHeight:16.2,color:"muted",tabular:true}),metaAutoDark:/* @__PURE__ */blockText({size:12,weight:500,lineHeight:16.2,color:"ink"}),pill:/* @__PURE__ */blockBox({w:62.234,h:36,padding:[0,14,0,14],gap:[4,4],minHeight:36,radius:[999,999],bg:"go",center:true,x:104.266,y:130.5}),pillText:/* @__PURE__ */blockText({size:14,weight:700,lineHeight:21.7}),pillOn:/* @__PURE__ */blockBox({w:90.016,h:36,padding:[0,14,0,14],gap:[4,4],minHeight:36,radius:[999,999],bg:"surface",edge:{width:2,color:"text",ring:true},center:true,x:76.484,y:130.5}),pillOnText:/* @__PURE__ */blockText({size:14,weight:700,lineHeight:21.7}),pillIcon:/* @__PURE__ */blockBox({w:16,h:16}),pillSoft:/* @__PURE__ */blockBox({w:80.125,h:36,padding:[0,14,0,14],gap:[4,4],minHeight:36,radius:[999,999],bg:"surface",shadow:{color:"rgba(0, 0, 0, 0.14)",x:0,y:2,blur:8,spread:0},center:true,x:86.375,y:130.5}),pillSoftText:/* @__PURE__ */blockText({size:14,weight:700,lineHeight:21.7}),pillAt:{right:8,bottom:8},pillPressScale:.96},productBlendBlockMetrics={img:/* @__PURE__ */blockBox({w:174.5,h:174.5,padding:[32,14,16,14],fit:"contain"}),imgBlend:"multiply",lift:{color:"rgba(0, 0, 0, 0.08)",x:0,y:2,blur:8,spread:0},pill:/* @__PURE__ */blockBox({w:62.234,h:36,padding:[0,14,0,14],gap:[4,4],minHeight:36,radius:[999,999],bg:"pink",edge:{width:1,color:"ink",ring:true},center:true,color:"ink",x:104.266,y:130.5}),pillText:/* @__PURE__ */blockText({size:14,weight:700,lineHeight:21.7,color:"ink"}),pillOn:/* @__PURE__ */blockBox({w:90.016,h:36,padding:[0,14,0,14],gap:[4,4],minHeight:36,radius:[999,999],bg:"surface",edge:{width:2,color:"ink",ring:true},center:true,color:"ink",x:76.484,y:130.5}),pillOnText:/* @__PURE__ */blockText({size:14,weight:700,lineHeight:21.7,color:"ink"}),pillPressScale:.97},productWebBlockMetrics={card:/* @__PURE__ */blockBox({w:306.656,h:370.641,gap:[2,2]}),square:/* @__PURE__ */blockBox({w:306.656,h:306.656,marginBottom:10,radius:[20,20],bg:"#F5F5F5"}),imgInsetTag:{share:[.11,.11,.1,.11],px:[26,0,0,0]},imgInset:{share:[.07,.07,.07,.07],px:[0,0,0,0]},imgFit:"contain",imgBlend:"multiply",tag:/* @__PURE__ */blockBox({w:112.516,h:30,padding:[0,12,0,8],gap:[5,5],minHeight:30,radius:[999,999],bg:"#F7E3E8",center:true,color:"ink",x:10,y:10}),tagText:/* @__PURE__ */blockText({size:13,weight:700,lineHeight:14.3,color:"ink"}),tagIcon:/* @__PURE__ */blockBox({w:16,h:16,color:"#CA4463"}),tagMix:.15,name:/* @__PURE__ */blockText({size:17,weight:500,lineHeight:22.1,wrap:"balance"}),nameLeading:1.3,coverRadius:20,price:/* @__PURE__ */blockBox({w:306.656,h:27.891,gap:[8,2]}),priceText:/* @__PURE__ */blockText({size:18,weight:700,lineHeight:27.9,tracking:-.18,tabular:true}),was:/* @__PURE__ */blockText({size:15,weight:400,lineHeight:23.25,tabular:true,deco:"strike"}),per:/* @__PURE__ */blockText({size:15,weight:400,lineHeight:23.25,tabular:true}),badge:/* @__PURE__ */blockBox({w:32.625,h:22,padding:[0,8,0,8],radius:[999,999],bg:"#DEE4F1",edge:{width:1.5,color:"rgba(90, 96, 135, 0.45)",ring:true},center:true}),badgeText:/* @__PURE__ */blockText({size:13,weight:700,lineHeight:13,tabular:true}),meta:/* @__PURE__ */blockText({size:15,weight:400,lineHeight:21}),add:/* @__PURE__ */blockBox({w:44,h:44,radius:[22,22],bg:"surface",shadow:{color:"rgba(0, 0, 0, 0.14)",x:0,y:2,blur:8,spread:0},center:true}),addIcon:/* @__PURE__ */blockBox({w:20,h:20}),actAt:{right:10,bottom:10},step:/* @__PURE__ */blockBox({w:116,h:44,radius:[22,22],bg:"ink",center:true,color:"surface"}),stepButton:/* @__PURE__ */blockBox({w:44,h:44,radius:[22,22],center:true,color:"surface"}),stepIcon:/* @__PURE__ */blockBox({w:18,h:18,color:"surface"}),count:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:23.25,color:"surface",tabular:true}),pill:/* @__PURE__ */blockBox({w:68.688,h:44,padding:[0,16,0,16],gap:[6,6],minHeight:44,radius:[999,999],bg:"ink",center:true,color:"surface"}),pillText:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:15,color:"surface"}),pillOn:/* @__PURE__ */blockBox({w:101.016,h:44,padding:[0,16,0,16],gap:[6,6],minHeight:44,radius:[999,999],bg:"surface",edge:{width:2,color:"ink",ring:true},center:true,color:"ink"}),pillOnText:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:15,color:"ink"}),pillIcon:/* @__PURE__ */blockBox({w:18,h:18,color:"ink"}),pillSoft:/* @__PURE__ */blockBox({w:87.859,h:44,padding:[0,16,0,16],gap:[6,6],minHeight:44,radius:[999,999],bg:"surface",shadow:{color:"rgba(0, 0, 0, 0.14)",x:0,y:2,blur:8,spread:0},center:true}),pillSoftText:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:15}),nameSteps:[{upTo:599,name:/* @__PURE__ */blockText({size:16,weight:500,lineHeight:20.8,wrap:"balance"})},{upTo:399,name:/* @__PURE__ */blockText({size:14,weight:500,lineHeight:18.2,wrap:"balance"})}],addPressScale:.94,stepPressScale:.88,pillPressScale:.97,imgInsetEven:{share:[.07,.07,.07,.07],px:[0,0,0,0]},imgInsetWhite:{share:[.11,.11,.14,.11],px:[0,0,0,0]},groundWhite:"surface",focusOffset:3,hover:{ring:{width:1.5,share:.45,color:"ink"},underlineOffset:3}},productRowBlockMetrics={card:/* @__PURE__ */blockBox({shown:false,w:361,h:109.328,gap:[12,12],center:true}),name:/* @__PURE__ */blockText({shown:false,size:17,weight:700,lineHeight:22.1,color:"ink"}),meta:/* @__PURE__ */blockText({shown:false,size:13,weight:400,lineHeight:18.85,color:"muted",marginTop:2})},cartBlockMetrics={line:/* @__PURE__ */blockBox({w:361,h:109.328,gap:[12,12],center:true}),name:/* @__PURE__ */blockBox({w:289,h:24,gap:[8,4],center:true,color:"ink"}),nameText:/* @__PURE__ */blockText({size:17,weight:700,lineHeight:22.1,color:"ink"}),meta:/* @__PURE__ */blockText({size:13,weight:400,lineHeight:18.85,color:"muted",marginTop:2}),price:/* @__PURE__ */blockText({size:17,weight:700,lineHeight:26.35,color:"ink",tabular:true}),was:/* @__PURE__ */blockText({shown:false,size:13,weight:400,lineHeight:18.85,color:"muted",marginTop:2}),acts:/* @__PURE__ */blockBox({w:289,h:20.141,marginTop:6,gap:[16,16]}),remove:/* @__PURE__ */blockText({size:13,weight:700,lineHeight:20.15,color:"ink",deco:"underline",decoOffset:3}),removeBox:/* @__PURE__ */blockBox({w:53.016,h:20.141,color:"ink"}),end:/* @__PURE__ */blockBox({w:289,h:26.344,gap:[4,4]})},cartSquareBlockMetrics={line:/* @__PURE__ */blockBox({w:361,h:95.094,gap:[12,12]}),sm:/* @__PURE__ */blockBox({w:48,h:48,radius:[12,12],bg:"#F3F3F3"}),md:/* @__PURE__ */blockBox({w:52,h:52,radius:[12,12],bg:"#F3F3F3"}),lg:/* @__PURE__ */blockBox({w:56,h:56,radius:[12,12],bg:"#F3F3F3"}),imgInset:.1,imgFit:"contain",imgBlend:"multiply",name:/* @__PURE__ */blockBox({w:239.109,h:20,gap:[6,4],center:true}),nameText:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:19.5}),link:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:19.5}),linkReach:4,badge:/* @__PURE__ */blockBox({w:29.344,h:20,padding:[0,7,0,7],radius:[999,999],bg:"#E0E6F2",edge:{width:1.5,color:"rgba(90, 96, 135, 0.45)",ring:true},center:true}),badgeText:/* @__PURE__ */blockText({size:12,weight:700,lineHeight:12}),meta:/* @__PURE__ */blockText({size:13,weight:400,lineHeight:17.55,color:"muted",marginTop:2}),acts:/* @__PURE__ */blockBox({w:239.109,h:32,marginTop:6,gap:[16,16]}),act:/* @__PURE__ */blockText({size:13,weight:700,lineHeight:20.15,color:"ink",deco:"underline",decoOffset:3}),actBox:/* @__PURE__ */blockBox({w:84.531,h:32,minHeight:32,color:"ink"}),price:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:23.25,tabular:true}),was:/* @__PURE__ */blockText({size:13,weight:400,lineHeight:20.15,color:"muted",tabular:true,deco:"strike"})},cartWebBlockMetrics={line:/* @__PURE__ */blockBox({w:404,h:88,gap:[16,0],center:true}),sq:/* @__PURE__ */blockBox({w:88,h:88,radius:[14,14],bg:"#F3F3F3"}),imgInset:.1,imgFit:"contain",imgBlend:"multiply",name:/* @__PURE__ */blockBox({w:225.875,h:24.688,gap:[8,4],center:true}),nameText:/* @__PURE__ */blockText({size:19,weight:700,lineHeight:24.7}),link:/* @__PURE__ */blockText({size:19,weight:700,lineHeight:24.7}),linkReach:4,badge:/* @__PURE__ */blockBox({w:32.625,h:22,padding:[0,8,0,8],radius:[999,999],bg:"#DEE4F1",center:true}),badgeText:/* @__PURE__ */blockText({size:13,weight:700,lineHeight:13}),meta:/* @__PURE__ */blockText({size:15,weight:400,lineHeight:21,marginTop:2}),price:/* @__PURE__ */blockText({size:19,weight:700,lineHeight:29.45,tabular:true}),was:/* @__PURE__ */blockText({size:15,weight:400,lineHeight:23.25,tabular:true,deco:"strike"}),narrow:{upTo:599,sq:/* @__PURE__ */blockBox({w:64,h:64,radius:[14,14],bg:"#F3F3F3"}),cost:/* @__PURE__ */blockBox({w:432,h:29.438,marginTop:4,gap:[8,8]}),nameText:/* @__PURE__ */blockText({size:17,weight:700,lineHeight:22.1}),link:/* @__PURE__ */blockText({size:17,weight:700,lineHeight:22.1})},narrower:{upTo:330,sq:/* @__PURE__ */blockBox({w:56,h:56,radius:[14,14],bg:"#F3F3F3"}),cost:/* @__PURE__ */blockBox({w:216,h:29.438,marginTop:4,gap:[8,8]}),nameText:/* @__PURE__ */blockText({size:17,weight:700,lineHeight:22.1}),link:/* @__PURE__ */blockText({size:17,weight:700,lineHeight:22.1})},phone:{upTo:639,line:/* @__PURE__ */blockBox({w:303,h:81.25,gap:[12,0],center:true}),sq:/* @__PURE__ */blockBox({w:56,h:56,radius:[12,12],bg:"#F3F3F3"}),cost:/* @__PURE__ */blockBox({w:235,h:23.25,marginTop:2,gap:[8,8]}),nameText:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:19.5}),link:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:19.5}),meta:/* @__PURE__ */blockText({size:13,weight:400,lineHeight:17.55,marginTop:2}),price:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:23.25,tabular:true}),was:/* @__PURE__ */blockText({size:13,weight:400,lineHeight:20.15,tabular:true,deco:"strike"}),smallUpTo:359,smallSq:48}},cartDrawerBlockMetrics={line:/* @__PURE__ */blockBox({w:360,h:147.094,gap:[14,0]}),img:/* @__PURE__ */blockBox({w:64,h:64,radius:[14,14],bg:"surface",edge:{width:1.5,color:"#C6D3CD",ring:true}}),imgInset:6,imgFit:"contain",name:/* @__PURE__ */blockBox({w:216,h:22.094,gap:[8,4],center:true}),nameText:/* @__PURE__ */blockText({size:17,weight:700,lineHeight:22.1,wrap:"auto"}),badge:/* @__PURE__ */blockBox({w:32.625,h:22,padding:[0,8,0,8],radius:[999,999],bg:"#DEE4F1",edge:{width:1.5,color:"rgba(90, 96, 135, 0.45)",ring:true},center:true}),badgeText:/* @__PURE__ */blockText({size:13,weight:700,lineHeight:13,wrap:"auto"}),meta:/* @__PURE__ */blockText({size:15,weight:400,lineHeight:21,marginTop:2}),note:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:21,color:"ink",marginTop:2}),acts:/* @__PURE__ */blockBox({w:282,h:92,marginTop:10,gap:[12,8],center:true}),plan:/* @__PURE__ */blockBox({w:193.703,h:44,padding:[3,3,3,3],radius:[999,999],bg:"surface",edge:{width:1.5,color:"#C6D3CD",ring:true}}),planBtn:/* @__PURE__ */blockBox({w:63.859,h:38,padding:[0,14,0,14],minHeight:38,radius:[999,999]}),planText:/* @__PURE__ */blockText({size:15,weight:500,lineHeight:23.25,wrap:"auto"}),planOn:/* @__PURE__ */blockBox({w:123.844,h:38,padding:[0,14,0,14],minHeight:38,radius:[999,999],bg:"ink",color:"surface"}),planOnText:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:23.25,color:"surface",wrap:"auto"}),qty:/* @__PURE__ */blockBox({w:104,h:40,radius:[999,999],bg:"surface",edge:{width:1.5,color:"#C6D3CD",ring:true},center:true}),countMin:24,qtyBtn:/* @__PURE__ */blockBox({w:40,h:40,radius:[20,20],center:true}),qtyIcon:/* @__PURE__ */blockBox({w:16,h:16}),count:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:23.25,wrap:"auto",tabular:true}),remove:/* @__PURE__ */blockBox({w:58.359,h:40,minHeight:40,color:"ink"}),removeText:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:23.25,color:"ink",wrap:"auto",deco:"underline",decoOffset:3}),price:/* @__PURE__ */blockText({size:17,weight:700,lineHeight:22.1,wrap:"auto",tabular:true}),was:/* @__PURE__ */blockText({size:15,weight:400,lineHeight:19.5,wrap:"auto",tabular:true,deco:"strike"}),pressScale:.9,hover:{color:"ink",share:.06,over:"surface"},motion:{press:140,fill:150,planFill:150}},priceBlockMetrics={note:/* @__PURE__ */blockText({size:13,weight:400,lineHeight:19.5,color:"muted",marginTop:12}),noteStrong:/* @__PURE__ */blockText({size:13,weight:700,lineHeight:19.5,color:"muted"})};var needBlockMetrics={card:/* @__PURE__ */blockBox({w:325,h:125.25,padding:[14,16,14,16],radius:[0,20],bg:"surface",shadow:{color:"rgba(0, 0, 0, 0.06)",x:0,y:2,blur:3,spread:-1}}),kicker:/* @__PURE__ */blockBox({w:293,h:24,gap:[8,8],center:true}),kickerText:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:23.25}),source:/* @__PURE__ */blockBox({w:116.719,h:24,padding:[0,9,0,9],radius:[999,999],bg:"#DAF6E8",center:true,color:"ink"}),sourceText:/* @__PURE__ */blockText({size:12,weight:700,lineHeight:18.6,color:"ink"}),title:/* @__PURE__ */blockText({shown:false,size:15,weight:700,lineHeight:23.25}),signal:/* @__PURE__ */blockBox({w:293,h:65.25,marginTop:8,gap:[9,9],color:"#4D4D4D"}),signalText:/* @__PURE__ */blockText({size:15,weight:400,lineHeight:21.75,color:"#4D4D4D"}),signalLead:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:21.75}),dot:/* @__PURE__ */blockBox({w:9,h:9,radius:[4.5,4.5],bg:"alert",color:"#4D4D4D",dy:-1}),score:/* @__PURE__ */blockBox({w:293,h:99.859,padding:[10,14,10,14],marginTop:12,gap:[12,12],radius:[10,10],bg:"#FCF0D6",center:true}),scoreLabel:/* @__PURE__ */blockText({size:14,weight:600,lineHeight:18.9,color:"#4D4D4D"}),scoreTag:/* @__PURE__ */blockBox({w:63.125,h:20.188,padding:[2,6,2,6],marginTop:3,radius:[6,6],bg:"surface"}),scoreTagText:/* @__PURE__ */blockText({size:12,weight:600,lineHeight:16.2,tracking:.72,face:"mono",upper:true,marginTop:3,paddingTop:2}),scoreNums:/* @__PURE__ */blockBox({w:106.109,h:51.141,gap:[6,0],center:true}),scoreWas:/* @__PURE__ */blockText({size:17,weight:700,lineHeight:26.35,color:"muted",deco:"strike",decoThickness:1.5}),scoreArrow:/* @__PURE__ */blockBox({w:16,h:16,color:"muted"}),scoreArrowFlip:true,scoreNow:/* @__PURE__ */blockText({size:28,weight:700,lineHeight:28,tracking:-.84,tabular:true}),scoreOf:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:15,color:"#4D4D4D",tabular:true}),scoreSince:/* @__PURE__ */blockText({size:13,weight:700,lineHeight:20.15,color:"ink",marginTop:3})},needPlanBlockMetrics={card:/* @__PURE__ */blockBox({w:329,h:380.172,padding:[16,16,16,16],marginTop:14,radius:[22,22],bg:"surface",shadow:{color:"rgba(38, 37, 35, 0.06)",x:0,y:1,blur:3,spread:0},color:"#262523"}),kicker:/* @__PURE__ */blockBox({w:297,h:24,gap:[8,8],center:true,color:"#262523"}),kickerText:/* @__PURE__ */blockText({size:15,weight:800,lineHeight:22.5,color:"#262523"}),source:/* @__PURE__ */blockBox({w:83.375,h:24,padding:[0,9,0,9],radius:[999,999],bg:"#F2F1EE",center:true,color:"#4A4845"}),sourceText:/* @__PURE__ */blockText({size:12,weight:700,lineHeight:18,color:"#4A4845"}),title:/* @__PURE__ */blockText({size:19,weight:800,lineHeight:23.18,color:"#262523",marginTop:12}),signal:/* @__PURE__ */blockBox({w:297,h:65.25,marginTop:6,gap:[9,9],color:"#4A4845"}),signalText:/* @__PURE__ */blockText({size:15,weight:400,lineHeight:21.75,color:"#4A4845"}),signalLead:/* @__PURE__ */blockText({size:15,weight:800,lineHeight:21.75,color:"#262523"}),dot:/* @__PURE__ */blockBox({w:9,h:9,radius:[4.5,4.5],bg:"#E5372B",color:"#4A4845",dy:-1}),score:/* @__PURE__ */blockBox({w:297,h:69.75,padding:[10,14,10,14],marginTop:12,gap:[12,12],radius:[14,14],bg:"planAccentWash",center:true,color:"#262523"}),scoreLabel:/* @__PURE__ */blockText({size:13.5,weight:600,lineHeight:18.225,color:"#4A4845",wrap:"balance"}),scoreTag:/* @__PURE__ */blockBox({w:51.609,h:17.5,padding:[2,6,2,6],marginTop:3,radius:[5,5],bg:"surface",color:"#262523"}),scoreTagText:/* @__PURE__ */blockText({size:10,weight:600,lineHeight:13.5,color:"#262523",tracking:.6,face:"mono",upper:true,wrap:"balance",marginTop:3,paddingTop:2}),scoreNums:/* @__PURE__ */blockBox({w:94.75,h:49.75,gap:[6,0],center:true,color:"#262523"}),scoreWas:/* @__PURE__ */blockText({size:17,weight:700,lineHeight:25.5,color:"#6B6863",deco:"strike"}),scoreArrow:/* @__PURE__ */blockBox({w:16,h:16,color:"#6B6863"}),scoreArrowFlip:true,scoreNow:/* @__PURE__ */blockText({size:28,weight:800,lineHeight:28,color:"#262523"}),scoreOf:/* @__PURE__ */blockText({size:13,weight:800,lineHeight:13,color:"muted"}),scoreSince:/* @__PURE__ */blockText({size:12.5,weight:700,lineHeight:18.75,color:"planLink",marginTop:3}),sources:/* @__PURE__ */blockBox({w:131.375,h:24,gap:[4,4],color:"#262523"}),sourceDna:/* @__PURE__ */blockBox({w:44,h:24,padding:[0,9,0,9],radius:[999,999],bg:"planLinkWash",center:true,color:"planLink"}),sourceDnaText:/* @__PURE__ */blockText({size:12,weight:700,lineHeight:18,color:"planLink"}),dotWatch:/* @__PURE__ */blockBox({w:9,h:9,radius:[4.5,4.5],bg:"#E5A000",color:"#4A4845",dy:-1}),dotClear:/* @__PURE__ */blockBox({w:9,h:9,radius:[4.5,4.5],bg:"#5FA82B",color:"#4A4845",dy:-1}),scoreLabelMax:135,says:/* @__PURE__ */blockBox({w:297,h:52,padding:[10,12,10,12],marginTop:12,gap:[10,10],radius:[14,14],bg:"#F8F7F4",color:"#262523"}),saysImg:/* @__PURE__ */blockBox({w:32,h:32,radius:[16,16],color:"#262523"}),saysText:/* @__PURE__ */blockText({size:14.5,weight:400,lineHeight:20.3,color:"#4A4845"}),saysBy:/* @__PURE__ */blockText({size:14.5,weight:800,lineHeight:20.3,color:"#262523"}),saysByGap:2,saysTag:/* @__PURE__ */blockBox({w:51.609,h:15,padding:[2,6,2,6],radius:[5,5],bg:"surface",color:"#262523"}),saysTagText:/* @__PURE__ */blockText({size:10,weight:400,lineHeight:14,color:"#262523",tracking:.6,face:"mono",upper:true,paddingTop:2}),saysBare:/* @__PURE__ */blockBox({w:297,h:81,padding:[10,12,10,12],marginTop:12,gap:[10,10],radius:[14,14],bg:"#F8F7F4",color:"#262523"}),saysKicker:/* @__PURE__ */blockText({size:17,weight:400,lineHeight:25.5,color:"#262523"}),saysSerif:/* @__PURE__ */blockText({size:17,weight:800,lineHeight:25.5,color:"#262523",tracking:-.17,wrap:"balance"}),jump:/* @__PURE__ */blockBox({w:297,h:60,padding:[8,14,8,8],marginTop:12,gap:[12,12],radius:[14,14],bg:"planInk",center:true,color:"planOnInk"}),jumpImg:/* @__PURE__ */blockBox({w:44,h:44,radius:[10,10],bg:"surface",color:"surface"}),jumpKicker:/* @__PURE__ */blockText({size:13,weight:800,lineHeight:19.5,color:"planAccent"}),jumpTitle:/* @__PURE__ */blockText({size:15,weight:800,lineHeight:18.75,color:"planOnInk"}),jumpGo:/* @__PURE__ */blockText({size:14,weight:800,lineHeight:21,color:"planOnInk"}),jumpPressScale:.98,more:/* @__PURE__ */blockBox({w:87.547,h:36,marginTop:6,marginBottom:-4,gap:[4,4],minHeight:36,center:true,color:"planLink"}),moreText:/* @__PURE__ */blockText({size:15,weight:800,lineHeight:22.5,color:"planLink"}),moreIcon:/* @__PURE__ */blockBox({w:16,h:16,color:"planLink"}),moreInset:16,moreTurn:{closed:90,open:-90},rep:/* @__PURE__ */blockBox({w:297,h:48.5,padding:[14,14,12,14],marginTop:10,radius:[16,16],bg:"#F8F7F4",color:"#262523"})},tipBlockMetrics={card:/* @__PURE__ */blockBox({w:201.5,h:275.031,padding:[8,10,10,10],radius:[20,20],bg:"#FCF0D6"}),tones:{y:"#FCF0D6",c:"tintBlue",g:"tintGo",r:"tintPink"},img:/* @__PURE__ */blockBox({w:181.5,h:113.438,radius:[10,10],bg:"#F3F3F3"}),n:/* @__PURE__ */blockBox({w:28,h:28,radius:[14,14],bg:"surface",center:true,x:8,y:8}),nText:/* @__PURE__ */blockText({size:14,weight:700,lineHeight:14}),title:/* @__PURE__ */blockText({size:16,weight:700,lineHeight:20,marginTop:10}),text:/* @__PURE__ */blockText({size:15,weight:400,lineHeight:21,color:"#4D4D4D",marginTop:4}),foot:/* @__PURE__ */blockBox({w:181.5,h:26.594,padding:[8,0,0,0],gap:[4,4],center:true,color:"ink"}),footText:/* @__PURE__ */blockText({size:12,weight:400,lineHeight:18.6,color:"ink",tracking:.48,face:"mono",upper:true,paddingTop:8}),footArrow:/* @__PURE__ */blockBox({w:14,h:14,color:"ink"}),footArrowFlip:true,pressScale:.98,bare:/* @__PURE__ */blockBox({w:181.5,h:42,padding:[2,0,0,0],center:true}),thumb:/* @__PURE__ */blockBox({w:40,h:40,radius:[10,10],bg:"surface",center:true}),thumbIcon:/* @__PURE__ */blockBox({w:22,h:22})},tipPhotoBlockMetrics={card:/* @__PURE__ */blockBox({w:221,h:152,padding:[8,8,12,8],radius:[20,20],bg:"#FCF0D6"}),tones:{y:"#FCF0D6",c:"#EEDCC8",g:"tintGo",r:"tintPink"},img:/* @__PURE__ */blockBox({w:205,h:102.5,radius:[10,10],bg:"#F3F3F3"}),imgAspect:2,n:/* @__PURE__ */blockBox({w:28,h:28,radius:[14,14],bg:"surface",center:true,x:8,y:8}),nText:/* @__PURE__ */blockText({size:14,weight:700,lineHeight:14}),title:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:19.5,marginTop:10}),titleInset:4,pressScale:.98,bare:/* @__PURE__ */blockBox({w:205,h:42,padding:[2,0,0,0],center:true}),thumb:/* @__PURE__ */blockBox({w:40,h:40,radius:[10,10],bg:"surface",center:true}),thumbIcon:/* @__PURE__ */blockBox({w:22,h:22,color:"ink"})},tipWebBlockMetrics={card:/* @__PURE__ */blockBox({w:226,h:172.047,gap:[10,10]}),img:/* @__PURE__ */blockBox({w:226,h:141.25,radius:[14,14]}),imgAspect:1.6,title:/* @__PURE__ */blockText({size:16,weight:700,lineHeight:20.8,wrap:"balance"}),coverRadius:10,row:{from:440,card:/* @__PURE__ */blockBox({w:400,h:80,padding:[6,0,6,0],gap:[10,10],minHeight:80,center:true}),img:/* @__PURE__ */blockBox({w:64,h:64,radius:[10,10]}),arrowColumn:18,arrow:/* @__PURE__ */blockBox({w:18,h:18,color:"ink"}),arrowTurn:180},phone:{upTo:639,card:/* @__PURE__ */blockBox({w:216,h:162.5,gap:[8,8]}),img:/* @__PURE__ */blockBox({w:216,h:135,radius:[14,14]}),imgAspect:1.6,title:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:19.5,wrap:"balance"}),smallUpTo:359,smallW:208},mark:{tile:/* @__PURE__ */blockBox({w:226,h:141.25,radius:[14,14],bg:"#F5F5F5",center:true,color:"ink"}),icon:{share:.36,min:16,max:40,color:"ink"}},ring:{width:2,offset:2,color:"text"},hoverOffset:3},tipPlanBlockMetrics={card:/* @__PURE__ */blockBox({w:225.406,h:182.844,padding:[14,14,12,14],radius:[18,18],bg:"planAccentChip",color:"#262523"}),tones:{y:"planAccentChip",c:"planLinkChip",g:"#DDEFC4",r:"#FFD8D6"},top:/* @__PURE__ */blockBox({w:197.406,h:30,center:true,color:"#262523"}),nText:/* @__PURE__ */blockText({size:30,weight:900,lineHeight:30,color:"#262523"}),icon:/* @__PURE__ */blockBox({w:26,h:26,color:"#262523"}),title:/* @__PURE__ */blockText({size:17,weight:800,lineHeight:21.25,color:"#262523",marginTop:14}),text:/* @__PURE__ */blockText({size:14.5,weight:400,lineHeight:20.3,color:"#4A4845",marginTop:4}),foot:/* @__PURE__ */blockBox({w:197.406,h:25.75,padding:[10,0,0,0],color:"planLink"}),footText:/* @__PURE__ */blockText({size:10.5,weight:400,lineHeight:15.75,color:"planLink",tracking:.42,face:"mono",upper:true,paddingTop:10})},cartPlanBlockMetrics={line:/* @__PURE__ */blockBox({w:297,h:95.625,gap:[12,12],color:"#262523"}),img:/* @__PURE__ */blockBox({w:64,h:64,radius:[14,14],bg:"planLinkWash",center:true,color:"planLink"}),icon:/* @__PURE__ */blockBox({w:28,h:28,color:"planLink"}),name:/* @__PURE__ */blockText({size:16.5,weight:800,lineHeight:20.625,color:"#262523",wrap:"balance"}),prices:/* @__PURE__ */blockBox({w:221,h:24,marginTop:3,gap:[8,2],center:true,color:"#262523"}),price:/* @__PURE__ */blockText({size:16,weight:800,lineHeight:24,color:"#262523",tabular:true}),was:/* @__PURE__ */blockText({size:14,weight:600,lineHeight:21,color:"#6B6863",deco:"strike"}),small:/* @__PURE__ */blockText({size:14,weight:400,lineHeight:21,color:"#6B6863"}),acts:/* @__PURE__ */blockBox({w:221,h:40,marginTop:8,gap:[16,16],center:true,color:"#262523"}),step:/* @__PURE__ */blockBox({w:110,h:40,radius:[999,999],bg:"surface",edge:{width:1.5,color:"#DAD7D1",ring:true},center:true,color:"#262523"}),remove:/* @__PURE__ */blockBox({w:56.422,h:40,minHeight:40,color:"#4A4845"}),removeText:/* @__PURE__ */blockText({size:14.5,weight:700,lineHeight:21.75,color:"#4A4845",deco:"underline",decoOffset:3,decoThickness:1.5})},cartBarBlockMetrics={bar:/* @__PURE__ */blockBox({w:361,h:66,padding:[8,8,8,10],gap:[10,10],minHeight:60,radius:[22,22],bg:"surface",shadow:{color:"rgba(0, 0, 0, 0.06)",x:0,y:1,blur:3,spread:0},center:true,x:16}),lift:{color:"rgba(0, 0, 0, 0.09)",x:0,y:10,blur:28,spread:0},thumbs:/* @__PURE__ */blockBox({w:88,h:44,padding:[0,4,0,0],center:true}),thumb:/* @__PURE__ */blockBox({w:40,h:40,radius:[12,12],bg:"#F3F3F3"}),thumbRing:2,thumbOverlap:18,imgInset:4,imgFit:"contain",imgBlend:"multiply",count:/* @__PURE__ */blockBox({w:20,h:20,padding:[0,5,0,5],radius:[10,10],bg:"text",center:true,color:"surface",x:72,y:-4}),countText:/* @__PURE__ */blockText({size:12,weight:700,lineHeight:12,color:"surface",tabular:true}),countAt:{top:-4,right:-4},sum:/* @__PURE__ */blockBox({w:130.656,h:35.688,gap:[2,2]}),total:/* @__PURE__ */blockText({size:17,weight:700,lineHeight:18.7,tracking:-.17,tabular:true}),sub:/* @__PURE__ */blockText({size:12,weight:400,lineHeight:15,color:"muted"}),go:/* @__PURE__ */blockBox({w:104.344,h:50,padding:[0,18,0,18],gap:[6,6],minHeight:50,radius:[999,999],bg:"pink",edge:{width:1,color:"ink",ring:true},center:true,color:"ink"}),goText:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:23.25,color:"ink"}),pressScale:.97,hover:{color:"pink",share:.9,over:"text"},motion:{rise:{duration:240,from:24,fade:false},bump:{duration:240,scale:1.12,peakAt:.5,curve:"ease-out"}}},cartBarWebBlockMetrics={bar:/* @__PURE__ */blockBox({w:600,h:68,padding:[10,10,10,14],gap:[14,14],minHeight:68,radius:[26,26],bg:"surface",shadow:{color:"rgba(0, 0, 0, 0.06)",x:0,y:1,blur:3,spread:0},center:true}),lift:{color:"rgba(0, 0, 0, 0.09)",x:0,y:10,blur:28,spread:0},thumbs:/* @__PURE__ */blockBox({w:102,h:44,padding:[0,6,0,0],center:true}),thumb:/* @__PURE__ */blockBox({w:44,h:44,padding:[4,4,4,4],radius:[12,12],bg:"surface",shadow:{color:"rgba(0, 0, 0, 0.14)",x:0,y:1,blur:3,spread:0},fit:"contain"}),thumbRing:2,thumbOverlap:18,imgInset:4,imgFit:"contain",imgBlend:"normal",count:/* @__PURE__ */blockBox({w:22,h:22,padding:[0,6,0,6],radius:[11,11],bg:"go",center:true,x:83,y:-5}),countText:/* @__PURE__ */blockText({size:12,weight:700,lineHeight:12,wrap:"auto",tabular:true}),countAt:{top:-5,right:-3},sum:/* @__PURE__ */blockBox({w:307.484,h:43.5,gap:[2,2]}),total:/* @__PURE__ */blockText({size:20,weight:700,lineHeight:22,color:"ink",tracking:-.2,tabular:true}),sub:/* @__PURE__ */blockText({size:15,weight:400,lineHeight:19.5}),go:/* @__PURE__ */blockBox({w:138.516,h:48,padding:[0,22,0,22],minHeight:48,radius:[999,999],bg:"ink",color:"surface"}),goText:/* @__PURE__ */blockText({size:17,weight:700,lineHeight:26.35,color:"surface",wrap:"auto"}),pressScale:.97,hover:{color:"ink",share:.86,over:"text"},motion:{rise:{duration:260,from:24,fade:true},bump:{duration:240,scale:1.1,peakAt:.5,curve:"out"}},phone:{upTo:559,bar:/* @__PURE__ */blockBox({w:335,h:79,padding:[8,8,8,10],gap:[10,10],minHeight:64,radius:[22,22],bg:"surface",center:true}),thumb:/* @__PURE__ */blockBox({w:40,h:40,padding:[4,4,4,4],radius:[12,12],bg:"surface",shadow:{color:"#FFFFFF",x:0,y:0,blur:0,spread:2},fit:"contain"}),go:/* @__PURE__ */blockBox({w:94.594,h:48,padding:[0,18,0,18],minHeight:48,radius:[999,999],bg:"ink",color:"surface"}),lastOnly:true,wordHidden:true}},whyBlockMetrics={card:/* @__PURE__ */blockBox({w:393,h:655.609}),head:/* @__PURE__ */blockBox({w:393,h:126.328,padding:[4,16,12,16],gap:[12,12]}),pic:/* @__PURE__ */blockBox({w:64,h:64,radius:[10,10],bg:"#F3F3F3"}),packInset:.08,kind:/* @__PURE__ */blockText({size:12,weight:700,lineHeight:18.6,color:"ink",tracking:.72,face:"mono",upper:true}),title:/* @__PURE__ */blockText({size:22,weight:700,lineHeight:24.64,tracking:-.55,marginTop:2}),sub:/* @__PURE__ */blockText({size:14,weight:400,lineHeight:18.9,color:"#4D4D4D",marginTop:3}),close:/* @__PURE__ */blockBox({w:36,h:36,padding:[1,6,1,6],radius:[18,18],center:true,color:"ink"}),closeIcon:/* @__PURE__ */blockBox({w:20,h:20,color:"ink"}),body:/* @__PURE__ */blockBox({w:393,h:529.281,padding:[0,16,24,16],gap:[12,12]}),box:/* @__PURE__ */blockBox({w:361,h:169.281,padding:[14,14,14,14],radius:[20,20],bg:"tintPink"}),heading:/* @__PURE__ */blockText({size:17,weight:700,lineHeight:21.25}),rows:/* @__PURE__ */blockBox({w:333,h:110.031,marginTop:10,gap:[10,10]}),row:/* @__PURE__ */blockText({size:15,weight:400,lineHeight:21.75}),rowHead:/* @__PURE__ */blockText({size:12,weight:400,lineHeight:17.4,color:"ink",tracking:.48,face:"mono",upper:true}),secHeading:/* @__PURE__ */blockText({size:17,weight:700,lineHeight:21.25}),how:/* @__PURE__ */blockBox({w:361,h:49.5,marginTop:8,gap:[6,6]}),bullet:/* @__PURE__ */blockBox({w:361,h:21.75,gap:[8,8],color:"#4D4D4D"}),bulletText:/* @__PURE__ */blockText({size:15,weight:400,lineHeight:21.75,color:"#4D4D4D"}),bulletColumn:14,dot:{size:6,top:9,color:"ink"},para:/* @__PURE__ */blockText({size:15,weight:400,lineHeight:22.5,color:"#4D4D4D",marginTop:6}),acts:/* @__PURE__ */blockBox({w:361,h:98,gap:[2,2]}),btn:/* @__PURE__ */blockBox({w:361,h:52,padding:[0,20,0,20],gap:[8,8],minHeight:52,radius:[999,999],bg:"ink",center:true,color:"surface"}),btnText:/* @__PURE__ */blockText({size:16,weight:700,lineHeight:24.8,color:"surface"}),more:/* @__PURE__ */blockBox({w:164.891,h:44,padding:[0,12,0,12],minHeight:44,center:true,color:"ink"}),moreText:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:23.25,color:"ink",deco:"underline",decoOffset:3,decoThickness:1.5}),tones:{calm:"tintBlue",y:"#FCF0D6",c:"#EEDCC8",g:"tintGo",r:"tintPink"},photoBg:"#F3F3F3",closeHover:"tintSage",pressScale:.97,hover:{color:"ink",share:.88,over:"surface"}},whyWebBlockMetrics={card:/* @__PURE__ */blockBox({w:558,h:571.375}),head:/* @__PURE__ */blockBox({w:558,h:105.375,padding:[24,24,12,24],gap:[12,12]}),pic:/* @__PURE__ */blockBox({w:64,h:64,radius:[10,10],bg:"#F5F5F5"}),packInset:.08,kind:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:19.5,color:"ink"}),title:/* @__PURE__ */blockText({size:22,weight:500,lineHeight:24.64,color:"ink",tracking:-.44,marginTop:2}),sub:/* @__PURE__ */blockText({size:15,weight:400,lineHeight:20.25,marginTop:3}),close:/* @__PURE__ */blockBox({w:40,h:40,padding:[1,6,1,6],radius:[20,20],center:true}),closeIcon:/* @__PURE__ */blockBox({w:20,h:20}),body:/* @__PURE__ */blockBox({w:558,h:466,padding:[0,24,24,24],gap:[22,22]}),box:/* @__PURE__ */blockBox({w:510,h:129}),heading:/* @__PURE__ */blockText({size:16,weight:700,lineHeight:20}),rows:/* @__PURE__ */blockBox({w:510,h:99,marginTop:10,gap:[12,12]}),row:/* @__PURE__ */blockText({size:15,weight:400,lineHeight:21.75}),rowHead:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:21.75,color:"ink"}),secHeading:/* @__PURE__ */blockText({size:16,weight:700,lineHeight:20}),how:/* @__PURE__ */blockBox({w:510,h:49.5,marginTop:8,gap:[6,6]}),bullet:/* @__PURE__ */blockBox({w:510,h:21.75,gap:[8,8]}),bulletText:/* @__PURE__ */blockText({size:15,weight:400,lineHeight:21.75}),bulletColumn:14,dot:{size:6,top:9.75,color:"ink"},para:/* @__PURE__ */blockText({size:15,weight:400,lineHeight:22.5,marginTop:6}),acts:/* @__PURE__ */blockBox({w:510,h:92,gap:[2,2]}),btn:/* @__PURE__ */blockBox({w:510,h:46,padding:[0,20,0,20],gap:[8,8],minHeight:46,radius:[999,999],bg:"ink",center:true,color:"surface"}),btnText:/* @__PURE__ */blockText({size:17,weight:400,lineHeight:26.35,color:"surface",wrap:"auto"}),more:/* @__PURE__ */blockBox({w:164.891,h:44,padding:[0,12,0,12],minHeight:44,center:true,color:"ink"}),moreText:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:23.25,color:"ink",wrap:"auto",deco:"underline",decoOffset:3,decoThickness:1.5}),photoBg:"surface",closeHover:"none",pressScale:.97,hover:{color:"ink",share:.88,over:"surface"},phone:{upTo:419,head:/* @__PURE__ */blockBox({w:341,h:145.031,padding:[24,24,12,24],gap:[10,10]}),pic:/* @__PURE__ */blockBox({w:48,h:48,radius:[10,10],bg:"#F5F5F5"}),title:/* @__PURE__ */blockText({size:20,weight:500,lineHeight:22.4,color:"ink",tracking:-.4,marginTop:2})}},whyPlanBlockMetrics={card:/* @__PURE__ */blockBox({w:329,h:323.109,padding:[12,14,12,14],radius:[16,16],edge:{width:1.5,color:"#262523",ring:true},color:"#262523"}),heading:/* @__PURE__ */blockText({size:10.5,weight:400,lineHeight:15.75,color:"#6B6863",tracking:.63,face:"mono",upper:true}),row:/* @__PURE__ */blockBox({w:301,h:59.688,marginTop:10,gap:[10,10],color:"#262523"}),chipColumn:58,chips:{dna:{box:/* @__PURE__ */blockBox({w:58,h:22,radius:[6,6],bg:"planLinkWash",center:true,color:"planLink"}),text:/* @__PURE__ */blockText({size:10.5,weight:700,lineHeight:15.75,color:"planLink",tracking:.42,face:"mono",upper:true})},record:{box:/* @__PURE__ */blockBox({w:58,h:22,radius:[6,6],bg:"#F2F1EE",center:true,color:"#4A4845"}),text:/* @__PURE__ */blockText({size:10.5,weight:700,lineHeight:15.75,color:"#4A4845",tracking:.42,face:"mono",upper:true})},ask:{box:/* @__PURE__ */blockBox({w:58,h:22,radius:[6,6],bg:"planAccentWash",center:true,color:"#262523"}),text:/* @__PURE__ */blockText({size:10.5,weight:700,lineHeight:15.75,color:"#262523",tracking:.42,face:"mono",upper:true})}},rowTitle:/* @__PURE__ */blockText({size:15,weight:800,lineHeight:19.5,color:"#262523"}),rowBody:/* @__PURE__ */blockText({size:14,weight:400,lineHeight:19.6,color:"#4A4845",marginTop:1}),score:/* @__PURE__ */blockBox({w:301,h:42.797,padding:[11,12,11,14],marginTop:12,gap:[8,8],radius:[12,12],bg:"planInk",center:true,color:"planOnInk"}),scoreText:/* @__PURE__ */blockText({size:14.5,weight:800,lineHeight:18.85,color:"planOnInk"}),scoreValue:/* @__PURE__ */blockText({size:16,weight:700,lineHeight:20.8,color:"planAccent",face:"mono"})},lightsBlockMetrics={card:/* @__PURE__ */blockBox({w:325,h:134,marginTop:14}),head:/* @__PURE__ */blockBox({w:325,h:24,marginBottom:10,gap:[12,12],center:true}),lead:/* @__PURE__ */blockText({size:14,weight:400,lineHeight:18.2,color:"#3D3D3D"}),name:/* @__PURE__ */blockText({size:14,weight:700,lineHeight:18.2,color:"ink"}),pills:{better:{box:/* @__PURE__ */blockBox({w:66.094,h:24,padding:[0,10,0,10],minHeight:24,radius:[999,999],bg:"#D7F5E7",center:true,color:"ink"}),text:/* @__PURE__ */blockText({size:12,weight:700,lineHeight:12,color:"ink",tracking:.48,face:"mono"})},same:{box:/* @__PURE__ */blockBox({w:50.734,h:24,padding:[0,10,0,10],minHeight:24,radius:[999,999],bg:"#FBEED0",center:true,color:"ink"}),text:/* @__PURE__ */blockText({size:12,weight:700,lineHeight:12,color:"ink",tracking:.48,face:"mono"})},worse:{box:/* @__PURE__ */blockBox({w:58.406,h:24,padding:[0,10,0,10],minHeight:24,radius:[999,999],bg:"#F6EBDE",center:true,color:"#834D0D"}),text:/* @__PURE__ */blockText({size:12,weight:700,lineHeight:12,color:"#834D0D",tracking:.48,face:"mono"})}},viz:/* @__PURE__ */blockBox({w:325,h:56}),grid:{rows:10,gap:1.5,radius:1.5,widthShare:.6},zones:{lot:6.5,some:3.5},colors:{go:"go",some:"#E4BA55",lot:"#BC6E13"},src:/* @__PURE__ */blockBox({w:325,h:44,gap:[16,0],center:true}),srcBtn:/* @__PURE__ */blockBox({w:181.5,h:44,gap:[6,6],minHeight:44,center:true,color:"#4D4D4D"}),srcText:/* @__PURE__ */blockText({size:14,weight:400,lineHeight:21.7,color:"#4D4D4D"}),srcIcon:/* @__PURE__ */blockBox({w:16,h:16,color:"#5A6087"}),act:/* @__PURE__ */blockBox({w:221.172,h:44,padding:[0,20,0,20],marginTop:6,marginBottom:14,minHeight:44,radius:[999,999],bg:"surface",edge:{width:1.5,color:"ink",ring:true},center:true,color:"ink"}),actText:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:23.25,color:"ink",marginTop:6})},checkinBlockMetrics={card:/* @__PURE__ */blockBox({w:393,h:179.25}),body:/* @__PURE__ */blockBox({w:393,h:99.25,padding:[0,16,24,16],gap:[24,24]}),question:/* @__PURE__ */blockText({size:17,weight:700,lineHeight:21.25}),picks:/* @__PURE__ */blockBox({w:361,h:96,marginTop:10,gap:[8,8]}),pick:/* @__PURE__ */blockBox({w:115,h:44,padding:[4,4,4,4],gap:[6,6],minHeight:44,radius:[999,999],bg:"surface",edge:{width:1,color:"ink",ring:false},center:true,color:"ink"}),pickText:/* @__PURE__ */blockText({size:15,weight:400,lineHeight:18,color:"ink",wrap:"balance",paddingTop:4}),pickOn:/* @__PURE__ */blockBox({w:115,h:44,padding:[4,4,4,4],gap:[6,6],minHeight:44,radius:[999,999],bg:"pink",edge:{width:1,color:"pink",ring:false},center:true,color:"ink"}),pickOnText:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:18,color:"ink",wrap:"balance",paddingTop:4}),pickHover:{color:"pink",share:.3,over:"surface"},stepTop:16,row:/* @__PURE__ */blockBox({w:361,h:44,gap:[8,8],minHeight:44,center:true}),rowLabel:/* @__PURE__ */blockText({size:15,weight:400,lineHeight:18.75}),rowValue:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:18.75}),rowIcon:/* @__PURE__ */blockBox({w:18,h:18,color:"ink"}),rowTurn:90,rowPressScale:.98,note:/* @__PURE__ */blockBox({w:361,h:60.594,padding:[10,12,10,12],marginTop:12,radius:[10,10],bg:"#FFE8E6"}),noteText:/* @__PURE__ */blockText({size:14,weight:400,lineHeight:20.3,marginTop:12,paddingTop:10}),noteLink:/* @__PURE__ */blockText({size:14,weight:700,lineHeight:20.3,deco:"underline",decoOffset:3}),done:/* @__PURE__ */blockText({size:15,weight:400,lineHeight:21,wrap:"balance",marginTop:12}),acts:/* @__PURE__ */blockBox({w:361,h:52,gap:[2,2]}),btn:/* @__PURE__ */blockBox({w:361,h:52,padding:[0,20,0,20],gap:[8,8],minHeight:52,radius:[999,999],bg:"ink",center:true,color:"surface"}),btnText:/* @__PURE__ */blockText({size:16,weight:700,lineHeight:24.8,color:"surface"})},weatherBlockMetrics={card:/* @__PURE__ */blockBox({w:361,h:321.734,padding:[16,16,16,16],gap:[16,16],radius:[20,20],bg:"#FCF4E0"}),skies:{sun:"#FCF4E0",blue:"tintBlue"},now:/* @__PURE__ */blockBox({w:329,h:113.891,gap:[12,12],center:true}),temp:/* @__PURE__ */blockText({size:64,weight:700,lineHeight:60.8,color:"ink",tracking:-2.56,tabular:true}),cond:/* @__PURE__ */blockText({size:17,weight:700,lineHeight:22.1,color:"ink",marginTop:8}),hl:/* @__PURE__ */blockText({size:15,weight:400,lineHeight:21,tabular:true,marginTop:2}),glyph:/* @__PURE__ */blockBox({w:88,h:88}),walk:/* @__PURE__ */blockBox({w:329,h:159.844,padding:[12,16,12,16],gap:[4,4],radius:[10,10],bg:"surface"}),walkTitle:/* @__PURE__ */blockBox({w:297,h:22.094,gap:[8,8],center:true,color:"ink"}),walkTitleText:/* @__PURE__ */blockText({size:17,weight:700,lineHeight:22.1,color:"ink"}),walkText:/* @__PURE__ */blockText({size:15,weight:400,lineHeight:21.75}),lvl:/* @__PURE__ */blockBox({w:10,h:10,radius:[5,5],bg:"#77DDAC",color:"ink"}),levels:{good:"#77DDAC",ok:"#F4CF7A",hot:"#DC8F7C",storm:"#8DA4BB"},comfort:/* @__PURE__ */blockBox({w:297,h:32.5,padding:[12,0,0,0],marginTop:8,gap:[8,6],center:true}),comfortRule:{width:1,color:"line"},comfortLabel:/* @__PURE__ */blockText({size:13,weight:400,lineHeight:16.9,color:"muted"}),comfortValue:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:19.5,color:"ink"}),bar:/* @__PURE__ */blockBox({w:82,h:8,gap:[3,3]}),pipOn:/* @__PURE__ */blockBox({w:14,h:8,radius:[2,2],bg:"#77DDAC"}),pipOff:/* @__PURE__ */blockBox({w:14,h:8,radius:[2,2],bg:"#F1F5F2"})},weatherSummaryBlockMetrics={card:/* @__PURE__ */blockBox({w:361,h:265.484,padding:[24,16,24,16],radius:[20,20],bg:"#FCF4E0"}),glyph:/* @__PURE__ */blockBox({w:88,h:88}),temp:/* @__PURE__ */blockText({size:72,weight:700,lineHeight:68.4,color:"ink",tracking:-2.88,tabular:true,marginTop:8}),cond:/* @__PURE__ */blockText({size:17,weight:700,lineHeight:22.1,color:"ink",marginTop:8}),hl:/* @__PURE__ */blockText({size:15,weight:400,lineHeight:21,tabular:true,marginTop:2})},weatherTileBlockMetrics={card:/* @__PURE__ */blockBox({w:272,h:187.984,padding:[16,16,16,16],gap:[8,8],radius:[20,20],bg:"#F5F5F5"}),top:/* @__PURE__ */blockBox({w:240,h:24,gap:[8,8],center:true}),label:/* @__PURE__ */blockText({size:12,weight:700,lineHeight:15.6,color:"ink",tracking:.72,face:"mono",upper:true}),glyph:/* @__PURE__ */blockBox({w:36,h:36,marginTop:-6,marginBottom:-6}),glyphMargin:[-6,-4,-6,0],big:/* @__PURE__ */blockText({size:28,weight:700,lineHeight:30.8,color:"ink",tracking:-.56,tabular:true}),small:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:16.5,color:"muted",tabular:true}),smallGap:4,meta:/* @__PURE__ */blockText({size:14,weight:400,lineHeight:19.6}),btn:/* @__PURE__ */blockBox({w:137.375,h:38,padding:[0,12,0,12],gap:[8,8],minHeight:38,radius:[999,999],bg:"ink",edge:{width:1.5,color:"ink",ring:false},center:true,color:"surface"}),btnText:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:15,color:"surface"}),btnIcon:/* @__PURE__ */blockBox({w:20,h:20,color:"surface"})},weatherWebBlockMetrics={card:/* @__PURE__ */blockBox({w:533.078,h:242,padding:[24,24,24,24],radius:[20,20],bg:"surface",edge:{width:1,color:"line",ring:false}}),head:/* @__PURE__ */blockBox({w:483.078,h:34,marginBottom:16,gap:[12,12],center:true}),city:/* @__PURE__ */blockText({size:24,weight:700,lineHeight:28.8,color:"ink",tracking:-.48,wrap:"auto"}),units:/* @__PURE__ */blockBox({w:78,h:34,padding:[2,2,2,2],radius:[999,999],edge:{width:1,color:"line",ring:false}}),unit:/* @__PURE__ */blockBox({w:36,h:28,minHeight:28,radius:[999,999],center:true,color:"muted"}),unitText:/* @__PURE__ */blockText({size:13,weight:700,lineHeight:20.15,color:"muted",wrap:"auto"}),unitOn:/* @__PURE__ */blockBox({w:36,h:28,minHeight:28,radius:[999,999],bg:"ink",center:true,color:"surface"}),unitOnText:/* @__PURE__ */blockText({size:13,weight:700,lineHeight:20.15,color:"surface",wrap:"auto"}),now:/* @__PURE__ */blockBox({w:483.078,h:88,gap:[24,12],center:true}),glyph:/* @__PURE__ */blockBox({w:88,h:88}),temp:/* @__PURE__ */blockText({size:51.2,weight:700,lineHeight:51.2,color:"ink",tracking:-1.536,wrap:"auto",tabular:true}),tempFluid:{min:44,vw:4,max:56},sky:/* @__PURE__ */blockText({size:15,weight:400,lineHeight:21,color:"muted",wrap:"auto",marginTop:6}),tags:/* @__PURE__ */blockBox({w:483.078,h:30,marginTop:24,gap:[8,8]}),tag:/* @__PURE__ */blockBox({w:123.75,h:30,padding:[0,14,0,14],gap:[8,8],minHeight:30,radius:[999,999],bg:"surface",edge:{width:1,color:"#F2C763",ring:false},center:true,color:"ink"}),tagText:/* @__PURE__ */blockText({size:13,weight:700,lineHeight:20.15,color:"ink",wrap:"auto"}),dot:7,hues:{red:"alert",yellow:"#F2C763",green:"go",blue:"#4E98C9",plain:"line",plainDot:"muted"},phone:{upTo:559,card:/* @__PURE__ */blockBox({w:335,h:272,padding:[18,18,18,18],radius:[20,20],bg:"surface",edge:{width:1,color:"line",ring:false}}),glyph:/* @__PURE__ */blockBox({w:64,h:64})}},weatherAlertBlockMetrics={card:/* @__PURE__ */blockBox({w:361,h:48,padding:[0,16,0,16],gap:[12,12],minHeight:48,radius:[10,10],bg:"#FBF1EE",center:true,color:"#6D1D14"}),icon:/* @__PURE__ */blockBox({w:20,h:20,color:"alert"}),title:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:23.25,color:"#6D1D14"}),titleGap:6,text:/* @__PURE__ */blockText({size:15,weight:400,lineHeight:23.25,color:"#6D1D14"}),chev:/* @__PURE__ */blockBox({w:16,h:16,color:"#6D1D14"}),pressScale:.98},weatherDetailsBlockMetrics={grid:/* @__PURE__ */blockBox({w:361,h:591.25,gap:[12,12]}),tile:/* @__PURE__ */blockBox({w:174.5,h:143.359,padding:[14,14,14,14],gap:[6,6],minHeight:120,radius:[20,20],bg:"surface",edge:{width:1,color:"line",ring:false}}),label:/* @__PURE__ */blockText({size:12,weight:700,lineHeight:15.6,color:"muted",tracking:.72,face:"mono",upper:true}),labelGap:6,icon:/* @__PURE__ */blockBox({w:16,h:16,color:"ink"}),chev:/* @__PURE__ */blockBox({w:14,h:14,color:"muted"}),value:/* @__PURE__ */blockText({size:28,weight:700,lineHeight:30.8,color:"ink",tracking:-.56,tabular:true}),valueGap:6,unit:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:16.5,color:"ink",tabular:true}),note:/* @__PURE__ */blockText({size:13,weight:400,lineHeight:18.2}),pressScale:.98},weatherHoursBlockMetrics={cell:/* @__PURE__ */blockBox({w:54,h:100,padding:[2,0,0,0],gap:[4,4],center:true}),column:54,rows:[18,32,16,20,6],time:/* @__PURE__ */blockText({size:13,weight:400,lineHeight:15.6,color:"muted"}),timeNow:/* @__PURE__ */blockText({size:13,weight:700,lineHeight:15.6,color:"ink"}),glyph:/* @__PURE__ */blockBox({w:32,h:32}),icon:/* @__PURE__ */blockBox({w:24,h:24,color:"#926F06"}),chance:/* @__PURE__ */blockText({size:12,weight:700,lineHeight:12,color:"#1E7AB7",face:"mono"}),temp:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:18,color:"ink",tabular:true}),quiet:/* @__PURE__ */blockText({size:13,weight:400,lineHeight:15.6,color:"muted",tabular:true}),bar:/* @__PURE__ */blockBox({w:52,h:6,radius:[3,3],bg:"#77DDAC"}),barInset:1,levels:{good:"#77DDAC",ok:"#F4CF7A",hot:"#DC8F7C",storm:"#8DA4BB"},windows:/* @__PURE__ */blockBox({w:327,h:76.594,marginBottom:12,gap:[8,8]}),window:/* @__PURE__ */blockBox({w:159.5,h:76.594,padding:[10,12,10,12],gap:[2,2],radius:[10,10],bg:"tintGo"}),windowTitle:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:19.5,color:"ink",tabular:true}),windowText:/* @__PURE__ */blockText({size:13,weight:400,lineHeight:17.55}),legend:/* @__PURE__ */blockBox({w:327,h:18.188,marginTop:12,gap:[14,4],color:"muted"}),legendItem:/* @__PURE__ */blockBox({w:47.813,h:18.188,gap:[6,6],center:true,color:"muted"}),legendText:/* @__PURE__ */blockText({size:13,weight:400,lineHeight:18.2,color:"muted",marginTop:12}),legendDot:/* @__PURE__ */blockBox({w:10,h:10,radius:[5,5],bg:"#77DDAC",color:"muted"})},weatherForecastBlockMetrics={row:/* @__PURE__ */blockBox({w:327,h:48,gap:[8,8],minHeight:48,center:true}),rule:{width:1,color:"line"},columns:[48,32,30,155,30],walkColumns:[42,30,28,73,28,86],day:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:18,color:"ink"}),sky:/* @__PURE__ */blockBox({w:32,h:30,gap:[1,1]}),glyph:/* @__PURE__ */blockBox({w:30,h:30}),chance:/* @__PURE__ */blockText({size:12,weight:700,lineHeight:12,color:"#1E7AB7",face:"mono"}),low:/* @__PURE__ */blockText({size:14,weight:400,lineHeight:14,color:"muted",face:"mono",tabular:true}),high:/* @__PURE__ */blockText({size:14,weight:400,lineHeight:14,color:"ink",face:"mono",tabular:true}),bar:/* @__PURE__ */blockBox({w:155,h:6,radius:[3,3],bg:"#F1F5F2"}),fill:/* @__PURE__ */blockBox({w:99.203,h:6,radius:[3,3],bg:"#DDB44F",x:23.25}),tag:/* @__PURE__ */blockBox({w:42.016,h:24,padding:[0,10,0,10],minHeight:24,radius:[999,999],bg:"#FCF0D6",edge:{width:1,color:"tintYellowEdge",ring:true},center:true,color:"ink"}),tagText:/* @__PURE__ */blockText({size:12,weight:700,lineHeight:14.4,color:"ink"}),tags:{good:{bg:"tintGo",ring:"#8FE3BB",ringWidth:1,color:"ink"},ok:{bg:"#FCF0D6",ring:"tintYellowEdge",ringWidth:1,color:"ink"},warn:{bg:"#FBF1EE",ring:"#E9B8AB",ringWidth:1,color:"#6D1D14"},rain:{bg:"tintBlue",ring:"#AFD1E7",ringWidth:1,color:"ink"}}},weatherLevelsBlockMetrics={phone:{list:/* @__PURE__ */blockBox({w:361,h:140,marginTop:16,marginBottom:16,gap:[12,12]}),row:/* @__PURE__ */blockBox({w:361,h:26,gap:[8,8],center:true}),columns:[24,56,185,72],icon:/* @__PURE__ */blockBox({w:26,h:26}),name:/* @__PURE__ */blockText({size:15,weight:400,lineHeight:23.25}),bar:/* @__PURE__ */blockBox({w:185,h:8,radius:[999,999],bg:"#ECECEC"}),fills:{high:"#B67A3F",mid:"#F2C763",low:"ink"},level:{high:/* @__PURE__ */blockText({size:13,weight:700,lineHeight:20.15,color:"#A05E32",face:"mono"}),mid:/* @__PURE__ */blockText({size:13,weight:400,lineHeight:20.15,color:"#A05E32",face:"mono"}),low:/* @__PURE__ */blockText({size:13,weight:400,lineHeight:20.15,color:"muted",face:"mono"})}},web:{list:/* @__PURE__ */blockBox({w:344.891,h:140,marginTop:16,marginBottom:16,gap:[12,12]}),row:/* @__PURE__ */blockBox({w:344.891,h:26,gap:[12,12],center:true}),columns:[26,64,138.891,80],icon:/* @__PURE__ */blockBox({w:26,h:26}),name:/* @__PURE__ */blockText({size:15,weight:400,lineHeight:23.25,wrap:"auto"}),bar:/* @__PURE__ */blockBox({w:138.891,h:8,radius:[999,999],bg:"#ECECEC"}),fills:{high:"#B67A3F",mid:"#F2C763",low:"ink"},level:{high:/* @__PURE__ */blockText({size:13,weight:700,lineHeight:20.15,color:"#A05E32",face:"mono",wrap:"auto"}),mid:/* @__PURE__ */blockText({size:13,weight:400,lineHeight:20.15,color:"#A05E32",face:"mono",wrap:"auto"}),low:/* @__PURE__ */blockText({size:13,weight:400,lineHeight:20.15,color:"muted",face:"mono",wrap:"auto"})}},webPhoneUpTo:559},weatherReadingBlockMetrics={phone:{body:/* @__PURE__ */blockBox({w:361,h:88.344,gap:[12,12]}),gap:12,picks:/* @__PURE__ */blockBox({w:361,h:36,gap:[10,10]}),on:/* @__PURE__ */blockBox({w:103.016,h:36,padding:[0,12,0,12],gap:[6,6],minHeight:36,radius:[999,999],bg:"pink",edge:{width:1,color:"pink",ring:false},center:true,color:"ink"}),onText:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:19.5,color:"ink"}),off:/* @__PURE__ */blockBox({w:86.875,h:36,padding:[0,12,0,12],gap:[6,6],minHeight:36,radius:[999,999],bg:"surface",edge:{width:1,color:"ink",ring:false},center:true,color:"ink"}),offText:/* @__PURE__ */blockText({size:15,weight:400,lineHeight:19.5,color:"ink"}),check:/* @__PURE__ */blockBox({w:16,h:16,color:"ink"}),read:/* @__PURE__ */blockBox({w:361,h:40.344,gap:[12,0]}),value:/* @__PURE__ */blockText({size:36,weight:700,lineHeight:37.8,color:"ink",tracking:-.72,tabular:true}),word:/* @__PURE__ */blockText({size:17,weight:700,lineHeight:26.35,color:"alert",tracking:.34,face:"mono",upper:true})},web:{body:/* @__PURE__ */blockBox({w:344.891,h:140.344}),gap:16,picks:/* @__PURE__ */blockBox({w:344.891,h:82,marginTop:16,marginBottom:16,gap:[10,10]}),on:/* @__PURE__ */blockBox({w:107.016,h:36,padding:[0,14,0,14],gap:[6,6],minHeight:36,radius:[999,999],bg:"pink",edge:{width:1,color:"pink",ring:false},center:true,color:"ink"}),onText:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:19.5,color:"ink",wrap:"auto"}),off:/* @__PURE__ */blockBox({w:90.875,h:36,padding:[0,14,0,14],gap:[6,6],minHeight:36,radius:[999,999],bg:"surface",edge:{width:1,color:"ink",ring:false},center:true,color:"ink"}),offText:/* @__PURE__ */blockText({size:15,weight:400,lineHeight:19.5,color:"ink",wrap:"auto"}),check:/* @__PURE__ */blockBox({w:16,h:16,color:"ink"}),read:/* @__PURE__ */blockBox({w:344.891,h:42.344,gap:[12,0]}),value:/* @__PURE__ */blockText({size:38.4,weight:700,lineHeight:40.32,color:"ink",tracking:-.768,wrap:"auto",tabular:true}),word:/* @__PURE__ */blockText({size:17,weight:700,lineHeight:26.35,color:"#A05E32",tracking:.34,face:"mono",upper:true,wrap:"auto"})},fluid:{min:36,vw:3,max:44},tones:{good:"#0C844B",ok:"#A05E32",low:"alert"}};function deepFreeze2(value){if(value!==null&&typeof value=="object"&&!Object.isFrozen(value))for(let v of Object.values(value))deepFreeze2(v);return value}var k=everfurTokens,PRESET=/* @__PURE__ */Symbol.for("@everfur-health/ui-core#preset@v1");function asPreset(theme){return Object.defineProperty(theme,PRESET,{value:theme,enumerable:true}),deepFreeze2(theme)}var SCALE_CAPS={content:0,heading:2,control:1.8,compact:1.5,badge:1.3},everfurTheme=asPreset({name:"everfur",colors:{bg:k.color.bg,surface:k.color.efWhite,text:k.color.text,ink:k.role.color.ink,onInk:k.color.efWhite,muted:k.role.color.muted,line:k.role.color.line,go:k.role.color.go,onGo:k.role.color.ink,pink:k.color.efDustyPink,onPink:k.role.color.ink,alert:k.color.alert,alertDeep:k.color.alertDeep,icoSage:k.role.color.icoSage,bgMist:k.color.bgMist,tintSage:k.role.color.tintSage,tintBlue:k.role.color.tintBlue,tintGo:k.role.color.tintGo,tintPink:k.role.color.tintPink,tintYellowEdge:k.role.color.tintYellowEdge,tintWatch:everfurMetrics.colors.watch,tintRed:k.role.color.tintRed,scrim:everfurMetrics.colors.scrim,grab:everfurMetrics.colors.grab,focus:k.role.color.ink,planInk:everfurMetrics.colors.planInk,planOnInk:everfurMetrics.colors.planOnInk,planAccent:everfurMetrics.colors.planAccent,planLink:everfurMetrics.colors.planLink,planAccentWash:everfurMetrics.colors.planAccentWash,planAccentChip:everfurMetrics.colors.planAccentChip,planLinkWash:everfurMetrics.colors.planLinkWash,planLinkChip:everfurMetrics.colors.planLinkChip},radius:{...k.radius},space:{...k.space},type:{family:k.font.family.base,mono:k.font.family.mono,faces:{regular:"Azeret-Regular",medium:"Azeret-Medium",bold:"Azeret-Bold",mono:"AzeretMono-Regular",monoBold:"AzeretMono-Bold"},namedFaces:true,size:{xs:k.font.size.xs,sm:k.font.size.sm,md:k.font.size.md,lg:k.font.size.lg,xl:k.font.size.xl},weight:{...k.font.weight},lineHeight:{...k.font.lineHeight},scaleCaps:SCALE_CAPS},motion:{duration:{press:k.motion.duration.press,fade:k.motion.duration.fade,enter:k.motion.duration.enter,sheet:k.motion.duration.sheet,sheetOut:k.motion.duration.sheetOut},easing:{out:k.motion.easing.out,drawer:k.motion.easing.drawer},pop:{duration:k.motion.duration.enter,from:.95,peakAt:.55,amplitude:.035,switchAmplitude:.06},reduced:false},metrics:everfurMetrics});function presetOf(theme){return theme[PRESET]??everfurTheme}function isObject(v){return v!==null&&typeof v=="object"&&!Array.isArray(v)}function merge(base3,over){if(!isObject(base3)||!isObject(over))return over===void 0?base3:over;let out={...base3};for(let[key,value]of Object.entries(over))value!==void 0&&(out[key]=merge(base3[key],value));return out}function resolveTheme(partial,base3=everfurTheme){if(!partial)return base3;let merged=merge(base3,partial),given=partial.colors;if(given){let colors=merged.colors;for(let[wash,from,share2]of PLAN_WASHES){let c=given[from];c!==void 0&&given[wash]===void 0&&(colors[wash]=mixHex(c,share2,colors.surface)??colors[wash]??c)}}return deepFreeze2(merged)}var PLAN_WASHES=[["planAccentWash","planAccent",.17],["planAccentChip","planAccent",.47],["planLinkWash","planLink",.12],["planLinkChip","planLink",.2]];function mixHex(color,share2,ground){let ch=v=>{let m=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.exec(v??"");return m?[m[1],m[2],m[3]].map(h=>parseInt(h,16)):void 0},[c,g]=[ch(color),ch(ground)];if(!(!c||!g))return`#${c.map((v,i)=>Math.round(v*share2+(g[i]??0)*(1-share2)).toString(16).padStart(2,"0")).join("").toUpperCase()}`}var ThemeContext=/* @__PURE__ */(()=>{let key=/* @__PURE__ */Symbol.for("@everfur-health/ui-core#ThemeContext@v1"),host2=globalThis,context=host2[key]??(host2[key]=createContext(null));return context.displayName??(context.displayName="EverfurThemeContext"),context})();function ThemeProvider({theme:theme,children:children}){let outer=useTheme(),key=theme===void 0||isComplete(theme)?theme:contentKey(theme),value=useMemo(()=>isComplete(theme)?filled(theme):resolveTheme(theme,outer),[key,outer]);return createElement(ThemeContext.Provider,{value:value},children)}function contentKey(value){return JSON.stringify(value,(_,v)=>isObject(v)&&!Array.isArray(v)?Object.fromEntries(Object.keys(v).sort().map(k2=>[k2,v[k2]])):v)}function isComplete(theme){return theme!==void 0&&Object.isFrozen(theme)&&GROUPS.every(g=>g in theme)}var GROUPS=["name","colors","radius","space","type","motion","metrics"];function hasEvery(shape,value){if(shape===void 0)return true;if(!isObject(shape))return value!==void 0;if(!isObject(value))return false;for(let key of Object.keys(shape))if(!hasEvery(shape[key],value[key]))return false;return true}var fills=/* @__PURE__ */new WeakMap;function filled(theme){let hit=fills.get(theme);if(hit)return hit;if(hasEvery(everfurTheme,theme))return fills.set(theme,theme),theme;let preset=presetOf(theme),merged=merge(everfurTheme,preset===everfurTheme?theme:merge(preset,theme));merged[PRESET]=preset;let out=deepFreeze2(merged);return fills.set(theme,out),out}function useTheme(){let explicit=useContext(ThemeContext);return explicit?filled(explicit):everfurTheme}var px=n=>Math.round(n*1e3)/1e3;function faceOf(weight,mono=false){return mono?weight>450?"monoBold":"mono":weight>500?"bold":weight>450?"medium":"regular"}function withAlpha(color,alpha){let m=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.exec(color);if(!m)return color;let[r,g,b]=[m[1],m[2],m[3]].map(h=>parseInt(h,16));return`rgba(${r}, ${g}, ${b}, ${alpha})`}function channelsOf(color){let hex=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.exec(color);if(hex)return[hex[1],hex[2],hex[3]].map(h=>parseInt(h,16));let rgb=/^rgba?\(\s*([\d.]+)[\s,]+([\d.]+)[\s,]+([\d.]+)/i.exec(color);return rgb?[rgb[1],rgb[2],rgb[3]].map(Number):void 0}function mixColor(color,share2,base3,fallback){let[c,b]=[channelsOf(color),channelsOf(base3)];return!c||!b?fallback:`rgb(${c.map((v,i)=>Math.round(v*share2+(b[i]??0)*(1-share2))).join(", ")})`}function colorOf(t,value){let m=/^([a-zA-Z]+)(?:\/([\d.]+))?$/.exec(value),role=m?.[1];if(!m||role===void 0||!(role in t.colors))return value;let c=t.colors[role];return m[2]===void 0?c:withAlpha(c,Number(m[2]))}function fillOf(t,value){return value==="none"?"transparent":colorOf(t,value)}var DISABLED_OPACITY=.45;function buttonSpec(t,tone,size,inSheet=false){let b=t.metrics.button;if(tone==="text"){let m2=b.text;return{minHeight:0,paddingX:0,gap:b.ink.gap,radius:0,borderWidth:0,borderColor:"transparent",background:"transparent",iconSize:b.inkSm.iconSize,text:{size:m2.fontSize,weight:m2.fontWeight,lineHeight:px(m2.fontSize*m2.lineHeight),color:colorOf(t,m2.color)},pressScale:1,pressOpacity:m2.pressOpacity,disabledOpacity:b.blockedOpacity??DISABLED_OPACITY,fill:false,ring:false}}let v=t.metrics.variants.button,compact=isCompactSize(size),edged=tone==="outline"||tone==="danger"||tone==="warn",m=compact?{...size==="compactSm"?v.sm:size==="compactLg"?v.lg:v.ink,borderWidth:edged?v.outline.borderWidth:0,ring:v.outline.ring}:size==="row"?b.row:tone==="danger"?b.danger:size==="sm"?b[`${tone}Sm`]:b[tone],c=t.colors,own=tone==="money"||tone==="warn"?b[tone]:void 0,paint={ink:{bg:c.ink,fg:c.onInk,edge:c.ink},go:{bg:c.go,fg:c.onGo,edge:c.ink},outline:{bg:"transparent",fg:c.ink,edge:c.ink},pink:{bg:c.pink,fg:c.onPink,edge:c.ink},danger:{bg:c.surface,fg:c.alert,edge:c.alert}},p=own?{bg:fillOf(t,own.bg),fg:colorOf(t,own.fg),edge:colorOf(t,own.edgeColor)}:paint[tone],weight=tone==="outline"&&inSheet&&!compact?b.outlineInSheetWeight:m.fontWeight;return{minHeight:m.minHeight,paddingX:m.paddingX,gap:m.gap,radius:t.radius.pill,borderWidth:m.borderWidth,borderColor:p.edge,background:p.bg,iconSize:m.iconSize,text:{size:m.fontSize,weight:weight,lineHeight:px(m.fontSize*m.lineHeight),color:p.fg},pressScale:t.motion.reduced?1:compact?v.press:t.metrics.press.button,pressOpacity:1,disabledOpacity:compact?v.disabledOpacity:b.blockedOpacity??DISABLED_OPACITY,fill:m.fill,ring:m.ring}}function isCompactSize(size){return size==="compact"||size==="compactSm"||size==="compactLg"}function pillSpec(t,tone){let m=t.metrics.pill,p=m.tones[tone],fg=tone==="clear"?t.colors.ink:colorOf(t,p.fg);return{minHeight:m.minHeight,paddingX:m.paddingX,radius:t.radius.pill,background:colorOf(t,p.bg),ring:p.ring>0?{width:p.ring,color:colorOf(t,p.ringColor)}:null,dot:tone==="new"?{size:m.dot,gap:m.dotGap,color:t.colors.go}:tone==="allergy"?{size:m.allergyDot.size,gap:m.allergyDot.gap,color:colorOf(t,m.allergyDot.color)}:null,text:{size:m.fontSize,weight:m.fontWeight,lineHeight:px(m.fontSize*m.lineHeight),color:fg,mono:m.mono,tracking:m.letterSpacing,upper:m.upper}}}function sheetTitleSpec(t,narrow){let m=t.metrics.sheet,size=m.titleSize,lineHeight=m.titleLineHeight??t.metrics.card.titleLineHeight;return{size:size,weight:m.titleWeight??t.metrics.card.titleWeight,lineHeight:px(size*lineHeight),color:colorOf(t,m.titleColor??"ink"),tracking:m.titleTracking??t.metrics.card.titleTracking}}function textSpecs(t){let m=t.metrics,c=t.colors;return{cardTitle:{size:m.card.titleSize,weight:m.card.titleWeight,lineHeight:px(m.card.titleSize*m.card.titleLineHeight),color:c.ink,tracking:m.card.titleTracking},cardLead:{size:m.card.leadSize,weight:t.type.weight.regular,lineHeight:px(m.card.leadSize*m.card.leadLineHeight),color:c.text},body:{size:m.card.bodySize,weight:t.type.weight.regular,lineHeight:px(m.card.bodySize*m.card.bodyLineHeight),color:c.text},kicker:{size:m.kicker.fontSize,weight:m.kicker.fontWeight,lineHeight:px(m.kicker.fontSize*m.kicker.lineHeight),color:c.muted,mono:true,tracking:m.kicker.letterSpacing,upper:true},sheetTitle:sheetTitleSpec(t),stepperValue:{size:m.quantityStepper.valueSize,weight:m.quantityStepper.valueWeight,lineHeight:px(m.quantityStepper.valueSize*m.quantityStepper.valueLineHeight),color:colorOf(t,m.quantityStepper.valueColor??"text")},tab:{size:m.tabs.fontSize,weight:m.tabs.fontWeight,lineHeight:px(m.tabs.fontSize*m.tabs.lineHeight),color:c.muted},tabCurrent:{size:m.tabs.fontSize,weight:m.tabs.currentWeight,lineHeight:px(m.tabs.fontSize*m.tabs.lineHeight),color:c.ink},emptyTitle:{size:m.empty.titleSize,weight:m.empty.titleWeight,lineHeight:px(m.empty.titleSize*m.empty.titleLineHeight),color:c.ink,tracking:m.empty.titleTracking},emptyLead:{size:m.empty.leadSize,weight:t.type.weight.regular,lineHeight:px(m.empty.leadSize*m.empty.leadLineHeight),color:c.text},emptyLink:{size:m.empty.linkSize,weight:m.empty.linkWeight,lineHeight:px(m.empty.linkSize*m.card.bodyLineHeight),color:c.ink},sumTerm:{size:m.summary.termSize,weight:t.type.weight.regular,lineHeight:px(m.summary.termSize*m.summary.termLineHeight),color:c.muted},sumValue:{size:m.summary.valueSize,weight:m.summary.valueWeight,lineHeight:px(m.summary.valueSize*m.summary.valueLineHeight),color:c.ink},sumTotal:{size:m.summary.totalSize,weight:m.summary.valueWeight,lineHeight:px(m.summary.totalSize*m.summary.totalLineHeight),color:c.ink}}}function quantityStepperSpec(t){let m=t.metrics.quantityStepper;return{edge:{width:m.borderWidth,color:colorOf(t,m.borderColor),inset:m.ring},button:m.button,icon:m.icon,valueMinWidth:m.valueMinWidth,fill:fillOf(t,m.fill??"none"),glyph:colorOf(t,m.glyph??"ink"),off:{color:colorOf(t,m.offColor),opacity:m.offOpacity}}}function textPartSpec(t,p){return{size:p.size,weight:p.weight,lineHeight:p.lineHeight,color:colorOf(t,p.color),...p.face==="mono"?{mono:true}:{},...p.face==="serif"?{serif:true}:{},...p.tracking?{tracking:p.tracking}:{},...p.upper?{upper:true}:{},...p.deco==="none"?{}:{deco:p.deco==="strike"?"strike":"underline",decoOffset:p.decoOffset,decoThickness:p.decoThickness},...p.tabular?{tabular:true}:{},...p.wrap==="auto"?{}:{wrap:p.wrap==="balance"?"balance":"pretty"}}}function partFill(t,value){return value==="none"?void 0:colorOf(t,value)}function summarySpec(t){let m=t.metrics.summary,lh=(size,ratio)=>px(size*ratio);return{paddingX:m.paddingX,paddingY:m.paddingY,radius:m.radius,borderWidth:m.borderWidth,borderColor:t.colors.line,background:colorOf(t,m.background),shadow:m.shadow,row:{paddingY:m.rowPaddingY,minHeight:m.rowMinHeight,gapX:m.rowGapX,gapY:m.rowGapY,divider:m.rowDivider,center:m.rowCenter},totalRowMinHeight:m.totalRowMinHeight,gap:m.gap??0,totalMarginTop:m.totalMarginTop??0,tabular:m.tabular,term:{size:m.termSize,weight:t.type.weight.regular,lineHeight:lh(m.termSize,m.termLineHeight),color:colorOf(t,m.termColor)},value:{size:m.valueSize,weight:m.valueWeight,lineHeight:lh(m.valueSize,m.valueLineHeight),color:colorOf(t,m.valueColor)},totalTerm:{size:m.totalTermSize,weight:m.totalTermWeight,lineHeight:lh(m.totalTermSize,m.termLineHeight),color:colorOf(t,m.totalTermColor)},total:{size:m.totalSize,weight:m.totalWeight,lineHeight:lh(m.totalSize,m.totalLineHeight),color:colorOf(t,m.valueColor)},off:textPartSpec(t,t.metrics.summary.off)}}function skeletonWidth(t,index){let widths=t.metrics.skeleton.widths;return`${widths[index%widths.length]}%`}function clampStep(value,min,max){return Math.max(min,max===void 0?value:Math.min(max,value))}function itemTestID(parent,key,own){return own!==void 0?own:parent===void 0?void 0:`${parent}-${key}`}var nums=group=>group,isBox=v=>"edge"in v&&"shadow"in v&&"fit"in v,isText=v=>"deco"in v&&"face"in v&&"tabular"in v;function byValue(group){let out=/* @__PURE__ */new Map;for(let[k2,v]of Object.entries(group))out.has(v)||out.set(v,k2);return out}var groups,derived=/* @__PURE__ */new WeakMap;function tokenOf(map,theme,v){let k2=map.get(v),t=k2===void 0?void 0:theme[k2];return typeof t=="number"?t:v}function everfurTokens2(theme){let p=everfurTheme;return theme.space===p.space&&theme.radius===p.radius&&theme.type.size===p.type.size&&theme.type.weight===p.type.weight}function onTheme(theme,base3){let p=everfurTheme;groups??(groups={space:byValue(nums(p.space)),radius:byValue(nums(p.radius)),size:byValue(nums(p.type.size)),weight:byValue(nums(p.type.weight))});let g=groups,space=v=>tokenOf(g.space,nums(theme.space),v),radius=v=>tokenOf(g.radius,nums(theme.radius),v),walk=v=>Array.isArray(v)?v.map(walk):v===null||typeof v!="object"?v:isBox(v)?{...v,padding:v.padding.map(space),gap:v.gap.map(space),marginTop:space(v.marginTop),marginBottom:space(v.marginBottom),radius:v.radius.map(radius)}:isText(v)?{...v,size:tokenOf(g.size,nums(theme.type.size),v.size),weight:tokenOf(g.weight,nums(theme.type.weight),v.weight),marginTop:space(v.marginTop),paddingTop:space(v.paddingTop)}:Object.fromEntries(Object.entries(v).map(([k2,x])=>[k2,walk(x)]));return walk(base3)}function blockMetrics(theme,base3){if(everfurTokens2(theme))return base3;let perTheme=derived.get(base3);perTheme||derived.set(base3,perTheme=/* @__PURE__ */new WeakMap);let hit=perTheme.get(theme);if(hit)return hit;let out=onTheme(theme,base3);return perTheme.set(theme,out),out}function scoreLightsLayout(values,width,height,m,rtl=false){let n=values.length;if(n===0||width<=0)return[];let{rows:rows,gap:gap,widthShare:widthShare}=m.grid,p=width/n,cw=Math.max(1,Math.round(p*widthShare)),ch=Number(((height-(rows-1)*gap)/rows).toFixed(2));return values.map((raw,i)=>{let v=Number.isFinite(raw)?Math.min(10,Math.max(0,raw)):0,lights=[];for(let k2=0;k2<rows;k2+=1){let opacity=Number(Math.max(0,Math.min(1,v-k2)).toFixed(3));opacity>0&&lights.push({y:Number((height-(k2+1)*((height-(rows-1)*gap)/rows)-k2*gap).toFixed(2)),height:ch,opacity:opacity})}let x=Math.round(i*p+(p-cw)/2);return{x:rtl?Math.round(width-x-cw):x,width:cw,zone:v>=m.zones.lot?"lot":v>=m.zones.some?"some":"go",lights:lights}})}var UiSurfaceContext=/* @__PURE__ */(()=>{let key=/* @__PURE__ */Symbol.for("@everfur-health/ui-core#SurfaceContext@v1"),host2=globalThis;return host2[key]??(host2[key]=createContext(null))})();function useUiSurface(){return useContext(UiSurfaceContext)}var TEXT_VARIANT_TIERS={display:"heading",headline:"heading",title:"heading",heading:"heading",body:"content",lead:"content",label:"control",meta:"compact",caption:"content",overline:"compact",kicker:"compact"};function textToneColor(t,tone){let c=t.colors;switch(tone){case"ink":return c.ink;case"text":return c.text;case"muted":return c.muted;case"danger":return c.alertDeep;case"inverse":return c.onInk;default:return}}function textVariantSpec(t,variant,tone,weight){let base3=textPartSpec(t,t.metrics.text[variant]),color=textToneColor(t,tone);return{...base3,...color?{color:color}:{},...weight?{weight:t.type.weight[weight]}:{}}}var PressFeedbackContext=/* @__PURE__ */(()=>{let key=/* @__PURE__ */Symbol.for("@everfur-health/ui-core#PressFeedbackContext@v1"),host2=globalThis,context=host2[key]??(host2[key]=createContext(null));return context.displayName??(context.displayName="EverfurPressFeedbackContext"),context})();function usePressFeedback(){return useContext(PressFeedbackContext)}function pressHandlers(feedback,event,onPress,options={}){if(!feedback||options.disabled)return{onPress:onPress,onPressIn:void 0};let{onPressIn:reportIn,onPress:report,haptic:haptic}=feedback,tick=options.haptics!==false&&event.haptic&&haptic?haptic:void 0;return{onPress:onPress&&(report||tick)?()=>{tick?.(event),report?.(event),onPress()}:onPress,onPressIn:reportIn?()=>reportIn(event):void 0}}function pressScaleFor(feedback,component,designScale=1){return feedback?.pressScale?.[component]??designScale}var TEXT_VARIANT_BREAKS={display:"balance",headline:"balance",title:"balance",heading:"balance",body:"pretty",lead:"pretty",meta:"pretty",caption:"pretty",label:"auto",overline:"auto",kicker:"auto"};function textVariantTier(t,variant){return t.type.variantTiers?.[variant]??TEXT_VARIANT_TIERS[variant]}var ReducedMotionContext=/* @__PURE__ */(()=>{let key=/* @__PURE__ */Symbol.for("@everfur-health/ui-native#ReducedMotionContext@v1"),host2=globalThis,context=host2[key]??(host2[key]=createContext(null));return context.displayName??(context.displayName="EverfurReducedMotionContext"),context})();function useKnownReducedMotion(){return useContext(ReducedMotionContext)}function rnText(t,spec){let face2=faceOf(spec.weight,spec.mono===true);return{fontFamily:spec.serif?t.type.faces.serif??t.type.faces.bold:t.type.faces[face2],...t.type.namedFaces?{}:{fontWeight:String(spec.weight)},fontSize:spec.size,lineHeight:spec.lineHeight,color:spec.color,...spec.tracking?{letterSpacing:spec.tracking}:{},...spec.upper?{textTransform:"uppercase"}:{},...spec.deco?rnDeco(spec):{},...spec.tabular?{fontVariant:["tabular-nums"]}:{},...spec.wrap&&Platform.OS==="web"?{textWrap:spec.wrap}:{}}}function rnDeco(spec){let base3={textDecorationLine:spec.deco==="strike"?"line-through":"underline"};return Platform.OS!=="web"?base3:{...base3,...spec.decoOffset?{textUnderlineOffset:spec.decoOffset}:{},...spec.decoThickness?{textDecorationThickness:spec.decoThickness}:{}}}function rnBox(t,b){let[pt=0,pr=0,pb=0,pl=0]=b.padding,[rt=0,rb=0]=b.radius,fill=partFill(t,b.bg);return{paddingTop:pt,paddingRight:pr,paddingBottom:pb,paddingLeft:pl,...b.marginTop?{marginTop:b.marginTop}:{},...b.gap[0]?{columnGap:b.gap[0]}:{},...b.gap[1]?{rowGap:b.gap[1]}:{},...rt===rb?rt?{borderRadius:rt}:{}:{borderTopLeftRadius:rt,borderTopRightRadius:rt,borderBottomLeftRadius:rb,borderBottomRightRadius:rb},...fill?{backgroundColor:fill}:{},...b.edge.width>0&&!b.edge.ring?{borderWidth:b.edge.width,borderColor:colorOf(t,b.edge.color)}:{},...b.minHeight?{minHeight:b.minHeight}:{},...rnShadow(b.shadow)}}function rnRing(t,b){return b.edge.width>0&&b.edge.ring?ringOverlay(b.edge.width,colorOf(t,b.edge.color),b.radius[0]??0):null}function webReducedMotion(){if(Platform.OS!=="web")return false;let g=globalThis;return typeof g.matchMedia=="function"&&g.matchMedia("(prefers-reduced-motion: reduce)").matches}function useOsReducedMotion(known){let[reduced,setReduced]=useState(()=>known===null&&webReducedMotion());return useEffect(()=>{if(known!==null)return;let mounted=true,query=AccessibilityInfo?.isReduceMotionEnabled;if(typeof query=="function"){let result=query.call(AccessibilityInfo);result!=null&&typeof result.then=="function"&&result.then(value=>{mounted&&setReduced(value===true)},()=>{})}let subscription=AccessibilityInfo?.addEventListener?.("reduceMotionChanged",value=>setReduced(value===true));return()=>{mounted=false,subscription?.remove?.()}},[known]),known??reduced}function useRnReduced(t){let os=useOsReducedMotion(useKnownReducedMotion());return t.motion.reduced||os}function ariaState(expanded,pressed,current){return{...expanded===void 0?{}:{expanded:expanded},...pressed===void 0?{}:{checked:pressed},...current===void 0?{}:{selected:current!==false}}}function slopFor(size){let pad=Math.max(0,Math.ceil((44-size)/2));return pad===0?void 0:{top:pad,bottom:pad,left:pad,right:pad}}function rnShadow(s){return s.blur===0&&s.y===0&&s.x===0?null:{shadowColor:s.color,shadowOffset:{width:s.x,height:s.y},shadowOpacity:1,shadowRadius:s.blur,elevation:1}}function ringOverlay(width,color,radius){let fill={position:"absolute",top:0,right:0,bottom:0,left:0,borderRadius:radius};return Platform.OS==="web"?{...fill,boxShadow:`inset 0 0 0 ${width}px ${color}`}:{...fill,borderWidth:width,borderColor:color}}var unnamedClose=/* @__PURE__ */new Set;function warnUnnamedClose(component,onClose,closeLabel){let dev=typeof __DEV__<"u"?__DEV__:typeof process<"u"&&process.env.NODE_ENV!=="production";!onClose||closeLabel||unnamedClose.has(component)||!dev||(unnamedClose.add(component),console.warn(`@everfur-health/ui-native: ${component} draws its close (onClose) without a closeLabel, so a screen reader cannot name it. Pass closeLabel with onClose.`))}function breakProps(mode){return mode==="auto"?null:Platform.OS==="ios"?{lineBreakStrategyIOS:"push-out"}:Platform.OS==="android"&&mode==="balance"?{textBreakStrategy:"balanced"}:null}function weightStyle(t,weight){let w=t.type.weight[weight];return t.type.namedFaces?{fontFamily:t.type.faces[faceOf(w)]}:{fontWeight:String(w)}}function Text({tier:tier,variant:variant,tone:tone,weight:weight,level:level,lineBreak:lineBreak,...props}){let t=useTheme(),cap=t.type.scaleCaps[tier??(variant?textVariantTier(t,variant):"content")],breaks=breakProps(lineBreak??(variant?TEXT_VARIANT_BREAKS[variant]:"auto"));if(variant===void 0&&tone===void 0&&weight===void 0&&level===void 0)return breaks?createElement(Text$1,{...cap>0?{maxFontSizeMultiplier:cap}:{},...breaks,...props}):createElement(Text$1,cap>0?{maxFontSizeMultiplier:cap,...props}:props);let color=textToneColor(t,tone),own=variant?rnText(t,textVariantSpec(t,variant,tone,weight)):{...color?{color:color}:{},...weight?weightStyle(t,weight):{}},heading=level===void 0?{}:{accessibilityRole:"header",...Platform.OS==="web"?{"aria-level":level}:{}};return createElement(Text$1,{...cap>0?{maxFontSizeMultiplier:cap}:{},...breaks,...heading,...props,style:[own,props.style]})}var BOX=24,FINE=16,SEAM=.8,fine=dp=>Math.round(dp*FINE);function place(cx,cy,W,H,ux,uy){let left=cx-W/2,top=cy-H/2,x=Math.round(left),y=Math.round(top);return{position:"absolute",left:x,top:y,width:W,height:H,transform:[{translateX:left-x},{translateY:top-y},{rotate:`${Math.atan2(uy,ux)*180/Math.PI}deg`},{scale:1/FINE}]}}function strokePieces(icon,k2,out){for(let s of icon.strokes){let w=s.width*k2,pts=s.points,n=pts.length/2,last=s.closed?n:n-1;for(let i=0;i<last;i+=1){let j=(i+1)%n,px2=(pts[i*2]??0)*k2,py=(pts[i*2+1]??0)*k2,dx=(pts[j*2]??0)*k2-px2,dy=(pts[j*2+1]??0)*k2-py,len=Math.hypot(dx,dy);if(len===0&&!(n===2&&s.cap))continue;let ux=len===0?1:dx/len,uy=len===0?0:dy/len,e0=s.closed||i>0||s.cap?w/2:0,e1=s.closed||j!==n-1||s.cap?w/2:0,along=(len+e1-e0)/2;out.push({paint:"backgroundColor",style:{...place(px2+ux*along,py+uy*along,fine(len+e0+e1),fine(w),ux,uy),borderTopLeftRadius:e0>0?fine(w)/2:0,borderBottomLeftRadius:e0>0?fine(w)/2:0,borderTopRightRadius:e1>0?fine(w)/2:0,borderBottomRightRadius:e1>0?fine(w)/2:0,...s.opacity===void 0?{}:{opacity:s.opacity}}})}}}function boxPieces(icon,k2,out){for(let b of icon.boxes){let w=(b.w+b.width)*k2,h=(b.h+b.width)*k2;out.push({paint:"borderColor",style:{...place((b.x-b.width/2)*k2+w/2,(b.y-b.width/2)*k2+h/2,fine(w),fine(h),1,0),borderWidth:fine(b.width*k2),borderRadius:(b.radius+b.width/2)*k2*FINE,...b.opacity===void 0?{}:{opacity:b.opacity}}})}}function trianglePieces(icon,k2,out){for(let t of icon.triangles){let p=[0,1,2].map(i=>[(t[i*2]??0)*k2,(t[i*2+1]??0)*k2]),base3=0,len=-1;for(let i=0;i<3;i+=1){let a2=p[i]??[0,0],b=p[(i+1)%3]??[0,0],d=Math.hypot(b[0]-a2[0],b[1]-a2[1]);d>len&&(len=d,base3=i)}if(len<=0)continue;let b0=p[base3]??[0,0],b1=p[(base3+1)%3]??[0,0],a=p[(base3+2)%3]??[0,0],ux=(b1[0]-b0[0])/len,uy=(b1[1]-b0[1])/len,along=(a[0]-b0[0])*ux+(a[1]-b0[1])*uy,across=(a[0]-b0[0])*-uy+(a[1]-b0[1])*ux,h=Math.abs(across),up=across<0,mid=up?-h/2:h/2,bl=fine(along),br=fine(len)-bl,bh=fine(h);out.push({paint:up?"borderBottomColor":"borderTopColor",style:{...place(b0[0]+ux*(len/2)-uy*mid,b0[1]+uy*(len/2)+ux*mid,bl+br,bh,ux,uy),width:0,height:0,borderLeftWidth:bl,borderRightWidth:br,borderLeftColor:"transparent",borderRightColor:"transparent",...up?{borderBottomWidth:bh}:{borderTopWidth:bh}}})}for(let e of icon.seams){let x0=(e[0]??0)*k2,y0=(e[1]??0)*k2,dx=(e[2]??0)*k2-x0,dy=(e[3]??0)*k2-y0,d=Math.hypot(dx,dy),in0=SEAM*(e[4]??0),in1=SEAM*(e[5]??0),bar=d-in0-in1;if(d===0||bar<=0)continue;let mid=in0+bar/2;out.push({paint:"backgroundColor",style:place(x0+dx/d*mid,y0+dy/d*mid,fine(bar),fine(SEAM),dx/d,dy/d)})}}var cache=/* @__PURE__ */new WeakMap;function piecesOf(icon,size){let sizes=cache.get(icon);sizes===void 0&&(sizes=/* @__PURE__ */new Map,cache.set(icon,sizes));let hit=sizes.get(size);if(hit!==void 0)return hit;let out=[],k2=size/BOX;return boxPieces(icon,k2,out),strokePieces(icon,k2,out),trianglePieces(icon,k2,out),sizes.set(size,out),out}function Glyph({icon:icon,size:size,color:color,label:label,testID:testID,style:style}){let t=useTheme(),side=size??t.metrics.icon.size,ink=color??t.colors.ink;/* @__PURE__ */
|
|
28
28
|
return jsx(View,{testID:testID,pointerEvents:"none",style:[{width:side,height:side},style],...label?{accessible:true,accessibilityRole:"image",accessibilityLabel:label}:{accessible:false,accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants"},children:piecesOf(icon,side).map((piece,i)=>/* @__PURE__ */jsx(View,{style:[piece.style,{[piece.paint]:ink}]},i))})}var REGISTRY=/* @__PURE__ */(()=>{let key=/* @__PURE__ */Symbol.for("@everfur-health/ui-native#icons@v1"),host2=globalThis;return host2[key]??(host2[key]={icons:{},warned:/* @__PURE__ */new Set})})();function registerIcons(icons){Object.assign(REGISTRY.icons,icons)}function iconNamed(name){let icon=REGISTRY.icons[name];return icon===void 0&&(typeof __DEV__<"u"?__DEV__:typeof process<"u"&&process.env.NODE_ENV!=="production")&&!REGISTRY.warned.has(name)&&(REGISTRY.warned.add(name),console.warn(`@everfur-health/ui-native: no icon "${name}" is registered. The lean entry draws only the icons an app registers: registerIcons({ ... }) with the UI_RN_ICON_* exports, or pass a drawing.`)),icon}function Icon({name:name,...rest}){let icon=iconNamed(name);return icon?/* @__PURE__ */jsx(Glyph,{icon:icon,...rest}):null}function usePressLayer(component,info,onPress,designScale=1){return pressLayerOf(usePressFeedback(),component,info,onPress,designScale)}function pressLayerOf(feedback,component,info,onPress,designScale=1){let h=pressHandlers(feedback,{component:component,testID:info.testID,...info.item===void 0?{}:{item:info.item},label:info.label,trackId:info.trackId,haptic:info.haptic===true},onPress,{disabled:info.disabled});return{props:h.onPressIn?{onPress:h.onPress,onPressIn:h.onPressIn}:{onPress:h.onPress},scale:pressScaleFor(feedback,component,designScale)}}var cubic=e=>`cubic-bezier(${e.join(", ")})`,styleAt=(style,pressed)=>typeof style=="function"?style({pressed:pressed}):style,animatedPressable;function animatedPressableOf(){return animatedPressable??(animatedPressable=Animated.createAnimatedComponent(Pressable))}function pressTiming(t,value,toValue){let[a,b,c,d]=t.motion.easing.out;return Animated.timing(value,{toValue:toValue,duration:t.motion.duration.press,easing:Easing.bezier(a,b,c,d),useNativeDriver:true})}function PressBox({style:style,scale:scale,still:still,pop:pop,onPressIn:onPressIn,onPressOut:onPressOut,...props}){let t=useTheme(),value=useRef(null),[held,setHeld]=useState(false),scales=!still&&scale!==1,popping=!still&&pop?.scale!=null;if(Platform.OS==="web"){let motion=scales?{transitionProperty:"transform",transitionDuration:`${t.motion.duration.press}ms`,transitionTimingFunction:cubic(t.motion.easing.out)}:null;return createElement(Pressable,{...props,...pop?{ref:pop.ref}:null,onPressIn:onPressIn,onPressOut:onPressOut,style:({pressed:pressed})=>[styleAt(style,pressed),motion,scales&&pressed?{transform:[{scale:scale}]}:null]})}if(!scales&&!popping)return createElement(Pressable,{...props,onPressIn:onPressIn,onPressOut:onPressOut,style:style});let v=value.current??(value.current=new Animated.Value(0)),pressScale=scales?v.interpolate({inputRange:[0,1],outputRange:[1,scale]}):null,both=pressScale&&popping?Animated.multiply(pressScale,pop?.scale):pressScale??pop?.scale;return createElement(animatedPressableOf(),{...props,onPressIn:e=>{props.disabled||(setHeld(true),scales&&pressTiming(t,v,1).start(),onPressIn?.(e))},onPressOut:e=>{setHeld(false),scales&&pressTiming(t,v,0).start(),onPressOut?.(e)},style:[styleAt(style,held),{transform:[{scale:both}]}]})}function Button({label:label,onPress:onPress,tone:tone="ink",size:size="md",icon:icon,disabled:disabled=false,loading:loading=false,loadingLabel:loadingLabel,loadingIndicator:loadingIndicator="spinner",fullWidth:fullWidth,accessibilityLabel:accessibilityLabel,trackId:trackId,haptic:haptic,testID:testID,style:style,children:children,nativeID:nativeID,onPressIn:onPressIn,"aria-expanded":expanded,"aria-pressed":pressed,"aria-current":current}){let t=useTheme(),inSheet=useUiSurface()==="sheet",reduced=useRnReduced(t),s=buttonSpec(t,tone,size,inSheet),blocked=disabled||loading,block2=fullWidth??(inSheet||s.fill),spinner=loading&&loadingIndicator!=="none",spoken2=spinner&&loadingLabel?loadingLabel:accessibilityLabel??(spinner&&loadingLabel?loadingLabel:label),press=usePressLayer("Button",{testID:testID,label:spoken2,trackId:trackId,haptic:haptic,disabled:blocked},onPress,s.pressScale),layerIn=press.props.onPressIn,pressIn=onPressIn&&layerIn?()=>{layerIn(),onPressIn()}:onPressIn??layerIn;/* @__PURE__ */
|
|
29
29
|
return jsxs(PressBox,{...press.props,onPressIn:pressIn,scale:press.scale,still:reduced,disabled:blocked,nativeID:nativeID,hitSlop:slopFor(Math.max(s.minHeight,s.text.lineHeight)),accessibilityRole:"button",accessibilityLabel:spoken2,accessibilityState:{disabled:blocked,busy:loading,...ariaState(expanded,pressed,current)},"aria-busy":loading,testID:testID,style:({pressed:pressed2})=>[styles.base,{minHeight:Math.max(s.minHeight,0),paddingHorizontal:s.paddingX,columnGap:s.gap,borderRadius:s.radius,borderWidth:s.ring?0:s.borderWidth,borderColor:s.borderColor,backgroundColor:s.background},block2?styles.block:styles.auto,blocked?{opacity:s.disabledOpacity}:null,pressed2&&s.pressOpacity!==1&&!blocked?{opacity:s.pressOpacity}:null,style],children:[spinner?/* @__PURE__ */jsx(ActivityIndicator,{size:"small",color:s.text.color,animating:!reduced,hidesWhenStopped:false,accessibilityLabel:spoken2}):icon?/* @__PURE__ */jsx(Icon,{name:icon,size:s.iconSize,color:s.text.color}):null,
|
|
30
30
|
/* @__PURE__ */jsx(View,{style:styles.labelBox,children:/* @__PURE__ */jsx(Text,{tier:"control",style:[rnText(t,s.text),styles.label],children:spinner&&loadingLabel?loadingLabel:children??label})}),s.ring&&s.borderWidth>0?/* @__PURE__ */jsx(View,{pointerEvents:"none",style:ringOverlay(s.borderWidth,s.borderColor,s.radius)}):null]})}var styles=StyleSheet.create({base:{flexDirection:"row",alignItems:"center",justifyContent:"center"},block:{alignSelf:"stretch"},auto:{alignSelf:"flex-start"},labelBox:{flexShrink:1},label:{textAlign:"center"}});StyleSheet.create({head:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",justifyContent:"space-between"},shrink:{flexShrink:1},end:{justifyContent:"flex-end"}});StyleSheet.create({chip:{flexDirection:"row",alignItems:"center",alignSelf:"flex-start"}});StyleSheet.create({st:{alignItems:"center",alignSelf:"stretch"},center:{textAlign:"center"},acts:{alignItems:"center",alignSelf:"stretch"},link:{alignItems:"center",justifyContent:"center"},underline:{textDecorationLine:"underline"}});StyleSheet.create({acts:{flexDirection:"row",flexWrap:"wrap",alignItems:"center"},st:{alignItems:"center",alignSelf:"stretch"},center:{textAlign:"center"},stActs:{alignItems:"center",alignSelf:"stretch"},link:{alignItems:"center",justifyContent:"center"},underline:{textDecorationLine:"underline"}});function Pill({label:label,tone:tone="plain",testID:testID,style:style,maxFontSizeMultiplier:maxFontSizeMultiplier,grouped:grouped=true}){let t=useTheme(),s=pillSpec(t,tone);/* @__PURE__ */
|
|
@@ -43,22 +43,22 @@ return jsxs(View,{testID:itemTestID(testID,row.key??i,row.testID),...read(row),s
|
|
|
43
43
|
/* @__PURE__ */jsx(Text,{...breaks,style:[rnText(t,isTotal?s.total:row.tone==="off"?s.off:s.value),styles11.value,s.tabular?styles11.tabular:null],children:row.value})]},row.key??`${i}`)})})}var styles11=StyleSheet.create({row:{flexDirection:"row",flexWrap:"wrap",justifyContent:"space-between"},cardRow:{flexDirection:"row",justifyContent:"space-between",alignItems:"center"},value:{marginLeft:"auto",textAlign:"right"},tabular:{fontVariant:["tabular-nums"]}});function BlockIcon({icon:icon,size:size,color:color,style:style}){let t=useTheme();return typeof icon=="function"?icon({size:size,color:color??t.colors.ink}):typeof icon!="string"?/* @__PURE__ */jsx(Glyph,{icon:icon,size:size,color:color,style:style}):/* @__PURE__ */jsx(Icon,{name:icon,size:size,color:color,style:style})}function stepTo(q,next){next>q.value&&q.onMore?q.onMore():next<q.value&&q.onFewer?q.onFewer():q.onChange?.(next)}function useShown(key){let[loaded,setLoaded]=useState(null);return{shown:key!==null&&loaded===key,onShown:()=>setLoaded(key)}}function FadeImage({onShown:onShown,onLoad:onLoad,style:style,...props}){let t=useTheme(),reduced=useRnReduced(t),fade=useRef(new Animated.Value(0)).current;/* @__PURE__ */
|
|
44
44
|
return jsx(Animated.Image,{...props,fadeDuration:0,onLoad:e=>{onLoad?.(e);let ms=t.motion.duration.fade;if(reduced||ms<=0){fade.setValue(1),onShown?.();return}Animated.timing(fade,{toValue:1,duration:ms,easing:Easing.out(Easing.cubic),useNativeDriver:Platform.OS!=="web"}).start(()=>onShown?.())},style:[style,{opacity:fade}]})}function BlockThumbnail({src:src,alt:alt,size:size="xs",icon:icon=UI_RN_ICON_BOX,iconSize:iconSize,tint:tint,iconColor:iconColor,onError:onError,testID:testID,style:style}){let t=useTheme(),p=t.metrics.thumbnail[size],[failed,setFailed]=useState(null),[aspect,setAspect]=useState(null),photo=src&&failed!==src?src:null,top=p.top;useEffect(()=>{if(!top||!photo)return;let live=true;return Image.getSize(photo,(w,h)=>{live&&w>0&&h>0&&setAspect(w/h)},()=>{}),()=>{live=false}},[top,photo]);let frame=photo?p.frame:p.empty,[pt=0,pr=0,pb=0,pl=0]=frame.padding,[ipt=0,ipr=0,ipb=0,ipl=0]=p.img.padding,ring=rnRing(t,frame),tall=p.top&&aspect!==null;/* @__PURE__ */
|
|
45
45
|
return jsxs(View,{testID:testID,style:[rnBox(t,frame),size==="md"||size==="lg"?{width:"100%",aspectRatio:1}:{width:frame.w,height:frame.h},{alignItems:"center",justifyContent:"center",overflow:"hidden"},!photo&&tint!==void 0?{backgroundColor:tint}:null,style],...photo?{}:alt?{accessible:true,accessibilityRole:"image",accessibilityLabel:alt}:{accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants"},children:[photo?/* @__PURE__ */jsx(FadeImage,{source:{uri:photo},accessibilityLabel:alt,accessible:!!alt,onError:()=>{setFailed(photo),onError?.(photo)},resizeMode:tall?"stretch":p.img.fit==="contain"?"contain":"cover",style:tall?{position:"absolute",top:pt,left:pl,width:frame.w-pl-pr,height:(frame.w-pl-pr)/aspect}:{position:"absolute",top:pt+ipt,right:pr+ipr,bottom:pb+ipb,left:pl+ipl}},photo):/* @__PURE__ */jsx(BlockIcon,{icon:icon,size:iconSize??p.icon.w,color:iconColor??colorOf(t,p.icon.color)}),ring?/* @__PURE__ */jsx(View,{pointerEvents:"none",style:ring}):null]})}StyleSheet.create({row:{flexDirection:"row",alignItems:"flex-start"},noGap:{columnGap:0},box:{alignItems:"center",justifyContent:"center"},grow:{flex:1,minWidth:0}});StyleSheet.create({row:{flexDirection:"row",alignItems:"center"},words:{flex:1,minWidth:0},center:{alignItems:"center",justifyContent:"center"}});StyleSheet.create({hintRow:{flexDirection:"row",alignItems:"flex-start"},grow:{flex:1}});StyleSheet.create({base:{alignItems:"center",justifyContent:"center",alignSelf:"flex-start"}});StyleSheet.create({base:{alignSelf:"flex-start"}});StyleSheet.create({track:{alignSelf:"flex-start"},thumb:{position:"absolute"}});StyleSheet.create({box:{flexDirection:"row"},line:{alignItems:"center"},area:{alignItems:"stretch"},input:{flex:1,minWidth:0,margin:0,borderWidth:0,backgroundColor:"transparent"},hidden:{position:"absolute",width:1,height:1,overflow:"hidden",opacity:0}});StyleSheet.create({clip:{overflow:"hidden"},center:{alignItems:"center",justifyContent:"center"},stack:{flexDirection:"row",alignItems:"center",alignSelf:"flex-start"}});StyleSheet.create({leadAuto:{flexShrink:0},words:{flex:1,minWidth:0},below:{alignSelf:"flex-start"},end:{flexDirection:"row",alignItems:"center",flexShrink:1,maxWidth:"45%",justifyContent:"flex-end"},flush:{marginTop:0}});StyleSheet.create({offRow:{flexDirection:"row",alignItems:"center",alignSelf:"stretch"},offText:{flexShrink:1,minWidth:0},offAction:{flexDirection:"row",alignItems:"center",marginLeft:"auto",flexShrink:0},row:{flexDirection:"row",alignItems:"flex-start"},copy:{flex:1,minWidth:0},acts:{flexDirection:"row",flexWrap:"wrap",alignItems:"center"}});StyleSheet.create({fill:{flex:1},host:{position:"absolute",left:0,right:0,alignItems:"center"},cardHost:{position:"absolute"},card:{alignSelf:"stretch"},start:{textAlign:"left"},pill:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",justifyContent:"center",alignSelf:"center",maxWidth:"100%"},center:{textAlign:"center"},shrink:{flexShrink:1}});StyleSheet.create({row:{flexDirection:"row",alignItems:"center"}});var CSS_EASE_OUT=[0,0,.58,1];function rnSource(image){return typeof image=="number"?image:typeof image=="string"?image?{uri:image}:null:image&&typeof image=="object"&&image.uri?image:null}function keyOf2(image){return image===null?null:typeof image=="object"?image.uri:String(image)}function Thumb({m:m,image:image,first:first,fallback:fallback,onError:onError,testID:testID}){let t=useTheme(),icon=t.metrics.thumbnail.xs.icon,key=keyOf2(image),[failed,setFailed]=useState(null),source=key!==null&&failed!==key?rnSource(image):null,{shown:shown,onShown:onShown}=useShown(source?key:null),band=m.thumbRing,radius=m.thumb.radius[0]??0,blend=m.imgBlend==="multiply"?{mixBlendMode:"multiply"}:null,inset=m.imgInset;/* @__PURE__ */
|
|
46
|
-
return jsx(View,{style:[{margin:-band,padding:band,borderRadius:radius+band,backgroundColor:partFill(t,m.bar.bg)||void 0},rnShadow(m.thumb.shadow),first?null:{marginLeft:-band-m.thumbOverlap}],children:/* @__PURE__ */jsxs(View,{testID:testID,style:[rnBox(t,{...m.thumb,shadow:{...m.thumb.shadow,x:0,y:0,blur:0}}),{paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0,width:m.thumb.w,height:m.thumb.h,overflow:"hidden",alignItems:"center",justifyContent:"center"},!shown&&fallback?.tint!==void 0?{backgroundColor:fallback.tint}:null],children:[shown?null:/* @__PURE__ */jsx(BlockIcon,{icon:fallback?.icon??UI_RN_ICON_BOX,size:fallback?.iconSize??icon.w,color:fallback?.iconColor??colorOf(t,icon.color)}),source&&key!==null?/* @__PURE__ */jsx(FadeImage,{source:source,onShown:onShown,onError:()=>{setFailed(key),image!==null&&onError?.(image)},resizeMode:m.imgFit,style:[{position:"absolute",top:inset,right:inset,bottom:inset,left:inset},blend]},key):null]})})}function CartBar(props){let{count:count,countLabel:countLabel,thumbs:thumbs,fallback:fallback,onImageError:onImageError,total:total,sub:sub,actionLabel:actionLabel,actionHiddenWord:actionHiddenWord,actionAccessibilityLabel:actionAccessibilityLabel,onPress:onPress,disabled:disabled=false,busy:busy=false,visible:visible=true,variant:variant="standard",loading:loading=false,loadingLabel:loadingLabel,testID:testID,style:style,onLayout:onLayout}=props,lastTotal=useRef(total);useEffect(()=>{lastTotal.current!==total&&(lastTotal.current=total,Platform.OS==="ios"&&total&&!loading&&AccessibilityInfo.announceForAccessibility?.([countLabel,total].filter(Boolean).join(", ")))},[total,countLabel,loading]);let t=useTheme(),reduced=useRnReduced(t),web=variant==="web",m=web?
|
|
46
|
+
return jsx(View,{style:[{margin:-band,padding:band,borderRadius:radius+band,backgroundColor:partFill(t,m.bar.bg)||void 0},rnShadow(m.thumb.shadow),first?null:{marginLeft:-band-m.thumbOverlap}],children:/* @__PURE__ */jsxs(View,{testID:testID,style:[rnBox(t,{...m.thumb,shadow:{...m.thumb.shadow,x:0,y:0,blur:0}}),{paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0,width:m.thumb.w,height:m.thumb.h,overflow:"hidden",alignItems:"center",justifyContent:"center"},!shown&&fallback?.tint!==void 0?{backgroundColor:fallback.tint}:null],children:[shown?null:/* @__PURE__ */jsx(BlockIcon,{icon:fallback?.icon??UI_RN_ICON_BOX,size:fallback?.iconSize??icon.w,color:fallback?.iconColor??colorOf(t,icon.color)}),source&&key!==null?/* @__PURE__ */jsx(FadeImage,{source:source,onShown:onShown,onError:()=>{setFailed(key),image!==null&&onError?.(image)},resizeMode:m.imgFit,style:[{position:"absolute",top:inset,right:inset,bottom:inset,left:inset},blend]},key):null]})})}function CartBar(props){let{count:count,countLabel:countLabel,thumbs:thumbs,fallback:fallback,onImageError:onImageError,total:total,sub:sub,actionLabel:actionLabel,actionHiddenWord:actionHiddenWord,actionAccessibilityLabel:actionAccessibilityLabel,onPress:onPress,disabled:disabled=false,busy:busy=false,visible:visible=true,variant:variant="standard",loading:loading=false,loadingLabel:loadingLabel,testID:testID,style:style,onLayout:onLayout}=props,lastTotal=useRef(total);useEffect(()=>{lastTotal.current!==total&&(lastTotal.current=total,Platform.OS==="ios"&&total&&!loading&&AccessibilityInfo.announceForAccessibility?.([countLabel,total].filter(Boolean).join(", ")))},[total,countLabel,loading]);let t=useTheme(),reduced=useRnReduced(t),web=variant==="web",m=web?blockMetrics(t,cartBarWebBlockMetrics):blockMetrics(t,cartBarBlockMetrics),text=x=>rnText(t,textPartSpec(t,x)),native=Platform.OS!=="web",rise=useRef(new Animated.Value(1)).current,bump=useRef(new Animated.Value(1)).current,height=useRef(0),[pressed,setPressed]=useState(false),was=useRef({visible:visible,count:count});if(useEffect(()=>{let before=was.current;if(was.current={visible:visible,count:count},reduced)return;let bezier2=c=>Easing.bezier(c[0]??0,c[1]??0,c[2]??1,c[3]??1),out=bezier2(t.motion.easing.out);if(visible&&!before.visible)rise.setValue(0),Animated.timing(rise,{toValue:1,duration:m.motion.rise.duration,easing:out,useNativeDriver:native}).start();else if(visible&&typeof count=="number"&&typeof before.count=="number"&&count>before.count){let b=m.motion.bump,easing=b.curve==="out"?out:bezier2(CSS_EASE_OUT);bump.setValue(1),Animated.sequence([Animated.timing(bump,{toValue:b.scale,duration:b.duration*b.peakAt,easing:easing,useNativeDriver:native}),Animated.timing(bump,{toValue:1,duration:b.duration*(1-b.peakAt),easing:easing,useNativeDriver:native})]).start()}},[visible,count,reduced,rise,bump,m,t.motion.easing.out,native]),!visible)return null;let part2=n=>testID===void 0?void 0:`${testID}-${n}`,[gx=0,gy=0]=m.bar.gap,card=[rnBox(t,{...m.bar,shadow:m.lift}),{flexDirection:"row",alignItems:"center",columnGap:gx,rowGap:gy},web?{width:"100%",maxWidth:m.bar.w,alignSelf:"center"}:null];if(loading)/* @__PURE__ */
|
|
47
47
|
return jsx(View,{testID:testID,onLayout:onLayout,style:[card,style],children:/* @__PURE__ */jsx(View,{style:{flex:1},children:/* @__PURE__ */jsx(Skeleton,{lines:2,label:loadingLabel})})});let all=thumbs??[],shownThumbs=all.slice(-3),firstIndex=all.length-shownThumbs.length,waits=disabled||busy,riseFrom=h=>h+m.motion.rise.from,motion={transform:[{translateY:rise.interpolate({inputRange:[0,1],outputRange:[riseFrom(height.current||m.bar.h),0]})}],...m.motion.rise.fade?{opacity:rise}:{}},goRing=rnRing(t,m.go),said=[countLabel,total,sub].filter(x=>!!x);/* @__PURE__ */
|
|
48
48
|
return jsxs(Animated.View,{testID:testID,onLayout:e=>{height.current=e.nativeEvent.layout.height,onLayout?.(e)},style:[card,motion,style],children:[shownThumbs.length>0?/* @__PURE__ */jsxs(Animated.View,{accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",style:[rnBox(t,m.thumbs),{flexDirection:"row",alignItems:"center",height:m.thumbs.h},{transform:[{scale:bump}]}],children:[shownThumbs.map((image,i)=>/* @__PURE__ */jsx(Thumb,{m:m,image:image,first:i===0,fallback:fallback,onError:onImageError,testID:part2(`thumb-${firstIndex+i}`)},firstIndex+i)),
|
|
49
49
|
/* @__PURE__ */jsx(View,{testID:part2("count"),style:[rnBox(t,m.count),{position:"absolute",top:m.countAt.top,right:m.countAt.right,minWidth:m.count.w,height:m.count.h,alignItems:"center",justifyContent:"center"}],children:/* @__PURE__ */jsx(Text,{style:text(m.countText),children:String(count)})})]}):null,
|
|
50
50
|
/* @__PURE__ */jsxs(View,{accessible:said.length>0,accessibilityLabel:said.length>0?said.join(", "):void 0,accessibilityLiveRegion:"polite",style:{flex:1,minWidth:0,rowGap:m.sum.gap[1]},children:[total?/* @__PURE__ */jsx(Text,{style:text(m.total),children:total}):null,sub?/* @__PURE__ */jsx(Text,{style:text(m.sub),children:sub}):null]}),
|
|
51
51
|
/* @__PURE__ */jsxs(Pressable,{testID:part2("go"),onPress:waits?void 0:onPress,disabled:waits,onPressIn:()=>setPressed(true),onPressOut:()=>setPressed(false),accessibilityRole:"button",accessibilityLabel:actionAccessibilityLabel??`${actionLabel}${actionHiddenWord??""}`,accessibilityState:{disabled:waits,busy:busy},"aria-busy":busy,style:[rnBox(t,m.go),{flexDirection:"row",alignItems:"center",justifyContent:"center",minHeight:m.go.h},pressed&&!reduced&&!waits?{transform:[{scale:m.pressScale}]}:null,disabled?{opacity:DISABLED_OPACITY}:null],children:[
|
|
52
|
-
/* @__PURE__ */jsxs(Text,{style:text(m.goText),numberOfLines:1,children:[actionLabel,actionHiddenWord??""]}),goRing?/* @__PURE__ */jsx(View,{pointerEvents:"none",style:goRing}):null]})]})}function Square({size:size,web:web,src:src,alt:alt,fallback:fallback,onError:onError,testID:testID}){let t=useTheme(),q=web?
|
|
53
|
-
return jsxs(View,{testID:testID,accessible:!photo&&!!alt,accessibilityRole:!photo&&alt?"image":void 0,accessibilityLabel:photo?void 0:alt,style:[rnBox(t,box),{width:box.w,height:box.h,overflow:"hidden",alignItems:"center",justifyContent:"center"},!shown&&fallback?.tint!==void 0?{backgroundColor:fallback.tint}:null],children:[shown?null:/* @__PURE__ */jsx(BlockIcon,{icon:fallback?.icon??UI_RN_ICON_BOX,size:fallback?.iconSize??icon.w,color:fallback?.iconColor??colorOf(t,icon.color)}),photo?/* @__PURE__ */jsx(FadeImage,{source:{uri:photo},accessibilityLabel:alt,accessible:!!alt,onShown:onShown,onError:()=>{setFailed(photo),onError?.(photo)},resizeMode:q.imgFit,style:[{position:"absolute",top:inset,right:inset,bottom:inset,left:inset},blend]},photo):null]})}function PlanLine({name:name,image:image,imageAlt:imageAlt,price:price2,wasPrice:wasPrice,smalls:smalls,quantity:quantity,removeLabel:removeLabel,onRemove:onRemove,actions:actions,fallback:fallback,onImageError:onImageError,error:error,testID:testID,style:style}){let t=useTheme(),p=
|
|
52
|
+
/* @__PURE__ */jsxs(Text,{style:text(m.goText),numberOfLines:1,children:[actionLabel,actionHiddenWord??""]}),goRing?/* @__PURE__ */jsx(View,{pointerEvents:"none",style:goRing}):null]})]})}function Square({size:size,web:web,src:src,alt:alt,fallback:fallback,onError:onError,testID:testID}){let t=useTheme(),q=web?blockMetrics(t,cartWebBlockMetrics):blockMetrics(t,cartSquareBlockMetrics),box=web?blockMetrics(t,cartWebBlockMetrics).sq:blockMetrics(t,cartSquareBlockMetrics)[size],icon=t.metrics.thumbnail.xs.icon,[failed,setFailed]=useState(null),photo=src&&failed!==src?src:null,{shown:shown,onShown:onShown}=useShown(photo),inset=box.w*q.imgInset,blend=q.imgBlend==="multiply"?{mixBlendMode:"multiply"}:null;/* @__PURE__ */
|
|
53
|
+
return jsxs(View,{testID:testID,accessible:!photo&&!!alt,accessibilityRole:!photo&&alt?"image":void 0,accessibilityLabel:photo?void 0:alt,style:[rnBox(t,box),{width:box.w,height:box.h,overflow:"hidden",alignItems:"center",justifyContent:"center"},!shown&&fallback?.tint!==void 0?{backgroundColor:fallback.tint}:null],children:[shown?null:/* @__PURE__ */jsx(BlockIcon,{icon:fallback?.icon??UI_RN_ICON_BOX,size:fallback?.iconSize??icon.w,color:fallback?.iconColor??colorOf(t,icon.color)}),photo?/* @__PURE__ */jsx(FadeImage,{source:{uri:photo},accessibilityLabel:alt,accessible:!!alt,onShown:onShown,onError:()=>{setFailed(photo),onError?.(photo)},resizeMode:q.imgFit,style:[{position:"absolute",top:inset,right:inset,bottom:inset,left:inset},blend]},photo):null]})}function PlanLine({name:name,image:image,imageAlt:imageAlt,price:price2,wasPrice:wasPrice,smalls:smalls,quantity:quantity,removeLabel:removeLabel,onRemove:onRemove,actions:actions,fallback:fallback,onImageError:onImageError,error:error,testID:testID,style:style}){let t=useTheme(),p=blockMetrics(t,cartPlanBlockMetrics),text=x=>rnText(t,textPartSpec(t,x)),[failed,setFailed]=useState(null),photo=image&&failed!==image?image:null,{shown:shown,onShown:onShown}=useShown(photo),part2=n=>testID===void 0?void 0:`${testID}-${n}`,[gx=0]=p.line.gap,acts=actions!==void 0?actions.map(a=>({...a,testID:itemTestID(testID,a.key,a.testID)})):removeLabel&&onRemove?[{key:"remove",label:removeLabel,onPress:onRemove,testID:part2("remove"),disabled:void 0,accessibilityLabel:void 0}]:[];/* @__PURE__ */
|
|
54
54
|
return jsxs(View,{testID:testID,style:[{flexDirection:"row",alignItems:"flex-start",columnGap:gx},style],children:[
|
|
55
55
|
/* @__PURE__ */jsxs(View,{testID:part2("image"),accessible:!photo&&!!imageAlt,accessibilityRole:!photo&&imageAlt?"image":void 0,accessibilityLabel:photo?void 0:imageAlt,style:[rnBox(t,p.img),{width:p.img.w,height:p.img.h,overflow:"hidden",alignItems:"center",justifyContent:"center"},!shown&&fallback?.tint!==void 0?{backgroundColor:fallback.tint}:null],children:[shown?null:/* @__PURE__ */jsx(BlockIcon,{icon:fallback?.icon??UI_RN_ICON_BOX,size:fallback?.iconSize??p.icon.w,color:fallback?.iconColor??colorOf(t,p.icon.color)}),photo?/* @__PURE__ */jsx(FadeImage,{source:{uri:photo},accessibilityLabel:imageAlt,accessible:!!imageAlt,onShown:onShown,onError:()=>{setFailed(photo),onImageError?.(photo)},resizeMode:"cover",style:{position:"absolute",top:0,right:0,bottom:0,left:0}},photo):null]}),
|
|
56
56
|
/* @__PURE__ */jsxs(View,{style:{flex:1,minWidth:0},children:[
|
|
57
|
-
/* @__PURE__ */jsx(Text,{testID:part2("name"),style:text(p.name),children:name}),price2||wasPrice||smalls&&smalls.length>0?/* @__PURE__ */jsxs(View,{style:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:p.prices.gap[0],rowGap:p.prices.gap[1],marginTop:p.prices.marginTop},children:[price2?/* @__PURE__ */jsx(Text,{testID:part2("price"),style:text(p.price),children:price2}):null,wasPrice?/* @__PURE__ */jsx(Text,{style:text(p.was),children:wasPrice}):null,smalls?.map((line,i)=>/* @__PURE__ */jsx(Text,{style:text(p.small),children:line},`${i}-${line}`))]}):null,quantity||acts.length>0?/* @__PURE__ */jsxs(View,{style:{flexDirection:"row",alignItems:"center",columnGap:p.acts.gap[0],marginTop:p.acts.marginTop},children:[quantity?/* @__PURE__ */jsx(InkedQuantityStepper,{ink:colorOf(t,p.step.color),variant:"compact",value:quantity.value,min:quantity.min,max:quantity.max,label:quantity.label,fewerLabel:quantity.fewerLabel,moreLabel:quantity.moreLabel,onChange:v=>stepTo(quantity,v)}):null,acts.map(a=>/* @__PURE__ */jsx(Pressable,{testID:a.testID,onPress:a.disabled?void 0:a.onPress,disabled:a.disabled,accessibilityRole:"button",accessibilityLabel:a.accessibilityLabel??a.label,accessibilityState:a.disabled?{disabled:true}:void 0,hitSlop:slopFor(p.remove.h),style:[{minHeight:p.remove.minHeight||void 0,justifyContent:"center"},a.disabled?{opacity:DISABLED_OPACITY}:null],children:/* @__PURE__ */jsx(Text,{tier:"control",style:text(p.removeText),children:a.label})},a.key))]}):null,error?/* @__PURE__ */jsx(Text,{accessibilityRole:"alert",accessibilityLiveRegion:"polite",style:[text(p.small),{marginTop:p.acts.marginTop,color:t.colors.alert}],children:error}):null]})]})}function DrawerPlan({plan:plan,testID:testID}){let t=useTheme(),d=
|
|
57
|
+
/* @__PURE__ */jsx(Text,{testID:part2("name"),style:text(p.name),children:name}),price2||wasPrice||smalls&&smalls.length>0?/* @__PURE__ */jsxs(View,{style:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:p.prices.gap[0],rowGap:p.prices.gap[1],marginTop:p.prices.marginTop},children:[price2?/* @__PURE__ */jsx(Text,{testID:part2("price"),style:text(p.price),children:price2}):null,wasPrice?/* @__PURE__ */jsx(Text,{style:text(p.was),children:wasPrice}):null,smalls?.map((line,i)=>/* @__PURE__ */jsx(Text,{style:text(p.small),children:line},`${i}-${line}`))]}):null,quantity||acts.length>0?/* @__PURE__ */jsxs(View,{style:{flexDirection:"row",alignItems:"center",columnGap:p.acts.gap[0],marginTop:p.acts.marginTop},children:[quantity?/* @__PURE__ */jsx(InkedQuantityStepper,{ink:colorOf(t,p.step.color),variant:"compact",value:quantity.value,min:quantity.min,max:quantity.max,label:quantity.label,fewerLabel:quantity.fewerLabel,moreLabel:quantity.moreLabel,onChange:v=>stepTo(quantity,v)}):null,acts.map(a=>/* @__PURE__ */jsx(Pressable,{testID:a.testID,onPress:a.disabled?void 0:a.onPress,disabled:a.disabled,accessibilityRole:"button",accessibilityLabel:a.accessibilityLabel??a.label,accessibilityState:a.disabled?{disabled:true}:void 0,hitSlop:slopFor(p.remove.h),style:[{minHeight:p.remove.minHeight||void 0,justifyContent:"center"},a.disabled?{opacity:DISABLED_OPACITY}:null],children:/* @__PURE__ */jsx(Text,{tier:"control",style:text(p.removeText),children:a.label})},a.key))]}):null,error?/* @__PURE__ */jsx(Text,{accessibilityRole:"alert",accessibilityLiveRegion:"polite",style:[text(p.small),{marginTop:p.acts.marginTop,color:t.colors.alert}],children:error}):null]})]})}function DrawerPlan({plan:plan,testID:testID}){let t=useTheme(),d=blockMetrics(t,cartDrawerBlockMetrics),id=plan.testID??testID,ring=rnRing(t,d.plan);/* @__PURE__ */
|
|
58
58
|
return jsxs(View,{testID:id,role:"group",accessibilityLabel:plan.label,style:[rnBox(t,d.plan),{flexDirection:"row",alignSelf:"flex-start"}],children:[plan.options.map(o=>{let on=o.value===plan.value,box=on?d.planOn:d.planBtn;/* @__PURE__ */
|
|
59
|
-
return jsx(Pressable,{testID:id===void 0?void 0:`${id}-${o.value}`,onPress:on?void 0:()=>plan.onChange?.(o.value),accessibilityRole:"button",accessibilityLabel:o.label,accessibilityState:{checked:on},"aria-pressed":on,hitSlop:slopFor(box.minHeight||box.h),style:[rnBox(t,box),{minHeight:box.minHeight||void 0,justifyContent:"center"}],children:/* @__PURE__ */jsx(Text,{tier:"control",style:rnText(t,textPartSpec(t,on?d.planOnText:d.planText)),children:o.label})},o.value)}),ring?/* @__PURE__ */jsx(View,{pointerEvents:"none",style:ring}):null]})}function DrawerStepper({q:q,testID:testID}){let t=useTheme(),d=
|
|
59
|
+
return jsx(Pressable,{testID:id===void 0?void 0:`${id}-${o.value}`,onPress:on?void 0:()=>plan.onChange?.(o.value),accessibilityRole:"button",accessibilityLabel:o.label,accessibilityState:{checked:on},"aria-pressed":on,hitSlop:slopFor(box.minHeight||box.h),style:[rnBox(t,box),{minHeight:box.minHeight||void 0,justifyContent:"center"}],children:/* @__PURE__ */jsx(Text,{tier:"control",style:rnText(t,textPartSpec(t,on?d.planOnText:d.planText)),children:o.label})},o.value)}),ring?/* @__PURE__ */jsx(View,{pointerEvents:"none",style:ring}):null]})}function DrawerStepper({q:q,testID:testID}){let t=useTheme(),d=blockMetrics(t,cartDrawerBlockMetrics),reduced=useRnReduced(t),min=q.min??1,max=q.max??Number.POSITIVE_INFINITY,part2=n=>testID===void 0?void 0:`${testID}-${n}`,ring=rnRing(t,d.qty),step=(label,icon,off,next,id)=>/* @__PURE__ */jsx(Pressable,{testID:part2(id),onPress:off?void 0:()=>stepTo(q,next),accessibilityRole:"button",accessibilityLabel:label,disabled:off,accessibilityState:off?{disabled:true}:void 0,hitSlop:slopFor(d.qtyBtn.w),style:({pressed:pressed})=>[rnBox(t,d.qtyBtn),{width:d.qtyBtn.w,height:d.qtyBtn.h,alignItems:"center",justifyContent:"center"},pressed&&!reduced&&!off?{transform:[{scale:d.pressScale}]}:null],children:/* @__PURE__ */jsx(Glyph,{icon:icon==="minus"?UI_RN_ICON_MINUS:UI_RN_ICON_PLUS,size:d.qtyIcon.w,color:t.colors.text})});/* @__PURE__ */
|
|
60
60
|
return jsxs(View,{testID:testID,role:"group",accessibilityLabel:q.label,style:[rnBox(t,d.qty),{flexDirection:"row",alignItems:"center",height:d.qty.h}],children:[step(q.fewerLabel,"minus",q.value<=min,Math.max(min,q.value-1),"fewer"),
|
|
61
|
-
/* @__PURE__ */jsx(Text,{testID:part2("count"),accessibilityLiveRegion:"polite",style:[rnText(t,textPartSpec(t,d.count)),{minWidth:d.countMin,textAlign:"center"}],children:q.value}),step(q.moreLabel,"plus",q.value>=max,Math.min(max,q.value+1),"more"),ring?/* @__PURE__ */jsx(View,{pointerEvents:"none",style:ring}):null]})}function DrawerLine({name:name,image:image,imageAlt:imageAlt,badge:badge,meta:meta,note:note,plan:plan,price:price2,wasPrice:wasPrice,quantity:quantity,removeLabel:removeLabel,onRemove:onRemove,actions:actions,fallback:fallback,onImageError:onImageError,error:error,loading:loading=false,loadingLabel:loadingLabel,testID:testID,style:style}){let t=useTheme(),d=
|
|
61
|
+
/* @__PURE__ */jsx(Text,{testID:part2("count"),accessibilityLiveRegion:"polite",style:[rnText(t,textPartSpec(t,d.count)),{minWidth:d.countMin,textAlign:"center"}],children:q.value}),step(q.moreLabel,"plus",q.value>=max,Math.min(max,q.value+1),"more"),ring?/* @__PURE__ */jsx(View,{pointerEvents:"none",style:ring}):null]})}function DrawerLine({name:name,image:image,imageAlt:imageAlt,badge:badge,meta:meta,note:note,plan:plan,price:price2,wasPrice:wasPrice,quantity:quantity,removeLabel:removeLabel,onRemove:onRemove,actions:actions,fallback:fallback,onImageError:onImageError,error:error,loading:loading=false,loadingLabel:loadingLabel,testID:testID,style:style}){let t=useTheme(),d=blockMetrics(t,cartDrawerBlockMetrics),text=x=>rnText(t,textPartSpec(t,x)),[failed,setFailed]=useState(null),photo=image&&failed!==image?image:null,{shown:shown,onShown:onShown}=useShown(photo),part2=n=>testID===void 0?void 0:`${testID}-${n}`,[gx=0]=d.line.gap,imgRing=rnRing(t,d.img),badgeRing=rnRing(t,d.badge),icon=t.metrics.thumbnail.xs.icon;if(loading)/* @__PURE__ */
|
|
62
62
|
return jsxs(View,{testID:testID,style:[{flexDirection:"row",alignItems:"flex-start",columnGap:gx},style],children:[
|
|
63
63
|
/* @__PURE__ */jsx(View,{style:[rnBox(t,d.img),{width:d.img.w,height:d.img.h}],children:imgRing?/* @__PURE__ */jsx(View,{pointerEvents:"none",style:imgRing}):null}),
|
|
64
64
|
/* @__PURE__ */jsx(View,{style:{flex:1,minWidth:0},children:/* @__PURE__ */jsx(Skeleton,{lines:2,label:loadingLabel})})]});let acts=actions!==void 0?actions.map(a=>({...a,testID:itemTestID(testID,a.key,a.testID)})):removeLabel&&onRemove?[{key:"remove",label:removeLabel,onPress:onRemove,testID:part2("remove"),disabled:void 0,accessibilityLabel:`${removeLabel} ${name}`}]:[];/* @__PURE__ */
|
|
@@ -68,10 +68,10 @@ return jsxs(View,{testID:testID,style:[{flexDirection:"row",alignItems:"flex-sta
|
|
|
68
68
|
/* @__PURE__ */jsxs(View,{style:{flexDirection:"row",alignItems:"flex-start",columnGap:gx},children:[
|
|
69
69
|
/* @__PURE__ */jsxs(View,{testID:part2("name"),style:{flex:1,minWidth:0,flexDirection:"row",flexWrap:"wrap",alignItems:d.name.center?"center":"baseline",columnGap:d.name.gap[0],rowGap:d.name.gap[1]},children:[
|
|
70
70
|
/* @__PURE__ */jsx(Text,{style:text(d.nameText),children:name}),badge?/* @__PURE__ */jsxs(View,{style:[rnBox(t,d.badge),{height:d.badge.h,justifyContent:"center"}],children:[
|
|
71
|
-
/* @__PURE__ */jsx(Text,{style:text(d.badgeText),children:badge.label}),badgeRing?/* @__PURE__ */jsx(View,{pointerEvents:"none",style:badgeRing}):null]}):null]}),price2||wasPrice?/* @__PURE__ */jsxs(View,{children:[price2?/* @__PURE__ */jsx(Text,{testID:part2("price"),style:[text(d.price),{alignSelf:"flex-start"}],children:price2}):null,wasPrice?/* @__PURE__ */jsx(Text,{style:[text(d.was),{alignSelf:"flex-end",textAlign:"right"}],children:wasPrice}):null]}):null]}),meta?/* @__PURE__ */jsx(Text,{style:[text(d.meta),{marginTop:d.meta.marginTop}],children:meta}):null,note?/* @__PURE__ */jsx(Text,{style:[text(d.note),{marginTop:d.note.marginTop}],children:note}):null,plan||quantity||acts.length>0?/* @__PURE__ */jsxs(View,{style:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:d.acts.gap[0],rowGap:d.acts.gap[1],marginTop:d.acts.marginTop},children:[plan?/* @__PURE__ */jsx(DrawerPlan,{plan:plan,testID:part2("plan")}):null,quantity?/* @__PURE__ */jsx(DrawerStepper,{q:quantity,testID:part2("stepper")}):null,acts.map(a=>/* @__PURE__ */jsx(Pressable,{testID:a.testID,onPress:a.disabled?void 0:a.onPress,disabled:a.disabled,accessibilityRole:"button",accessibilityLabel:a.accessibilityLabel??a.label,accessibilityState:a.disabled?{disabled:true}:void 0,hitSlop:slopFor(d.remove.minHeight||d.remove.h),style:[{minHeight:d.remove.minHeight||void 0,justifyContent:"center"},a.disabled?{opacity:DISABLED_OPACITY}:null],children:/* @__PURE__ */jsx(Text,{tier:"control",style:text(d.removeText),children:a.label})},a.key))]}):null,error?/* @__PURE__ */jsx(Text,{accessibilityRole:"alert",accessibilityLiveRegion:"polite",style:[text(d.meta),{marginTop:d.acts.marginTop,color:t.colors.alert}],children:error}):null]})]})}function CartLine(props){let{name:name,image:image,imageAlt:imageAlt,badge:badge,meta:meta,metas:metas,price:price2,wasPrice:wasPrice,quantity:quantity,removeLabel:removeLabel,onRemove:onRemove,actions:actions,fallback:fallback,onImageError:onImageError,variant:variant="standard",thumbSize:thumbSize="md",align:align="top",namePress:namePress,error:error,loading:loading=false,loadingLabel:loadingLabel,testID:testID,style:style}=props,t=useTheme(),m=
|
|
71
|
+
/* @__PURE__ */jsx(Text,{style:text(d.badgeText),children:badge.label}),badgeRing?/* @__PURE__ */jsx(View,{pointerEvents:"none",style:badgeRing}):null]}):null]}),price2||wasPrice?/* @__PURE__ */jsxs(View,{children:[price2?/* @__PURE__ */jsx(Text,{testID:part2("price"),style:[text(d.price),{alignSelf:"flex-start"}],children:price2}):null,wasPrice?/* @__PURE__ */jsx(Text,{style:[text(d.was),{alignSelf:"flex-end",textAlign:"right"}],children:wasPrice}):null]}):null]}),meta?/* @__PURE__ */jsx(Text,{style:[text(d.meta),{marginTop:d.meta.marginTop}],children:meta}):null,note?/* @__PURE__ */jsx(Text,{style:[text(d.note),{marginTop:d.note.marginTop}],children:note}):null,plan||quantity||acts.length>0?/* @__PURE__ */jsxs(View,{style:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:d.acts.gap[0],rowGap:d.acts.gap[1],marginTop:d.acts.marginTop},children:[plan?/* @__PURE__ */jsx(DrawerPlan,{plan:plan,testID:part2("plan")}):null,quantity?/* @__PURE__ */jsx(DrawerStepper,{q:quantity,testID:part2("stepper")}):null,acts.map(a=>/* @__PURE__ */jsx(Pressable,{testID:a.testID,onPress:a.disabled?void 0:a.onPress,disabled:a.disabled,accessibilityRole:"button",accessibilityLabel:a.accessibilityLabel??a.label,accessibilityState:a.disabled?{disabled:true}:void 0,hitSlop:slopFor(d.remove.minHeight||d.remove.h),style:[{minHeight:d.remove.minHeight||void 0,justifyContent:"center"},a.disabled?{opacity:DISABLED_OPACITY}:null],children:/* @__PURE__ */jsx(Text,{tier:"control",style:text(d.removeText),children:a.label})},a.key))]}):null,error?/* @__PURE__ */jsx(Text,{accessibilityRole:"alert",accessibilityLiveRegion:"polite",style:[text(d.meta),{marginTop:d.acts.marginTop,color:t.colors.alert}],children:error}):null]})]})}function CartLine(props){let{name:name,image:image,imageAlt:imageAlt,badge:badge,meta:meta,metas:metas,price:price2,wasPrice:wasPrice,quantity:quantity,removeLabel:removeLabel,onRemove:onRemove,actions:actions,fallback:fallback,onImageError:onImageError,variant:variant="standard",thumbSize:thumbSize="md",align:align="top",namePress:namePress,error:error,loading:loading=false,loadingLabel:loadingLabel,testID:testID,style:style}=props,t=useTheme(),m=blockMetrics(t,cartBlockMetrics),shot=t.metrics.thumbnail.xs,text=p=>rnText(t,textPartSpec(t,p)),side=image?shot.frame.w:shot.empty.w,[gx=0,gy=0]=m.line.gap,row={flexDirection:"row",alignItems:m.line.center?"center":"flex-start",columnGap:gx};if(variant==="drawer")/* @__PURE__ */return jsx(DrawerLine,{...props});if(loading)/* @__PURE__ */
|
|
72
72
|
return jsxs(View,{testID:testID,style:[rnBox(t,m.line),row,style],children:[
|
|
73
73
|
/* @__PURE__ */jsx(View,{style:{width:side,height:side,borderRadius:shot.frame.radius[0],backgroundColor:t.colors.tintSage}}),
|
|
74
|
-
/* @__PURE__ */jsx(View,{style:{flex:1},children:/* @__PURE__ */jsx(Skeleton,{lines:2,label:loadingLabel})})]});let metaEl=metas&&metas.length>0?metas.map((line,i)=>/* @__PURE__ */jsx(Text,{style:[text(m.meta),{marginTop:m.meta.marginTop}],children:line},`${i}-${line}`)):meta?/* @__PURE__ */jsx(Text,{style:[text(m.meta),{marginTop:m.meta.marginTop}],children:meta}):null,part2=n=>testID===void 0?void 0:`${testID}-${n}`,act=(key,label,onPress,extra)=>/* @__PURE__ */jsx(Pressable,{testID:extra?.testID,onPress:extra?.disabled?void 0:onPress,disabled:extra?.disabled,accessibilityRole:"button",accessibilityLabel:extra?.accessibilityLabel??label,accessibilityState:extra?.disabled?{disabled:true}:void 0,hitSlop:slopFor(m.removeBox.minHeight||m.remove.lineHeight),style:[{minHeight:m.removeBox.minHeight||void 0,justifyContent:"center"},extra?.disabled?{opacity:DISABLED_OPACITY}:null],children:/* @__PURE__ */jsx(Text,{tier:"control",style:text(m.remove),children:label})},key),remove=actions!==void 0?actions.length>0?actions.map(a=>act(a.key,a.label,a.onPress,{disabled:a.disabled,accessibilityLabel:a.accessibilityLabel,testID:itemTestID(testID,a.key,a.testID)})):null:removeLabel&&onRemove?act("remove",removeLabel,onRemove):null;if(variant==="square"||variant==="web"){let web=variant==="web",q=web?{...
|
|
74
|
+
/* @__PURE__ */jsx(View,{style:{flex:1},children:/* @__PURE__ */jsx(Skeleton,{lines:2,label:loadingLabel})})]});let metaEl=metas&&metas.length>0?metas.map((line,i)=>/* @__PURE__ */jsx(Text,{style:[text(m.meta),{marginTop:m.meta.marginTop}],children:line},`${i}-${line}`)):meta?/* @__PURE__ */jsx(Text,{style:[text(m.meta),{marginTop:m.meta.marginTop}],children:meta}):null,part2=n=>testID===void 0?void 0:`${testID}-${n}`,act=(key,label,onPress,extra)=>/* @__PURE__ */jsx(Pressable,{testID:extra?.testID,onPress:extra?.disabled?void 0:onPress,disabled:extra?.disabled,accessibilityRole:"button",accessibilityLabel:extra?.accessibilityLabel??label,accessibilityState:extra?.disabled?{disabled:true}:void 0,hitSlop:slopFor(m.removeBox.minHeight||m.remove.lineHeight),style:[{minHeight:m.removeBox.minHeight||void 0,justifyContent:"center"},extra?.disabled?{opacity:DISABLED_OPACITY}:null],children:/* @__PURE__ */jsx(Text,{tier:"control",style:text(m.remove),children:label})},key),remove=actions!==void 0?actions.length>0?actions.map(a=>act(a.key,a.label,a.onPress,{disabled:a.disabled,accessibilityLabel:a.accessibilityLabel,testID:itemTestID(testID,a.key,a.testID)})):null:removeLabel&&onRemove?act("remove",removeLabel,onRemove):null;if(variant==="square"||variant==="web"){let web=variant==="web",q=web?{...blockMetrics(t,cartSquareBlockMetrics),...blockMetrics(t,cartWebBlockMetrics)}:blockMetrics(t,cartSquareBlockMetrics),ring=rnRing(t,q.badge),sqAct=(key,label,onPress,extra)=>/* @__PURE__ */jsx(Pressable,{testID:extra?.testID,onPress:extra?.disabled?void 0:onPress,disabled:extra?.disabled,accessibilityRole:"button",accessibilityLabel:extra?.accessibilityLabel??label,accessibilityState:extra?.disabled?{disabled:true}:void 0,hitSlop:slopFor(q.actBox.minHeight||q.act.lineHeight),style:[{minHeight:q.actBox.minHeight||void 0,justifyContent:"center"},extra?.disabled?{opacity:DISABLED_OPACITY}:null],children:/* @__PURE__ */jsx(Text,{tier:"control",style:text(q.act),children:label})},key),acts=web?[]:actions!==void 0?actions.map(a=>sqAct(a.key,a.label,a.onPress,{disabled:a.disabled,accessibilityLabel:a.accessibilityLabel,testID:itemTestID(testID,a.key,a.testID)})):removeLabel&&onRemove?[sqAct("remove",removeLabel,onRemove)]:[],lifted=namePress!==void 0&&acts.length>0;/* @__PURE__ */
|
|
75
75
|
return jsxs(View,{testID:testID,style:[{flexDirection:"row",alignItems:align==="center"||q.line.center?"center":"flex-start",columnGap:q.line.gap[0]},style],children:[
|
|
76
76
|
/* @__PURE__ */jsx(Square,{size:thumbSize,web:web,src:image,alt:imageAlt,fallback:fallback,onError:onImageError,testID:part2("image")}),
|
|
77
77
|
/* @__PURE__ */jsxs(View,{style:[{flex:1,minWidth:0},lifted?{zIndex:1}:null],children:[
|
|
@@ -83,13 +83,13 @@ return jsxs(View,{testID:testID,style:[rnBox(t,m.line),{rowGap:gy,columnGap:0},s
|
|
|
83
83
|
/* @__PURE__ */jsx(BlockThumbnail,{size:"xs",src:image,alt:imageAlt,icon:fallback?.icon,iconSize:fallback?.iconSize,tint:fallback?.tint,iconColor:fallback?.iconColor,onError:onImageError,testID:part2("image")}),
|
|
84
84
|
/* @__PURE__ */jsxs(View,{style:{flex:1,minWidth:0},children:[
|
|
85
85
|
/* @__PURE__ */jsxs(View,{style:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:m.name.gap[0],rowGap:m.name.gap[1]},children:[
|
|
86
|
-
/* @__PURE__ */jsx(Text,{style:text(m.nameText),children:name}),badge?/* @__PURE__ */jsx(Pill,{label:badge.label,tone:badge.tone??"rx"}):null]}),metaEl,stepper||remove?/* @__PURE__ */jsxs(View,{style:{flexDirection:"row",alignItems:"center",...actions&&actions.length>1?{flexWrap:"wrap",rowGap:m.acts.gap[1]}:{},columnGap:m.acts.gap[0],marginTop:m.acts.marginTop},children:[stepper,remove]}):null,error?/* @__PURE__ */jsx(Text,{accessibilityRole:"alert",accessibilityLiveRegion:"polite",style:[text(m.meta),{marginTop:m.acts.marginTop,color:t.colors.alert}],children:error}):null]})]}),price2||wasPrice?/* @__PURE__ */jsxs(View,{style:{marginLeft:side+gx,flexDirection:"row",flexWrap:"wrap",alignItems:"baseline",columnGap:m.end.gap[0],rowGap:m.end.gap[1]},children:[price2?/* @__PURE__ */jsx(Text,{testID:part2("price"),style:text(m.price),children:price2}):null,wasPrice?/* @__PURE__ */jsx(Text,{style:text(m.was),children:wasPrice}):null]}):null]})}function Action({action:action,testID:testID,quiet:quiet,web:web=false}){let t=useTheme(),m=
|
|
86
|
+
/* @__PURE__ */jsx(Text,{style:text(m.nameText),children:name}),badge?/* @__PURE__ */jsx(Pill,{label:badge.label,tone:badge.tone??"rx"}):null]}),metaEl,stepper||remove?/* @__PURE__ */jsxs(View,{style:{flexDirection:"row",alignItems:"center",...actions&&actions.length>1?{flexWrap:"wrap",rowGap:m.acts.gap[1]}:{},columnGap:m.acts.gap[0],marginTop:m.acts.marginTop},children:[stepper,remove]}):null,error?/* @__PURE__ */jsx(Text,{accessibilityRole:"alert",accessibilityLiveRegion:"polite",style:[text(m.meta),{marginTop:m.acts.marginTop,color:t.colors.alert}],children:error}):null]})]}),price2||wasPrice?/* @__PURE__ */jsxs(View,{style:{marginLeft:side+gx,flexDirection:"row",flexWrap:"wrap",alignItems:"baseline",columnGap:m.end.gap[0],rowGap:m.end.gap[1]},children:[price2?/* @__PURE__ */jsx(Text,{testID:part2("price"),style:text(m.price),children:price2}):null,wasPrice?/* @__PURE__ */jsx(Text,{style:text(m.was),children:wasPrice}):null]}):null]})}function Action({action:action,testID:testID,quiet:quiet,web:web=false}){let t=useTheme(),m=blockMetrics(t,orderBlockMetrics),q=blockMetrics(t,orderQuietBlockMetrics),w=blockMetrics(t,orderWebBlockMetrics),reduced=useRnReduced(t),off=action.disabled===true||action.busy===true,[box,words2]=web?action.tone==="link"?[w.link,w.linkText]:action.tone==="go"?[w.go,w.goText]:[w.plain,w.plainText]:action.tone==="link"?[q.link,q.linkText]:action.tone==="go"?[m.go,m.goText]:quiet?[q.plain,q.plainText]:[m.plain,m.plainText],label=rnText(t,textPartSpec(t,words2)),iconSize=web?w.icon.w:quiet?q.icon.w:m.icon.w,ring=web?rnRing(t,box):null;if(web){let settles=action.tone!=="link"&&!reduced;/* @__PURE__ */
|
|
87
87
|
return jsxs(Pressable,{testID:testID,onPress:off?void 0:action.onPress,disabled:off,hitSlop:slopFor(box.h),accessibilityRole:"button",accessibilityLabel:action.label,accessibilityState:{disabled:off,busy:action.busy===true},style:({pressed:pressed})=>[rnBox(t,box),{flexDirection:"row",alignItems:"center",justifyContent:"center"},off?{opacity:DISABLED_OPACITY}:null,pressed&&settles?{transform:[{scale:w.pressScale}]}:null],children:[action.icon?/* @__PURE__ */jsx(BlockIcon,{icon:action.icon,size:iconSize,color:typeof label.color=="string"?label.color:void 0}):null,
|
|
88
88
|
/* @__PURE__ */jsx(Text,{tier:"control",numberOfLines:1,style:label,children:action.label}),ring?/* @__PURE__ */jsx(View,{pointerEvents:"none",style:ring}):null]})}/* @__PURE__ */
|
|
89
89
|
return jsxs(Pressable,{testID:testID,onPress:off?void 0:action.onPress,disabled:off,hitSlop:slopFor(box.h),accessibilityRole:"button",accessibilityLabel:action.label,accessibilityState:{disabled:off,busy:action.busy===true},style:[rnBox(t,box),quiet?{flexShrink:1,minWidth:0}:{flex:1,minWidth:0},{flexDirection:"row",alignItems:"center",justifyContent:"center"},off?{opacity:DISABLED_OPACITY}:null],children:[action.icon?/* @__PURE__ */jsx(BlockIcon,{icon:action.icon,size:iconSize,color:typeof label.color=="string"?label.color:void 0}):null,
|
|
90
|
-
/* @__PURE__ */jsx(Text,{tier:"control",numberOfLines:1,style:label,children:action.label})]})}function Shot({shot:shot,pressable:pressable,testID:testID,onMeasure:onMeasure,quiet:quiet,web:web=false}){let t=useTheme(),m=
|
|
91
|
-
return jsx(View,{testID:testID,style:[rnBox(t,q.shot),{width:q.shot.w,height:q.shot.h,overflow:"hidden"}],children:/* @__PURE__ */jsx(Image,{source:{uri:src},accessibilityLabel:alt,accessible:!!alt,onError:()=>{setFailed(src),shot.onError?.(src)},resizeMode:q.shotImg.fit==="contain"?"contain":"cover",style:[{position:"absolute",top:pt,right:pr,bottom:pb,left:pl},blend]})})}function WebSquare({shot:shot,alt:alt,testID:testID}){let t=useTheme(),w=
|
|
92
|
-
return jsx(View,{style:{margin:-band,padding:band,borderRadius:(w.sq.radius[0]??0)+band,backgroundColor:colorOf(t,w.card.bg)||void 0},children:/* @__PURE__ */jsx(View,{testID:testID,accessible:!src&&!!alt,accessibilityRole:!src&&alt?"image":void 0,accessibilityLabel:src?void 0:alt,style:[rnBox(t,w.sq),{width:w.sq.w,height:w.sq.h,overflow:"hidden",alignItems:"center",justifyContent:"center"},!src&&shot.tint!==void 0?{backgroundColor:shot.tint}:null],children:src?/* @__PURE__ */jsx(Image,{source:{uri:src},accessibilityLabel:alt,accessible:!!alt,onError:()=>{setFailed(src),shot.onError?.(src)},resizeMode:w.imgFit,style:[{position:"absolute",top:inset,right:inset,bottom:inset,left:inset},blend]}):/* @__PURE__ */jsx(BlockIcon,{icon:shot.icon??UI_RN_ICON_BOX,size:shot.iconSize??icon.w,color:shot.iconColor??colorOf(t,icon.color)})})})}function gridRows(items,columns){let rows=[];for(let i=0;i<items.length;i+=columns){let row=items.slice(i,i+columns);for(;row.length<columns;)row.push(null);rows.push(row)}return rows}function OrderRow(props){let{title:title,meta:meta,metaLink:metaLink,notes:notes,total:total,status:status,shots:shots=[],actions:actions=[],onPress:onPress,accessibilityLabel:accessibilityLabel,error:error,loading:loading=false,loadingLabel:loadingLabel,actionGrid:actionGrid=false,variant:variant="standard",onShotMeasure:onShotMeasure,testID:testID,style:style}=props,t=useTheme(),m=
|
|
90
|
+
/* @__PURE__ */jsx(Text,{tier:"control",numberOfLines:1,style:label,children:action.label})]})}function Shot({shot:shot,pressable:pressable,testID:testID,onMeasure:onMeasure,quiet:quiet,web:web=false}){let t=useTheme(),m=blockMetrics(t,orderBlockMetrics),q=blockMetrics(t,orderQuietBlockMetrics),w=blockMetrics(t,orderWebBlockMetrics),reduced=useRnReduced(t),ref=useRef(null),p=t.metrics.thumbnail.sm,sqInset=w.sq.w*w.imgInset,hasSrc=!!shot.src,sqSide=w.sq.h,frame=useMemo(()=>web?{padding:[sqInset,sqInset,sqInset,sqInset],h:sqSide}:quiet&&hasSrc?q.shotImg:hasSrc?p.frame:p.empty,[web,sqInset,sqSide,quiet,hasSrc,q,p]),measure=useCallback(()=>new Promise(resolve=>{let v=ref.current;if(!v||typeof v.measureInWindow!="function"){resolve(null);return}let[pt=0,pr=0,pb=0,pl=0]=frame.padding;v.measureInWindow((x,y,width,height)=>{resolve(width>0||height>0?{x:x+pl,y:y+pt,width:Math.max(0,width-pl-pr),height:Math.max(0,height-pt-pb)}:null)})}),[frame]),key=shot.key;useEffect(()=>{if(onMeasure)return onMeasure(key,measure),()=>onMeasure(key,null)},[onMeasure,key,measure]);let live=pressable&&shot.onPress!==void 0,art=web?/* @__PURE__ */jsx(WebSquare,{shot:shot,alt:live?void 0:shot.alt,testID:live||onMeasure?void 0:testID}):quiet?/* @__PURE__ */jsx(Square2,{shot:shot,alt:live?void 0:shot.alt,testID:live||onMeasure?void 0:testID}):/* @__PURE__ */jsx(BlockThumbnail,{size:"sm",src:shot.src,alt:live?void 0:shot.alt,icon:shot.icon,iconSize:shot.iconSize,tint:shot.tint,iconColor:shot.iconColor,onError:shot.onError,testID:live||onMeasure?void 0:testID});return live?/* @__PURE__ */jsx(Pressable,{ref:ref,collapsable:false,testID:testID,onPress:shot.onPress,hitSlop:slopFor(frame.h),accessibilityRole:"button",accessibilityLabel:shot.alt,style:({pressed:pressed})=>pressed&&!reduced?{transform:[{scale:m.shotPressScale}]}:null,children:art}):onMeasure?/* @__PURE__ */jsx(View,{ref:ref,collapsable:false,testID:testID,children:art}):art}function Square2({shot:shot,alt:alt,testID:testID}){let t=useTheme(),q=blockMetrics(t,orderQuietBlockMetrics),[failed,setFailed]=useState(null),src=shot.src&&failed!==shot.src?shot.src:null;if(!src)/* @__PURE__ */return jsx(BlockThumbnail,{size:"sm",src:null,alt:alt,icon:shot.icon,iconSize:shot.iconSize,tint:shot.tint,iconColor:shot.iconColor,testID:testID});let[pt=0,pr=0,pb=0,pl=0]=q.shotImg.padding,blend=q.shotBlend==="multiply"?{mixBlendMode:"multiply"}:null;/* @__PURE__ */
|
|
91
|
+
return jsx(View,{testID:testID,style:[rnBox(t,q.shot),{width:q.shot.w,height:q.shot.h,overflow:"hidden"}],children:/* @__PURE__ */jsx(Image,{source:{uri:src},accessibilityLabel:alt,accessible:!!alt,onError:()=>{setFailed(src),shot.onError?.(src)},resizeMode:q.shotImg.fit==="contain"?"contain":"cover",style:[{position:"absolute",top:pt,right:pr,bottom:pb,left:pl},blend]})})}function WebSquare({shot:shot,alt:alt,testID:testID}){let t=useTheme(),w=blockMetrics(t,orderWebBlockMetrics),icon=t.metrics.thumbnail.sm.icon,[failed,setFailed]=useState(null),src=shot.src&&failed!==shot.src?shot.src:null,inset=w.sq.w*w.imgInset,blend=w.imgBlend==="multiply"?{mixBlendMode:"multiply"}:null,band=w.sqRing;/* @__PURE__ */
|
|
92
|
+
return jsx(View,{style:{margin:-band,padding:band,borderRadius:(w.sq.radius[0]??0)+band,backgroundColor:colorOf(t,w.card.bg)||void 0},children:/* @__PURE__ */jsx(View,{testID:testID,accessible:!src&&!!alt,accessibilityRole:!src&&alt?"image":void 0,accessibilityLabel:src?void 0:alt,style:[rnBox(t,w.sq),{width:w.sq.w,height:w.sq.h,overflow:"hidden",alignItems:"center",justifyContent:"center"},!src&&shot.tint!==void 0?{backgroundColor:shot.tint}:null],children:src?/* @__PURE__ */jsx(Image,{source:{uri:src},accessibilityLabel:alt,accessible:!!alt,onError:()=>{setFailed(src),shot.onError?.(src)},resizeMode:w.imgFit,style:[{position:"absolute",top:inset,right:inset,bottom:inset,left:inset},blend]}):/* @__PURE__ */jsx(BlockIcon,{icon:shot.icon??UI_RN_ICON_BOX,size:shot.iconSize??icon.w,color:shot.iconColor??colorOf(t,icon.color)})})})}function gridRows(items,columns){let rows=[];for(let i=0;i<items.length;i+=columns){let row=items.slice(i,i+columns);for(;row.length<columns;)row.push(null);rows.push(row)}return rows}function OrderRow(props){let{title:title,meta:meta,metaLink:metaLink,notes:notes,total:total,status:status,shots:shots=[],actions:actions=[],onPress:onPress,accessibilityLabel:accessibilityLabel,error:error,loading:loading=false,loadingLabel:loadingLabel,actionGrid:actionGrid=false,variant:variant="standard",onShotMeasure:onShotMeasure,testID:testID,style:style}=props,t=useTheme(),m=blockMetrics(t,orderBlockMetrics),q=blockMetrics(t,orderQuietBlockMetrics),w=blockMetrics(t,orderWebBlockMetrics),quiet=variant==="quiet",web=variant==="web",text=p=>rnText(t,textPartSpec(t,p));if(loading)/* @__PURE__ */
|
|
93
93
|
return jsx(View,{testID:testID,style:[rnBox(t,web?w.card:m.card),style],children:/* @__PURE__ */jsx(Skeleton,{lines:3,label:loadingLabel})});if(web){let[rt=0]=w.card.radius,lifted=onPress?{zIndex:1}:null;/* @__PURE__ */
|
|
94
94
|
return jsx(View,{testID:testID,style:[{borderRadius:rt,backgroundColor:colorOf(t,w.card.bg)||void 0},rnShadow(w.lift),style],children:/* @__PURE__ */jsxs(View,{style:[rnBox(t,w.card),{flexDirection:"row",alignItems:w.card.center?"center":"flex-start"}],children:[onPress?/* @__PURE__ */jsx(Pressable,{onPress:onPress,accessibilityRole:"button",accessibilityLabel:accessibilityLabel,style:{position:"absolute",top:0,right:0,bottom:0,left:0,borderRadius:rt}}):null,shots.length>0?/* @__PURE__ */jsx(View,{style:[{flexDirection:"row",width:w.shots.w},lifted],children:shots.map((s,i)=>/* @__PURE__ */jsx(View,{style:i>0?{marginLeft:-w.sqOverlap}:null,children:/* @__PURE__ */jsx(Shot,{web:true,quiet:false,shot:s,pressable:onPress===void 0,testID:itemTestID(testID===void 0?void 0:`${testID}-shot`,s.key,s.testID),onMeasure:onShotMeasure})},s.key))}):null,
|
|
95
95
|
/* @__PURE__ */jsxs(View,{pointerEvents:"box-none",style:{flex:1,minWidth:0,rowGap:w.text.gap[1]},children:[
|
|
@@ -110,7 +110,7 @@ return jsxs(View,{testID:testID,style:[rnBox(t,m.card),{columnGap:0},style],chil
|
|
|
110
110
|
/* @__PURE__ */jsxs(View,{style:{flex:1,minWidth:0},children:[
|
|
111
111
|
/* @__PURE__ */jsx(Text,{style:text(m.jumpKicker),children:jump.kicker}),
|
|
112
112
|
/* @__PURE__ */jsx(Text,{style:text(m.jumpTitle),children:jump.title})]}),
|
|
113
|
-
/* @__PURE__ */jsx(Text,{style:text(m.jumpGo),children:jump.go})]});return jump.onPress?/* @__PURE__ */jsx(Pressable,{testID:testID,onPress:jump.onPress,accessibilityRole:"button",accessibilityLabel:jump.accessibilityLabel??`${jump.kicker}, ${jump.title}`,style:({pressed:pressed})=>[...strip,pressed&&!reduced?{transform:[{scale:m.jumpPressScale}]}:null],children:inner}):/* @__PURE__ */jsx(View,{testID:testID,style:strip,children:inner})}function PlanNeedCard({kicker:kicker,source:source,sources:givenSources,title:title,signals:signals,score:score,more:more,quote:quote,jump:jump,variant:variant="standard",children:children,beforeJump:beforeJump,loading:loading=false,loadingLabel:loadingLabel,testID:testID,style:style}){let t=useTheme(),plan=variant==="plan",mp=
|
|
113
|
+
/* @__PURE__ */jsx(Text,{style:text(m.jumpGo),children:jump.go})]});return jump.onPress?/* @__PURE__ */jsx(Pressable,{testID:testID,onPress:jump.onPress,accessibilityRole:"button",accessibilityLabel:jump.accessibilityLabel??`${jump.kicker}, ${jump.title}`,style:({pressed:pressed})=>[...strip,pressed&&!reduced?{transform:[{scale:m.jumpPressScale}]}:null],children:inner}):/* @__PURE__ */jsx(View,{testID:testID,style:strip,children:inner})}function PlanNeedCard({kicker:kicker,source:source,sources:givenSources,title:title,signals:signals,score:score,more:more,quote:quote,jump:jump,variant:variant="standard",children:children,beforeJump:beforeJump,loading:loading=false,loadingLabel:loadingLabel,testID:testID,style:style}){let t=useTheme(),plan=variant==="plan",mp=blockMetrics(t,needPlanBlockMetrics),m=plan?mp:blockMetrics(t,needBlockMetrics),part2=n=>testID===void 0?void 0:`${testID}-${n}`,sources=givenSources??(source?[{label:source}]:[]),text=p=>rnText(t,textPartSpec(t,p)),card=[rnBox(t,m.card),{marginTop:0},style];if(loading)/* @__PURE__ */
|
|
114
114
|
return jsx(View,{testID:testID,style:card,children:/* @__PURE__ */jsx(Skeleton,{lines:3,label:loadingLabel})});let signalText=text(m.signalText);/* @__PURE__ */
|
|
115
115
|
return jsxs(View,{testID:testID,style:card,children:[
|
|
116
116
|
/* @__PURE__ */jsxs(View,{style:{flexDirection:"row",alignItems:"center",columnGap:m.kicker.gap[0],minHeight:sources.length>0?m.kicker.h:void 0},children:[
|
|
@@ -123,45 +123,45 @@ return jsx(View,{testID:part2(givenSources?`source-${i}`:"source"),style:[rnBox(
|
|
|
123
123
|
/* @__PURE__ */jsx(View,{style:{flexShrink:1,minWidth:0,maxWidth:plan&&mp.scoreLabelMax?mp.scoreLabelMax:void 0},children:/* @__PURE__ */jsxs(Text,{style:text(m.scoreLabel),children:[score.label,score.tag?" ":null,score.tag?/* @__PURE__ */jsx(View,{testID:part2("tag"),style:rnBox(t,m.scoreTag),children:/* @__PURE__ */jsx(Text,{style:text(m.scoreTagText),children:score.tag})}):null]})}),
|
|
124
124
|
/* @__PURE__ */jsxs(View,{accessible:score.accessibilityLabel!==void 0,accessibilityLabel:score.accessibilityLabel,style:{flexShrink:0,alignItems:"flex-end"},children:[
|
|
125
125
|
/* @__PURE__ */jsxs(View,{style:{flexDirection:"row",alignItems:"center",columnGap:m.scoreNums.gap[0]},children:[score.was?/* @__PURE__ */jsx(Text,{style:text(m.scoreWas),children:score.was}):null,score.was?score.icon!==void 0?/* @__PURE__ */jsx(View,{testID:part2("arrow"),children:/* @__PURE__ */jsx(BlockIcon,{icon:score.icon,size:m.scoreArrow.w,color:colorOf(t,m.scoreArrow.color)})}):/* @__PURE__ */jsx(Glyph,{testID:part2("arrow"),icon:UI_RN_ICON_ARROW_LEFT,size:m.scoreArrow.w,color:colorOf(t,m.scoreArrow.color),style:m.scoreArrowFlip?{transform:[{rotate:"180deg"}]}:void 0}):null,
|
|
126
|
-
/* @__PURE__ */jsxs(Text,{style:text(m.scoreNow),children:[score.now,score.of?/* @__PURE__ */jsx(Text,{style:text(m.scoreOf),children:score.of}):null]})]}),score.since?/* @__PURE__ */jsx(Text,{style:[text(m.scoreSince),{marginTop:m.scoreSince.marginTop}],children:score.since}):null]})]}):null,plan&"e?/* @__PURE__ */jsx(Quote,{quote:quote,m:mp,testID:part2("quote")}):null,plan?beforeJump:null,plan&&jump?/* @__PURE__ */jsx(Jump,{jump:jump,m:mp,testID:part2("jump")}):null,children]})}function runsOf(note){return(typeof note=="string"?[note]:note).map(r=>typeof r=="string"?{text:r}:r)}function PriceSummary({rows:rows,total:total,note:note,...rest}){let t=useTheme();if(note===void 0||note.length===0||rest.loading)/* @__PURE__ */return jsx(SummaryList,{...rest,rows:rows,total:total??false});let{testID:testID,style:style,...list}=rest,m=
|
|
126
|
+
/* @__PURE__ */jsxs(Text,{style:text(m.scoreNow),children:[score.now,score.of?/* @__PURE__ */jsx(Text,{style:text(m.scoreOf),children:score.of}):null]})]}),score.since?/* @__PURE__ */jsx(Text,{style:[text(m.scoreSince),{marginTop:m.scoreSince.marginTop}],children:score.since}):null]})]}):null,plan&"e?/* @__PURE__ */jsx(Quote,{quote:quote,m:mp,testID:part2("quote")}):null,plan?beforeJump:null,plan&&jump?/* @__PURE__ */jsx(Jump,{jump:jump,m:mp,testID:part2("jump")}):null,children]})}function runsOf(note){return(typeof note=="string"?[note]:note).map(r=>typeof r=="string"?{text:r}:r)}function PriceSummary({rows:rows,total:total,note:note,...rest}){let t=useTheme();if(note===void 0||note.length===0||rest.loading)/* @__PURE__ */return jsx(SummaryList,{...rest,rows:rows,total:total??false});let{testID:testID,style:style,...list}=rest,m=blockMetrics(t,priceBlockMetrics),own=(row,i)=>({...row,testID:itemTestID(testID,row.key??i,row.testID)}),strong=rnText(t,textPartSpec(t,m.noteStrong));/* @__PURE__ */
|
|
127
127
|
return jsxs(View,{testID:testID,style:style,children:[
|
|
128
128
|
/* @__PURE__ */jsx(SummaryList,{...list,rows:rows.map((r,i)=>own(r,i)),total:total?own({...total,key:total.key??"total"},"total"):false}),
|
|
129
|
-
/* @__PURE__ */jsx(Text,{testID:testID===void 0?void 0:`${testID}-note`,style:[rnText(t,textPartSpec(t,m.note)),{marginTop:m.note.marginTop}],children:runsOf(note).map((r,i)=>r.strong?/* @__PURE__ */jsx(Text,{style:strong,children:r.text},i):r.text)})]})}var THUMBNAIL_SIZE={tile:"md",row:"xs",card:"lg"};function StepButton({icon:icon,label:label,onPress:onPress,disabled:disabled,color:color,testID:testID}){let t=useTheme(),c=
|
|
130
|
-
return jsx(Pressable,{testID:testID,onPress:disabled?void 0:onPress,disabled:disabled,accessibilityRole:"button",accessibilityLabel:label,accessibilityState:disabled?{disabled:true}:void 0,hitSlop:slopFor(c.stepButton.w),style:{width:c.stepButton.w,height:c.stepButton.h,borderRadius:c.stepButton.radius[0],alignItems:"center",justifyContent:"center"},children:/* @__PURE__ */jsx(Glyph,{icon:icon==="minus"?UI_RN_ICON_MINUS:UI_RN_ICON_PLUS,size:c.stepIcon.w,color:color})})}function CardStepper({q:q,blend:blend,lift:lift,testID:testID}){let t=useTheme(),c=
|
|
131
|
-
return jsx(View,{testID:testID,accessibilityLabel:q.label,style:[at,{borderRadius:c.stepButton.radius[0]},fill?{backgroundColor:fill}:null,lift?rnShadow({...blend?
|
|
129
|
+
/* @__PURE__ */jsx(Text,{testID:testID===void 0?void 0:`${testID}-note`,style:[rnText(t,textPartSpec(t,m.note)),{marginTop:m.note.marginTop}],children:runsOf(note).map((r,i)=>r.strong?/* @__PURE__ */jsx(Text,{style:strong,children:r.text},i):r.text)})]})}var THUMBNAIL_SIZE={tile:"md",row:"xs",card:"lg"};function StepButton({icon:icon,label:label,onPress:onPress,disabled:disabled,color:color,testID:testID}){let t=useTheme(),c=blockMetrics(t,productCardBlockMetrics);/* @__PURE__ */
|
|
130
|
+
return jsx(Pressable,{testID:testID,onPress:disabled?void 0:onPress,disabled:disabled,accessibilityRole:"button",accessibilityLabel:label,accessibilityState:disabled?{disabled:true}:void 0,hitSlop:slopFor(c.stepButton.w),style:{width:c.stepButton.w,height:c.stepButton.h,borderRadius:c.stepButton.radius[0],alignItems:"center",justifyContent:"center"},children:/* @__PURE__ */jsx(Glyph,{icon:icon==="minus"?UI_RN_ICON_MINUS:UI_RN_ICON_PLUS,size:c.stepIcon.w,color:color})})}function CardStepper({q:q,blend:blend,lift:lift,testID:testID}){let t=useTheme(),c=blockMetrics(t,productCardBlockMetrics),min=q.min??0,max=q.max??Number.POSITIVE_INFINITY,part2=n=>testID===void 0?void 0:`${testID}-${n}`,at={position:"absolute",right:c.stepAt.right,bottom:c.stepAt.bottom};if(q.value<=0){let fill=partFill(t,c.step.bg);/* @__PURE__ */
|
|
131
|
+
return jsx(View,{testID:testID,accessibilityLabel:q.label,style:[at,{borderRadius:c.stepButton.radius[0]},fill?{backgroundColor:fill}:null,lift?rnShadow({...blend?blockMetrics(t,productBlendBlockMetrics).lift:c.lift}):null],children:/* @__PURE__ */jsx(StepButton,{icon:"plus",label:q.moreLabel,onPress:()=>stepTo(q,Math.min(max,q.value+1)),disabled:q.value>=max,color:colorOf(t,c.step.color),testID:part2("more")})})}let ink=colorOf(t,c.stepIn.color);/* @__PURE__ */
|
|
132
132
|
return jsxs(View,{testID:testID,accessibilityLabel:q.label,style:[at,rnBox(t,c.stepIn),{flexDirection:"row",alignItems:"center",width:c.stepIn.w,height:c.stepIn.h}],children:[
|
|
133
133
|
/* @__PURE__ */jsx(StepButton,{icon:"minus",label:q.fewerLabel,onPress:()=>stepTo(q,Math.max(min,q.value-1)),disabled:q.value<=min,color:ink,testID:part2("fewer")}),
|
|
134
134
|
/* @__PURE__ */jsx(Text,{testID:part2("count"),accessibilityLiveRegion:"polite",style:[rnText(t,textPartSpec(t,c.count)),{flex:1,textAlign:"center"}],children:q.value}),
|
|
135
|
-
/* @__PURE__ */jsx(StepButton,{icon:"plus",label:q.moreLabel,onPress:()=>stepTo(q,Math.min(max,q.value+1)),disabled:q.value>=max,color:ink,testID:part2("more")})]})}function CardPill({action:action,blend:blend,testID:testID}){let t=useTheme(),c=
|
|
135
|
+
/* @__PURE__ */jsx(StepButton,{icon:"plus",label:q.moreLabel,onPress:()=>stepTo(q,Math.min(max,q.value+1)),disabled:q.value>=max,color:ink,testID:part2("more")})]})}function CardPill({action:action,blend:blend,testID:testID}){let t=useTheme(),c=blockMetrics(t,productCardBlockMetrics),bl=blockMetrics(t,productBlendBlockMetrics),reduced=useRnReduced(t),kind=action.kind??"refill",[box,words2,settle]=kind==="manage"?[c.pillSoft,c.pillSoftText,c.pillPressScale]:kind==="inCart"?blend?[bl.pillOn,bl.pillOnText,bl.pillPressScale]:[c.pillOn,c.pillOnText,c.pillPressScale]:blend?[bl.pill,bl.pillText,bl.pillPressScale]:[c.pill,c.pillText,c.pillPressScale],label=rnText(t,textPartSpec(t,words2)),ring=rnRing(t,box),off=action.disabled===true||action.busy===true;/* @__PURE__ */
|
|
136
136
|
return jsxs(Pressable,{testID:testID,onPress:off?void 0:action.onPress,disabled:off,accessibilityRole:kind==="refill"?"button":"link",accessibilityLabel:action.label,accessibilityState:{disabled:off,busy:action.busy===true},hitSlop:slopFor(box.minHeight),style:({pressed:pressed})=>[{position:"absolute",right:c.pillAt.right,bottom:c.pillAt.bottom,flexDirection:"row",alignItems:"center"},rnBox(t,box),off?{opacity:DISABLED_OPACITY}:null,pressed&&!reduced&&!off?{transform:[{scale:settle}]}:null],children:[action.icon?/* @__PURE__ */jsx(BlockIcon,{icon:action.icon,size:c.pillIcon.w,color:typeof label.color=="string"?label.color:void 0}):null,
|
|
137
|
-
/* @__PURE__ */jsx(Text,{tier:"control",numberOfLines:1,style:label,children:action.label}),ring?/* @__PURE__ */jsx(View,{pointerEvents:"none",style:ring}):null]})}function BlendPhoto({src:src,alt:alt,fallback:fallback,onError:onError,testID:testID}){let t=useTheme(),bl=
|
|
138
|
-
return jsx(View,{testID:testID,style:[rnBox(t,frame),{width:"100%",aspectRatio:1,overflow:"hidden"}],children:/* @__PURE__ */jsx(Image,{source:{uri:photo},accessibilityLabel:alt,accessible:!!alt,onError:()=>{setFailed(photo),onError?.(photo)},resizeMode:t.metrics.thumbnail.lg.img.fit==="contain"?"contain":"cover",style:[{position:"absolute",top:pt,right:pr,bottom:pb,left:pl},blendStyle]})})}function webInsetOf(w,tagged,even,white){return even?w.imgInsetEven:tagged?w.imgInsetTag:white?w.imgInsetWhite:w.imgInset}function webInset(t,tagged,side,even=false,white=false){let w=
|
|
139
|
-
return jsx(Pressable,{testID:testID,onPress:disabled?void 0:onPress,disabled:disabled,accessibilityRole:"button",accessibilityLabel:label,accessibilityState:disabled?{disabled:true}:void 0,hitSlop:slopFor(w.stepButton.w),style:({pressed:pressed})=>[{width:w.stepButton.w,height:w.stepButton.h,borderRadius:w.stepButton.radius[0],alignItems:"center",justifyContent:"center"},pressed&&!reduced&&!disabled?{transform:[{scale:settle}]}:null],children:/* @__PURE__ */jsx(Glyph,{icon:icon==="minus"?UI_RN_ICON_MINUS:UI_RN_ICON_PLUS,size:size,color:color})})}function WebStepper({q:q,lift:lift,testID:testID}){let t=useTheme(),w=
|
|
137
|
+
/* @__PURE__ */jsx(Text,{tier:"control",numberOfLines:1,style:label,children:action.label}),ring?/* @__PURE__ */jsx(View,{pointerEvents:"none",style:ring}):null]})}function BlendPhoto({src:src,alt:alt,fallback:fallback,onError:onError,testID:testID}){let t=useTheme(),bl=blockMetrics(t,productBlendBlockMetrics),frame=t.metrics.thumbnail.lg.frame,[failed,setFailed]=useState(null),photo=src&&failed!==src?src:null;if(!photo)/* @__PURE__ */return jsx(BlockThumbnail,{size:"lg",src:null,alt:alt,icon:fallback?.icon,iconSize:fallback?.iconSize,tint:fallback?.tint,iconColor:fallback?.iconColor,testID:testID});let[pt=0,pr=0,pb=0,pl=0]=bl.img.padding.map((v,i)=>v+(frame.padding[i]??0)),blendStyle=bl.imgBlend==="multiply"?{mixBlendMode:"multiply"}:null;/* @__PURE__ */
|
|
138
|
+
return jsx(View,{testID:testID,style:[rnBox(t,frame),{width:"100%",aspectRatio:1,overflow:"hidden"}],children:/* @__PURE__ */jsx(Image,{source:{uri:photo},accessibilityLabel:alt,accessible:!!alt,onError:()=>{setFailed(photo),onError?.(photo)},resizeMode:t.metrics.thumbnail.lg.img.fit==="contain"?"contain":"cover",style:[{position:"absolute",top:pt,right:pr,bottom:pb,left:pl},blendStyle]})})}function webInsetOf(w,tagged,even,white){return even?w.imgInsetEven:tagged?w.imgInsetTag:white?w.imgInsetWhite:w.imgInset}function webInset(t,tagged,side,even=false,white=false){let w=blockMetrics(t,productWebBlockMetrics),i=webInsetOf(w,tagged,even,white);return i.share.map((sh,k2)=>sh*side+(i.px[k2]??0))}function WebStepButton({icon:icon,size:size,label:label,onPress:onPress,disabled:disabled,color:color,settle:settle,testID:testID}){let t=useTheme(),w=blockMetrics(t,productWebBlockMetrics),reduced=useRnReduced(t);/* @__PURE__ */
|
|
139
|
+
return jsx(Pressable,{testID:testID,onPress:disabled?void 0:onPress,disabled:disabled,accessibilityRole:"button",accessibilityLabel:label,accessibilityState:disabled?{disabled:true}:void 0,hitSlop:slopFor(w.stepButton.w),style:({pressed:pressed})=>[{width:w.stepButton.w,height:w.stepButton.h,borderRadius:w.stepButton.radius[0],alignItems:"center",justifyContent:"center"},pressed&&!reduced&&!disabled?{transform:[{scale:settle}]}:null],children:/* @__PURE__ */jsx(Glyph,{icon:icon==="minus"?UI_RN_ICON_MINUS:UI_RN_ICON_PLUS,size:size,color:color})})}function WebStepper({q:q,lift:lift,testID:testID}){let t=useTheme(),w=blockMetrics(t,productWebBlockMetrics),min=q.min??0,max=q.max??Number.POSITIVE_INFINITY,part2=n=>testID===void 0?void 0:`${testID}-${n}`;if(q.value<=0)/* @__PURE__ */
|
|
140
140
|
return jsx(View,{testID:testID,accessibilityLabel:q.label,style:rnBox(t,lift?w.add:{...w.add,shadow:{...w.add.shadow,x:0,y:0,blur:0}}),children:/* @__PURE__ */jsx(WebStepButton,{icon:"plus",size:w.addIcon.w,label:q.moreLabel,onPress:()=>stepTo(q,Math.min(max,q.value+1)),disabled:q.value>=max,color:colorOf(t,w.add.color),settle:w.addPressScale,testID:part2("more")})});let ink=colorOf(t,w.step.color);/* @__PURE__ */
|
|
141
141
|
return jsxs(View,{testID:testID,accessibilityLabel:q.label,style:[rnBox(t,w.step),{flexDirection:"row",alignItems:"center",height:w.step.h}],children:[
|
|
142
142
|
/* @__PURE__ */jsx(WebStepButton,{icon:"minus",size:w.stepIcon.w,label:q.fewerLabel,onPress:()=>stepTo(q,Math.max(min,q.value-1)),disabled:q.value<=min,color:ink,settle:w.stepPressScale,testID:part2("fewer")}),
|
|
143
143
|
/* @__PURE__ */jsx(Text,{testID:part2("count"),accessibilityLiveRegion:"polite",style:[rnText(t,textPartSpec(t,w.count)),{minWidth:w.step.w-2*w.stepButton.w,textAlign:"center"}],children:q.value}),
|
|
144
|
-
/* @__PURE__ */jsx(WebStepButton,{icon:"plus",size:w.stepIcon.w,label:q.moreLabel,onPress:()=>stepTo(q,Math.min(max,q.value+1)),disabled:q.value>=max,color:ink,settle:w.stepPressScale,testID:part2("more")})]})}function WebPill({action:action,testID:testID}){let t=useTheme(),w=
|
|
144
|
+
/* @__PURE__ */jsx(WebStepButton,{icon:"plus",size:w.stepIcon.w,label:q.moreLabel,onPress:()=>stepTo(q,Math.min(max,q.value+1)),disabled:q.value>=max,color:ink,settle:w.stepPressScale,testID:part2("more")})]})}function WebPill({action:action,testID:testID}){let t=useTheme(),w=blockMetrics(t,productWebBlockMetrics),reduced=useRnReduced(t),kind=action.kind??"refill",[box,words2]=kind==="manage"?[w.pillSoft,w.pillSoftText]:kind==="inCart"?[w.pillOn,w.pillOnText]:[w.pill,w.pillText],label=rnText(t,textPartSpec(t,words2)),ring=rnRing(t,box),off=action.disabled===true||action.busy===true;/* @__PURE__ */
|
|
145
145
|
return jsxs(Pressable,{testID:testID,onPress:off?void 0:action.onPress,disabled:off,accessibilityRole:kind==="refill"?"button":"link",accessibilityLabel:action.label,accessibilityState:{disabled:off,busy:action.busy===true},hitSlop:slopFor(box.minHeight),style:({pressed:pressed})=>[{flexDirection:"row",alignItems:"center",justifyContent:"center"},rnBox(t,box),off?{opacity:DISABLED_OPACITY}:null,pressed&&!reduced&&!off?{transform:[{scale:w.pillPressScale}]}:null],children:[action.icon?/* @__PURE__ */jsx(BlockIcon,{icon:action.icon,size:w.pillIcon.w,color:typeof label.color=="string"?label.color:void 0}):null,
|
|
146
|
-
/* @__PURE__ */jsx(Text,{tier:"control",numberOfLines:1,style:label,children:action.label}),ring?/* @__PURE__ */jsx(View,{pointerEvents:"none",style:ring}):null]})}function WebPhoto({src:src,alt:alt,tagged:tagged,even:even,white:white,fallback:fallback,onError:onError,testID:testID}){let t=useTheme(),w=
|
|
147
|
-
return jsx(View,{testID:testID,style:[rnBox(t,w.square),{width:"100%",aspectRatio:1,overflow:"hidden"},white?{backgroundColor:colorOf(t,w.groundWhite)}:null,!photo&&fallback?.tint?{backgroundColor:fallback.tint}:null],children:photo?/* @__PURE__ */jsx(Image,{source:{uri:photo},accessibilityLabel:alt,accessible:!!alt,onError:()=>{setFailed(photo),onError?.(photo)},resizeMode:w.imgFit,style:[{position:"absolute",top:pct(0),right:pct(1),bottom:pct(2),left:pct(3),marginTop:i.px[0]??0,marginRight:i.px[1]??0,marginBottom:i.px[2]??0,marginLeft:i.px[3]??0},blendStyle]}):fallback?.icon?/* @__PURE__ */jsx(View,{style:{flex:1,alignItems:"center",justifyContent:"center"},children:/* @__PURE__ */jsx(BlockIcon,{icon:fallback.icon,size:fallback.iconSize??w.addIcon.w,color:fallback.iconColor})}):null})}function WebCard({props:props,media:media}){let{name:name,image:image,imageAlt:imageAlt,meta:meta,price:price2,wasPrice:wasPrice,per:per,badge:badge,tag:tag,stepper:stepper,addLift:addLift=true,fallback:fallback,onImageError:onImageError,action:action,onPress:onPress,loading:loading=false,loadingLabel:loadingLabel,ground:ground="shelf",imageInset:imageInset="standard",testID:testID,style:style}=props,t=useTheme(),w=
|
|
146
|
+
/* @__PURE__ */jsx(Text,{tier:"control",numberOfLines:1,style:label,children:action.label}),ring?/* @__PURE__ */jsx(View,{pointerEvents:"none",style:ring}):null]})}function WebPhoto({src:src,alt:alt,tagged:tagged,even:even,white:white,fallback:fallback,onError:onError,testID:testID}){let t=useTheme(),w=blockMetrics(t,productWebBlockMetrics),[failed,setFailed]=useState(null),photo=src&&failed!==src?src:null,i=webInsetOf(w,tagged,even,white),pct=k2=>`${Math.round((i.share[k2]??0)*1e5)/1e3}%`,blendStyle=w.imgBlend==="multiply"?{mixBlendMode:"multiply"}:null;/* @__PURE__ */
|
|
147
|
+
return jsx(View,{testID:testID,style:[rnBox(t,w.square),{width:"100%",aspectRatio:1,overflow:"hidden"},white?{backgroundColor:colorOf(t,w.groundWhite)}:null,!photo&&fallback?.tint?{backgroundColor:fallback.tint}:null],children:photo?/* @__PURE__ */jsx(Image,{source:{uri:photo},accessibilityLabel:alt,accessible:!!alt,onError:()=>{setFailed(photo),onError?.(photo)},resizeMode:w.imgFit,style:[{position:"absolute",top:pct(0),right:pct(1),bottom:pct(2),left:pct(3),marginTop:i.px[0]??0,marginRight:i.px[1]??0,marginBottom:i.px[2]??0,marginLeft:i.px[3]??0},blendStyle]}):fallback?.icon?/* @__PURE__ */jsx(View,{style:{flex:1,alignItems:"center",justifyContent:"center"},children:/* @__PURE__ */jsx(BlockIcon,{icon:fallback.icon,size:fallback.iconSize??w.addIcon.w,color:fallback.iconColor})}):null})}function WebCard({props:props,media:media}){let{name:name,image:image,imageAlt:imageAlt,meta:meta,price:price2,wasPrice:wasPrice,per:per,badge:badge,tag:tag,stepper:stepper,addLift:addLift=true,fallback:fallback,onImageError:onImageError,action:action,onPress:onPress,loading:loading=false,loadingLabel:loadingLabel,ground:ground="shelf",imageInset:imageInset="standard",testID:testID,style:style}=props,t=useTheme(),w=blockMetrics(t,productWebBlockMetrics),text=p=>rnText(t,textPartSpec(t,p)),part2=n=>testID===void 0?void 0:`${testID}-${n}`,tagInk=tag?.color??colorOf(t,w.tagIcon.color),ring=rnRing(t,w.badge),content=/* @__PURE__ */jsxs(Fragment,{children:[
|
|
148
148
|
/* @__PURE__ */jsxs(View,{ref:media,collapsable:false,style:{marginBottom:w.square.marginBottom},children:[loading?/* @__PURE__ */jsx(View,{style:{width:"100%",aspectRatio:1,borderRadius:w.square.radius[0],backgroundColor:t.colors.tintSage}}):/* @__PURE__ */jsx(WebPhoto,{src:image,alt:imageAlt,tagged:tag!==void 0,even:imageInset==="even",white:ground==="white",fallback:fallback,onError:onImageError,testID:part2("image")}),!loading&&tag?/* @__PURE__ */jsxs(View,{testID:part2("tag"),style:[rnBox(t,w.tag),{position:"absolute",left:w.tag.x,top:w.tag.y,maxWidth:"100%",flexDirection:"row",alignItems:"center",backgroundColor:mixColor(tagInk,w.tagMix,t.colors.surface,colorOf(t,w.tag.bg))}],children:[tag.icon?/* @__PURE__ */jsx(BlockIcon,{icon:tag.icon,size:w.tagIcon.w,color:tagInk}):null,
|
|
149
149
|
/* @__PURE__ */jsx(Text,{numberOfLines:1,style:text(w.tagText),children:tag.label})]}):null]}),loading?/* @__PURE__ */jsx(Skeleton,{lines:3,label:loadingLabel}):/* @__PURE__ */jsxs(View,{style:{rowGap:w.card.gap[1],marginTop:w.card.gap[1]},children:[
|
|
150
150
|
/* @__PURE__ */jsx(Text,{style:text(w.name),children:name}),price2||wasPrice||per||badge?/* @__PURE__ */jsxs(View,{style:{flexDirection:"row",flexWrap:"wrap",alignItems:"baseline",columnGap:w.price.gap[0],rowGap:w.price.gap[1]},children:[price2?/* @__PURE__ */jsx(Text,{testID:part2("price"),style:text(w.priceText),children:price2}):null,wasPrice?/* @__PURE__ */jsx(Text,{style:text(w.was),children:wasPrice}):null,per?/* @__PURE__ */jsx(Text,{style:text(w.per),children:per}):null,badge?/* @__PURE__ */jsxs(View,{testID:part2("badge"),style:[rnBox(t,w.badge),{alignSelf:"center",height:w.badge.h,flexDirection:"row",alignItems:"center"}],children:[
|
|
151
151
|
/* @__PURE__ */jsx(Text,{numberOfLines:1,style:text(w.badgeText),children:badge}),ring?/* @__PURE__ */jsx(View,{pointerEvents:"none",style:ring}):null]}):null]}):null,meta?/* @__PURE__ */jsx(Text,{style:text(w.meta),children:meta}):null]})]});/* @__PURE__ */
|
|
152
|
-
return jsxs(View,{testID:testID,style:[{rowGap:0},style],children:[onPress&&!loading?/* @__PURE__ */jsx(Pressable,{testID:part2("open"),onPress:onPress,accessibilityRole:"link",accessibilityLabel:name,children:content}):content,!loading&&(stepper||action)?/* @__PURE__ */jsx(View,{pointerEvents:"box-none",style:{position:"absolute",top:0,left:0,right:0,aspectRatio:1},children:/* @__PURE__ */jsx(View,{style:{position:"absolute",right:w.actAt.right,bottom:w.actAt.bottom,flexDirection:"row"},children:stepper?/* @__PURE__ */jsx(WebStepper,{q:stepper,lift:addLift,testID:part2("stepper")}):action?/* @__PURE__ */jsx(WebPill,{action:action,testID:part2("action")}):null})}):null]})}function ProductTile(props){let{name:name,image:image,imageAlt:imageAlt,kicker:kicker,meta:meta,price:price2,wasPrice:wasPrice,per:per,metaTone:metaTone,tag:tag,stepper:stepper,addLift:addLift=true,fallback:fallback,onImageError:onImageError,action:action,onPress:onPress,layout:layout="tile",variant:variant="standard",onImageMeasure:onImageMeasure,imageInset:imageInset,ground:ground,loading:loading=false,loadingLabel:loadingLabel,testID:testID,style:style}=props,t=useTheme(),blend=variant==="blend",web=variant==="web",tagged=tag!==void 0,media=useRef(null),frameInset=t.metrics.thumbnail.lg.frame.padding,imgInset=blend?
|
|
152
|
+
return jsxs(View,{testID:testID,style:[{rowGap:0},style],children:[onPress&&!loading?/* @__PURE__ */jsx(Pressable,{testID:part2("open"),onPress:onPress,accessibilityRole:"link",accessibilityLabel:name,children:content}):content,!loading&&(stepper||action)?/* @__PURE__ */jsx(View,{pointerEvents:"box-none",style:{position:"absolute",top:0,left:0,right:0,aspectRatio:1},children:/* @__PURE__ */jsx(View,{style:{position:"absolute",right:w.actAt.right,bottom:w.actAt.bottom,flexDirection:"row"},children:stepper?/* @__PURE__ */jsx(WebStepper,{q:stepper,lift:addLift,testID:part2("stepper")}):action?/* @__PURE__ */jsx(WebPill,{action:action,testID:part2("action")}):null})}):null]})}function ProductTile(props){let{name:name,image:image,imageAlt:imageAlt,kicker:kicker,meta:meta,price:price2,wasPrice:wasPrice,per:per,metaTone:metaTone,tag:tag,stepper:stepper,addLift:addLift=true,fallback:fallback,onImageError:onImageError,action:action,onPress:onPress,layout:layout="tile",variant:variant="standard",onImageMeasure:onImageMeasure,imageInset:imageInset,ground:ground,loading:loading=false,loadingLabel:loadingLabel,testID:testID,style:style}=props,t=useTheme(),blend=variant==="blend",web=variant==="web",tagged=tag!==void 0,media=useRef(null),frameInset=t.metrics.thumbnail.lg.frame.padding,imgInset=blend?blockMetrics(t,productBlendBlockMetrics).img.padding:t.metrics.thumbnail.lg.img.padding,measure=useCallback(()=>new Promise(resolve=>{let v=media.current;if(!v||typeof v.measureInWindow!="function"){resolve(null);return}v.measureInWindow((x,y,width,height)=>{let[pt=0,pr=0,pb=0,pl=0]=web?webInset(t,tagged,width,imageInset==="even",ground==="white"):imgInset.map((n,i)=>n+(frameInset[i]??0));resolve(width>0||height>0?{x:x+pl,y:y+pt,width:Math.max(0,width-pl-pr),height:Math.max(0,height-pt-pb)}:null)})}),[imgInset,frameInset,web,t,tagged,imageInset,ground]),measured=layout==="card"&&!loading&&onImageMeasure!==void 0;useEffect(()=>{if(!(!measured||!onImageMeasure))return onImageMeasure(measure),()=>onImageMeasure(null)},[measured,onImageMeasure,measure]);let text=p=>rnText(t,textPartSpec(t,p)),m=blockMetrics(t,productBlockMetrics),r=blockMetrics(t,productRowBlockMetrics),shot=t.metrics.thumbnail[THUMBNAIL_SIZE[layout]],part2=n=>testID===void 0?void 0:`${testID}-${n}`;if(layout==="card"&&web)/* @__PURE__ */return jsx(WebCard,{props:props,media:media});if(layout==="card"){let c=blockMetrics(t,productCardBlockMetrics),photo=loading?/* @__PURE__ */jsx(View,{style:{width:"100%",aspectRatio:1,borderRadius:shot.frame.radius[0],backgroundColor:t.colors.tintSage}}):blend?/* @__PURE__ */jsx(BlendPhoto,{src:image,alt:imageAlt,fallback:fallback,onError:onImageError,testID:part2("image")}):/* @__PURE__ */jsx(BlockThumbnail,{size:"lg",src:image,alt:imageAlt,icon:fallback?.icon,iconSize:fallback?.iconSize,tint:fallback?.tint,iconColor:fallback?.iconColor,onError:onImageError,testID:part2("image")}),content=/* @__PURE__ */jsxs(Fragment,{children:[
|
|
153
153
|
/* @__PURE__ */jsxs(View,{ref:media,collapsable:false,style:{marginBottom:shot.frame.marginBottom},children:[photo,!loading&&tag?/* @__PURE__ */jsxs(View,{testID:part2("tag"),style:[rnBox(t,c.tag),{position:"absolute",left:c.tag.x,top:c.tag.y,height:c.tag.h,flexDirection:"row",alignItems:"center"}],children:[tag.icon?/* @__PURE__ */jsx(BlockIcon,{icon:tag.icon,size:c.tagIcon.w,color:tag.color??colorOf(t,c.tagIcon.color)}):null,
|
|
154
154
|
/* @__PURE__ */jsx(Text,{numberOfLines:1,style:text(c.tagText),children:tag.label})]}):null]}),loading?/* @__PURE__ */jsx(Skeleton,{lines:3,label:loadingLabel}):/* @__PURE__ */jsxs(View,{style:{rowGap:c.card.gap[1],marginTop:c.card.gap[1]},children:[price2||wasPrice||per?/* @__PURE__ */jsxs(View,{style:{flexDirection:"row",alignItems:"baseline",columnGap:c.price.gap[0]},children:[price2?/* @__PURE__ */jsx(Text,{testID:part2("price"),style:text(c.priceText),children:price2}):null,wasPrice?/* @__PURE__ */jsx(Text,{style:text(c.was),children:wasPrice}):null,per?/* @__PURE__ */jsx(Text,{style:text(c.per),children:per}):null]}):null,
|
|
155
155
|
/* @__PURE__ */jsx(Text,{style:text(c.name),children:name}),meta?/* @__PURE__ */jsx(Text,{style:text(metaTone==="auto"?c.metaAuto:metaTone==="autoDark"?c.metaAutoDark:c.meta),children:meta}):null]})]});/* @__PURE__ */
|
|
156
156
|
return jsxs(View,{testID:testID,style:[rnBox(t,c.card),{rowGap:0},style],children:[onPress&&!loading?/* @__PURE__ */jsx(Pressable,{testID:part2("open"),onPress:onPress,accessibilityRole:"link",accessibilityLabel:name,children:content}):content,!loading&&(stepper||action)?/* @__PURE__ */jsx(View,{pointerEvents:"box-none",style:{position:"absolute",top:0,left:0,right:0,aspectRatio:1},children:stepper?/* @__PURE__ */jsx(CardStepper,{q:stepper,blend:blend,lift:addLift,testID:part2("stepper")}):action?/* @__PURE__ */jsx(CardPill,{action:action,blend:blend,testID:part2("action")}):null}):null]})}let nameText=/* @__PURE__ */jsx(Text,{style:text(layout==="row"?r.name:m.name),children:name}),nameEl=onPress?/* @__PURE__ */jsx(Pressable,{onPress:onPress,accessibilityRole:"link",accessibilityLabel:name,children:nameText}):nameText,buy=price2||action?/* @__PURE__ */jsxs(View,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",columnGap:m.buy.gap[0],marginTop:layout==="row"?0:m.buy.marginTop},children:[price2?/* @__PURE__ */jsx(Text,{style:text(m.price),children:price2}):/* @__PURE__ */jsx(View,{}),action?/* @__PURE__ */jsx(Button,{tone:"outline",size:"row",label:action.label,onPress:action.onPress,loading:action.busy,disabled:action.disabled}):null]}):null;return layout==="row"?/* @__PURE__ */jsxs(View,{testID:testID,style:[rnBox(t,r.card),{flexDirection:"row",alignItems:r.card.center?"center":"flex-start"},style],children:[loading?/* @__PURE__ */jsx(View,{style:{width:shot.frame.w,height:shot.frame.h,borderRadius:shot.frame.radius[0],backgroundColor:t.colors.tintSage}}):/* @__PURE__ */jsx(BlockThumbnail,{size:"xs",src:image,alt:imageAlt,icon:fallback?.icon,iconSize:fallback?.iconSize,tint:fallback?.tint,iconColor:fallback?.iconColor,onError:onImageError}),
|
|
157
|
-
/* @__PURE__ */jsx(View,{style:{flex:1,minWidth:0},children:loading?/* @__PURE__ */jsx(Skeleton,{lines:2,label:loadingLabel}):/* @__PURE__ */jsxs(Fragment,{children:[nameEl,meta?/* @__PURE__ */jsx(Text,{style:[text(r.meta),{marginTop:r.meta.marginTop}],children:meta}):null]})}),loading?null:buy]}):/* @__PURE__ */jsxs(View,{testID:testID,style:[rnBox(t,m.card),style],children:[loading?/* @__PURE__ */jsx(View,{style:{width:"100%",aspectRatio:1,borderRadius:shot.frame.radius[0],backgroundColor:t.colors.tintSage,marginBottom:shot.frame.marginBottom}}):/* @__PURE__ */jsx(BlockThumbnail,{size:"md",src:image,alt:imageAlt,icon:fallback?.icon,iconSize:fallback?.iconSize,tint:fallback?.tint,iconColor:fallback?.iconColor,onError:onImageError,style:{marginBottom:shot.frame.marginBottom}}),loading?/* @__PURE__ */jsx(Skeleton,{lines:3,label:loadingLabel}):/* @__PURE__ */jsxs(Fragment,{children:[kicker?/* @__PURE__ */jsx(Text,{style:text(m.kicker),children:kicker}):null,nameEl,meta?/* @__PURE__ */jsx(Text,{style:text(m.meta),children:meta}):null,buy]})]})}function rnSource3(image){return typeof image=="number"?image:typeof image=="string"?image?{uri:image}:null:image&&typeof image=="object"&&image.uri?image:null}function TipCard(props){let{number:number,title:title,text:line,foot:foot,footArrow:footArrow=false,footPress:footPress,tone:tone="y",image:image,onImageError:onImageError,icon:icon=UI_RN_ICON_LEAF,onPress:onPress,pressTarget:pressTarget="title",accessibilityLabel:accessibilityLabel,variant:variant="standard",loading:loading=false,loadingLabel:loadingLabel,testID:testID,style:style}=props,t=useTheme(),reduced=useRnReduced(t),m=
|
|
157
|
+
/* @__PURE__ */jsx(View,{style:{flex:1,minWidth:0},children:loading?/* @__PURE__ */jsx(Skeleton,{lines:2,label:loadingLabel}):/* @__PURE__ */jsxs(Fragment,{children:[nameEl,meta?/* @__PURE__ */jsx(Text,{style:[text(r.meta),{marginTop:r.meta.marginTop}],children:meta}):null]})}),loading?null:buy]}):/* @__PURE__ */jsxs(View,{testID:testID,style:[rnBox(t,m.card),style],children:[loading?/* @__PURE__ */jsx(View,{style:{width:"100%",aspectRatio:1,borderRadius:shot.frame.radius[0],backgroundColor:t.colors.tintSage,marginBottom:shot.frame.marginBottom}}):/* @__PURE__ */jsx(BlockThumbnail,{size:"md",src:image,alt:imageAlt,icon:fallback?.icon,iconSize:fallback?.iconSize,tint:fallback?.tint,iconColor:fallback?.iconColor,onError:onImageError,style:{marginBottom:shot.frame.marginBottom}}),loading?/* @__PURE__ */jsx(Skeleton,{lines:3,label:loadingLabel}):/* @__PURE__ */jsxs(Fragment,{children:[kicker?/* @__PURE__ */jsx(Text,{style:text(m.kicker),children:kicker}):null,nameEl,meta?/* @__PURE__ */jsx(Text,{style:text(m.meta),children:meta}):null,buy]})]})}function rnSource3(image){return typeof image=="number"?image:typeof image=="string"?image?{uri:image}:null:image&&typeof image=="object"&&image.uri?image:null}function TipCard(props){let{number:number,title:title,text:line,foot:foot,footArrow:footArrow=false,footPress:footPress,tone:tone="y",image:image,onImageError:onImageError,icon:icon=UI_RN_ICON_LEAF,onPress:onPress,pressTarget:pressTarget="title",accessibilityLabel:accessibilityLabel,variant:variant="standard",loading:loading=false,loadingLabel:loadingLabel,testID:testID,style:style}=props,t=useTheme(),reduced=useRnReduced(t),m=blockMetrics(t,tipBlockMetrics),ph=blockMetrics(t,tipPhotoBlockMetrics),w=blockMetrics(t,tipWebBlockMetrics),pl=blockMetrics(t,tipPlanBlockMetrics),web=variant==="web",photo=variant==="photo",plan=variant==="plan",[down,setDown]=useState(false),[failed,setFailed]=useState(null),text=p=>rnText(t,textPartSpec(t,p)),kit=photo?{...m,card:ph.card,tones:ph.tones,img:ph.img,n:ph.n,nText:ph.nText,title:ph.title,pressScale:ph.pressScale,bare:ph.bare,thumb:ph.thumb,thumbIcon:ph.thumbIcon}:plan?{...m,card:pl.card,tones:pl.tones,title:pl.title,text:pl.text,footText:pl.footText,foot:pl.foot,pressScale:1}:m,card=web?[rnBox(t,w.card),style]:[rnBox(t,kit.card),{backgroundColor:colorOf(t,kit.tones[tone])},style],aspect=web?w.imgAspect:photo?ph.imgAspect:m.img.w/m.img.h,press=web?1:kit.pressScale;if(loading)/* @__PURE__ */
|
|
158
158
|
return jsx(View,{testID:testID,style:card,children:/* @__PURE__ */jsx(Skeleton,{lines:3,label:loadingLabel})});let kn=kit.n,n=web?null:/* @__PURE__ */jsx(View,{style:[rnBox(t,kn),{position:"absolute",left:kn.x,top:kn.y,width:kn.w,height:kn.h,alignItems:"center",justifyContent:"center"}],children:/* @__PURE__ */jsx(Text,{style:text(kit.nText),children:number})}),titleText=/* @__PURE__ */jsx(Text,{style:text(web?w.title:kit.title),children:title}),cover=onPress!==void 0&&(web||pressTarget==="card"),part2=n2=>testID===void 0?void 0:`${testID}-${n2}`,given=plan?null:rnSource3(image),source=given&&failed!==image?given:null,footStyle=text(kit.footText),arrow=footArrow||footPress?/* @__PURE__ */jsx(Glyph,{icon:UI_RN_ICON_ARROW_LEFT,size:m.footArrow.w,color:typeof footStyle.color=="string"?footStyle.color:void 0,style:m.footArrowFlip?{transform:[{rotate:"180deg"}]}:void 0}):null,footText=/* @__PURE__ */jsx(Text,{style:footStyle,children:foot}),footRow={flexDirection:"row",alignItems:"center",columnGap:m.foot.gap[0]},footEl=foot&&!web&&!photo?footPress?/* @__PURE__ */jsxs(Pressable,{testID:footPress.testID??part2("foot"),onPress:footPress.onPress,accessibilityRole:"link",accessibilityLabel:footPress.accessibilityLabel??foot,hitSlop:slopFor(footStyle.lineHeight??m.footArrow.w),style:[footRow,{marginTop:"auto",paddingTop:kit.foot.padding[0],alignSelf:"flex-start",zIndex:1}],children:[footText,arrow]}):arrow?/* @__PURE__ */jsxs(View,{style:[footRow,{marginTop:"auto",paddingTop:kit.foot.padding[0]}],children:[footText,arrow]}):/* @__PURE__ */jsx(Text,{style:[footStyle,{marginTop:"auto",paddingTop:kit.foot.padding[0]}],children:foot}):null,failOn=()=>{image!=null&&(setFailed(image),onImageError?.(image))},thumbIcon=spec=>/* @__PURE__ */jsx(BlockIcon,{icon:icon,size:spec.w,color:colorOf(t,spec.color)}),top=plan?/* @__PURE__ */jsxs(View,{accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",style:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",minHeight:pl.top.h},children:[
|
|
159
159
|
/* @__PURE__ */jsx(Text,{style:text(pl.nText),children:number}),
|
|
160
160
|
/* @__PURE__ */jsx(BlockIcon,{icon:icon,size:pl.icon.w,color:colorOf(t,pl.icon.color)})]}):!web&&!source?/* @__PURE__ */jsxs(View,{testID:part2("thumb"),accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",style:[rnBox(t,kit.bare),{flexDirection:"row",justifyContent:"space-between",alignItems:"center"}],children:[
|
|
161
161
|
/* @__PURE__ */jsx(View,{style:[rnBox(t,kn),{width:kn.w,height:kn.h,alignItems:"center",justifyContent:"center"}],children:/* @__PURE__ */jsx(Text,{style:text(kit.nText),children:number})}),
|
|
162
162
|
/* @__PURE__ */jsx(View,{style:[rnBox(t,kit.thumb),{width:kit.thumb.w,height:kit.thumb.h,alignItems:"center",justifyContent:"center"}],children:thumbIcon(kit.thumbIcon)})]}):/* @__PURE__ */jsxs(View,{accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",style:[rnBox(t,web?w.img:kit.img),{width:"100%",aspectRatio:aspect,overflow:"hidden"}],children:[source?/* @__PURE__ */jsx(FadeImage,{testID:part2("image"),source:source,resizeMode:"cover",onError:failOn,style:{position:"absolute",top:0,right:0,bottom:0,left:0}},typeof image=="string"?image:JSON.stringify(image)):null,n]}),body=/* @__PURE__ */jsxs(Fragment,{children:[top,
|
|
163
163
|
/* @__PURE__ */jsx(View,{style:web?null:{marginTop:kit.title.marginTop,marginHorizontal:photo?ph.titleInset:0},children:onPress&&!cover?/* @__PURE__ */jsx(Pressable,{onPress:onPress,accessibilityRole:"button",accessibilityLabel:title,children:titleText}):titleText}),line&&!web&&!photo?/* @__PURE__ */jsx(Text,{style:[text(kit.text),{marginTop:kit.text.marginTop}],children:line}):null,footEl]});return cover&&footPress?/* @__PURE__ */jsxs(View,{testID:testID,style:[...card,down&&!reduced?{transform:[{scale:press}]}:null],children:[body,
|
|
164
|
-
/* @__PURE__ */jsx(Pressable,{testID:part2("cover"),onPress:onPress,onPressIn:()=>setDown(true),onPressOut:()=>setDown(false),accessibilityRole:"button",accessibilityLabel:accessibilityLabel??title,style:{position:"absolute",top:0,right:0,bottom:0,left:0}})]}):cover?/* @__PURE__ */jsx(Pressable,{testID:testID,onPress:onPress,accessibilityRole:"button",accessibilityLabel:accessibilityLabel??title,style:({pressed:pressed})=>[...card,pressed&&!reduced&&press!==1?{transform:[{scale:press}]}:null],children:body}):/* @__PURE__ */jsx(View,{testID:testID,style:card,children:body})}function rnSource4(image){return typeof image=="number"?image:typeof image=="string"?image?{uri:image}:null:image&&typeof image=="object"&&image.uri?image:null}function keyOf3(image){return image==null?null:typeof image=="object"?image.uri:String(image)}var linesOf=text=>text===void 0?[]:typeof text=="string"?[text]:text;function WhySheet(props){let{kind:kind,title:title,sub:sub,image:image,imageKind:imageKind="packshot",fallback:fallback,onImageError:onImageError,onClose:onClose,closeLabel:closeLabel,heading:heading,rows:rows=[],sections:sections=[],tone:tone="calm",action:action,link:link,score:score,variant:variant="standard",loading:loading=false,loadingLabel:loadingLabel,testID:testID,style:style}=props;warnUnnamedClose("WhySheet",onClose,closeLabel);let t=useTheme(),reduced=useRnReduced(t),b=
|
|
164
|
+
/* @__PURE__ */jsx(Pressable,{testID:part2("cover"),onPress:onPress,onPressIn:()=>setDown(true),onPressOut:()=>setDown(false),accessibilityRole:"button",accessibilityLabel:accessibilityLabel??title,style:{position:"absolute",top:0,right:0,bottom:0,left:0}})]}):cover?/* @__PURE__ */jsx(Pressable,{testID:testID,onPress:onPress,accessibilityRole:"button",accessibilityLabel:accessibilityLabel??title,style:({pressed:pressed})=>[...card,pressed&&!reduced&&press!==1?{transform:[{scale:press}]}:null],children:body}):/* @__PURE__ */jsx(View,{testID:testID,style:card,children:body})}function rnSource4(image){return typeof image=="number"?image:typeof image=="string"?image?{uri:image}:null:image&&typeof image=="object"&&image.uri?image:null}function keyOf3(image){return image==null?null:typeof image=="object"?image.uri:String(image)}var linesOf=text=>text===void 0?[]:typeof text=="string"?[text]:text;function WhySheet(props){let{kind:kind,title:title,sub:sub,image:image,imageKind:imageKind="packshot",fallback:fallback,onImageError:onImageError,onClose:onClose,closeLabel:closeLabel,heading:heading,rows:rows=[],sections:sections=[],tone:tone="calm",action:action,link:link,score:score,variant:variant="standard",loading:loading=false,loadingLabel:loadingLabel,testID:testID,style:style}=props;warnUnnamedClose("WhySheet",onClose,closeLabel);let t=useTheme(),reduced=useRnReduced(t),b={why:blockMetrics(t,whyBlockMetrics),whyWeb:blockMetrics(t,whyWebBlockMetrics),whyPlan:blockMetrics(t,whyPlanBlockMetrics)},web=variant==="web",plan=variant==="plan",m=web?b.whyWeb:b.why,pl=b.whyPlan,[down,setDown]=useState(false),key=keyOf3(image),[failed,setFailed]=useState(null),source=key!==null&&failed!==key?rnSource4(image):null,{shown:shown,onShown:onShown}=useShown(source?key:null),text=p=>rnText(t,textPartSpec(t,p)),part2=n=>testID===void 0?void 0:`${testID}-${n}`;if(loading){let ring=plan?rnRing(t,pl.card):null;/* @__PURE__ */
|
|
165
165
|
return jsxs(View,{testID:testID,style:[plan?rnBox(t,pl.card):{paddingTop:m.head.padding[0],paddingHorizontal:m.body.padding[1],paddingBottom:m.body.padding[2]},style],children:[
|
|
166
166
|
/* @__PURE__ */jsx(Skeleton,{lines:4,label:loadingLabel}),ring?/* @__PURE__ */jsx(View,{pointerEvents:"none",style:ring}):null]})}if(plan){let ring=rnRing(t,pl.card),scored=score!==void 0&&rows.length>=2;/* @__PURE__ */
|
|
167
167
|
return jsxs(View,{testID:testID,style:[rnBox(t,pl.card),style],children:[heading?/* @__PURE__ */jsx(Text,{style:text(pl.heading),children:heading}):null,rows.map(row=>{let chip=pl.chips[row.kind??"record"];/* @__PURE__ */
|
|
@@ -181,7 +181,7 @@ return jsxs(View,{testID:testID,style:style,children:[
|
|
|
181
181
|
/* @__PURE__ */jsx(Text,{accessibilityRole:"header",style:text(m.secHeading),children:sec.heading}),sec.bullets&&sec.bullets.length>0?/* @__PURE__ */jsx(View,{style:{rowGap:m.how.gap[1],marginTop:m.how.marginTop},children:sec.bullets.map((line,j)=>/* @__PURE__ */jsxs(View,{style:{flexDirection:"row",columnGap:m.bullet.gap[0]},children:[
|
|
182
182
|
/* @__PURE__ */jsx(View,{style:{width:m.bulletColumn},children:/* @__PURE__ */jsx(View,{style:{width:m.dot.size,height:m.dot.size,marginTop:m.dot.top,borderRadius:m.dot.size/2,backgroundColor:colorOf(t,m.dot.color)}})}),
|
|
183
183
|
/* @__PURE__ */jsx(Text,{style:[text(m.bulletText),{flex:1,minWidth:0}],children:line})]},`${j}-${line}`))}):null,linesOf(sec.text).map((line,j)=>/* @__PURE__ */jsx(Text,{style:[text(m.para),{marginTop:m.para.marginTop}],children:line},`${j}-${line}`))]},sec.key??`${i}-${sec.heading}`)),action||link?/* @__PURE__ */jsxs(View,{style:{rowGap:m.acts.gap[1]},children:[action?/* @__PURE__ */jsxs(Pressable,{testID:action.testID??part2("action"),onPress:action.onPress,onPressIn:()=>setDown(true),onPressOut:()=>setDown(false),accessibilityRole:"button",accessibilityLabel:action.accessibilityLabel??action.label,accessibilityState:ariaState(void 0,action.pressed,void 0),style:[rnBox(t,m.btn),{flexDirection:"row",alignItems:"center",justifyContent:"center",minHeight:m.btn.h},down&&!reduced?{transform:[{scale:m.pressScale}]}:null],children:[
|
|
184
|
-
/* @__PURE__ */jsx(Text,{style:[text(m.btnText),{textAlign:"center"}],children:action.label}),btnRing?/* @__PURE__ */jsx(View,{pointerEvents:"none",style:btnRing}):null]}):null,link?/* @__PURE__ */jsx(Pressable,{testID:link.testID??part2("link"),onPress:link.onPress?e=>link.onPress?.({currentTarget:e.currentTarget}):void 0,accessibilityRole:"link",accessibilityLabel:link.label,style:[rnBox(t,m.more),{alignSelf:"center",flexDirection:"row",alignItems:"center"}],children:/* @__PURE__ */jsx(Text,{style:text(m.moreText),children:link.label})}):null]}):null]})]})}function ScoreLights(props){let{values:values,state:state,heading:heading,since:since,pill:pill,vizLabel:vizLabel,source:source,next:next,loading:loading=false,loadingLabel:loadingLabel,testID:testID,style:style}=props,t=useTheme(),m=
|
|
184
|
+
/* @__PURE__ */jsx(Text,{style:[text(m.btnText),{textAlign:"center"}],children:action.label}),btnRing?/* @__PURE__ */jsx(View,{pointerEvents:"none",style:btnRing}):null]}):null,link?/* @__PURE__ */jsx(Pressable,{testID:link.testID??part2("link"),onPress:link.onPress?e=>link.onPress?.({currentTarget:e.currentTarget}):void 0,accessibilityRole:"link",accessibilityLabel:link.label,style:[rnBox(t,m.more),{alignSelf:"center",flexDirection:"row",alignItems:"center"}],children:/* @__PURE__ */jsx(Text,{style:text(m.moreText),children:link.label})}):null]}):null]})]})}function ScoreLights(props){let{values:values,state:state,heading:heading,since:since,pill:pill,vizLabel:vizLabel,source:source,next:next,loading:loading=false,loadingLabel:loadingLabel,testID:testID,style:style}=props,t=useTheme(),m=blockMetrics(t,lightsBlockMetrics),[width,setWidth]=useState(0),text=p2=>rnText(t,textPartSpec(t,p2)),part2=n=>testID===void 0?void 0:`${testID}-${n}`;if(loading)/* @__PURE__ */
|
|
185
185
|
return jsx(View,{testID:testID,style:[{marginTop:m.card.marginTop},style],children:/* @__PURE__ */jsx(Skeleton,{lines:3,label:loadingLabel})});let p=m.pills[state],h=m.viz.h,columns=scoreLightsLayout(values,width,h,m,I18nManager.isRTL),onLayout=e=>setWidth(Math.round(e.nativeEvent.layout.width)),actRing=rnRing(t,m.act);/* @__PURE__ */
|
|
186
186
|
return jsxs(View,{testID:testID,style:[{marginTop:m.card.marginTop},style],children:[
|
|
187
187
|
/* @__PURE__ */jsxs(View,{style:[rnBox(t,m.head),{flexDirection:"row",alignItems:"center",justifyContent:"space-between",marginBottom:m.head.marginBottom}],children:[
|
|
@@ -190,7 +190,7 @@ return jsxs(View,{testID:testID,style:[{marginTop:m.card.marginTop},style],child
|
|
|
190
190
|
/* @__PURE__ */jsx(View,{testID:part2("viz"),accessible:true,accessibilityRole:"image",accessibilityLabel:vizLabel,onLayout:onLayout,style:{height:h},children:columns.map((c,i)=>/* @__PURE__ */jsx(View,{style:{position:"absolute",left:c.x,top:0,width:c.width,height:h},children:c.lights.map((l,k2)=>/* @__PURE__ */jsx(View,{style:{position:"absolute",left:0,top:l.y,width:c.width,height:l.height,borderRadius:m.grid.radius,backgroundColor:colorOf(t,m.colors[c.zone]),opacity:l.opacity}},k2))},i))}),source?/* @__PURE__ */jsx(View,{style:[rnBox(t,m.src),{flexDirection:"row",flexWrap:"wrap",alignItems:"center"}],children:/* @__PURE__ */jsxs(Pressable,{testID:source.testID??part2("source"),onPress:source.onPress?e=>source.onPress?.({currentTarget:e.currentTarget}):void 0,accessibilityRole:"button",accessibilityLabel:source.accessibilityLabel??source.label,style:[rnBox(t,m.srcBtn),{minHeight:m.srcBtn.minHeight,flexDirection:"row",alignItems:"center"}],children:[
|
|
191
191
|
/* @__PURE__ */jsx(Text,{style:text(m.srcText),children:source.label}),
|
|
192
192
|
/* @__PURE__ */jsx(Glyph,{icon:UI_RN_ICON_INFO,size:m.srcIcon.w,color:colorOf(t,m.srcIcon.color)})]})}):null,next?/* @__PURE__ */jsxs(Pressable,{testID:next.testID??part2("next"),onPress:next.onPress?e=>next.onPress?.({currentTarget:e.currentTarget}):void 0,accessibilityRole:next.href!==void 0?"link":"button",accessibilityLabel:next.label,...Platform.OS==="web"&&next.href!==void 0?{href:next.href}:{},style:[rnBox(t,m.act),{alignSelf:"flex-start",minHeight:m.act.minHeight,marginBottom:m.act.marginBottom,flexDirection:"row",alignItems:"center",justifyContent:"center"}],children:[
|
|
193
|
-
/* @__PURE__ */jsx(Text,{style:text(m.actText),children:next.label}),actRing?/* @__PURE__ */jsx(View,{pointerEvents:"none",style:actRing}):null]}):null]})}function rnSource5(image){return typeof image=="number"?image:typeof image=="string"?image?{uri:image}:null:image&&typeof image=="object"&&image.uri?image:null}function keyOf4(image){return image==null?null:typeof image=="object"?image.uri:String(image)}function openIndex(steps,open){return open===null?-1:typeof open=="number"?open>=0&&open<steps.length?open:-1:typeof open=="string"?steps.findIndex(s=>s.key===open):steps.findIndex(s=>s.value===void 0||s.value===null)}function rowsOf2(picks,columns){let out=[];for(let i=0;i<picks.length;i+=columns){let row=picks.slice(i,i+columns);for(;row.length<columns;)row.push(null);out.push(row)}return out}function CheckinSheet(props){let{kicker:kicker,title:title,image:image,imageKind:imageKind="photo",fallback:fallback,onImageError:onImageError,onClose:onClose,closeLabel:closeLabel,steps:steps,open:open,onPick:onPick,onEditStep:onEditStep,flowLabel:flowLabel,note:note,doneText:doneText,action:action,children:children,loading:loading=false,loadingLabel:loadingLabel,testID:testID,style:style}=props;warnUnnamedClose("CheckinSheet",onClose,closeLabel);let t=useTheme(),reduced=useRnReduced(t),b=
|
|
193
|
+
/* @__PURE__ */jsx(Text,{style:text(m.actText),children:next.label}),actRing?/* @__PURE__ */jsx(View,{pointerEvents:"none",style:actRing}):null]}):null]})}function rnSource5(image){return typeof image=="number"?image:typeof image=="string"?image?{uri:image}:null:image&&typeof image=="object"&&image.uri?image:null}function keyOf4(image){return image==null?null:typeof image=="object"?image.uri:String(image)}function openIndex(steps,open){return open===null?-1:typeof open=="number"?open>=0&&open<steps.length?open:-1:typeof open=="string"?steps.findIndex(s=>s.key===open):steps.findIndex(s=>s.value===void 0||s.value===null)}function rowsOf2(picks,columns){let out=[];for(let i=0;i<picks.length;i+=columns){let row=picks.slice(i,i+columns);for(;row.length<columns;)row.push(null);out.push(row)}return out}function CheckinSheet(props){let{kicker:kicker,title:title,image:image,imageKind:imageKind="photo",fallback:fallback,onImageError:onImageError,onClose:onClose,closeLabel:closeLabel,steps:steps,open:open,onPick:onPick,onEditStep:onEditStep,flowLabel:flowLabel,note:note,doneText:doneText,action:action,children:children,loading:loading=false,loadingLabel:loadingLabel,testID:testID,style:style}=props;warnUnnamedClose("CheckinSheet",onClose,closeLabel);let t=useTheme(),reduced=useRnReduced(t),b={why:blockMetrics(t,whyBlockMetrics),checkin:blockMetrics(t,checkinBlockMetrics)},w=b.why,m=b.checkin,[down,setDown]=useState(null),key=keyOf4(image),[failed,setFailed]=useState(null),source=key!==null&&failed!==key?rnSource5(image):null,{shown:shown,onShown:onShown}=useShown(source?key:null),text=p=>rnText(t,textPartSpec(t,p)),part2=n=>testID===void 0?void 0:`${testID}-${n}`;if(loading)/* @__PURE__ */
|
|
194
194
|
return jsx(View,{testID:testID,style:[{paddingTop:w.head.padding[0],paddingHorizontal:m.body.padding[1],paddingBottom:m.body.padding[2]},style],children:/* @__PURE__ */jsx(Skeleton,{lines:4,label:loadingLabel})});let at=openIndex(steps,open),answered=s=>s.value!==void 0&&s.value!==null,done=at<0&&steps.length>0&&steps.every(answered),photo=imageKind==="photo",inset=w.packInset*w.pic.w,failOn=()=>{image==null||key===null||(setFailed(key),onImageError?.(image))},btnRing=rnRing(t,m.btn),press=id=>({onPressIn:()=>setDown(id),onPressOut:()=>setDown(null)}),settle=(id,scale)=>down===id&&!reduced?{transform:[{scale:scale}]}:null,link=note?.link;/* @__PURE__ */
|
|
195
195
|
return jsxs(View,{testID:testID,style:style,children:[
|
|
196
196
|
/* @__PURE__ */jsxs(View,{style:[rnBox(t,w.head),{flexDirection:"row",alignItems:"flex-start"}],children:[
|
|
@@ -210,7 +210,7 @@ return jsxs(Pressable,{testID:part2(id),onPress:onEditStep?()=>onEditStep(s.key)
|
|
|
210
210
|
/* @__PURE__ */jsx(Text,{testID:link.testID??part2("note-link"),accessibilityRole:"link",onPress:link.onPress?e=>link.onPress?.({currentTarget:e.currentTarget}):void 0,...Platform.OS==="web"&&link.href!==void 0?{href:link.href}:{},style:[text(m.noteLink),Platform.OS==="web"?{whiteSpace:"normal"}:null],children:link.label})]}):null,note.after?/* @__PURE__ */jsxs(Fragment,{children:[" ",
|
|
211
211
|
/* @__PURE__ */jsx(Text,{style:Platform.OS==="web"?{whiteSpace:"nowrap"}:null,children:note.after})]}):null]})}):null,done&&doneText?/* @__PURE__ */jsx(Text,{style:[text(m.done),{marginTop:m.done.marginTop}],children:doneText}):null]}),children,done&&action?/* @__PURE__ */jsx(View,{style:{rowGap:m.acts.gap[1]},children:/* @__PURE__ */jsxs(Pressable,{testID:action.testID??part2("action"),onPress:action.onPress,...press("action"),accessibilityRole:"button",accessibilityLabel:action.accessibilityLabel??action.label,style:[rnBox(t,m.btn),{flexDirection:"row",alignItems:"center",justifyContent:"center",minHeight:m.btn.h},settle("action",w.pressScale)],children:[
|
|
212
212
|
/* @__PURE__ */jsx(Text,{style:[text(m.btnText),{textAlign:"center"}],children:action.label}),btnRing?/* @__PURE__ */jsx(View,{pointerEvents:"none",style:btnRing}):null]})}):null]})]})}function vSlop(size){let s=slopFor(size);return s?{top:s.top,bottom:s.bottom}:void 0}function Layers({layers:layers,size:size}){/* @__PURE__ */
|
|
213
|
-
return jsx(View,{pointerEvents:"none",accessible:false,accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",style:{width:size,height:size},children:layers.map((l,i)=>/* @__PURE__ */jsx(Glyph,{icon:l.icon,size:size,color:l.color,style:{position:"absolute",left:0,top:0}},i))})}function glyphOf(t,glyph,size,web){return typeof glyph=="function"?glyph({size:size,color:t.colors.ink}):/* @__PURE__ */jsx(Layers,{layers:web?UI_RN_WX_SUN_LG:UI_RN_WX_SUN,size:size})}function WeatherCard(props){let{variant:variant="walk",heading:heading,temperature:temperature,condition:condition,details:details,glyph:glyph,sky:sky="sun",level:level="good",verdict:verdict,advice:advice,comfort:comfort,label:label,note:note,action:action,units:units,tags:tags,tagsLabel:tagsLabel,loading:loading=false,loadingLabel:loadingLabel,testID:testID,style:style}=props,t=useTheme(),b=
|
|
213
|
+
return jsx(View,{pointerEvents:"none",accessible:false,accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",style:{width:size,height:size},children:layers.map((l,i)=>/* @__PURE__ */jsx(Glyph,{icon:l.icon,size:size,color:l.color,style:{position:"absolute",left:0,top:0}},i))})}function glyphOf(t,glyph,size,web){return typeof glyph=="function"?glyph({size:size,color:t.colors.ink}):/* @__PURE__ */jsx(Layers,{layers:web?UI_RN_WX_SUN_LG:UI_RN_WX_SUN,size:size})}function WeatherCard(props){let{variant:variant="walk",heading:heading,temperature:temperature,condition:condition,details:details,glyph:glyph,sky:sky="sun",level:level="good",verdict:verdict,advice:advice,comfort:comfort,label:label,note:note,action:action,units:units,tags:tags,tagsLabel:tagsLabel,loading:loading=false,loadingLabel:loadingLabel,testID:testID,style:style}=props,t=useTheme(),b={weather:blockMetrics(t,weatherBlockMetrics),weatherSummary:blockMetrics(t,weatherSummaryBlockMetrics),weatherTile:blockMetrics(t,weatherTileBlockMetrics),weatherWeb:blockMetrics(t,weatherWebBlockMetrics)},{width:vw}=useWindowDimensions(),text=p=>rnText(t,textPartSpec(t,p)),top=p=>p.marginTop?{marginTop:p.marginTop}:null,part2=n=>testID===void 0?void 0:`${testID}-${n}`,region=heading!==void 0&&variant!=="web"?{role:"region","aria-label":heading}:{},skyFill={backgroundColor:colorOf(t,b.weather.skies[sky])};if(variant==="web"){let w=b.weatherWeb,phone=vw>0&&vw<=w.phone.upTo,card=phone?{...w.card,padding:w.phone.card.padding}:w.card,side=phone?w.phone.glyph.w:w.glyph.w;if(loading)/* @__PURE__ */
|
|
214
214
|
return jsx(View,{testID:testID,style:[rnBox(t,card),style],children:/* @__PURE__ */jsx(Skeleton,{lines:3,label:loadingLabel})});let size=Math.min(w.tempFluid.max,Math.max(w.tempFluid.min,vw*w.tempFluid.vw/100)),k2=size/w.temp.size,temp=[text(w.temp),{fontSize:size,lineHeight:w.temp.lineHeight*k2,letterSpacing:w.temp.tracking*k2}],hueOf=hue=>colorOf(t,hue==="red"||hue==="yellow"||hue==="green"||hue==="blue"?w.hues[hue]:w.hues.plain);/* @__PURE__ */
|
|
215
215
|
return jsxs(View,{testID:testID,style:[rnBox(t,card),style],children:[
|
|
216
216
|
/* @__PURE__ */jsxs(View,{style:[rnBox(t,w.head),{flexDirection:"row",flexWrap:"wrap",alignItems:"center",justifyContent:"space-between",marginBottom:w.head.marginBottom}],children:[heading?/* @__PURE__ */jsx(Text,{role:"heading","aria-level":2,style:text(w.city),children:heading}):null,units?/* @__PURE__ */jsx(View,{role:"radiogroup","aria-label":units.label,style:[rnBox(t,w.units),{flexDirection:"row"}],children:units.options.map(o=>{let on=o.value===units.value,p=on?w.unitOn:w.unit;/* @__PURE__ */
|
|
@@ -240,22 +240,22 @@ return jsxs(View,{testID:testID,...region,style:[rnBox(t,m.card),skyFill,style],
|
|
|
240
240
|
/* @__PURE__ */jsx(Text,{style:[text(m.comfortLabel),{marginRight:"auto"}],children:comfort.label}),
|
|
241
241
|
/* @__PURE__ */jsx(View,{style:{flexDirection:"row",columnGap:m.bar.gap[0]},children:Array.from({length:pips},(_,i)=>{let p=i<lit?m.pipOn:m.pipOff;/* @__PURE__ */
|
|
242
242
|
return jsx(View,{style:{width:p.w,height:p.h,borderRadius:p.radius[0],backgroundColor:partFill(t,p.bg)||void 0}},i)})}),
|
|
243
|
-
/* @__PURE__ */jsx(Text,{style:text(m.comfortValue),children:comfort.value})]}):null]}):null]})}var REPEAT_MS=600*1e3,spoken=/* @__PURE__ */new Map;function fresh(said){let now=Date.now(),at=spoken.get(said);return at!==void 0&&now-at<REPEAT_MS?false:(spoken.delete(said),spoken.set(said,now),spoken.size>32&&spoken.delete(spoken.keys().next().value),true)}function WeatherAlert(props){let{title:title,text:words2,onPress:onPress,accessibilityLabel:accessibilityLabel,loading:loading=false,loadingLabel:loadingLabel,testID:testID,style:style}=props,t=useTheme(),m=
|
|
243
|
+
/* @__PURE__ */jsx(Text,{style:text(m.comfortValue),children:comfort.value})]}):null]}):null]})}var REPEAT_MS=600*1e3,spoken=/* @__PURE__ */new Map;function fresh(said){let now=Date.now(),at=spoken.get(said);return at!==void 0&&now-at<REPEAT_MS?false:(spoken.delete(said),spoken.set(said,now),spoken.size>32&&spoken.delete(spoken.keys().next().value),true)}function WeatherAlert(props){let{title:title,text:words2,onPress:onPress,accessibilityLabel:accessibilityLabel,loading:loading=false,loadingLabel:loadingLabel,testID:testID,style:style}=props,t=useTheme(),m=blockMetrics(t,weatherAlertBlockMetrics),reduced=useRnReduced(t),text=p=>rnText(t,textPartSpec(t,p)),line=[rnBox(t,m.card),{minHeight:m.card.minHeight,flexDirection:"row",alignItems:"center"}],said=words2?`${title}, ${words2}`:title,own=useRef(null);if(useEffect(()=>{if(loading||!said)return;let speak=own.current!==said&&fresh(said);own.current=said,speak&&AccessibilityInfo.announceForAccessibility?.(said)},[loading,said]),loading/* @__PURE__ */)return jsx(View,{testID:testID,style:[...line,style],children:/* @__PURE__ */jsx(View,{style:{flex:1},children:/* @__PURE__ */jsx(Skeleton,{lines:1,label:loadingLabel})})});let content=/* @__PURE__ */jsxs(Fragment,{children:[
|
|
244
244
|
/* @__PURE__ */jsx(Glyph,{icon:UI_RN_ICON_ALERT,size:m.icon.w,color:colorOf(t,m.icon.color)}),
|
|
245
245
|
/* @__PURE__ */jsxs(Text,{style:[text(m.text),{flex:1,minWidth:0}],children:[
|
|
246
246
|
/* @__PURE__ */jsx(Text,{style:text(m.title),children:title}),words2?/* @__PURE__ */jsxs(Fragment,{children:[
|
|
247
|
-
/* @__PURE__ */jsx(View,{style:{width:m.titleGap,height:0}}),words2]}):null]}),onPress?/* @__PURE__ */jsx(Glyph,{icon:UI_RN_ICON_CHEVRON,size:m.chev.w,color:colorOf(t,m.chev.color),testID:testID===void 0?void 0:`${testID}-chev`}):null]});return onPress?/* @__PURE__ */jsx(Pressable,{testID:testID,onPress:e=>onPress({currentTarget:e.currentTarget}),accessibilityRole:"button",accessibilityLabel:accessibilityLabel??said,style:({pressed:pressed})=>[...line,pressed&&!reduced?{transform:[{scale:m.pressScale}]}:null,style],children:content}):/* @__PURE__ */jsx(View,{testID:testID,accessible:true,accessibilityRole:"alert",accessibilityLabel:accessibilityLabel??said,style:[...line,style],children:content})}var REGISTRY2=/* @__PURE__ */(()=>{let key=/* @__PURE__ */Symbol.for("@everfur-health/ui-native#weather-glyphs@v1"),host2=globalThis;return host2[key]??(host2[key]={sky:{},detail:{},warned:/* @__PURE__ */new Set})})();function glyphNamed(kind,name){let glyph=REGISTRY2[kind][name],key=`${kind}:${name}`;return glyph===void 0&&(typeof __DEV__<"u"?__DEV__:typeof process<"u"&&process.env.NODE_ENV!=="production")&&!REGISTRY2.warned.has(key)&&(REGISTRY2.warned.add(key),console.warn(`@everfur-health/ui-native: no weather ${kind==="sky"?"sky":"icon"} "${name}" is registered. The weather blocks draw only the glyphs an app registers: registerWeatherGlyphs({ skies: UI_RN_WEATHER_SKIES, details: UI_RN_WEATHER_DETAILS }) from '@everfur-health/ui-native/weather-glyphs', or pass a drawing.`)),glyph}function weatherIcon(kind,icon,size,color){if(icon===void 0)return null;if(typeof icon=="function")return icon({size:size,color:color});let art=glyphNamed(kind,icon);return art?Array.isArray(art)?/* @__PURE__ */jsx(View,{pointerEvents:"none",accessible:false,accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",style:{width:size,height:size},children:art.map((l,i)=>/* @__PURE__ */jsx(Glyph,{icon:l.icon,size:size,color:l.color,style:{position:"absolute",left:0,top:0}},i))}):/* @__PURE__ */jsx(Glyph,{icon:art,size:size,color:color}):null}function WeatherDetails(props){let{items:items,label:label,loading:loading=false,loadingLabel:loadingLabel,testID:testID,style:style}=props,t=useTheme(),m=
|
|
247
|
+
/* @__PURE__ */jsx(View,{style:{width:m.titleGap,height:0}}),words2]}):null]}),onPress?/* @__PURE__ */jsx(Glyph,{icon:UI_RN_ICON_CHEVRON,size:m.chev.w,color:colorOf(t,m.chev.color),testID:testID===void 0?void 0:`${testID}-chev`}):null]});return onPress?/* @__PURE__ */jsx(Pressable,{testID:testID,onPress:e=>onPress({currentTarget:e.currentTarget}),accessibilityRole:"button",accessibilityLabel:accessibilityLabel??said,style:({pressed:pressed})=>[...line,pressed&&!reduced?{transform:[{scale:m.pressScale}]}:null,style],children:content}):/* @__PURE__ */jsx(View,{testID:testID,accessible:true,accessibilityRole:"alert",accessibilityLabel:accessibilityLabel??said,style:[...line,style],children:content})}var REGISTRY2=/* @__PURE__ */(()=>{let key=/* @__PURE__ */Symbol.for("@everfur-health/ui-native#weather-glyphs@v1"),host2=globalThis;return host2[key]??(host2[key]={sky:{},detail:{},warned:/* @__PURE__ */new Set})})();function glyphNamed(kind,name){let glyph=REGISTRY2[kind][name],key=`${kind}:${name}`;return glyph===void 0&&(typeof __DEV__<"u"?__DEV__:typeof process<"u"&&process.env.NODE_ENV!=="production")&&!REGISTRY2.warned.has(key)&&(REGISTRY2.warned.add(key),console.warn(`@everfur-health/ui-native: no weather ${kind==="sky"?"sky":"icon"} "${name}" is registered. The weather blocks draw only the glyphs an app registers: registerWeatherGlyphs({ skies: UI_RN_WEATHER_SKIES, details: UI_RN_WEATHER_DETAILS }) from '@everfur-health/ui-native/weather-glyphs', or pass a drawing.`)),glyph}function weatherIcon(kind,icon,size,color){if(icon===void 0)return null;if(typeof icon=="function")return icon({size:size,color:color});let art=glyphNamed(kind,icon);return art?Array.isArray(art)?/* @__PURE__ */jsx(View,{pointerEvents:"none",accessible:false,accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",style:{width:size,height:size},children:art.map((l,i)=>/* @__PURE__ */jsx(Glyph,{icon:l.icon,size:size,color:l.color,style:{position:"absolute",left:0,top:0}},i))}):/* @__PURE__ */jsx(Glyph,{icon:art,size:size,color:color}):null}function WeatherDetails(props){let{items:items,label:label,loading:loading=false,loadingLabel:loadingLabel,testID:testID,style:style}=props,t=useTheme(),m=blockMetrics(t,weatherDetailsBlockMetrics),reduced=useRnReduced(t),text=p=>rnText(t,textPartSpec(t,p));if(loading)/* @__PURE__ */
|
|
248
248
|
return jsx(View,{testID:testID,style:style,children:/* @__PURE__ */jsx(Skeleton,{lines:3,label:loadingLabel})});let tileStyle=[rnBox(t,m.tile),{flex:1,minHeight:m.tile.minHeight,rowGap:m.tile.gap[1]}],words2=it=>/* @__PURE__ */jsxs(Fragment,{children:[
|
|
249
249
|
/* @__PURE__ */jsxs(View,{style:{flexDirection:"row",alignItems:"center",columnGap:m.labelGap},children:[weatherIcon("detail",it.icon,m.icon.w,colorOf(t,m.icon.color)),
|
|
250
250
|
/* @__PURE__ */jsx(Text,{style:[text(m.label),{flexShrink:1}],children:it.label}),it.onPress?/* @__PURE__ */jsx(View,{style:{marginLeft:"auto"},children:/* @__PURE__ */jsx(Glyph,{icon:UI_RN_ICON_CHEVRON,size:m.chev.w,color:colorOf(t,m.chev.color)})}):null]}),
|
|
251
251
|
/* @__PURE__ */jsxs(View,{style:{flexDirection:"row",flexWrap:"wrap",alignItems:"baseline",columnGap:m.valueGap},children:[
|
|
252
|
-
/* @__PURE__ */jsx(Text,{style:text(m.value),children:it.value}),it.unit?/* @__PURE__ */jsx(Text,{style:text(m.unit),children:it.unit}):null]}),it.note?/* @__PURE__ */jsx(Text,{style:[text(m.note),{marginTop:"auto"}],children:it.note}):null]}),tile=it=>{let onPress=it.onPress;return onPress?/* @__PURE__ */jsx(Pressable,{testID:it.testID,accessibilityRole:"button",accessibilityLabel:it.accessibilityLabel,onPress:e=>onPress({currentTarget:e.currentTarget}),style:({pressed:pressed})=>[...tileStyle,pressed&&!reduced?{transform:[{scale:m.pressScale}]}:null],children:words2(it)}):/* @__PURE__ */jsx(View,{testID:it.testID,accessible:it.accessibilityLabel!==void 0,"aria-label":it.accessibilityLabel,style:tileStyle,children:words2(it)})},rows=[];return items.forEach((it,i)=>i%2===0?rows.push([it]):rows[rows.length-1]?.push(it)),/* @__PURE__ */jsx(View,{testID:testID,role:"list","aria-label":label,style:[{rowGap:m.grid.gap[1]},style],children:rows.map(pair=>/* @__PURE__ */jsxs(View,{style:{flexDirection:"row",columnGap:m.grid.gap[0]},children:[pair.map(it=>/* @__PURE__ */jsx(View,{role:"listitem",style:{flex:1,minWidth:0},children:tile(it)},it.key)),pair.length===1?/* @__PURE__ */jsx(View,{style:{flex:1}}):null]},pair[0]?.key))})}function WeatherHours(props){let{variant:variant="plain",hours:hours,label:label,windows:windows,legend:legend,loading:loading=false,loadingLabel:loadingLabel,testID:testID,style:style}=props,t=useTheme(),m=
|
|
252
|
+
/* @__PURE__ */jsx(Text,{style:text(m.value),children:it.value}),it.unit?/* @__PURE__ */jsx(Text,{style:text(m.unit),children:it.unit}):null]}),it.note?/* @__PURE__ */jsx(Text,{style:[text(m.note),{marginTop:"auto"}],children:it.note}):null]}),tile=it=>{let onPress=it.onPress;return onPress?/* @__PURE__ */jsx(Pressable,{testID:it.testID,accessibilityRole:"button",accessibilityLabel:it.accessibilityLabel,onPress:e=>onPress({currentTarget:e.currentTarget}),style:({pressed:pressed})=>[...tileStyle,pressed&&!reduced?{transform:[{scale:m.pressScale}]}:null],children:words2(it)}):/* @__PURE__ */jsx(View,{testID:it.testID,accessible:it.accessibilityLabel!==void 0,"aria-label":it.accessibilityLabel,style:tileStyle,children:words2(it)})},rows=[];return items.forEach((it,i)=>i%2===0?rows.push([it]):rows[rows.length-1]?.push(it)),/* @__PURE__ */jsx(View,{testID:testID,role:"list","aria-label":label,style:[{rowGap:m.grid.gap[1]},style],children:rows.map(pair=>/* @__PURE__ */jsxs(View,{style:{flexDirection:"row",columnGap:m.grid.gap[0]},children:[pair.map(it=>/* @__PURE__ */jsx(View,{role:"listitem",style:{flex:1,minWidth:0},children:tile(it)},it.key)),pair.length===1?/* @__PURE__ */jsx(View,{style:{flex:1}}):null]},pair[0]?.key))})}function WeatherHours(props){let{variant:variant="plain",hours:hours,label:label,windows:windows,legend:legend,loading:loading=false,loadingLabel:loadingLabel,testID:testID,style:style}=props,t=useTheme(),m=blockMetrics(t,weatherHoursBlockMetrics),text=p=>rnText(t,textPartSpec(t,p)),walk=variant==="walk";if(loading)/* @__PURE__ */
|
|
253
253
|
return jsx(View,{testID:testID,style:style,children:/* @__PURE__ */jsx(Skeleton,{lines:3,label:loadingLabel})});let rows=walk?m.rows:m.rows.slice(0,m.rows.length-1),row=(i,child,stretch=false)=>/* @__PURE__ */jsx(View,{style:{height:rows[i],alignSelf:stretch?"stretch":"center",justifyContent:"center",alignItems:stretch?void 0:"center"},children:child});/* @__PURE__ */
|
|
254
254
|
return jsxs(View,{testID:testID,style:[{minWidth:0},style],children:[walk&&windows&&windows.length>0?/* @__PURE__ */jsx(View,{style:{flexDirection:"row",columnGap:m.windows.gap[0],marginBottom:m.windows.marginBottom},children:windows.map(w=>/* @__PURE__ */jsxs(View,{style:[rnBox(t,m.window),{flex:1,minWidth:0,rowGap:m.window.gap[1]}],children:[
|
|
255
255
|
/* @__PURE__ */jsx(Text,{style:text(m.windowTitle),children:w.title}),w.text?/* @__PURE__ */jsx(Text,{style:text(m.windowText),children:w.text}):null]},w.key))}):null,
|
|
256
256
|
/* @__PURE__ */jsx(ScrollView,{horizontal:true,showsHorizontalScrollIndicator:false,tabIndex:0,role:"list","aria-label":label,contentContainerStyle:{flexDirection:"row"},children:hours.map(h=>/* @__PURE__ */jsxs(View,{role:"listitem",accessible:h.accessibilityLabel!==void 0,"aria-label":h.accessibilityLabel,style:{width:m.column,paddingTop:m.cell.padding[0],rowGap:m.cell.gap[1]},children:[row(0,/* @__PURE__ */jsx(Text,{style:[text(h.now?m.timeNow:m.time),{textAlign:"center"}],numberOfLines:1,children:h.time})),row(1,h.icon!==void 0?weatherIcon("detail",h.icon,m.icon.w,colorOf(t,m.icon.color)):weatherIcon("sky",h.glyph,m.glyph.w,t.colors.ink)),row(2,h.chance?/* @__PURE__ */jsx(Text,{style:text(m.chance),children:h.chance}):null),row(3,/* @__PURE__ */jsx(Text,{style:[text(h.quiet?m.quiet:m.temp),{textAlign:"center"}],numberOfLines:1,children:h.value})),walk?row(4,/* @__PURE__ */jsx(View,{style:{height:m.bar.h,marginHorizontal:m.barInset,borderRadius:m.bar.radius[0],backgroundColor:colorOf(t,m.levels[h.level??"good"])}}),true):null]},h.key))}),walk&&legend&&legend.length>0?/* @__PURE__ */jsx(View,{accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants","aria-hidden":true,style:{flexDirection:"row",flexWrap:"wrap",columnGap:m.legend.gap[0],rowGap:m.legend.gap[1],marginTop:m.legend.marginTop},children:legend.map(l=>/* @__PURE__ */jsxs(View,{style:{flexDirection:"row",alignItems:"center",columnGap:m.legendItem.gap[0]},children:[
|
|
257
257
|
/* @__PURE__ */jsx(View,{style:{width:m.legendDot.w,height:m.legendDot.h,borderRadius:m.legendDot.w/2,backgroundColor:colorOf(t,m.levels[l.level])}}),
|
|
258
|
-
/* @__PURE__ */jsx(Text,{style:text(m.legendText),children:l.label})]},l.level))}):null]})}var share=v=>`${Math.round(Math.min(1,Math.max(0,v))*1e4)/100}%`;function WeatherForecast(props){let{variant:variant="plain",days:days,label:label,loading:loading=false,loadingLabel:loadingLabel,testID:testID,style:style}=props,t=useTheme(),m=
|
|
258
|
+
/* @__PURE__ */jsx(Text,{style:text(m.legendText),children:l.label})]},l.level))}):null]})}var share=v=>`${Math.round(Math.min(1,Math.max(0,v))*1e4)/100}%`;function WeatherForecast(props){let{variant:variant="plain",days:days,label:label,loading:loading=false,loadingLabel:loadingLabel,testID:testID,style:style}=props,t=useTheme(),m=blockMetrics(t,weatherForecastBlockMetrics),text=p=>rnText(t,textPartSpec(t,p)),walk=variant==="walk";if(loading)/* @__PURE__ */
|
|
259
259
|
return jsx(View,{testID:testID,style:style,children:/* @__PURE__ */jsx(Skeleton,{lines:3,label:loadingLabel})});let[c0=0,c1=0,c2=0,,c4=0,c5=0]=walk?m.walkColumns:m.columns;/* @__PURE__ */
|
|
260
260
|
return jsx(View,{testID:testID,role:"list","aria-label":label,style:style,children:days.map((d,i)=>{let[a=0,b=0]=d.range,tone=m.tags[d.tag?.tone??"good"];/* @__PURE__ */
|
|
261
261
|
return jsxs(View,{role:"listitem",accessible:d.accessibilityLabel!==void 0,"aria-label":d.accessibilityLabel,style:{flexDirection:"row",alignItems:"center",columnGap:m.row.gap[0],minHeight:m.row.minHeight,borderTopWidth:i===0?0:m.rule.width,borderTopColor:colorOf(t,m.rule.color)},children:[
|
|
@@ -265,20 +265,20 @@ return jsxs(View,{role:"listitem",accessible:d.accessibilityLabel!==void 0,"aria
|
|
|
265
265
|
/* @__PURE__ */jsx(View,{style:{flex:1,minWidth:0,height:m.bar.h,borderRadius:m.bar.radius[0],backgroundColor:partFill(t,m.bar.bg)||void 0},children:/* @__PURE__ */jsx(View,{style:{position:"absolute",top:0,bottom:0,left:share(a),right:share(1-b),borderRadius:m.fill.radius[0],backgroundColor:partFill(t,m.fill.bg)||void 0}})}),
|
|
266
266
|
/* @__PURE__ */jsx(View,{style:{width:c4},children:/* @__PURE__ */jsx(Text,{style:text(m.high),children:d.high})}),walk?/* @__PURE__ */jsx(View,{style:{width:c5,alignItems:"flex-end"},children:d.tag?/* @__PURE__ */jsxs(View,{style:[rnBox(t,m.tag),{minHeight:m.tag.minHeight,justifyContent:"center",backgroundColor:colorOf(t,tone.bg)}],children:[
|
|
267
267
|
/* @__PURE__ */jsx(View,{pointerEvents:"none",style:ringOverlay(tone.ringWidth,colorOf(t,tone.ring),m.tag.radius[0]??0)}),
|
|
268
|
-
/* @__PURE__ */jsx(Text,{style:[text(m.tagText),{color:colorOf(t,tone.color)}],numberOfLines:1,children:d.tag.label})]}):null}):null]},d.key)})})}function WeatherLevels(props){let{variant:variant="phone",rows:rows,label:label,loading:loading=false,loadingLabel:loadingLabel,testID:testID,style:style}=props,t=useTheme(),lm=
|
|
268
|
+
/* @__PURE__ */jsx(Text,{style:[text(m.tagText),{color:colorOf(t,tone.color)}],numberOfLines:1,children:d.tag.label})]}):null}):null]},d.key)})})}function WeatherLevels(props){let{variant:variant="phone",rows:rows,label:label,loading:loading=false,loadingLabel:loadingLabel,testID:testID,style:style}=props,t=useTheme(),lm=blockMetrics(t,weatherLevelsBlockMetrics),{width:vw}=useWindowDimensions(),m=variant==="web"&&!(vw>0&&vw<=lm.webPhoneUpTo)?lm.web:lm.phone,text=p=>rnText(t,textPartSpec(t,p));if(loading)/* @__PURE__ */
|
|
269
269
|
return jsx(View,{testID:testID,style:style,children:/* @__PURE__ */jsx(Skeleton,{lines:3,label:loadingLabel})});let[c0=0,c1=0,,c3=0]=m.columns;/* @__PURE__ */
|
|
270
270
|
return jsx(View,{testID:testID,role:"list","aria-label":label,style:[{rowGap:m.list.gap[1]},style],children:rows.map(r=>{let tone=r.tone??"low",share2=Math.round(Math.min(1,Math.max(0,r.value))*1e4)/100;/* @__PURE__ */
|
|
271
271
|
return jsxs(View,{role:"listitem",accessible:r.accessibilityLabel!==void 0,"aria-label":r.accessibilityLabel,style:{flexDirection:"row",alignItems:"center",columnGap:m.row.gap[0],minHeight:m.icon.h},children:[
|
|
272
272
|
/* @__PURE__ */jsx(View,{style:{width:c0,height:m.icon.h,overflow:"visible"},children:weatherIcon("detail",r.icon,m.icon.w,t.colors.ink)}),
|
|
273
273
|
/* @__PURE__ */jsx(View,{style:{width:c1,flexDirection:"row"},children:/* @__PURE__ */jsx(Text,{style:[text(m.name),{flexShrink:1}],children:r.label})}),
|
|
274
274
|
/* @__PURE__ */jsx(View,{style:{flex:1,minWidth:0,height:m.bar.h,borderRadius:m.bar.radius[0],backgroundColor:partFill(t,m.bar.bg)||void 0,overflow:"hidden"},children:/* @__PURE__ */jsx(View,{style:{width:`${share2}%`,height:"100%",borderRadius:m.bar.radius[0],backgroundColor:colorOf(t,m.fills[tone])}})}),
|
|
275
|
-
/* @__PURE__ */jsx(View,{style:{width:c3},children:/* @__PURE__ */jsx(Text,{style:[text(m.level[tone]),{textAlign:"right"}],children:r.level})})]},r.key)})})}function WeatherReading(props){let{variant:variant="phone",value:value,word:word,tone:tone="ok",choices:choices,loading:loading=false,loadingLabel:loadingLabel,testID:testID,style:style}=props,t=useTheme(),rm=
|
|
275
|
+
/* @__PURE__ */jsx(View,{style:{width:c3},children:/* @__PURE__ */jsx(Text,{style:[text(m.level[tone]),{textAlign:"right"}],children:r.level})})]},r.key)})})}function WeatherReading(props){let{variant:variant="phone",value:value,word:word,tone:tone="ok",choices:choices,loading:loading=false,loadingLabel:loadingLabel,testID:testID,style:style}=props,t=useTheme(),rm=blockMetrics(t,weatherReadingBlockMetrics),m=variant==="web"?rm.web:rm.phone,{width:vw}=useWindowDimensions(),text=p=>rnText(t,textPartSpec(t,p)),part2=n=>testID===void 0?void 0:`${testID}-${n}`;if(loading)/* @__PURE__ */
|
|
276
276
|
return jsx(View,{testID:testID,style:style,children:/* @__PURE__ */jsx(Skeleton,{lines:2,label:loadingLabel})});let f=rm.fluid,size=Math.min(f.max,Math.max(f.min,vw*f.vw/100)),k2=size/m.value.size,slop=slopFor(m.off.minHeight||m.off.h);/* @__PURE__ */
|
|
277
277
|
return jsxs(View,{testID:testID,style:[{rowGap:m.gap},style],children:[choices?/* @__PURE__ */jsx(View,{role:"radiogroup","aria-label":choices.label,style:{flexDirection:"row",flexWrap:"wrap",columnGap:m.picks.gap[0],rowGap:m.picks.gap[1],marginTop:m.picks.marginTop},children:choices.options.map(o=>{let on=o.value===choices.value,p=on?m.on:m.off;/* @__PURE__ */
|
|
278
278
|
return jsxs(Pressable,{testID:part2(`pick-${o.value}`),role:"radio","aria-checked":on,accessibilityState:{checked:on},accessibilityLabel:o.label,hitSlop:slop?{top:slop.top,bottom:slop.bottom}:void 0,onPress:choices.onChange&&!on?()=>choices.onChange?.(o.value):void 0,style:[rnBox(t,p),{minHeight:p.minHeight,flexDirection:"row",alignItems:"center",justifyContent:"center",columnGap:p.gap[0]}],children:[on?/* @__PURE__ */jsx(Glyph,{icon:UI_RN_ICON_CHECK,size:m.check.w,color:colorOf(t,m.check.color)}):null,
|
|
279
279
|
/* @__PURE__ */jsx(Text,{style:text(on?m.onText:m.offText),children:o.label})]},o.value)})}):null,
|
|
280
280
|
/* @__PURE__ */jsxs(View,{"aria-live":choices?"polite":void 0,style:{flexDirection:"row",flexWrap:"wrap",alignItems:"baseline",columnGap:m.read.gap[0]},children:[
|
|
281
|
-
/* @__PURE__ */jsx(Text,{style:[text(m.value),{fontSize:size,lineHeight:m.value.lineHeight*k2,letterSpacing:m.value.tracking*k2}],children:value}),word?/* @__PURE__ */jsx(Text,{style:[text(m.word),{color:colorOf(t,rm.tones[tone])}],children:word}):null]})]})}var registered=false;function registerIconSet(){registered||(registered=true,registerIcons(UI_RN_ICONS))}registerIconSet();var block=c=>c,ALL_SLOT_BLOCKS=/* @__PURE__ */Object.freeze({CartBar:block(CartBar),CartLine:block(CartLine),CheckinSheet:block(CheckinSheet),OrderRow:block(OrderRow),PlanNeedCard:block(PlanNeedCard),PriceSummary:block(PriceSummary),ProductTile:block(ProductTile),ScoreLights:block(ScoreLights),SummaryList:block(SummaryList),TipCard:block(TipCard),WeatherAlert:block(WeatherAlert),WeatherCard:block(WeatherCard),WeatherDetails:block(WeatherDetails),WeatherForecast:block(WeatherForecast),WeatherHours:block(WeatherHours),WeatherLevels:block(WeatherLevels),WeatherReading:block(WeatherReading),WhySheet:block(WhySheet)});function registryCatalog(platform){return{knows(type,variant){let spec=Object.prototype.hasOwnProperty.call(SLOT_BLOCKS,type)?SLOT_BLOCKS[type]:void 0;if(spec===void 0||!spec.platforms.includes(platform))return false;if(variant===void 0)return true;let setting=spec.settings.variant;return variant===setting?.default?true:spec.variants.includes(variant)?setting?.platforms===void 0||setting.platforms.includes(platform):false}}}function keep(part2){return{id:part2.id,...part2.repeat?{repeat:part2.repeat}:{},...part2.visibleIf?{visibleIf:part2.visibleIf}:{}}}function replacementFor(part2,catalog){if(catalog.knows(part2.type,part2.variant))return part2;if(part2.fallback==="hide")return null;let own=ownFallbackFor(part2,catalog);if(own!==null)return own;let spec=Object.prototype.hasOwnProperty.call(SLOT_BLOCKS,part2.type)?SLOT_BLOCKS[part2.type]:void 0,named=spec?.fallback??null;if(named===null||named==="hide"||!catalog.knows(named))return null;let target=SLOT_BLOCKS[named];if(spec?.fallbackProps!==void 0&&target!==void 0)return mappedFallback(part2,spec,named,target);let bind={};for(let[prop,value]of Object.entries(part2.bind))target?.props.includes(prop)&&(bind[prop]=value);return{...keep(part2),type:named,settings:{},bind:bind,actions:part2.actions}}function settingTakes(setting,value){return setting.type==="boolean"?typeof value=="boolean":setting.type==="enum"?typeof value=="string"&&(setting.values??[]).includes(value):setting.type==="lines"?Array.isArray(value)&&new Set(value).size===value.length&&value.every(line=>typeof line=="string"&&(setting.values??[]).includes(line)):false}function mappedFallback(part2,spec,named,target){let bind={},settings={},fixed={},variant;for(let[prop,rule]of Object.entries(spec.fallbackProps??{})){if("from"in rule){Object.prototype.hasOwnProperty.call(part2.bind,rule.from)&&(bind[prop]=part2.bind[rule.from]);continue}let value=rule.const;if(prop==="variant"){typeof value=="string"&&target.variants.includes(value)&&(variant=value);continue}let setting=Object.entries(target.settings).find(([key,s])=>key!=="variant"&&s.prop===prop);setting!==void 0&&settingTakes(setting[1],value)?settings[setting[0]]=value:typeof value=="string"&&(fixed[prop]=value)}let set=/* @__PURE__ */new Set([...Object.keys(bind),...Object.keys(fixed),...Object.keys(settings).map(key=>target.settings[key]?.prop)]);return variant!==void 0&&set.add("variant"),target.required.some(prop=>!set.has(prop))?null:{...keep(part2),type:named,...variant!==void 0?{variant:variant}:{},settings:settings,bind:bind,actions:{},...Object.keys(fixed).length>0?{fixed:fixed}:{}}}function ownFallbackFor(part2,catalog){let own=part2.fallback;return own===void 0||own==="hide"||!catalog.knows(own.type,own.variant)?null:{...keep(part2),type:own.type,...own.variant?{variant:own.variant}:{},settings:own.settings,bind:own.bind,actions:own.actions}}function partsToDraw(doc2,catalog){let out=[];for(let part2 of doc2.parts){let next=replacementFor(part2,catalog);next!==null&&out.push(next)}return out.length===0||out.length<doc2.minBlocks?null:out}var SLOT_EXTERNAL_HOSTS=/* @__PURE__ */Object.freeze(["everfur.com","www.everfur.com","docs.everfur.com"]),SLOT_ROUTES=/* @__PURE__ */Object.freeze(["chat","health_plan","plan.detail","records","shop","shop.cart","shop.orders","visit"]),SLOT_SHEETS=/* @__PURE__ */Object.freeze(["health_plan.checkout","health_plan.manage","health_plan.weight"]),EVENT=/^[a-z][a-z0-9_]*(\.[a-z][a-z0-9_]*){0,4}$/,HTTPS_URL=/^https:\/\/([A-Za-z0-9.-]+)(?:[/?#][^\s]*)?$/,URL_MAX=512;function isAllowedExternalUrl(url){if(url.length>URL_MAX)return false;let m=HTTPS_URL.exec(url);return m!==null&&SLOT_EXTERNAL_HOSTS.includes((m[1]??"").toLowerCase())}function parseSlotAction(value){if(typeof value!="string")return null;let at=value.indexOf(":");if(at<=0)return null;let kind=value.slice(0,at),target=value.slice(at+1);switch(kind){case"navigate":return SLOT_ROUTES.includes(target)?{kind:kind,route:target}:null;case"open_sheet":return SLOT_SHEETS.includes(target)?{kind:kind,id:target}:null;case"track":return EVENT.test(target)?{kind:kind,event:target}:null;case"external":return isAllowedExternalUrl(target)?{kind:kind,url:target}:null;default:return null}}var NOT_BINDABLE=/* @__PURE__ */new Set(["action","actions","busy","disabled","error","fallback","footPress","link","loading","loadingLabel","metaLink","namePress","next","open","quantity","stepper","testID","visible"]),SLOT_TEXT_PROPS=/* @__PURE__ */Object.freeze({CartBar:["actionLabel","actionAccessibilityLabel","actionHiddenWord","countLabel","sub","total"],CartLine:["name","imageAlt","meta","price","wasPrice","removeLabel","note"],CheckinSheet:["kicker","title","flowLabel","doneText","closeLabel"],OrderRow:["number","title","meta","total","accessibilityLabel"],PlanNeedCard:["kicker","source","title"],PriceSummary:["note"],ProductTile:["name","imageAlt","kicker","meta","price","wasPrice","per","badge"],ScoreLights:["heading","pill","since","vizLabel"],SummaryList:["note"],TipCard:["number","title","text","foot","accessibilityLabel"],WeatherAlert:["title","text","accessibilityLabel"],WeatherCard:["heading","temperature","condition","details","verdict","advice","label","note","tagsLabel"],WeatherDetails:["label"],WeatherForecast:["label"],WeatherHours:["label"],WeatherLevels:["label"],WeatherReading:["value","word"],WhySheet:["kind","title","sub","heading","closeLabel"]}),has2=(obj2,key)=>Object.prototype.hasOwnProperty.call(obj2,key);function present(value){return value==null||value===""?false:!Array.isArray(value)||value.length>0}function dataOf(data,name){return has2(data,name)?data[name]:void 0}function partVisible(part2,data,copy){let cond=part2.visibleIf;if(cond===void 0)return true;let ref=parseSlotRef(cond.source);if(ref===null)return false;if(ref.kind==="item")return true;let there=ref.kind==="data"?present(dataOf(data,ref.name)):has2(copy,ref.name);return cond.op==="present"?there:!there}function itemVisible(part2,item){let ref=parseSlotRef(part2.visibleIf?.source);if(ref?.kind!=="item")return true;let there=present(item[ref.name]);return part2.visibleIf?.op==="present"?there:!there}function propsFor(part2,item,data,copy,platform){let spec=SLOT_BLOCKS[part2.type],known=spec?.props??[],text=SLOT_TEXT_PROPS[part2.type]??[],out={};for(let prop of known)has2(item,prop)&&!NOT_BINDABLE.has(prop)&&item[prop]!==void 0&&(out[prop]=item[prop]);for(let[prop,value]of Object.entries(part2.bind)){if(!known.includes(prop)||NOT_BINDABLE.has(prop))continue;let ref=parseSlotRef(value);if(ref===null)continue;let next,field=prop;if(ref.kind==="copy"){if(!text.includes(prop))continue;next=has2(copy,ref.name)?copy[ref.name]:void 0,field=""}else if(ref.kind==="item")field=ref.name,next=has2(item,field)?item[field]:void 0;else{let first=dataOf(data,ref.name)?.[0];next=first!==void 0&&has2(first,prop)?first[prop]:void 0}ref.kind!=="copy"&&field!==prop&&!(text.includes(prop)&&typeof next=="string")||(next===void 0?delete out[prop]:out[prop]=next)}for(let[prop,value]of Object.entries(part2.fixed??{}))known.includes(prop)&&!NOT_BINDABLE.has(prop)&&(out[prop]=value);part2.variant!==void 0&&known.includes("variant")&&(out.variant=part2.variant);for(let[name,value]of Object.entries(part2.settings)){let setting=spec?.settings[name];if(!(setting===void 0||setting.platforms!==void 0&&!setting.platforms.includes(platform)))if(setting.type==="lines"){if(!Array.isArray(value))continue;for(let line of setting.values??[])value.includes(line)||delete out[line]}else setting.prop!==void 0&&known.includes(setting.prop)&&(setting.type==="boolean"&&typeof value=="boolean"||setting.type==="enum"&&typeof value=="string"&&(setting.values??[]).includes(value))&&(out[setting.prop]=value)}return out}function keyOf5(item,index){let key=item.key;return typeof key=="string"&&key!==""?`${key}#${index}`:String(index)}function hasRequiredProps(type,props){let spec=SLOT_BLOCKS[type];return spec!==void 0&&spec.required.every(prop=>props[prop]!==void 0&&props[prop]!==null)}function resolveSlotPart(part2,data,copy,platform="native"){if(SLOT_BLOCKS[part2.type]===void 0||!partVisible(part2,data,copy))return null;let repeat=parseSlotRef(part2.repeat),items;if(part2.repeat!==void 0){if(repeat?.kind!=="data")return null;items=dataOf(data,repeat.name)??[]}else{let subject=Object.values(part2.bind).map(v=>parseSlotRef(v)).find(ref=>ref?.kind==="data");if(subject){let first=dataOf(data,subject.name)?.[0];items=first===void 0?[]:[first]}else items=[{}]}let blocks=[],incomplete=0;if(items.forEach((item,i)=>{if(!itemVisible(part2,item))return;let props=propsFor(part2,item,data,copy,platform);hasRequiredProps(part2.type,props)?blocks.push({key:keyOf5(item,i),props:/* @__PURE__ */Object.freeze(props)}):incomplete+=1}),blocks.length===0&&incomplete===0)return null;let actions={};for(let[name,value]of Object.entries(part2.actions)){let action=parseSlotAction(value);action!==null&&(actions[name]=action)}return{part:part2,blocks:blocks,incomplete:incomplete,actions:actions}}var FACE_WEIGHT=/* @__PURE__ */Object.freeze({regular:"regular",medium:"medium",bold:"bold",mono:"regular",monoMedium:"medium",monoBold:"bold"});function face(theme,weight){let type=theme.type,fontFamily=type.families[weight];return weight==="mono"||type.namedFaces[weight]?{fontFamily:fontFamily}:{fontFamily:fontFamily,fontWeight:type.weight[FACE_WEIGHT[weight]]}}function headingFace(theme,fallback="bold"){let{headingFamily:headingFamily,headingWeight:headingWeight}=theme.type;if(headingFamily===null&&headingWeight===null)return face(theme,fallback);if(headingFamily!==null)return{fontFamily:headingFamily,fontWeight:headingWeight??theme.type.weight[FACE_WEIGHT[fallback]]};let base3=face(theme,fallback);return base3.fontWeight===void 0||headingWeight===null?base3:{fontFamily:base3.fontFamily,fontWeight:headingWeight}}function weightBucket(weight){return weight<=450?"regular":weight<=650?"medium":"bold"}var MONO_OF={regular:"mono",medium:"monoMedium",bold:"monoBold"};function textRole(theme,role){let byRole=roleCache.get(theme);byRole===void 0&&(byRole=/* @__PURE__ */new Map,roleCache.set(theme,byRole));let hit=byRole.get(role);if(hit!==void 0)return hit;let style=buildRole(theme,role);return byRole.set(role,style),style}var roleCache=/* @__PURE__ */new WeakMap;function buildRole(theme,role){let r=theme.type.roles[role],weight=r.weight==="400"&&r.face!=="mono"?theme.type.weight.regular:r.weight,bucket=weightBucket(Number(weight)),f=r.face==="mono"?face(theme,MONO_OF[bucket]):r.face==="heading"?headingFace(theme,bucket):face(theme,bucket),faceWeight=r.face==="heading"?theme.type.headingWeight??weight:weight,faceStyle=f.fontWeight===void 0?f:{fontFamily:f.fontFamily,fontWeight:faceWeight},fontSize=r.size,out={...faceStyle,fontSize:fontSize,lineHeight:Math.round(fontSize*r.lineHeight*100)/100};return r.letterSpacing!==0&&(out.letterSpacing=Math.round(fontSize*r.letterSpacing*100)/100),r.uppercase&&(out.textTransform="uppercase"),/* @__PURE__ */Object.freeze(out)}var DESIGN_V3_LIGHT=/* @__PURE__ */Object.freeze({ink:"#262523",ink2:"#4A4845",ink3:"#6B6863",paper:"#F8F7F4",card:"#FFFFFF",line:"#E7E6E2",tile:"#F2F1EE",shadow:"rgba(38, 37, 35, .07)",riskBg:"#FFE3E1",riskInk:"#B0231B",riskDot:"#E5372B",clearBg:"#E6F4D3",clearInk:"#2F6A12",clearDot:"#5FA82B",watchDot:"#E5A000"}),cache2=/* @__PURE__ */new WeakMap;function v3Palette(theme){let hit=cache2.get(theme);if(hit!==void 0)return hit;let c=theme.color,dark=theme.brightness==="dark",neutrals=dark?{dark:dark,ink:c.text.primary,ink2:c.text.secondary,ink3:c.text.muted,paper:c.background,card:c.surface,line:c.borderRingCream,tile:c.surfaceSubtle,shadow:c.shadow,riskBg:c.badgeBgCritical,riskInk:c.danger,riskDot:c.danger,clearBg:c.badgeBgPositive,clearInk:c.success,clearDot:c.success,watchDot:c.warningStrong}:{dark:dark,...DESIGN_V3_LIGHT},textOn=(ink,grounds)=>pushToContrast(ink,grounds,poleForGrounds(grounds),V3_TEXT_CONTRAST),labelOn=(ink,fill)=>contrastRatio(ink,fill)>=V3_TEXT_CONTRAST?ink:legibleOn(fill,V3_TEXT_CONTRAST),badgeGrounds=[neutrals.card,neutrals.paper].map(under=>flattenOnto(c.brandSoft,under)??under),brand={primary:c.primary,onPrimary:labelOn(c.onPrimary,c.primary),accent:c.accent,onAccent:labelOn(c.onAccent,c.accent),link:textOn(c.linkInk,[neutrals.card,neutrals.paper,neutrals.tile]),badge:c.brandSoft,onBadge:textOn(c.brandInk,badgeGrounds)},palette=/* @__PURE__ */Object.freeze({...neutrals,...brand});return cache2.set(theme,palette),palette}var V3_TEXT_CONTRAST=4.5;var EVERFUR_THEME_CONTEXT_SYMBOL=/* @__PURE__ */Symbol.for("@everfur/sdk#EverfurThemeContext@v1"),globalThemeHost=globalThis,EverfurThemeContext=globalThemeHost[EVERFUR_THEME_CONTEXT_SYMBOL]??(globalThemeHost[EVERFUR_THEME_CONTEXT_SYMBOL]=createContext(EVERFUR_LIGHT));EverfurThemeContext.displayName??="EverfurThemeContext";function useEverfurTheme(){return useContext(EverfurThemeContext)}var rnBlockFonts=theme=>{let n=theme.type.namedFaces,family=key=>face(theme,key).fontFamily;return{family:family("regular"),mono:family("mono"),faces:{regular:family("regular"),medium:family("medium"),bold:family("bold"),mono:family("mono"),monoBold:family("monoBold"),serif:headingFace(theme,"bold").fontFamily},namedFaces:n.regular&&n.medium&&n.bold}},mapped=/* @__PURE__ */new WeakMap;function themeInputFromEverfur(theme,fonts,base3=everfurTheme){if(base3!==everfurTheme)return mapEverfur(theme,fonts,base3);let byTheme=mapped.get(fonts);byTheme===void 0&&mapped.set(fonts,byTheme=/* @__PURE__ */new WeakMap);let input=byTheme.get(theme);return input===void 0&&byTheme.set(theme,input=mapEverfur(theme,fonts,base3)),input}function mapEverfur(theme,fonts,base3){let c=theme.color,d=EVERFUR_LIGHT.color,dark=theme.brightness==="dark",compiled=dark?EVERFUR_DARK:EVERFUR_LIGHT,moved=key=>c[key]!==d[key],colors={};if(moved("primary")?(Object.assign(colors,{ink:c.primary,onInk:c.onPrimary,focus:c.primary}),moved("accent")||Object.assign(colors,{go:c.primary,onGo:c.onPrimary})):moved("onPrimary")&&(colors.onInk=c.onPrimary),moved("accent")&&Object.assign(colors,{go:c.accent,onGo:c.onAccent}),moved("brandSoft")&&(colors.tintSage=c.brandSoft),moved("danger")&&Object.assign(colors,{alert:c.danger,alertDeep:c.danger}),dark)Object.assign(colors,{bg:c.background,surface:c.surface,text:c.text.primary,muted:c.text.muted,line:c.borderRingCream});else{let k2=compiled.color;c.background!==k2.background&&(colors.bg=c.background),c.surface!==k2.surface&&(colors.surface=c.surface),c.text.primary!==k2.text.primary&&(colors.text=c.text.primary),c.text.muted!==k2.text.muted&&(colors.muted=c.text.muted)}let over={};Object.keys(colors).length>0&&(over.colors={...colors});let r=theme.radius,kr=compiled.radius;if(r.xs!==kr.xs||r.sm!==kr.sm||r.lg!==kr.lg||r.xl!==kr.xl||r.pill!==kr.pill){let radius={};r.xs!==kr.xs&&(radius.sm=r.xs),r.sm!==kr.sm&&(radius.md=r.sm),r.lg!==kr.lg&&(radius.lg=r.lg),r.xl!==kr.xl&&(radius.xl=r.xl),r.pill!==kr.pill&&(radius.pill=r.pill),over.radius=radius,(r.lg!==kr.lg||r.xl!==kr.xl)&&(over.metrics={...r.lg!==kr.lg?{card:{radius:r.lg},summary:{radius:r.lg}}:{},...r.xl!==kr.xl?{sheet:{radius:r.xl}}:{}})}if(theme.space.xs!==compiled.space.xs){let f=theme.space.xs/compiled.space.xs,s=base3.space,n=v=>Math.round(v*f);over.space={1:n(s[1]),2:n(s[2]),3:n(s[3]),4:n(s[4]),5:n(s[5]),6:n(s[6]),7:n(s[7]),8:n(s[8]),9:n(s[9])}}let ts=theme.type.size,ks=compiled.type.size,sizeMoved=ts.caption!==ks.caption||ts.bodyTight!==ks.bodyTight||ts.body!==ks.body||ts.subtitle!==ks.subtitle||ts.verdict!==ks.verdict,lh=theme.type.lineHeight,klh=compiled.type.lineHeight,lineMoved=lh.relaxed!==klh.relaxed||lh.tight!==klh.tight,caps=theme.type.scaleCaps,kcaps=compiled.type.scaleCaps,capsMoved=caps.content!==kcaps.content||caps.heading!==kcaps.heading||caps.control!==kcaps.control||caps.compact!==kcaps.compact||caps.badge!==kcaps.badge,typeMoved=sizeMoved||lineMoved||capsMoved;over.type={...sizeMoved?{size:{xs:ts.caption,sm:ts.bodyTight,md:ts.body,lg:ts.subtitle,xl:ts.verdict}}:{},...lineMoved?{lineHeight:{body:lh.relaxed,display:lh.tight}}:{},...capsMoved?{scaleCaps:{content:caps.content,heading:caps.heading,control:caps.control,compact:caps.compact,badge:caps.badge}}:{},...fonts(theme)},theme.motion.reducedMotion&&!base3.motion.reduced&&(over.motion={reduced:true});let branded=typeMoved||Object.keys(colors).length>0||Object.keys(over).some(k2=>k2!=="type"&&k2!=="colors")||theme.type.families.regular!==EVERFUR_LIGHT.type.families.regular,plan=planColors(theme,compiled,colors.surface??base3.colors.surface),ownPlan=Object.entries(plan).filter(([k2,v])=>v!==base3.colors[k2]);return ownPlan.length>0&&(over.colors={...colors,...Object.fromEntries(ownPlan)}),branded?{name:"partner",...over}:over}var DS_PLAN={planAccent:everfurTheme.colors.planAccent,planLink:everfurTheme.colors.planLink},PLAN_WASHES2={planAccentWash:["accent",.17],planAccentChip:["accent",.47],planLinkWash:["link",.12],planLinkChip:["link",.2]};function planColors(theme,compiled,surface){let v=v3Palette(theme),k2=v3Palette(compiled),c=theme.color,out={};(c.primary!==compiled.color.primary||c.onPrimary!==compiled.color.onPrimary)&&Object.assign(out,{planInk:c.primary,planOnInk:v.onPrimary}),c.accent!==compiled.color.accent&&(out.planAccent=c.accent),v.link!==k2.link&&(out.planLink=v.link);let ink={accent:out.planAccent??DS_PLAN.planAccent,link:out.planLink??DS_PLAN.planLink},slot={planLinkWash:v.dark?void 0:theme.slots.planWash?.backgroundColor,planLinkChip:v.dark?void 0:theme.slots.planChip?.backgroundColor},ownCard=surface.toLowerCase()!==v.card.toLowerCase();for(let[key,[from,share2]]of Object.entries(PLAN_WASHES2)){let given=slot[key];given!==void 0?out[key]=given:ownCard&&(out[key]=mixColor(ink[from],share2,v.card,v.card))}return out}function useBlockThemeInput(fonts){let everfur=useEverfurTheme();return useMemo(()=>themeInputFromEverfur(everfur,fonts),[everfur,fonts])}function BlockScope({children:children}){let input=useBlockThemeInput(rnBlockFonts);return createElement(ThemeProvider,{theme:input},children)}function catalogOf(blocks){let registry=registryCatalog("native");return{knows:(type,variant)=>Object.prototype.hasOwnProperty.call(blocks,type)&®istry.knows(type,variant)}}function slotPartsOf(doc2,slot,blocks){let catalog=catalogOf(blocks);if(doc2!==null){let parts=partsToDraw(doc2,catalog);if(parts!==null)return parts}let bundled=bundledSlotDoc(slot);return bundled===null?[]:partsToDraw(bundled,catalog)??[]}var COLOR_ROLES=new Set(Object.keys(everfurTheme.colors)),RADII=new Set(Object.keys(everfurTheme.radius)),SPACES=new Set(Object.keys(everfurTheme.space));function slotThemeInput(tokens){let colors={},radius={},space={};for(let[name,value]of Object.entries(tokens)){let[group,key,extra]=name.split(".");key===void 0||extra!==void 0||((group==="color"||group==="colors")&&typeof value=="string"&&COLOR_ROLES.has(key)?colors[key]=value:group==="radius"&&typeof value=="number"&&value>=0&&RADII.has(key)?radius[key]=value:group==="space"&&typeof value=="number"&&value>=0&&SPACES.has(key)&&(space[key]=value))}let out={};return Object.keys(colors).length>0&&(out.colors=colors),Object.keys(radius).length>0&&(out.radius=radius),Object.keys(space).length>0&&(out.space=space),Object.keys(out).length===0?null:out}function run(action,context,handlers,track){switch(action.kind){case"navigate":callHost(handlers.onNavigate,action.route,context);return;case"open_sheet":callHost(handlers.onOpenSheet,action.id,context);return;case"track":track("slots.track",{slot:context.slot,part:context.part,event:action.event});return;case"external":handlers.onOpenUrl?callHost(handlers.onOpenUrl,action.url):Linking.openURL(action.url).catch(()=>{})}}function canRun(action,handlers){return action.kind==="navigate"?handlers.onNavigate!==void 0:action.kind==="open_sheet"?handlers.onOpenSheet!==void 0:true}function DrawnPart({blocks:blocks,resolved:resolved,slot:slot,handlers:handlers,track:track}){let Block=Object.prototype.hasOwnProperty.call(blocks,resolved.part.type)?blocks[resolved.part.type]:void 0;if(Block===void 0)return null;let press=resolved.actions.onPress;/* @__PURE__ */
|
|
281
|
+
/* @__PURE__ */jsx(Text,{style:[text(m.value),{fontSize:size,lineHeight:m.value.lineHeight*k2,letterSpacing:m.value.tracking*k2}],children:value}),word?/* @__PURE__ */jsx(Text,{style:[text(m.word),{color:colorOf(t,rm.tones[tone])}],children:word}):null]})]})}var registered=false;function registerIconSet(){registered||(registered=true,registerIcons(UI_RN_ICONS))}registerIconSet();var block=c=>c,ALL_SLOT_BLOCKS=/* @__PURE__ */Object.freeze({CartBar:block(CartBar),CartLine:block(CartLine),CheckinSheet:block(CheckinSheet),OrderRow:block(OrderRow),PlanNeedCard:block(PlanNeedCard),PriceSummary:block(PriceSummary),ProductTile:block(ProductTile),ScoreLights:block(ScoreLights),SummaryList:block(SummaryList),TipCard:block(TipCard),WeatherAlert:block(WeatherAlert),WeatherCard:block(WeatherCard),WeatherDetails:block(WeatherDetails),WeatherForecast:block(WeatherForecast),WeatherHours:block(WeatherHours),WeatherLevels:block(WeatherLevels),WeatherReading:block(WeatherReading),WhySheet:block(WhySheet)});function registryCatalog(platform){return{knows(type,variant){let spec=Object.prototype.hasOwnProperty.call(SLOT_BLOCKS,type)?SLOT_BLOCKS[type]:void 0;if(spec===void 0||!spec.platforms.includes(platform))return false;if(variant===void 0)return true;let setting=spec.settings.variant;return variant===setting?.default?true:spec.variants.includes(variant)?setting?.platforms===void 0||setting.platforms.includes(platform):false}}}function keep(part2){return{id:part2.id,...part2.repeat?{repeat:part2.repeat}:{},...part2.visibleIf?{visibleIf:part2.visibleIf}:{}}}function replacementFor(part2,catalog){if(catalog.knows(part2.type,part2.variant))return part2;if(part2.fallback==="hide")return null;let own=ownFallbackFor(part2,catalog);if(own!==null)return own;let spec=Object.prototype.hasOwnProperty.call(SLOT_BLOCKS,part2.type)?SLOT_BLOCKS[part2.type]:void 0,named=spec?.fallback??null;if(named===null||named==="hide"||!catalog.knows(named))return null;let target=SLOT_BLOCKS[named];if(spec?.fallbackProps!==void 0&&target!==void 0)return mappedFallback(part2,spec,named,target);let bind={};for(let[prop,value]of Object.entries(part2.bind))target?.props.includes(prop)&&(bind[prop]=value);return{...keep(part2),type:named,settings:{},bind:bind,actions:{}}}function settingTakes(setting,value){return setting.type==="boolean"?typeof value=="boolean":setting.type==="enum"?typeof value=="string"&&(setting.values??[]).includes(value):setting.type==="lines"?Array.isArray(value)&&new Set(value).size===value.length&&value.every(line=>typeof line=="string"&&(setting.values??[]).includes(line)):false}function mappedFallback(part2,spec,named,target){let bind={},settings={},fixed={},variant;for(let[prop,rule]of Object.entries(spec.fallbackProps??{})){if("from"in rule){Object.prototype.hasOwnProperty.call(part2.bind,rule.from)&&(bind[prop]=part2.bind[rule.from]);continue}let value=rule.const;if(prop==="variant"){typeof value=="string"&&target.variants.includes(value)&&(variant=value);continue}let setting=Object.entries(target.settings).find(([key,s])=>key!=="variant"&&s.prop===prop);setting!==void 0&&settingTakes(setting[1],value)?settings[setting[0]]=value:typeof value=="string"&&(fixed[prop]=value)}let set=/* @__PURE__ */new Set([...Object.keys(bind),...Object.keys(fixed),...Object.keys(settings).map(key=>target.settings[key]?.prop)]);return variant!==void 0&&set.add("variant"),target.required.some(prop=>!set.has(prop))?null:{...keep(part2),type:named,...variant!==void 0?{variant:variant}:{},settings:settings,bind:bind,actions:{},...Object.keys(fixed).length>0?{fixed:fixed}:{}}}function ownFallbackFor(part2,catalog){let own=part2.fallback;return own===void 0||own==="hide"||!catalog.knows(own.type,own.variant)?null:{...keep(part2),type:own.type,...own.variant?{variant:own.variant}:{},settings:own.settings,bind:own.bind,actions:own.actions}}function partsToDraw(doc2,catalog){let out=[];for(let part2 of doc2.parts){let next=replacementFor(part2,catalog);next!==null&&out.push(next)}return out.length===0||out.length<doc2.minBlocks?null:out}var SLOT_EXTERNAL_HOSTS=/* @__PURE__ */Object.freeze(["everfur.com","www.everfur.com","docs.everfur.com"]),SLOT_ROUTES=/* @__PURE__ */Object.freeze(["chat","health_plan","plan.detail","records","shop","shop.cart","shop.orders","visit"]),SLOT_SHEETS=/* @__PURE__ */Object.freeze(["health_plan.checkout","health_plan.manage","health_plan.weight"]),EVENT=/^[a-z][a-z0-9_]*(\.[a-z][a-z0-9_]*){0,4}$/,HTTPS_URL=/^https:\/\/([A-Za-z0-9.-]+)(?:[/?#][^\s]*)?$/,URL_MAX=512;function isAllowedExternalUrl(url){if(url.length>URL_MAX)return false;let m=HTTPS_URL.exec(url);return m!==null&&SLOT_EXTERNAL_HOSTS.includes((m[1]??"").toLowerCase())}function parseSlotAction(value){if(typeof value!="string")return null;let at=value.indexOf(":");if(at<=0)return null;let kind=value.slice(0,at),target=value.slice(at+1);switch(kind){case"navigate":return SLOT_ROUTES.includes(target)?{kind:kind,route:target}:null;case"open_sheet":return SLOT_SHEETS.includes(target)?{kind:kind,id:target}:null;case"track":return EVENT.test(target)?{kind:kind,event:target}:null;case"external":return isAllowedExternalUrl(target)?{kind:kind,url:target}:null;default:return null}}var NOT_BINDABLE=/* @__PURE__ */new Set(["action","actions","busy","disabled","error","fallback","footPress","link","loading","loadingLabel","metaLink","namePress","next","open","quantity","stepper","testID","visible"]),SLOT_TEXT_PROPS=/* @__PURE__ */Object.freeze({CartBar:["actionLabel","actionAccessibilityLabel","actionHiddenWord","countLabel","sub","total"],CartLine:["name","imageAlt","meta","price","wasPrice","removeLabel","note"],CheckinSheet:["kicker","title","flowLabel","doneText","closeLabel"],OrderRow:["number","title","meta","total","accessibilityLabel"],PlanNeedCard:["kicker","source","title"],PriceSummary:["note"],ProductTile:["name","imageAlt","kicker","meta","price","wasPrice","per","badge"],ScoreLights:["heading","pill","since","vizLabel"],SummaryList:["note"],TipCard:["number","title","text","foot","accessibilityLabel"],WeatherAlert:["title","text","accessibilityLabel"],WeatherCard:["heading","temperature","condition","details","verdict","advice","label","note","tagsLabel"],WeatherDetails:["label"],WeatherForecast:["label"],WeatherHours:["label"],WeatherLevels:["label"],WeatherReading:["value","word"],WhySheet:["kind","title","sub","heading","closeLabel"]}),has2=(obj2,key)=>Object.prototype.hasOwnProperty.call(obj2,key);function present(value){return value==null||value===""?false:!Array.isArray(value)||value.length>0}function dataOf(data,name){return has2(data,name)?data[name]:void 0}function partVisible(part2,data,copy){let cond=part2.visibleIf;if(cond===void 0)return true;let ref=parseSlotRef(cond.source);if(ref===null)return false;if(ref.kind==="item")return true;let there=ref.kind==="data"?present(dataOf(data,ref.name)):has2(copy,ref.name);return cond.op==="present"?there:!there}function itemVisible(part2,item){let ref=parseSlotRef(part2.visibleIf?.source);if(ref?.kind!=="item")return true;let there=present(item[ref.name]);return part2.visibleIf?.op==="present"?there:!there}function propsFor(part2,item,data,copy,platform){let spec=SLOT_BLOCKS[part2.type],known=spec?.props??[],text=SLOT_TEXT_PROPS[part2.type]??[],out={};for(let prop of known)has2(item,prop)&&!NOT_BINDABLE.has(prop)&&item[prop]!==void 0&&(out[prop]=item[prop]);for(let[prop,value]of Object.entries(part2.bind)){if(!known.includes(prop)||NOT_BINDABLE.has(prop))continue;let ref=parseSlotRef(value);if(ref===null)continue;let next,field=prop;if(ref.kind==="copy"){if(!text.includes(prop))continue;next=has2(copy,ref.name)?copy[ref.name]:void 0,field=""}else if(ref.kind==="item")field=ref.name,next=has2(item,field)?item[field]:void 0;else{let first=dataOf(data,ref.name)?.[0];next=first!==void 0&&has2(first,prop)?first[prop]:void 0}ref.kind!=="copy"&&field!==prop&&!(text.includes(prop)&&typeof next=="string")||(next===void 0?delete out[prop]:out[prop]=next)}for(let[prop,value]of Object.entries(part2.fixed??{}))known.includes(prop)&&!NOT_BINDABLE.has(prop)&&(out[prop]=value);part2.variant!==void 0&&known.includes("variant")&&(out.variant=part2.variant);for(let[name,value]of Object.entries(part2.settings)){let setting=spec?.settings[name];if(!(setting===void 0||setting.platforms!==void 0&&!setting.platforms.includes(platform)))if(setting.type==="lines"){if(!Array.isArray(value))continue;for(let line of setting.values??[])value.includes(line)||delete out[line]}else setting.prop!==void 0&&known.includes(setting.prop)&&(setting.type==="boolean"&&typeof value=="boolean"||setting.type==="enum"&&typeof value=="string"&&(setting.values??[]).includes(value))&&(out[setting.prop]=value)}return out}function keyOf5(item,index){let key=item.key;return typeof key=="string"&&key!==""?`${key}#${index}`:String(index)}function hasRequiredProps(type,props){let spec=SLOT_BLOCKS[type];return spec!==void 0&&spec.required.every(prop=>props[prop]!==void 0&&props[prop]!==null)}function resolveSlotPart(part2,data,copy,platform="native"){if(SLOT_BLOCKS[part2.type]===void 0||!partVisible(part2,data,copy))return null;let repeat=parseSlotRef(part2.repeat),items;if(part2.repeat!==void 0){if(repeat?.kind!=="data")return null;items=dataOf(data,repeat.name)??[]}else{let subject=Object.values(part2.bind).map(v=>parseSlotRef(v)).find(ref=>ref?.kind==="data");if(subject){let first=dataOf(data,subject.name)?.[0];items=first===void 0?[]:[first]}else items=[{}]}let blocks=[],incomplete=0;if(items.forEach((item,i)=>{if(!itemVisible(part2,item))return;let props=propsFor(part2,item,data,copy,platform);hasRequiredProps(part2.type,props)?blocks.push({key:keyOf5(item,i),props:/* @__PURE__ */Object.freeze(props)}):incomplete+=1}),blocks.length===0&&incomplete===0)return null;let actions={};for(let[name,value]of Object.entries(part2.actions)){let action=parseSlotAction(value);action!==null&&(actions[name]=action)}return{part:part2,blocks:blocks,incomplete:incomplete,actions:actions}}var FACE_WEIGHT=/* @__PURE__ */Object.freeze({regular:"regular",medium:"medium",bold:"bold",mono:"regular",monoMedium:"medium",monoBold:"bold"});function face(theme,weight){let type=theme.type,fontFamily=type.families[weight];return weight==="mono"||type.namedFaces[weight]?{fontFamily:fontFamily}:{fontFamily:fontFamily,fontWeight:type.weight[FACE_WEIGHT[weight]]}}function headingFace(theme,fallback="bold"){let{headingFamily:headingFamily,headingWeight:headingWeight}=theme.type;if(headingFamily===null&&headingWeight===null)return face(theme,fallback);if(headingFamily!==null)return{fontFamily:headingFamily,fontWeight:headingWeight??theme.type.weight[FACE_WEIGHT[fallback]]};let base3=face(theme,fallback);return base3.fontWeight===void 0||headingWeight===null?base3:{fontFamily:base3.fontFamily,fontWeight:headingWeight}}function weightBucket(weight){return weight<=450?"regular":weight<=650?"medium":"bold"}var MONO_OF={regular:"mono",medium:"monoMedium",bold:"monoBold"};function textRole(theme,role){let byRole=roleCache.get(theme);byRole===void 0&&(byRole=/* @__PURE__ */new Map,roleCache.set(theme,byRole));let hit=byRole.get(role);if(hit!==void 0)return hit;let style=buildRole(theme,role);return byRole.set(role,style),style}var roleCache=/* @__PURE__ */new WeakMap;function buildRole(theme,role){let r=theme.type.roles[role],weight=r.weight==="400"&&r.face!=="mono"?theme.type.weight.regular:r.weight,bucket=weightBucket(Number(weight)),f=r.face==="mono"?face(theme,MONO_OF[bucket]):r.face==="heading"?headingFace(theme,bucket):face(theme,bucket),faceWeight=r.face==="heading"?theme.type.headingWeight??weight:weight,faceStyle=f.fontWeight===void 0?f:{fontFamily:f.fontFamily,fontWeight:faceWeight},fontSize=r.size,out={...faceStyle,fontSize:fontSize,lineHeight:Math.round(fontSize*r.lineHeight*100)/100};return r.letterSpacing!==0&&(out.letterSpacing=Math.round(fontSize*r.letterSpacing*100)/100),r.uppercase&&(out.textTransform="uppercase"),/* @__PURE__ */Object.freeze(out)}var DESIGN_V3_LIGHT=/* @__PURE__ */Object.freeze({ink:"#262523",ink2:"#4A4845",ink3:"#6B6863",paper:"#F8F7F4",card:"#FFFFFF",line:"#E7E6E2",tile:"#F2F1EE",shadow:"rgba(38, 37, 35, .07)",riskBg:"#FFE3E1",riskInk:"#B0231B",riskDot:"#E5372B",clearBg:"#E6F4D3",clearInk:"#2F6A12",clearDot:"#5FA82B",watchDot:"#E5A000"}),cache2=/* @__PURE__ */new WeakMap;function v3Palette(theme){let hit=cache2.get(theme);if(hit!==void 0)return hit;let c=theme.color,dark=theme.brightness==="dark",neutrals=dark?{dark:dark,ink:c.text.primary,ink2:c.text.secondary,ink3:c.text.muted,paper:c.background,card:c.surface,line:c.borderRingCream,tile:c.surfaceSubtle,shadow:c.shadow,riskBg:c.badgeBgCritical,riskInk:c.danger,riskDot:c.danger,clearBg:c.badgeBgPositive,clearInk:c.success,clearDot:c.success,watchDot:c.warningStrong}:{dark:dark,...DESIGN_V3_LIGHT},textOn=(ink,grounds)=>pushToContrast(ink,grounds,poleForGrounds(grounds),V3_TEXT_CONTRAST),labelOn=(ink,fill)=>contrastRatio(ink,fill)>=V3_TEXT_CONTRAST?ink:legibleOn(fill,V3_TEXT_CONTRAST),badgeGrounds=[neutrals.card,neutrals.paper].map(under=>flattenOnto(c.brandSoft,under)??under),brand={primary:c.primary,onPrimary:labelOn(c.onPrimary,c.primary),accent:c.accent,onAccent:labelOn(c.onAccent,c.accent),link:textOn(c.linkInk,[neutrals.card,neutrals.paper,neutrals.tile]),badge:c.brandSoft,onBadge:textOn(c.brandInk,badgeGrounds)},palette=/* @__PURE__ */Object.freeze({...neutrals,...brand});return cache2.set(theme,palette),palette}var V3_TEXT_CONTRAST=4.5;var EVERFUR_THEME_CONTEXT_SYMBOL=/* @__PURE__ */Symbol.for("@everfur/sdk#EverfurThemeContext@v1"),globalThemeHost=globalThis,EverfurThemeContext=globalThemeHost[EVERFUR_THEME_CONTEXT_SYMBOL]??(globalThemeHost[EVERFUR_THEME_CONTEXT_SYMBOL]=createContext(EVERFUR_LIGHT));EverfurThemeContext.displayName??="EverfurThemeContext";function useEverfurTheme(){return useContext(EverfurThemeContext)}var rnBlockFonts=theme=>{let n=theme.type.namedFaces,family=key=>face(theme,key).fontFamily;return{family:family("regular"),mono:family("mono"),faces:{regular:family("regular"),medium:family("medium"),bold:family("bold"),mono:family("mono"),monoBold:family("monoBold"),serif:headingFace(theme,"bold").fontFamily},namedFaces:n.regular&&n.medium&&n.bold}},mapped=/* @__PURE__ */new WeakMap;function themeInputFromEverfur(theme,fonts,base3=everfurTheme){if(base3!==everfurTheme)return mapEverfur(theme,fonts,base3);let byTheme=mapped.get(fonts);byTheme===void 0&&mapped.set(fonts,byTheme=/* @__PURE__ */new WeakMap);let input=byTheme.get(theme);return input===void 0&&byTheme.set(theme,input=mapEverfur(theme,fonts,base3)),input}function mapEverfur(theme,fonts,base3){let c=theme.color,d=EVERFUR_LIGHT.color,dark=theme.brightness==="dark",compiled=dark?EVERFUR_DARK:EVERFUR_LIGHT,moved=key=>c[key]!==d[key],colors={};if(moved("primary")?(Object.assign(colors,{ink:c.primary,onInk:c.onPrimary,focus:c.primary}),moved("accent")||Object.assign(colors,{go:c.primary,onGo:c.onPrimary})):moved("onPrimary")&&(colors.onInk=c.onPrimary),moved("accent")&&Object.assign(colors,{go:c.accent,onGo:c.onAccent}),moved("brandSoft")&&(colors.tintSage=c.brandSoft),moved("danger")&&Object.assign(colors,{alert:c.danger,alertDeep:c.danger}),dark)Object.assign(colors,{bg:c.background,surface:c.surface,text:c.text.primary,muted:c.text.muted,line:c.borderRingCream});else{let k2=compiled.color;c.background!==k2.background&&(colors.bg=c.background),c.surface!==k2.surface&&(colors.surface=c.surface),c.text.primary!==k2.text.primary&&(colors.text=c.text.primary),c.text.muted!==k2.text.muted&&(colors.muted=c.text.muted)}let over={};Object.keys(colors).length>0&&(over.colors={...colors});let r=theme.radius,kr=compiled.radius;if(r.xs!==kr.xs||r.sm!==kr.sm||r.lg!==kr.lg||r.xl!==kr.xl||r.pill!==kr.pill){let radius={};r.xs!==kr.xs&&(radius.sm=r.xs),r.sm!==kr.sm&&(radius.md=r.sm),r.lg!==kr.lg&&(radius.lg=r.lg),r.xl!==kr.xl&&(radius.xl=r.xl),r.pill!==kr.pill&&(radius.pill=r.pill),over.radius=radius,(r.lg!==kr.lg||r.xl!==kr.xl)&&(over.metrics={...r.lg!==kr.lg?{card:{radius:r.lg},summary:{radius:r.lg}}:{},...r.xl!==kr.xl?{sheet:{radius:r.xl}}:{}})}if(theme.space.xs!==compiled.space.xs){let f=theme.space.xs/compiled.space.xs,s=base3.space,n=v=>Math.round(v*f);over.space={1:n(s[1]),2:n(s[2]),3:n(s[3]),4:n(s[4]),5:n(s[5]),6:n(s[6]),7:n(s[7]),8:n(s[8]),9:n(s[9])}}let ts=theme.type.size,ks=compiled.type.size,sizeMoved=ts.caption!==ks.caption||ts.bodyTight!==ks.bodyTight||ts.body!==ks.body||ts.subtitle!==ks.subtitle||ts.verdict!==ks.verdict,lh=theme.type.lineHeight,klh=compiled.type.lineHeight,lineMoved=lh.relaxed!==klh.relaxed||lh.tight!==klh.tight,caps=theme.type.scaleCaps,kcaps=compiled.type.scaleCaps,capsMoved=caps.content!==kcaps.content||caps.heading!==kcaps.heading||caps.control!==kcaps.control||caps.compact!==kcaps.compact||caps.badge!==kcaps.badge,typeMoved=sizeMoved||lineMoved||capsMoved;over.type={...sizeMoved?{size:{xs:ts.caption,sm:ts.bodyTight,md:ts.body,lg:ts.subtitle,xl:ts.verdict}}:{},...lineMoved?{lineHeight:{body:lh.relaxed,display:lh.tight}}:{},...capsMoved?{scaleCaps:{content:caps.content,heading:caps.heading,control:caps.control,compact:caps.compact,badge:caps.badge}}:{},...fonts(theme)},theme.motion.reducedMotion&&!base3.motion.reduced&&(over.motion={reduced:true});let branded=typeMoved||Object.keys(colors).length>0||Object.keys(over).some(k2=>k2!=="type"&&k2!=="colors")||theme.type.families.regular!==EVERFUR_LIGHT.type.families.regular,plan=planColors(theme,compiled,colors.surface??base3.colors.surface),ownPlan=Object.entries(plan).filter(([k2,v])=>v!==base3.colors[k2]);return ownPlan.length>0&&(over.colors={...colors,...Object.fromEntries(ownPlan)}),branded?{name:"partner",...over}:over}var DS_PLAN={planAccent:everfurTheme.colors.planAccent,planLink:everfurTheme.colors.planLink},PLAN_WASHES2={planAccentWash:["accent",.17],planAccentChip:["accent",.47],planLinkWash:["link",.12],planLinkChip:["link",.2]};function planColors(theme,compiled,surface){let v=v3Palette(theme),k2=v3Palette(compiled),c=theme.color,out={};(c.primary!==compiled.color.primary||c.onPrimary!==compiled.color.onPrimary)&&Object.assign(out,{planInk:c.primary,planOnInk:v.onPrimary}),c.accent!==compiled.color.accent&&(out.planAccent=c.accent),v.link!==k2.link&&(out.planLink=v.link);let ink={accent:out.planAccent??DS_PLAN.planAccent,link:out.planLink??DS_PLAN.planLink},slot={planLinkWash:v.dark?void 0:theme.slots.planWash?.backgroundColor,planLinkChip:v.dark?void 0:theme.slots.planChip?.backgroundColor},ownCard=surface.toLowerCase()!==v.card.toLowerCase();for(let[key,[from,share2]]of Object.entries(PLAN_WASHES2)){let given=slot[key];given!==void 0?out[key]=given:ownCard&&(out[key]=mixColor(ink[from],share2,v.card,v.card))}return out}function useBlockThemeInput(fonts){let everfur=useEverfurTheme();return useMemo(()=>themeInputFromEverfur(everfur,fonts),[everfur,fonts])}function BlockScope({children:children}){let input=useBlockThemeInput(rnBlockFonts);return createElement(ThemeProvider,{theme:input},children)}function catalogOf(blocks){let registry=registryCatalog("native");return{knows:(type,variant)=>Object.prototype.hasOwnProperty.call(blocks,type)&®istry.knows(type,variant)}}function slotPartsOf(doc2,slot,blocks){let catalog=catalogOf(blocks);if(doc2!==null){let parts=partsToDraw(doc2,catalog);if(parts!==null)return parts}let bundled=bundledSlotDoc(slot);return bundled===null?[]:partsToDraw(bundled,catalog)??[]}var COLOR_ROLES=new Set(Object.keys(everfurTheme.colors)),RADII=new Set(Object.keys(everfurTheme.radius)),SPACES=new Set(Object.keys(everfurTheme.space));function slotThemeInput(tokens){let colors={},radius={},space={};for(let[name,value]of Object.entries(tokens)){let[group,key,extra]=name.split(".");key===void 0||extra!==void 0||((group==="color"||group==="colors")&&typeof value=="string"&&COLOR_ROLES.has(key)?colors[key]=value:group==="radius"&&typeof value=="number"&&value>=0&&RADII.has(key)?radius[key]=value:group==="space"&&typeof value=="number"&&value>=0&&SPACES.has(key)&&(space[key]=value))}let out={};return Object.keys(colors).length>0&&(out.colors=colors),Object.keys(radius).length>0&&(out.radius=radius),Object.keys(space).length>0&&(out.space=space),Object.keys(out).length===0?null:out}function run(action,context,handlers,track){switch(action.kind){case"navigate":callHost(handlers.onNavigate,action.route,context);return;case"open_sheet":callHost(handlers.onOpenSheet,action.id,context);return;case"track":track("slots.track",{slot:context.slot,part:context.part,event:action.event});return;case"external":handlers.onOpenUrl?callHost(handlers.onOpenUrl,action.url):Linking.openURL(action.url).catch(()=>{})}}function canRun(action,handlers){return action.kind==="navigate"?handlers.onNavigate!==void 0:action.kind==="open_sheet"?handlers.onOpenSheet!==void 0:true}function DrawnPart({blocks:blocks,resolved:resolved,slot:slot,handlers:handlers,track:track}){let Block=Object.prototype.hasOwnProperty.call(blocks,resolved.part.type)?blocks[resolved.part.type]:void 0;if(Block===void 0)return null;let press=resolved.actions.onPress;/* @__PURE__ */
|
|
282
282
|
return jsx(Fragment,{children:resolved.blocks.map(block2=>{let testID=`everfur-slot-${resolved.part.id}`,node=createElement(Block,{...block2.props,testID:testID});if(press===void 0||!canRun(press,handlers))/* @__PURE__ */return jsx(Fragment$1,{children:node},block2.key);let context={slot:slot,part:resolved.part.id,key:block2.key};/* @__PURE__ */
|
|
283
283
|
return jsx(Pressable,{accessibilityRole:press.kind==="external"?"link":"button",onPress:()=>run(press,context,handlers,track),testID:`${testID}-press`,children:node},block2.key)})})}var CRASHED=/* @__PURE__ */new WeakMap,slotDocKey=doc2=>fnv1a64Hex(JSON.stringify(doc2)),SlotPartBoundary=class extends Component{constructor(){super(...arguments);this.state={failed:false}}static getDerivedStateFromError(){return{failed:true}}componentDidCatch(){try{this.props.onError()}catch{}}render(){return this.state.failed?null:this.props.children}};function SlotParts(props){let{slot:slot,data:data,blocks:blocks,override:override}=props,handlers=props.handlers??NO_HANDLERS,{runtime:runtime}=useEverfurContext(),[,setCrashes]=useState(0),docKey=useMemo(()=>props.doc===null?null:slotDocKey(props.doc),[props.doc]),doc2=docKey!==null&&CRASHED.get(runtime)?.has(docKey)===true?null:props.doc,parts=useMemo(()=>slotPartsOf(doc2,slot,blocks),[doc2,slot,blocks]),catalog=useMemo(()=>catalogOf(blocks),[blocks]),reported=useRef({doc:doc2,parts:/* @__PURE__ */new Set});reported.current.doc!==doc2&&(reported.current={doc:doc2,parts:/* @__PURE__ */new Set});let copy=doc2?.copy??NO_COPY,tokens=useMemo(()=>slotThemeInput(doc2?.tokens??NO_TOKENS),[doc2]),track=(event,payload)=>{try{runtime.registry.services.telemetry.track(event,payload)}catch{}},failed=part2=>()=>{if(track("slots.part_failed",{slot:slot,part:part2.id,bundled:doc2===null}),doc2===null||docKey===null)return;let crashed=CRASHED.get(runtime);crashed===void 0&&CRASHED.set(runtime,crashed=/* @__PURE__ */new Set),crashed.add(docKey),setCrashes(n=>n+1)},generation=doc2===null?"b":"d",drawn2=parts.map(part2=>{let key=`${generation}:${part2.id}`,own=override?.(part2)??null;if(own!==null)/* @__PURE__ */
|
|
284
284
|
return jsx(SlotPartBoundary,{onError:failed(part2),children:own},key);let resolved=resolveSlotPart(part2,data,copy,"native");if(resolved!==null&&resolved.blocks.length===0){reported.current.parts.has(part2.id)||(reported.current.parts.add(part2.id),track("slots.part_incomplete",{slot:slot,part:part2.id,type:part2.type}));let stand=ownFallbackFor(part2,catalog),next=stand===null?null:resolveSlotPart(stand,data,copy,"native");resolved=next!==null&&next.blocks.length>0?next:null}if(resolved===null)return null;let body=/* @__PURE__ */jsx(DrawnPart,{blocks:blocks,resolved:resolved,slot:slot,handlers:handlers,track:track});/* @__PURE__ */
|