scenri 0.7.2 → 0.7.4
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.
|
@@ -96,7 +96,7 @@ Please change the parent <Route path="${S}"> to <Route path="${S==="/"?"*":`${S}
|
|
|
96
96
|
*/var Rg;function sL(){return Rg||(Rg=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var c="",u=0;u<arguments.length;u++){var f=arguments[u];f&&(c=l(c,s(f)))}return c}function s(c){if(typeof c=="string"||typeof c=="number")return c;if(typeof c!="object")return"";if(Array.isArray(c))return n.apply(null,c);if(c.toString!==Object.prototype.toString&&!c.toString.toString().includes("[native code]"))return c.toString();var u="";for(var f in c)t.call(c,f)&&c[f]&&(u=l(u,f));return u}function l(c,u){return u?c?c+" "+u:c+u:c}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(L2)),L2.exports}var oL=sL();const Je=Bv(oL),Ta={asChild:{type:"boolean"}},qo={width:{type:"string",className:"rt-r-w",customProperties:["--width"],responsive:!0},minWidth:{type:"string",className:"rt-r-min-w",customProperties:["--min-width"],responsive:!0},maxWidth:{type:"string",className:"rt-r-max-w",customProperties:["--max-width"],responsive:!0}},rp={height:{type:"string",className:"rt-r-h",customProperties:["--height"],responsive:!0},minHeight:{type:"string",className:"rt-r-min-h",customProperties:["--min-height"],responsive:!0},maxHeight:{type:"string",className:"rt-r-max-h",customProperties:["--max-height"],responsive:!0}},lL=["1","2","3","4"],Jx={...Ta,align:{type:"enum",className:"rt-r-align",values:["start","center"],default:"center"},size:{type:"enum",className:"rt-r-size",values:lL,default:"3",responsive:!0},width:qo.width,minWidth:qo.minWidth,maxWidth:{...qo.maxWidth,default:"600px"},...rp},e5=["gray","gold","bronze","brown","yellow","amber","orange","tomato","red","ruby","crimson","pink","plum","purple","violet","iris","indigo","blue","cyan","teal","jade","green","grass","lime","mint","sky"],Ha={color:{type:"enum",values:e5,default:void 0}},ap={color:{type:"enum",values:e5,default:""}},wl={highContrast:{type:"boolean",className:"rt-high-contrast",default:void 0}},iL=["normal","start","end","both"],t5={trim:{type:"enum",className:"rt-r-lt",values:iL,responsive:!0}},cL=["left","center","right"],n5={align:{type:"enum",className:"rt-r-ta",values:cL,responsive:!0}},uL=["wrap","nowrap","pretty","balance"],r5={wrap:{type:"enum",className:"rt-r-tw",values:uL,responsive:!0}},a5={truncate:{type:"boolean",className:"rt-truncate"}},dL=["light","regular","medium","bold"],s5={weight:{type:"enum",className:"rt-r-weight",values:dL,responsive:!0}},fL=["h1","h2","h3","h4","h5","h6"],hL=["1","2","3","4","5","6","7","8","9"],mL={as:{type:"enum",values:fL,default:"h1"},...Ta,size:{type:"enum",className:"rt-r-size",values:hL,default:"6",responsive:!0},...s5,...n5,...t5,...a5,...r5,...Ha,...wl},pL=["initial","xs","sm","md","lg","xl"],sp=new Set(pL);function o5(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Tc(e){return typeof e=="object"&&e!==null&&Object.keys(e).some(t=>sp.has(t))}function qs({className:e,customProperties:t,...n}){const s=S1({allowArbitraryValues:!0,className:e,...n}),l=gL({customProperties:t,...n});return[s,l]}function S1({allowArbitraryValues:e,value:t,className:n,propValues:s,parseValue:l=c=>c}){const c=[];if(t){if(typeof t=="string"&&s.includes(t))return Pg(n,t,l);if(Tc(t)){const u=t;for(const f in u){if(!o5(u,f)||!sp.has(f))continue;const h=u[f];if(h!==void 0){if(s.includes(h)){const m=Pg(n,h,l),p=f==="initial"?m:`${f}:${m}`;c.push(p)}else if(e){const m=f==="initial"?n:`${f}:${n}`;c.push(m)}}}return c.join(" ")}if(e)return n}}function Pg(e,t,n){const s=e?"-":"",l=n(t),c=l==null?void 0:l.startsWith("-"),u=c?"-":"",f=c?l==null?void 0:l.substring(1):l;return`${u}${e}${s}${f}`}function gL({customProperties:e,value:t,propValues:n,parseValue:s=l=>l}){let l={};if(!(!t||typeof t=="string"&&n.includes(t))){if(typeof t=="string"&&(l=Object.fromEntries(e.map(c=>[c,t]))),Tc(t)){const c=t;for(const u in c){if(!o5(c,u)||!sp.has(u))continue;const f=c[u];if(!n.includes(f))for(const h of e)l={[u==="initial"?h:`${h}-${u}`]:f,...l}}}for(const c in l){const u=l[c];u!==void 0&&(l[c]=s(u))}return l}}function j1(...e){let t={};for(const n of e)n&&(t={...t,...n});return Object.keys(t).length?t:void 0}function vL(...e){return Object.assign({},...e)}function un(e,...t){let n,s;const l={...e},c=vL(...t);for(const u in c){let f=l[u];const h=c[u];if(h.default!==void 0&&f===void 0&&(f=h.default),h.type==="enum"&&![h.default,...h.values].includes(f)&&!Tc(f)&&(f=h.default),l[u]=f,"className"in h&&h.className){delete l[u];const m="responsive"in h;if(!f||Tc(f)&&!m)continue;if(Tc(f)&&(h.default!==void 0&&f.initial===void 0&&(f.initial=h.default),h.type==="enum"&&([h.default,...h.values].includes(f.initial)||(f.initial=h.default))),h.type==="enum"){const p=S1({allowArbitraryValues:!1,value:f,className:h.className,propValues:h.values,parseValue:h.parseValue});n=Je(n,p);continue}if(h.type==="string"||h.type==="enum | string"){const p=h.type==="string"?[]:h.values,[v,y]=qs({className:h.className,customProperties:h.customProperties,propValues:p,parseValue:h.parseValue,value:f});s=j1(s,y),n=Je(n,v);continue}if(h.type==="boolean"&&f){n=Je(n,h.className);continue}}}return l.className=Je(n,e.className),l.style=j1(s,e.style),l}const Oo=["0","1","2","3","4","5","6","7","8","9","-1","-2","-3","-4","-5","-6","-7","-8","-9"],fa={m:{type:"enum | string",values:Oo,responsive:!0,className:"rt-r-m",customProperties:["--m"]},mx:{type:"enum | string",values:Oo,responsive:!0,className:"rt-r-mx",customProperties:["--ml","--mr"]},my:{type:"enum | string",values:Oo,responsive:!0,className:"rt-r-my",customProperties:["--mt","--mb"]},mt:{type:"enum | string",values:Oo,responsive:!0,className:"rt-r-mt",customProperties:["--mt"]},mr:{type:"enum | string",values:Oo,responsive:!0,className:"rt-r-mr",customProperties:["--mr"]},mb:{type:"enum | string",values:Oo,responsive:!0,className:"rt-r-mb",customProperties:["--mb"]},ml:{type:"enum | string",values:Oo,responsive:!0,className:"rt-r-ml",customProperties:["--ml"]}},op=r.forwardRef((e,t)=>{const{children:n,className:s,asChild:l,as:c="h1",color:u,...f}=un(e,mL,fa);return r.createElement(cl,{"data-accent-color":u,...f,ref:t,className:Je("rt-Heading",s)},l?n:r.createElement(c,null,n))});op.displayName="Heading";const yL=["span","div","label","p"],xL=["1","2","3","4","5","6","7","8","9"],wL={as:{type:"enum",values:yL,default:"span"},...Ta,size:{type:"enum",className:"rt-r-size",values:xL,responsive:!0},...s5,...n5,...t5,...a5,...r5,...Ha,...wl},rl=r.forwardRef((e,t)=>{const{children:n,className:s,asChild:l,as:c="span",color:u,...f}=un(e,wL,fa);return r.createElement(cl,{"data-accent-color":u,...f,ref:t,className:Je("rt-Text",s)},l?n:r.createElement(c,null,n))});rl.displayName="Text";function bL(e){switch(e){case"tomato":case"red":case"ruby":case"crimson":case"pink":case"plum":case"purple":case"violet":return"mauve";case"iris":case"indigo":case"blue":case"sky":case"cyan":return"slate";case"teal":case"jade":case"mint":case"green":return"sage";case"grass":case"lime":return"olive";case"yellow":case"amber":case"orange":case"brown":case"gold":case"bronze":return"sand";case"gray":return"gray"}}const EL=["none","small","medium","large","full"],Hi={radius:{type:"enum",values:EL,default:void 0}},_r={hasBackground:{default:!0},appearance:{default:"inherit"},accentColor:{default:"indigo"},grayColor:{default:"auto"},panelBackground:{default:"translucent"},radius:{default:"medium"},scaling:{default:"100%"}},ei=()=>{},k1=r.createContext(void 0);function lp(){const e=r.useContext(k1);if(e===void 0)throw new Error("`useThemeContext` must be used within a `Theme`");return e}const as=r.forwardRef((e,t)=>r.useContext(k1)===void 0?r.createElement(aL,{delayDuration:200},r.createElement(Ej,{dir:"ltr"},r.createElement(l5,{...e,ref:t}))):r.createElement(ip,{...e,ref:t}));as.displayName="Theme";const l5=r.forwardRef((e,t)=>{const{appearance:n=_r.appearance.default,accentColor:s=_r.accentColor.default,grayColor:l=_r.grayColor.default,panelBackground:c=_r.panelBackground.default,radius:u=_r.radius.default,scaling:f=_r.scaling.default,hasBackground:h=_r.hasBackground.default,...m}=e,[p,v]=r.useState(n);r.useEffect(()=>v(n),[n]);const[y,x]=r.useState(s);r.useEffect(()=>x(s),[s]);const[b,C]=r.useState(l);r.useEffect(()=>C(l),[l]);const[S,A]=r.useState(c);r.useEffect(()=>A(c),[c]);const[E,k]=r.useState(u);r.useEffect(()=>k(u),[u]);const[M,N]=r.useState(f);return r.useEffect(()=>N(f),[f]),r.createElement(ip,{...m,ref:t,isRoot:!0,hasBackground:h,appearance:p,accentColor:y,grayColor:b,panelBackground:S,radius:E,scaling:M,onAppearanceChange:v,onAccentColorChange:x,onGrayColorChange:C,onPanelBackgroundChange:A,onRadiusChange:k,onScalingChange:N})});l5.displayName="ThemeRoot";const ip=r.forwardRef((e,t)=>{const n=r.useContext(k1),{asChild:s,isRoot:l,hasBackground:c,appearance:u=(n==null?void 0:n.appearance)??_r.appearance.default,accentColor:f=(n==null?void 0:n.accentColor)??_r.accentColor.default,grayColor:h=(n==null?void 0:n.resolvedGrayColor)??_r.grayColor.default,panelBackground:m=(n==null?void 0:n.panelBackground)??_r.panelBackground.default,radius:p=(n==null?void 0:n.radius)??_r.radius.default,scaling:v=(n==null?void 0:n.scaling)??_r.scaling.default,onAppearanceChange:y=ei,onAccentColorChange:x=ei,onGrayColorChange:b=ei,onPanelBackgroundChange:C=ei,onRadiusChange:S=ei,onScalingChange:A=ei,...E}=e,k=s?cl:"div",M=h==="auto"?bL(f):h,N=e.appearance==="light"||e.appearance==="dark",P=c===void 0?l||N:c;return r.createElement(k1.Provider,{value:r.useMemo(()=>({appearance:u,accentColor:f,grayColor:h,resolvedGrayColor:M,panelBackground:m,radius:p,scaling:v,onAppearanceChange:y,onAccentColorChange:x,onGrayColorChange:b,onPanelBackgroundChange:C,onRadiusChange:S,onScalingChange:A}),[u,f,h,M,m,p,v,y,x,b,C,S,A])},r.createElement(k,{"data-is-root-theme":l?"true":"false","data-accent-color":f,"data-gray-color":M,"data-has-background":P?"true":"false","data-panel-background":m,"data-radius":p,"data-scaling":v,ref:t,...E,className:Je("radix-themes",{light:u==="light",dark:u==="dark"},E.className)}))});ip.displayName="ThemeImpl";const Rs=e=>{if(!r.isValidElement(e))throw Error(`Expected a single React Element child, but got: ${r.Children.toArray(e).map(t=>typeof t=="object"&&"type"in t&&typeof t.type=="string"?t.type:typeof t).join(", ")}`);return e},vu=e=>r.createElement(Wk,{...e});vu.displayName="AlertDialog.Root";const i5=r.forwardRef(({children:e,...t},n)=>r.createElement(Gk,{...t,ref:n,asChild:!0},Rs(e)));i5.displayName="AlertDialog.Trigger";const yu=r.forwardRef(({align:e,...t},n)=>{const{align:s,...l}=Jx,{className:c}=un({align:e},{align:s}),{className:u,forceMount:f,container:h,...m}=un(t,l);return r.createElement(Kk,{container:h,forceMount:f},r.createElement(as,{asChild:!0},r.createElement(Yk,{className:"rt-BaseDialogOverlay rt-AlertDialogOverlay"},r.createElement("div",{className:"rt-BaseDialogScroll rt-AlertDialogScroll"},r.createElement("div",{className:`rt-BaseDialogScrollPadding rt-AlertDialogScrollPadding ${c}`},r.createElement(qk,{...m,ref:n,className:Je("rt-BaseDialogContent","rt-AlertDialogContent",u)}))))))});yu.displayName="AlertDialog.Content";const xu=r.forwardRef((e,t)=>r.createElement(Jk,{asChild:!0},r.createElement(op,{size:"5",mb:"3",trim:"start",...e,asChild:!1,ref:t})));xu.displayName="AlertDialog.Title";const wu=r.forwardRef((e,t)=>r.createElement(eA,{asChild:!0},r.createElement(rl,{as:"p",size:"3",...e,asChild:!1,ref:t})));wu.displayName="AlertDialog.Description";const bu=r.forwardRef(({children:e,...t},n)=>r.createElement(Xk,{...t,ref:n,asChild:!0},Rs(e)));bu.displayName="AlertDialog.Action";const Eu=r.forwardRef(({children:e,...t},n)=>r.createElement(Qk,{...t,ref:n,asChild:!0},Rs(e)));Eu.displayName="AlertDialog.Cancel";function CL(e,t){const{asChild:n,children:s}=e;if(!n)return typeof t=="function"?t(s):t;const l=r.Children.only(s);return r.cloneElement(l,{children:typeof t=="function"?t(l.props.children):t})}const SL=["1","2","3"],jL=["solid","soft","surface","outline"],kL={...Ta,size:{type:"enum",className:"rt-r-size",values:SL,default:"1",responsive:!0},variant:{type:"enum",className:"rt-variant",values:jL,default:"soft"},...ap,...wl,...Hi},c5=r.forwardRef((e,t)=>{const{asChild:n,className:s,color:l,radius:c,...u}=un(e,kL,fa),f=n?cl:"span";return r.createElement(f,{"data-accent-color":l,"data-radius":c,...u,ref:t,className:Je("rt-reset","rt-Badge",s)})});c5.displayName="Badge";const u5=cl,AL=["div","span"],NL=["none","inline","inline-block","block","contents"],ML={as:{type:"enum",values:AL,default:"div"},...Ta,display:{type:"enum",className:"rt-r-display",values:NL,responsive:!0}},_o=["0","1","2","3","4","5","6","7","8","9"],u1={p:{type:"enum | string",className:"rt-r-p",customProperties:["--p"],values:_o,responsive:!0},px:{type:"enum | string",className:"rt-r-px",customProperties:["--pl","--pr"],values:_o,responsive:!0},py:{type:"enum | string",className:"rt-r-py",customProperties:["--pt","--pb"],values:_o,responsive:!0},pt:{type:"enum | string",className:"rt-r-pt",customProperties:["--pt"],values:_o,responsive:!0},pr:{type:"enum | string",className:"rt-r-pr",customProperties:["--pr"],values:_o,responsive:!0},pb:{type:"enum | string",className:"rt-r-pb",customProperties:["--pb"],values:_o,responsive:!0},pl:{type:"enum | string",className:"rt-r-pl",customProperties:["--pl"],values:_o,responsive:!0}},T2=["visible","hidden","clip","scroll","auto"],RL=["static","relative","absolute","fixed","sticky"],wc=["0","1","2","3","4","5","6","7","8","9","-1","-2","-3","-4","-5","-6","-7","-8","-9"],PL=["0","1"],LL=["0","1"],TL=["start","center","end","baseline","stretch"],HL=["start","center","end","baseline","stretch"],d5={...u1,...qo,...rp,position:{type:"enum",className:"rt-r-position",values:RL,responsive:!0},inset:{type:"enum | string",className:"rt-r-inset",customProperties:["--inset"],values:wc,responsive:!0},top:{type:"enum | string",className:"rt-r-top",customProperties:["--top"],values:wc,responsive:!0},right:{type:"enum | string",className:"rt-r-right",customProperties:["--right"],values:wc,responsive:!0},bottom:{type:"enum | string",className:"rt-r-bottom",customProperties:["--bottom"],values:wc,responsive:!0},left:{type:"enum | string",className:"rt-r-left",customProperties:["--left"],values:wc,responsive:!0},overflow:{type:"enum",className:"rt-r-overflow",values:T2,responsive:!0},overflowX:{type:"enum",className:"rt-r-ox",values:T2,responsive:!0},overflowY:{type:"enum",className:"rt-r-oy",values:T2,responsive:!0},flexBasis:{type:"string",className:"rt-r-fb",customProperties:["--flex-basis"],responsive:!0},flexShrink:{type:"enum | string",className:"rt-r-fs",customProperties:["--flex-shrink"],values:PL,responsive:!0},flexGrow:{type:"enum | string",className:"rt-r-fg",customProperties:["--flex-grow"],values:LL,responsive:!0},gridArea:{type:"string",className:"rt-r-ga",customProperties:["--grid-area"],responsive:!0},gridColumn:{type:"string",className:"rt-r-gc",customProperties:["--grid-column"],responsive:!0},gridColumnStart:{type:"string",className:"rt-r-gcs",customProperties:["--grid-column-start"],responsive:!0},gridColumnEnd:{type:"string",className:"rt-r-gce",customProperties:["--grid-column-end"],responsive:!0},gridRow:{type:"string",className:"rt-r-gr",customProperties:["--grid-row"],responsive:!0},gridRowStart:{type:"string",className:"rt-r-grs",customProperties:["--grid-row-start"],responsive:!0},gridRowEnd:{type:"string",className:"rt-r-gre",customProperties:["--grid-row-end"],responsive:!0},alignSelf:{type:"enum",className:"rt-r-as",values:TL,responsive:!0},justifySelf:{type:"enum",className:"rt-r-js",values:HL,responsive:!0}},d1=r.forwardRef((e,t)=>{const{className:n,asChild:s,as:l="div",...c}=un(e,ML,d5,fa);return r.createElement(s?u5:l,{...c,ref:t,className:Je("rt-Box",n)})});d1.displayName="Box";const $L=["1","2","3","4"],DL=["classic","solid","soft","surface","outline","ghost"],Lg={...Ta,size:{type:"enum",className:"rt-r-size",values:$L,default:"2",responsive:!0},variant:{type:"enum",className:"rt-variant",values:DL,default:"solid"},...ap,...wl,...Hi,loading:{type:"boolean",className:"rt-loading",default:!1}},H2=["0","1","2","3","4","5","6","7","8","9"],FL={gap:{type:"enum | string",className:"rt-r-gap",customProperties:["--gap"],values:H2,responsive:!0},gapX:{type:"enum | string",className:"rt-r-cg",customProperties:["--column-gap"],values:H2,responsive:!0},gapY:{type:"enum | string",className:"rt-r-rg",customProperties:["--row-gap"],values:H2,responsive:!0}},IL=["div","span"],OL=["none","inline-flex","flex"],_L=["row","column","row-reverse","column-reverse"],ZL=["start","center","end","baseline","stretch"],VL=["start","center","end","between"],zL=["nowrap","wrap","wrap-reverse"],f5={as:{type:"enum",values:IL,default:"div"},...Ta,display:{type:"enum",className:"rt-r-display",values:OL,responsive:!0},direction:{type:"enum",className:"rt-r-fd",values:_L,responsive:!0},align:{type:"enum",className:"rt-r-ai",values:ZL,responsive:!0},justify:{type:"enum",className:"rt-r-jc",values:VL,parseValue:BL,responsive:!0},wrap:{type:"enum",className:"rt-r-fw",values:zL,responsive:!0},...FL};function BL(e){return e==="between"?"space-between":e}const pr=r.forwardRef((e,t)=>{const{className:n,asChild:s,as:l="div",...c}=un(e,f5,d5,fa);return r.createElement(s?u5:l,{...c,ref:t,className:Je("rt-Flex",n)})});pr.displayName="Flex";const UL=["1","2","3"],WL={size:{type:"enum",className:"rt-r-size",values:UL,default:"2",responsive:!0},loading:{type:"boolean",default:!0}},qt=r.forwardRef((e,t)=>{const{className:n,children:s,loading:l,...c}=un(e,WL,fa);if(!l)return s;const u=r.createElement("span",{...c,ref:t,className:Je("rt-Spinner",n)},r.createElement("span",{className:"rt-SpinnerLeaf"}),r.createElement("span",{className:"rt-SpinnerLeaf"}),r.createElement("span",{className:"rt-SpinnerLeaf"}),r.createElement("span",{className:"rt-SpinnerLeaf"}),r.createElement("span",{className:"rt-SpinnerLeaf"}),r.createElement("span",{className:"rt-SpinnerLeaf"}),r.createElement("span",{className:"rt-SpinnerLeaf"}),r.createElement("span",{className:"rt-SpinnerLeaf"}));return s===void 0?u:r.createElement(pr,{asChild:!0,position:"relative",align:"center",justify:"center"},r.createElement("span",null,r.createElement("span",{"aria-hidden":!0,style:{display:"contents",visibility:"hidden"},inert:void 0},s),r.createElement(pr,{asChild:!0,align:"center",justify:"center",position:"absolute",inset:"0"},r.createElement("span",null,u))))});qt.displayName="Spinner";const GL=rj;function h5(e,t){if(e!==void 0)return typeof e=="string"?t(e):Object.fromEntries(Object.entries(e).map(([n,s])=>[n,t(s)]))}function KL(e){return e==="3"?"3":"2"}function YL(e){switch(e){case"1":return"1";case"2":case"3":return"2";case"4":return"3"}}const m5=r.forwardRef((e,t)=>{const{size:n=Lg.size.default}=e,{className:s,children:l,asChild:c,color:u,radius:f,disabled:h=e.loading,...m}=un(e,Lg,fa),p=c?cl:"button";return r.createElement(p,{"data-disabled":h||void 0,"data-accent-color":u,"data-radius":f,...m,ref:t,className:Je("rt-reset","rt-BaseButton",s),disabled:h},e.loading?r.createElement(r.Fragment,null,r.createElement("span",{style:{display:"contents",visibility:"hidden"},"aria-hidden":!0},l),r.createElement(GL,null,l),r.createElement(pr,{asChild:!0,align:"center",justify:"center",position:"absolute",inset:"0"},r.createElement("span",null,r.createElement(qt,{size:h5(n,YL)})))):l)});m5.displayName="BaseButton";const ja=r.forwardRef(({className:e,...t},n)=>r.createElement(m5,{...t,ref:n,className:Je("rt-Button",e)}));ja.displayName="Button";const qL=["1","2","3"],XL=["soft","surface","outline"],Tg={...Ta,size:{type:"enum",className:"rt-r-size",values:qL,default:"2",responsive:!0},variant:{type:"enum",className:"rt-variant",values:XL,default:"soft"},...ap,...wl},p5=r.createContext({}),Lh=r.forwardRef((e,t)=>{const{size:n=Tg.size.default}=e,{asChild:s,children:l,className:c,color:u,...f}=un(e,Tg,fa),h=s?cl:"div";return r.createElement(h,{"data-accent-color":u,...f,className:Je("rt-CalloutRoot",c),ref:t},r.createElement(p5.Provider,{value:r.useMemo(()=>({size:n}),[n])},l))});Lh.displayName="Callout.Root";const QL=r.forwardRef(({className:e,...t},n)=>r.createElement("div",{...t,className:Je("rt-CalloutIcon",e),ref:n}));QL.displayName="Callout.Icon";const Th=r.forwardRef(({className:e,...t},n)=>{const{size:s}=r.useContext(p5);return r.createElement(rl,{as:"p",size:h5(s,KL),...t,asChild:!1,ref:n,className:Je("rt-CalloutText",e)})});Th.displayName="Callout.Text";const JL=Rt.forwardRef((e,t)=>Rt.createElement("svg",{width:"9",height:"9",viewBox:"0 0 9 9",fill:"currentcolor",xmlns:"http://www.w3.org/2000/svg",...e,ref:t},Rt.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.75 4.5C0.75 4.08579 1.08579 3.75 1.5 3.75H7.5C7.91421 3.75 8.25 4.08579 8.25 4.5C8.25 4.91421 7.91421 5.25 7.5 5.25H1.5C1.08579 5.25 0.75 4.91421 0.75 4.5Z"})));JL.displayName="ThickDividerHorizontalIcon";const $i=Rt.forwardRef((e,t)=>Rt.createElement("svg",{width:"9",height:"9",viewBox:"0 0 9 9",fill:"currentcolor",xmlns:"http://www.w3.org/2000/svg",...e,ref:t},Rt.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.53547 0.62293C8.88226 0.849446 8.97976 1.3142 8.75325 1.66099L4.5083 8.1599C4.38833 8.34356 4.19397 8.4655 3.9764 8.49358C3.75883 8.52167 3.53987 8.45309 3.3772 8.30591L0.616113 5.80777C0.308959 5.52987 0.285246 5.05559 0.563148 4.74844C0.84105 4.44128 1.31533 4.41757 1.62249 4.69547L3.73256 6.60459L7.49741 0.840706C7.72393 0.493916 8.18868 0.396414 8.53547 0.62293Z"})));$i.displayName="ThickCheckIcon";const g5=Rt.forwardRef((e,t)=>Rt.createElement("svg",{width:"9",height:"9",viewBox:"0 0 9 9",fill:"currentcolor",xmlns:"http://www.w3.org/2000/svg",...e,ref:t},Rt.createElement("path",{d:"M0.135232 3.15803C0.324102 2.95657 0.640521 2.94637 0.841971 3.13523L4.5 6.56464L8.158 3.13523C8.3595 2.94637 8.6759 2.95657 8.8648 3.15803C9.0536 3.35949 9.0434 3.67591 8.842 3.86477L4.84197 7.6148C4.64964 7.7951 4.35036 7.7951 4.15803 7.6148L0.158031 3.86477C-0.0434285 3.67591 -0.0536285 3.35949 0.135232 3.15803Z"})));g5.displayName="ChevronDownIcon";const cp=Rt.forwardRef((e,t)=>Rt.createElement("svg",{width:"9",height:"9",viewBox:"0 0 9 9",fill:"currentcolor",xmlns:"http://www.w3.org/2000/svg",...e,ref:t},Rt.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.23826 0.201711C3.54108 -0.0809141 4.01567 -0.0645489 4.29829 0.238264L7.79829 3.98826C8.06724 4.27642 8.06724 4.72359 7.79829 5.01174L4.29829 8.76174C4.01567 9.06455 3.54108 9.08092 3.23826 8.79829C2.93545 8.51567 2.91909 8.04108 3.20171 7.73826L6.22409 4.5L3.20171 1.26174C2.91909 0.958928 2.93545 0.484337 3.23826 0.201711Z"})));cp.displayName="ThickChevronRightIcon";const eT=["1","2","3"],bc={...Ta,size:{values:eT,default:"1"},...Hi,scrollbars:{default:"both"}};function tT(e){const{m:t,mx:n,my:s,mt:l,mr:c,mb:u,ml:f,...h}=e;return{m:t,mx:n,my:s,mt:l,mr:c,mb:u,ml:f,rest:h}}const Zo=fa.m.values;function nT(e){const[t,n]=qs({className:"rt-r-m",customProperties:["--margin"],propValues:Zo,value:e.m}),[s,l]=qs({className:"rt-r-mx",customProperties:["--margin-left","--margin-right"],propValues:Zo,value:e.mx}),[c,u]=qs({className:"rt-r-my",customProperties:["--margin-top","--margin-bottom"],propValues:Zo,value:e.my}),[f,h]=qs({className:"rt-r-mt",customProperties:["--margin-top"],propValues:Zo,value:e.mt}),[m,p]=qs({className:"rt-r-mr",customProperties:["--margin-right"],propValues:Zo,value:e.mr}),[v,y]=qs({className:"rt-r-mb",customProperties:["--margin-bottom"],propValues:Zo,value:e.mb}),[x,b]=qs({className:"rt-r-ml",customProperties:["--margin-left"],propValues:Zo,value:e.ml});return[Je(t,s,c,f,m,v,x),j1(n,l,u,h,p,y,b)]}const Di=r.forwardRef((e,t)=>{const{rest:n,...s}=tT(e),[l,c]=nT(s),{asChild:u,children:f,className:h,style:m,type:p,scrollHideDelay:v=p!=="scroll"?0:void 0,dir:y,size:x=bc.size.default,radius:b=bc.radius.default,scrollbars:C=bc.scrollbars.default,...S}=n;return r.createElement(Ux,{type:p,scrollHideDelay:v,className:Je("rt-ScrollAreaRoot",l,h),style:j1(c,m),asChild:u},CL({asChild:u,children:f},A=>r.createElement(r.Fragment,null,r.createElement(Wx,{...S,ref:t,className:"rt-ScrollAreaViewport"},A),r.createElement("div",{className:"rt-ScrollAreaViewportFocusRing"}),C!=="vertical"?r.createElement(Mh,{"data-radius":b,orientation:"horizontal",className:Je("rt-ScrollAreaScrollbar",S1({className:"rt-r-size",value:x,propValues:bc.size.values}))},r.createElement(Rh,{className:"rt-ScrollAreaThumb"})):null,C!=="horizontal"?r.createElement(Mh,{"data-radius":b,orientation:"vertical",className:Je("rt-ScrollAreaScrollbar",S1({className:"rt-r-size",value:x,propValues:bc.size.values}))},r.createElement(Rh,{className:"rt-ScrollAreaThumb"})):null,C==="both"?r.createElement(oP,{className:"rt-ScrollAreaCorner"}):null)))});Di.displayName="ScrollArea";const rT=["1","2"],aT=["solid","soft"],Ga={size:{type:"enum",className:"rt-r-size",values:rT,default:"2",responsive:!0},variant:{type:"enum",className:"rt-variant",values:aT,default:"solid"},...Ha,...wl},v5={...Ta,...Ha},y5={...Ha},x5={...Ha},up=e=>r.createElement(NM,{...e});up.displayName="ContextMenu.Root";const dp=r.forwardRef(({children:e,...t},n)=>r.createElement(MM,{...t,ref:n,asChild:!0},Rs(e)));dp.displayName="ContextMenu.Trigger";const w5=r.createContext({}),fp=r.forwardRef((e,t)=>{const n=lp(),{size:s=Ga.size.default,variant:l=Ga.variant.default,highContrast:c=Ga.highContrast.default}=e,{className:u,children:f,color:h,container:m,forceMount:p,...v}=un(e,Ga),y=h||n.accentColor;return r.createElement(Nx,{container:m,forceMount:p},r.createElement(as,{asChild:!0},r.createElement(RM,{"data-accent-color":y,alignOffset:-Number(s)*4,collisionPadding:10,...v,asChild:!1,ref:t,className:Je("rt-PopperContent","rt-BaseMenuContent","rt-ContextMenuContent",u)},r.createElement(Di,{type:"auto"},r.createElement("div",{className:Je("rt-BaseMenuViewport","rt-ContextMenuViewport")},r.createElement(w5.Provider,{value:r.useMemo(()=>({size:s,variant:l,color:y,highContrast:c}),[s,l,y,c])},f))))))});fp.displayName="ContextMenu.Content";const sT=r.forwardRef(({className:e,...t},n)=>r.createElement(LM,{...t,asChild:!1,ref:n,className:Je("rt-BaseMenuLabel","rt-ContextMenuLabel",e)}));sT.displayName="ContextMenu.Label";const di=r.forwardRef((e,t)=>{const{className:n,children:s,color:l=v5.color.default,shortcut:c,...u}=e;return r.createElement(TM,{"data-accent-color":l,...u,ref:t,className:Je("rt-reset","rt-BaseMenuItem","rt-ContextMenuItem",n)},r.createElement(B1,null,s),c&&r.createElement("div",{className:"rt-BaseMenuShortcut rt-ContextMenuShortcut"},c))});di.displayName="ContextMenu.Item";const oT=r.forwardRef(({className:e,...t},n)=>r.createElement(PM,{...t,asChild:!1,ref:n,className:Je("rt-BaseMenuGroup","rt-ContextMenuGroup",e)}));oT.displayName="ContextMenu.Group";const lT=r.forwardRef(({className:e,...t},n)=>r.createElement($M,{...t,asChild:!1,ref:n,className:Je("rt-BaseMenuRadioGroup","rt-ContextMenuRadioGroup",e)}));lT.displayName="ContextMenu.RadioGroup";const iT=r.forwardRef((e,t)=>{const{children:n,className:s,color:l=x5.color.default,...c}=e;return r.createElement(DM,{...c,asChild:!1,ref:t,"data-accent-color":l,className:Je("rt-BaseMenuItem","rt-BaseMenuRadioItem","rt-ContextMenuItem","rt-ContextMenuRadioItem",s)},r.createElement(B1,null,n),r.createElement(Mx,{className:"rt-BaseMenuItemIndicator rt-ContextMenuItemIndicator"},r.createElement($i,{className:"rt-BaseMenuItemIndicatorIcon rt-ContextMenuItemIndicatorIcon"})))});iT.displayName="ContextMenu.RadioItem";const cT=r.forwardRef((e,t)=>{const{children:n,className:s,shortcut:l,color:c=y5.color.default,...u}=e;return r.createElement(HM,{...u,asChild:!1,ref:t,"data-accent-color":c,className:Je("rt-BaseMenuItem","rt-BaseMenuCheckboxItem","rt-ContextMenuItem","rt-ContextMenuCheckboxItem",s)},r.createElement(B1,null,n),r.createElement(Mx,{className:"rt-BaseMenuItemIndicator rt-ContextMenuItemIndicator"},r.createElement($i,{className:"rt-BaseMenuItemIndicatorIcon rt-ContextMenuItemIndicatorIcon"})),l&&r.createElement("div",{className:"rt-BaseMenuShortcut rt-ContextMenuShortcut"},l))});cT.displayName="ContextMenu.CheckboxItem";const uT=r.forwardRef((e,t)=>{const{className:n,children:s,...l}=e;return r.createElement(IM,{...l,asChild:!1,ref:t,className:Je("rt-BaseMenuItem","rt-BaseMenuSubTrigger","rt-ContextMenuItem","rt-ContextMenuSubTrigger",n)},s,r.createElement("div",{className:"rt-BaseMenuShortcut rt-ContextMenuShortcut"},r.createElement(cp,{className:"rt-BaseMenuSubTriggerIcon rt-ContextMenuSubTriggerIcon"})))});uT.displayName="ContextMenu.SubTrigger";const dT=r.forwardRef((e,t)=>{const{size:n,variant:s,color:l,highContrast:c}=r.useContext(w5),{className:u,children:f,container:h,forceMount:m,...p}=un({size:n,variant:s,color:l,highContrast:c,...e},Ga);return r.createElement(Nx,{container:h,forceMount:m},r.createElement(as,{asChild:!0},r.createElement(OM,{"data-accent-color":l,alignOffset:-Number(n)*4,sideOffset:1,collisionPadding:10,...p,asChild:!1,ref:t,className:Je("rt-PopperContent","rt-BaseMenuContent","rt-BaseMenuSubContent","rt-ContextMenuContent","rt-ContextMenuSubContent",u)},r.createElement(Di,{type:"auto"},r.createElement("div",{className:Je("rt-BaseMenuViewport","rt-ContextMenuViewport")},f)))))});dT.displayName="ContextMenu.SubContent";const b5=r.forwardRef(({className:e,...t},n)=>r.createElement(FM,{...t,asChild:!1,ref:n,className:Je("rt-BaseMenuSeparator","rt-ContextMenuSeparator",e)}));b5.displayName="ContextMenu.Separator";const bl=e=>r.createElement(ul,{...e,modal:!0});bl.displayName="Dialog.Root";const fT=r.forwardRef(({children:e,...t},n)=>r.createElement(Am,{...t,ref:n,asChild:!0},Rs(e)));fT.displayName="Dialog.Trigger";const El=r.forwardRef(({align:e,...t},n)=>{const{align:s,...l}=Jx,{className:c}=un({align:e},{align:s}),{className:u,forceMount:f,container:h,...m}=un(t,l);return r.createElement(dl,{container:h,forceMount:f},r.createElement(as,{asChild:!0},r.createElement(fl,{className:"rt-BaseDialogOverlay rt-DialogOverlay"},r.createElement("div",{className:"rt-BaseDialogScroll rt-DialogScroll"},r.createElement("div",{className:`rt-BaseDialogScrollPadding rt-DialogScrollPadding ${c}`},r.createElement(hl,{...m,ref:n,className:Je("rt-BaseDialogContent","rt-DialogContent",u)}))))))});El.displayName="Dialog.Content";const Cl=r.forwardRef((e,t)=>r.createElement(ml,{asChild:!0},r.createElement(op,{size:"5",mb:"3",trim:"start",...e,asChild:!1,ref:t})));Cl.displayName="Dialog.Title";const hT=r.forwardRef((e,t)=>r.createElement(Nm,{asChild:!0},r.createElement(rl,{as:"p",size:"3",...e,asChild:!1,ref:t})));hT.displayName="Dialog.Description";const Cu=r.forwardRef(({children:e,...t},n)=>r.createElement(q1,{...t,ref:n,asChild:!0},Rs(e)));Cu.displayName="Dialog.Close";const co=e=>r.createElement(sR,{...e});co.displayName="DropdownMenu.Root";const uo=r.forwardRef(({children:e,...t},n)=>r.createElement(oR,{...t,ref:n,asChild:!0},Rs(e)));uo.displayName="DropdownMenu.Trigger";const E5=r.createContext({}),fo=r.forwardRef((e,t)=>{const n=lp(),{size:s=Ga.size.default,variant:l=Ga.variant.default,highContrast:c=Ga.highContrast.default}=e,{className:u,children:f,color:h,container:m,forceMount:p,...v}=un(e,Ga),y=h||n.accentColor;return r.createElement(Px,{container:m,forceMount:p},r.createElement(as,{asChild:!0},r.createElement(lR,{"data-accent-color":y,align:"start",sideOffset:4,collisionPadding:10,...v,asChild:!1,ref:t,className:Je("rt-PopperContent","rt-BaseMenuContent","rt-DropdownMenuContent",u)},r.createElement(Di,{type:"auto"},r.createElement("div",{className:Je("rt-BaseMenuViewport","rt-DropdownMenuViewport")},r.createElement(E5.Provider,{value:r.useMemo(()=>({size:s,variant:l,color:y,highContrast:c}),[s,l,y,c])},f))))))});fo.displayName="DropdownMenu.Content";const mT=r.forwardRef(({className:e,...t},n)=>r.createElement(cR,{...t,asChild:!1,ref:n,className:Je("rt-BaseMenuLabel","rt-DropdownMenuLabel",e)}));mT.displayName="DropdownMenu.Label";const Zr=r.forwardRef((e,t)=>{const{className:n,children:s,color:l=v5.color.default,shortcut:c,...u}=e;return r.createElement(uR,{"data-accent-color":l,...u,ref:t,className:Je("rt-reset","rt-BaseMenuItem","rt-DropdownMenuItem",n)},r.createElement(B1,null,s),c&&r.createElement("div",{className:"rt-BaseMenuShortcut rt-DropdownMenuShortcut"},c))});Zr.displayName="DropdownMenu.Item";const pT=r.forwardRef(({className:e,...t},n)=>r.createElement(iR,{...t,asChild:!1,ref:n,className:Je("rt-BaseMenuGroup","rt-DropdownMenuGroup",e)}));pT.displayName="DropdownMenu.Group";const A1=r.forwardRef(({className:e,...t},n)=>r.createElement(fR,{...t,asChild:!1,ref:n,className:Je("rt-BaseMenuRadioGroup","rt-DropdownMenuRadioGroup",e)}));A1.displayName="DropdownMenu.RadioGroup";const fi=r.forwardRef((e,t)=>{const{children:n,className:s,color:l=x5.color.default,...c}=e;return r.createElement(hR,{...c,asChild:!1,ref:t,"data-accent-color":l,className:Je("rt-BaseMenuItem","rt-BaseMenuRadioItem","rt-DropdownMenuItem","rt-DropdownMenuRadioItem",s)},n,r.createElement(Lx,{className:"rt-BaseMenuItemIndicator rt-DropdownMenuItemIndicator"},r.createElement($i,{className:"rt-BaseMenuItemIndicatorIcon rt-DropdownMenuItemIndicatorIcon"})))});fi.displayName="DropdownMenu.RadioItem";const gT=r.forwardRef((e,t)=>{const{children:n,className:s,shortcut:l,color:c=y5.color.default,...u}=e;return r.createElement(dR,{...u,asChild:!1,ref:t,"data-accent-color":c,className:Je("rt-BaseMenuItem","rt-BaseMenuCheckboxItem","rt-DropdownMenuItem","rt-DropdownMenuCheckboxItem",s)},n,r.createElement(Lx,{className:"rt-BaseMenuItemIndicator rt-DropdownMenuItemIndicator"},r.createElement($i,{className:"rt-BaseMenuItemIndicatorIcon rt-ContextMenuItemIndicatorIcon"})),l&&r.createElement("div",{className:"rt-BaseMenuShortcut rt-DropdownMenuShortcut"},l))});gT.displayName="DropdownMenu.CheckboxItem";const vT=r.forwardRef((e,t)=>{const{className:n,children:s,...l}=e;return r.createElement(pR,{...l,asChild:!1,ref:t,className:Je("rt-BaseMenuItem","rt-BaseMenuSubTrigger","rt-DropdownMenuItem","rt-DropdownMenuSubTrigger",n)},s,r.createElement("div",{className:"rt-BaseMenuShortcut rt-DropdownMenuShortcut"},r.createElement(cp,{className:"rt-BaseMenuSubTriggerIcon rt-DropdownMenuSubtriggerIcon"})))});vT.displayName="DropdownMenu.SubTrigger";const yT=r.forwardRef((e,t)=>{const{size:n,variant:s,color:l,highContrast:c}=r.useContext(E5),{className:u,children:f,container:h,forceMount:m,...p}=un({size:n,variant:s,color:l,highContrast:c,...e},Ga);return r.createElement(Px,{container:h,forceMount:m},r.createElement(as,{asChild:!0},r.createElement(gR,{"data-accent-color":l,alignOffset:-Number(n)*4,sideOffset:1,collisionPadding:10,...p,asChild:!1,ref:t,className:Je("rt-PopperContent","rt-BaseMenuContent","rt-BaseMenuSubContent","rt-DropdownMenuContent","rt-DropdownMenuSubContent",u)},r.createElement(Di,{type:"auto"},r.createElement("div",{className:Je("rt-BaseMenuViewport","rt-DropdownMenuViewport")},f)))))});yT.displayName="DropdownMenu.SubContent";const Xc=r.forwardRef(({className:e,...t},n)=>r.createElement(mR,{...t,asChild:!1,ref:n,className:Je("rt-BaseMenuSeparator","rt-DropdownMenuSeparator",e)}));Xc.displayName="DropdownMenu.Separator";const xT=["1","2","3","4"],wT={...Ta,size:{type:"enum",className:"rt-r-size",values:xT,default:"2",responsive:!0},width:qo.width,minWidth:qo.minWidth,maxWidth:{...qo.maxWidth,default:"480px"},...rp},Ci=e=>r.createElement(FR,{...e});Ci.displayName="Popover.Root";const Si=r.forwardRef(({children:e,...t},n)=>r.createElement(OR,{...t,ref:n,asChild:!0},Rs(e)));Si.displayName="Popover.Trigger";const ji=r.forwardRef((e,t)=>{const{className:n,forceMount:s,container:l,...c}=un(e,wT);return r.createElement(_R,{container:l,forceMount:s},r.createElement(as,{asChild:!0},r.createElement(ZR,{align:"start",sideOffset:8,collisionPadding:10,...c,ref:t,className:Je("rt-PopperContent","rt-PopoverContent",n)})))});ji.displayName="Popover.Content";const bT=r.forwardRef(({children:e,...t},n)=>r.createElement(VR,{...t,ref:n,asChild:!0},Rs(e)));bT.displayName="Popover.Close";const ET=r.forwardRef(({children:e,...t},n)=>r.createElement(IR,{...t,ref:n}));ET.displayName="Popover.Anchor";const CT=["1","2","3"],hp={size:{type:"enum",className:"rt-r-size",values:CT,default:"2",responsive:!0}},ST=["classic","surface","soft","ghost"],jT={variant:{type:"enum",className:"rt-variant",values:ST,default:"surface"},...Ha,...Hi,placeholder:{type:"string"}},kT=["solid","soft"],AT={variant:{type:"enum",className:"rt-variant",values:kT,default:"solid"},...Ha,...wl},mp=r.createContext({}),C5=e=>{const{children:t,size:n=hp.size.default,...s}=e;return r.createElement(mP,{...s},r.createElement(mp.Provider,{value:r.useMemo(()=>({size:n}),[n])},t))};C5.displayName="Select.Root";const S5=r.forwardRef((e,t)=>{const n=r.useContext(mp),{children:s,className:l,color:c,radius:u,placeholder:f,...h}=un({size:n==null?void 0:n.size,...e},{size:hp.size},jT,fa);return r.createElement(gP,{asChild:!0},r.createElement("button",{"data-accent-color":c,"data-radius":u,...h,ref:t,className:Je("rt-reset","rt-SelectTrigger",l)},r.createElement("span",{className:"rt-SelectTriggerInner"},r.createElement(yP,{placeholder:f},s)),r.createElement(xP,{asChild:!0},r.createElement(g5,{className:"rt-SelectIcon"}))))});S5.displayName="Select.Trigger";const j5=r.forwardRef((e,t)=>{const n=r.useContext(mp),{className:s,children:l,color:c,container:u,...f}=un({size:n==null?void 0:n.size,...e},{size:hp.size},AT),h=lp(),m=c||h.accentColor;return r.createElement(CP,{container:u},r.createElement(as,{asChild:!0},r.createElement(SP,{"data-accent-color":m,sideOffset:4,...f,asChild:!1,ref:t,className:Je({"rt-PopperContent":f.position==="popper"},"rt-SelectContent",s)},r.createElement(Ux,{type:"auto",className:"rt-ScrollAreaRoot"},r.createElement(PP,{asChild:!0,className:"rt-SelectViewport"},r.createElement(Wx,{className:"rt-ScrollAreaViewport",style:{overflowY:void 0}},l)),r.createElement(Mh,{className:"rt-ScrollAreaScrollbar rt-r-size-1",orientation:"vertical"},r.createElement(Rh,{className:"rt-ScrollAreaThumb"}))))))});j5.displayName="Select.Content";const k5=r.forwardRef((e,t)=>{const{className:n,children:s,...l}=e;return r.createElement(OP,{...l,asChild:!1,ref:t,className:Je("rt-SelectItem",n)},r.createElement(VP,{className:"rt-SelectItemIndicator"},r.createElement($i,{className:"rt-SelectItemIndicatorIcon"})),r.createElement(_P,null,s))});k5.displayName="Select.Item";const NT=r.forwardRef(({className:e,...t},n)=>r.createElement($P,{...t,asChild:!1,ref:n,className:Je("rt-SelectGroup",e)}));NT.displayName="Select.Group";const MT=r.forwardRef(({className:e,...t},n)=>r.createElement(FP,{...t,asChild:!1,ref:n,className:Je("rt-SelectLabel",e)}));MT.displayName="Select.Label";const RT=r.forwardRef(({className:e,...t},n)=>r.createElement(zP,{...t,asChild:!1,ref:n,className:Je("rt-SelectSeparator",e)}));RT.displayName="Select.Separator";const PT=["1","2","3"],LT=["classic","surface","soft"],TT=["none","vertical","horizontal","both"],HT={size:{type:"enum",className:"rt-r-size",values:PT,default:"2",responsive:!0},variant:{type:"enum",className:"rt-variant",values:LT,default:"surface"},resize:{type:"enum",className:"rt-r-resize",values:TT,responsive:!0},...Ha,...Hi},pp=r.forwardRef((e,t)=>{const{className:n,color:s,radius:l,style:c,...u}=un(e,HT,fa);return r.createElement("div",{"data-accent-color":s,"data-radius":l,className:Je("rt-TextAreaRoot",n),style:c},r.createElement("textarea",{className:"rt-reset rt-TextAreaInput",ref:t,...u}))});pp.displayName="TextArea";const $T=["1","2","3"],DT=["classic","surface","soft"],FT={size:{type:"enum",className:"rt-r-size",values:$T,default:"2",responsive:!0},variant:{type:"enum",className:"rt-variant",values:DT,default:"surface"},...Ha,...Hi},IT=["left","right"],OT={side:{type:"enum",values:IT},...Ha,gap:f5.gap,px:u1.px,pl:u1.pl,pr:u1.pr},xi=r.forwardRef((e,t)=>{const n=r.useRef(null),{children:s,className:l,color:c,radius:u,style:f,...h}=un(e,FT,fa);return r.createElement("div",{"data-accent-color":c,"data-radius":u,style:f,className:Je("rt-TextFieldRoot",l),onPointerDown:m=>{const p=m.target;if(p.closest("input, button, a"))return;const v=n.current;if(!v)return;const y=p.closest(`
|
|
97
97
|
.rt-TextFieldSlot[data-side='right'],
|
|
98
98
|
.rt-TextFieldSlot:not([data-side='right']) ~ .rt-TextFieldSlot:not([data-side='left'])
|
|
99
|
-
`)?v.value.length:0;requestAnimationFrame(()=>{try{v.setSelectionRange(y,y)}catch{}v.focus()})}},r.createElement("input",{spellCheck:"false",...h,ref:wm(n,t),className:"rt-reset rt-TextFieldInput"}),s)});xi.displayName="TextField.Root";const _T=r.forwardRef((e,t)=>{const{className:n,color:s,side:l,...c}=un(e,OT);return r.createElement("div",{"data-accent-color":s,"data-side":l,...c,ref:t,className:Je("rt-TextFieldSlot",n)})});_T.displayName="TextField.Slot";const fr={lastBrand:"scenri:last-brand",engine:"scenri:engine",quality:"scenri:quality",count:"scenri:count",format:"scenri:format",assetsOpen:"scenri:assets-open",assetsExpanded:"scenri:assets-expanded",tileSize:"scenri:tile-size",wallDensity:"scenri:wall-density",feedSort:"scenri:feed-sort"};function A5(e,t){try{const n=localStorage.getItem(e);return n===null?t:JSON.parse(n)}catch{return t}}const Hh="scenri:pref-changed";function N5(e,t){try{localStorage.setItem(e,JSON.stringify(t))}catch{}try{window.dispatchEvent(new CustomEvent(Hh,{detail:{key:e,value:t}}))}catch{}}function $h(e,t){try{const n=localStorage.getItem(e);return n===null?null:(localStorage.setItem(t,n),localStorage.removeItem(e),n)}catch{return null}}function Qa(e,t){const[n,s]=r.useState(()=>A5(e,t));return r.useEffect(()=>{N5(e,n)},[e,n]),r.useEffect(()=>{const l=c=>{const u=c.detail;(u==null?void 0:u.key)===e&&s(f=>Object.is(f,u.value)?f:u.value)};return window.addEventListener(Hh,l),()=>window.removeEventListener(Hh,l)},[e]),[n,s]}function ZT(e,t){const[n,s]=r.useState(()=>{try{const l=sessionStorage.getItem(e);return l===null?t:JSON.parse(l)}catch{return t}});return r.useEffect(()=>{try{sessionStorage.setItem(e,JSON.stringify(n))}catch{}},[e,n]),[n,s]}function $2(e,t){const[n,s]=Qa(e,t),[l,c]=r.useState(null);return[l??n,f=>{c(null),s(f)},c]}const VT=()=>A5(fr.lastBrand,null),zT=e=>N5(fr.lastBrand,e),Dh="sc-theme",BT="bt-theme",UT=()=>window.matchMedia("(prefers-color-scheme: light)").matches,M5=r.createContext({choice:"system",mode:"dark",setChoice:()=>{},toggle:()=>{}}),WT=()=>r.useContext(M5);function GT(){const e=localStorage.getItem(Dh)??$h(BT,Dh);return e==="light"||e==="dark"||e==="system"?e:"system"}function KT({children:e}){const[t,n]=r.useState(GT),[s,l]=r.useState(()=>UT()?"light":"dark");r.useEffect(()=>{const f=window.matchMedia("(prefers-color-scheme: light)"),h=()=>l(f.matches?"light":"dark");return f.addEventListener("change",h),()=>f.removeEventListener("change",h)},[]);const c=t==="system"?s:t;r.useEffect(()=>{document.documentElement.dataset.theme=c,localStorage.setItem(Dh,t)},[c,t]);const u=r.useMemo(()=>({choice:t,mode:c,setChoice:n,toggle:()=>n(c==="dark"?"light":"dark")}),[t,c]);return o.jsx(M5.Provider,{value:u,children:o.jsx(as,{appearance:c,accentColor:"gray",grayColor:"gray",radius:"large",scaling:"100%",children:e})})}const YT=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M204.41,51.63a108,108,0,1,0,0,152.74A107.38,107.38,0,0,0,204.41,51.63Zm-17,17A83.85,83.85,0,0,1,196.26,79L169,111.09l-23.3-65.21A83.52,83.52,0,0,1,187.43,68.6Zm-118.85,0a83.44,83.44,0,0,1,51.11-24.2l14.16,39.65L65.71,71.61C66.64,70.59,67.59,69.59,68.58,68.6ZM48,153.7a84.48,84.48,0,0,1,3.4-60.3L92.84,101Zm20.55,33.7A83.94,83.94,0,0,1,59.74,177L87,144.91l23.3,65.21A83.53,83.53,0,0,1,68.58,187.4Zm36.36-63.61,15.18-17.85,23.06,4.21,7.88,22.06-15.17,17.85-23.06-4.21Zm82.49,63.61a83.49,83.49,0,0,1-51.11,24.2L122.15,172l68.14,12.44C189.36,185.41,188.41,186.41,187.43,187.4ZM163.16,155,208,102.3a84.43,84.43,0,0,1-3.41,60.3Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M195.88,60.12a96,96,0,1,0,0,135.76A96,96,0,0,0,195.88,60.12Zm-55.34,103h0l-36.68-6.69h0L91.32,121.3l24.14-28.41h0l36.68,6.69,12.54,35.12Z",opacity:"0.2"}),r.createElement("path",{d:"M201.54,54.46A104,104,0,0,0,54.46,201.54,104,104,0,0,0,201.54,54.46ZM190.23,65.78a88.18,88.18,0,0,1,11,13.48L167.55,119,139.63,40.78A87.34,87.34,0,0,1,190.23,65.78ZM155.59,133l-18.16,21.37-27.59-5L100.41,123l18.16-21.37,27.59,5ZM65.77,65.78a87.34,87.34,0,0,1,56.66-25.59l17.51,49L58.3,74.32A88,88,0,0,1,65.77,65.78ZM46.65,161.54a88.41,88.41,0,0,1,2.53-72.62l51.21,9.35Zm19.12,28.68a88.18,88.18,0,0,1-11-13.48L88.45,137l27.92,78.18A87.34,87.34,0,0,1,65.77,190.22Zm124.46,0a87.34,87.34,0,0,1-56.66,25.59l-17.51-49,81.64,14.91A88,88,0,0,1,190.23,190.22Zm-34.62-32.49,53.74-63.27a88.41,88.41,0,0,1-2.53,72.62Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M232,128A104,104,0,0,0,54.46,54.46,104,104,0,0,0,128,232h.09A104,104,0,0,0,232,128ZM49.18,88.92l51.21,9.35L46.65,161.53A88.39,88.39,0,0,1,49.18,88.92Zm160.17,5.54a88.41,88.41,0,0,1-2.53,72.62l-51.21-9.35Zm-8.08-15.2L167.55,119,139.63,40.78a87.38,87.38,0,0,1,50.6,25A88.74,88.74,0,0,1,201.27,79.26ZM122.43,40.19l17.51,49L58.3,74.32a89.28,89.28,0,0,1,7.47-8.55A87.37,87.37,0,0,1,122.43,40.19ZM54.73,176.74,88.45,137l27.92,78.18a88,88,0,0,1-61.64-38.48Zm78.84,39.06-17.51-49L139.14,171h0l58.52,10.69a87.5,87.5,0,0,1-64.13,34.12Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M200.12,55.88A102,102,0,0,0,55.87,200.12,102,102,0,1,0,200.12,55.88Zm-102,66.67,19.65-23.14,29.86,5.46,10.21,28.58-19.65,23.14-29.86-5.46ZM209.93,90.69a90.24,90.24,0,0,1-2,78.63l-56.14-10.24Zm-6.16-11.28-36.94,43.48L136.66,38.42a89.31,89.31,0,0,1,55,25.94A91.33,91.33,0,0,1,203.77,79.41Zm-139.41-15A89.37,89.37,0,0,1,123.81,38.1L143,91.82,54.75,75.71A91.2,91.2,0,0,1,64.36,64.36ZM48,86.68l56.14,10.24L46.07,165.31a90.24,90.24,0,0,1,2-78.63Zm4.21,89.91,36.94-43.48,30.17,84.47a89.31,89.31,0,0,1-55-25.94A91.33,91.33,0,0,1,52.23,176.59Zm139.41,15a89.32,89.32,0,0,1-59.45,26.26L113,164.18l88.24,16.11A91.2,91.2,0,0,1,191.64,191.64Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M201.54,54.46A104,104,0,0,0,54.46,201.54,104,104,0,0,0,201.54,54.46ZM190.23,65.78a88.18,88.18,0,0,1,11,13.48L167.55,119,139.63,40.78A87.34,87.34,0,0,1,190.23,65.78ZM155.59,133l-18.16,21.37-27.59-5L100.41,123l18.16-21.37,27.59,5ZM65.77,65.78a87.34,87.34,0,0,1,56.66-25.59l17.51,49L58.3,74.32A88,88,0,0,1,65.77,65.78ZM46.65,161.54a88.41,88.41,0,0,1,2.53-72.62l51.21,9.35Zm19.12,28.68a88.18,88.18,0,0,1-11-13.48L88.45,137l27.92,78.18A87.34,87.34,0,0,1,65.77,190.22Zm124.46,0a87.34,87.34,0,0,1-56.66,25.59l-17.51-49,81.64,14.91A88,88,0,0,1,190.23,190.22Zm-34.62-32.49,53.74-63.27a88.41,88.41,0,0,1-2.53,72.62Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M198.71,57.29A100,100,0,1,0,57.29,198.71,100,100,0,1,0,198.71,57.29Zm10.37,114.27-61-11.14L210.4,87a92.26,92.26,0,0,1-1.32,84.52ZM95.87,122.13,117,97.24l32.14,5.86,11,30.77L139,158.76l-32.14-5.86ZM206.24,79.58l-40.13,47.25L133.75,36.2a92.09,92.09,0,0,1,72.49,43.38ZM63,63a91.31,91.31,0,0,1,62.26-26.88L146,94.41,51.32,77.11A92.94,92.94,0,0,1,63,63Zm-16,21.49,61,11.14L45.6,169a92.26,92.26,0,0,1,1.32-84.52Zm2.84,92,40.13-47.25,32.36,90.63a92.09,92.09,0,0,1-72.49-43.38Zm143.29,16.63a91.31,91.31,0,0,1-62.26,26.88L110,161.59l94.72,17.3A92.94,92.94,0,0,1,193.05,193.05Z"}))]]),qT=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,44H32A20,20,0,0,0,12,64V88a20,20,0,0,0,16,19.6V192a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V107.6A20,20,0,0,0,244,88V64A20,20,0,0,0,224,44ZM36,68H220V84H36ZM52,188V108H204v80Zm112-52a12,12,0,0,1-12,12H104a12,12,0,0,1,0-24h48A12,12,0,0,1,164,136Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,96v96a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V96Z",opacity:"0.2"}),r.createElement("path",{d:"M224,48H32A16,16,0,0,0,16,64V88a16,16,0,0,0,16,16v88a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V104a16,16,0,0,0,16-16V64A16,16,0,0,0,224,48ZM208,192H48V104H208ZM224,88H32V64H224V88ZM96,136a8,8,0,0,1,8-8h48a8,8,0,0,1,0,16H104A8,8,0,0,1,96,136Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,48H32A16,16,0,0,0,16,64V88a16,16,0,0,0,16,16v88a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V104a16,16,0,0,0,16-16V64A16,16,0,0,0,224,48Zm-72,96H104a8,8,0,0,1,0-16h48a8,8,0,0,1,0,16Zm72-56H32V64H224V88Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,50H32A14,14,0,0,0,18,64V88a14,14,0,0,0,14,14h2v90a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V102h2a14,14,0,0,0,14-14V64A14,14,0,0,0,224,50ZM210,192a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V102H210ZM226,88a2,2,0,0,1-2,2H32a2,2,0,0,1-2-2V64a2,2,0,0,1,2-2H224a2,2,0,0,1,2,2ZM98,136a6,6,0,0,1,6-6h48a6,6,0,0,1,0,12H104A6,6,0,0,1,98,136Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,48H32A16,16,0,0,0,16,64V88a16,16,0,0,0,16,16v88a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V104a16,16,0,0,0,16-16V64A16,16,0,0,0,224,48ZM208,192H48V104H208ZM224,88H32V64H224V88ZM96,136a8,8,0,0,1,8-8h48a8,8,0,0,1,0,16H104A8,8,0,0,1,96,136Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,52H32A12,12,0,0,0,20,64V88a12,12,0,0,0,12,12h4v92a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V100h4a12,12,0,0,0,12-12V64A12,12,0,0,0,224,52ZM212,192a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V100H212ZM228,88a4,4,0,0,1-4,4H32a4,4,0,0,1-4-4V64a4,4,0,0,1,4-4H224a4,4,0,0,1,4,4ZM100,136a4,4,0,0,1,4-4h48a4,4,0,0,1,0,8H104A4,4,0,0,1,100,136Z"}))]]),XT=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,192a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,212Zm40.49-100.49a12,12,0,0,1-17,17L140,117v51a12,12,0,0,1-24,0V117l-11.51,11.52a12,12,0,0,1-17-17l32-32a12,12,0,0,1,17,0Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),r.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm37.66-101.66a8,8,0,0,1-11.32,11.32L136,107.31V168a8,8,0,0,1-16,0V107.31l-18.34,18.35a8,8,0,0,1-11.32-11.32l32-32a8,8,0,0,1,11.32,0Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm37.66,101.66a8,8,0,0,1-11.32,0L136,107.31V168a8,8,0,0,1-16,0V107.31l-18.34,18.35a8,8,0,0,1-11.32-11.32l32-32a8,8,0,0,1,11.32,0l32,32A8,8,0,0,1,165.66,125.66Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218Zm36.24-102.24a6,6,0,1,1-8.48,8.48L134,102.49V168a6,6,0,0,1-12,0V102.49l-21.76,21.75a6,6,0,0,1-8.48-8.48l32-32a6,6,0,0,1,8.48,0Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm37.66-101.66a8,8,0,0,1-11.32,11.32L136,107.31V168a8,8,0,0,1-16,0V107.31l-18.34,18.35a8,8,0,0,1-11.32-11.32l32-32a8,8,0,0,1,11.32,0Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220Zm34.83-102.83a4,4,0,0,1-5.66,5.66L132,97.66V168a4,4,0,0,1-8,0V97.66L98.83,122.83a4,4,0,0,1-5.66-5.66l32-32a4,4,0,0,1,5.66,0Z"}))]]),QT=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M244,56v48a12,12,0,0,1-12,12H184a12,12,0,1,1,0-24H201.1l-19-17.38c-.13-.12-.26-.24-.38-.37A76,76,0,1,0,127,204h1a75.53,75.53,0,0,0,52.15-20.72,12,12,0,0,1,16.49,17.45A99.45,99.45,0,0,1,128,228h-1.37A100,100,0,1,1,198.51,57.06L220,76.72V56a12,12,0,0,1,24,0Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z",opacity:"0.2"}),r.createElement("path",{d:"M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1,0-16H211.4L184.81,71.64l-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,0,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60L224,85.8V56a8,8,0,1,1,16,0Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1-5.66-13.66l17-17-10.55-9.65-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,1,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60l10.93,10L226.34,50.3A8,8,0,0,1,240,56Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M238,56v48a6,6,0,0,1-6,6H184a6,6,0,0,1,0-12h32.55l-30.38-27.8c-.06-.06-.12-.13-.19-.19a82,82,0,1,0-1.7,117.65,6,6,0,0,1,8.24,8.73A93.46,93.46,0,0,1,128,222h-1.28A94,94,0,1,1,194.37,61.4L226,90.35V56a6,6,0,1,1,12,0Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1,0-16H211.4L184.81,71.64l-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,0,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60L224,85.8V56a8,8,0,1,1,16,0Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M236,56v48a4,4,0,0,1-4,4H184a4,4,0,0,1,0-8h37.7L187.53,68.69l-.13-.12a84,84,0,1,0-1.75,120.51,4,4,0,0,1,5.5,5.82A91.43,91.43,0,0,1,128,220h-1.26A92,92,0,1,1,193,62.84l35,32.05V56a4,4,0,1,1,8,0Z"}))]]),JT=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M228,128a100,100,0,0,1-98.66,100H128a99.39,99.39,0,0,1-68.62-27.29,12,12,0,0,1,16.48-17.45,76,76,0,1,0-1.57-109c-.13.13-.25.25-.39.37L54.89,92H72a12,12,0,0,1,0,24H24a12,12,0,0,1-12-12V56a12,12,0,0,1,24,0V76.72L57.48,57.06A100,100,0,0,1,228,128Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z",opacity:"0.2"}),r.createElement("path",{d:"M224,128a96,96,0,0,1-94.71,96H128A95.38,95.38,0,0,1,62.1,197.8a8,8,0,0,1,11-11.63A80,80,0,1,0,71.43,71.39a3.07,3.07,0,0,1-.26.25L44.59,96H72a8,8,0,0,1,0,16H24a8,8,0,0,1-8-8V56a8,8,0,0,1,16,0V85.8L60.25,60A96,96,0,0,1,224,128Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,128a96,96,0,0,1-94.71,96H128A95.38,95.38,0,0,1,62.1,197.8a8,8,0,0,1,11-11.63A80,80,0,1,0,71.43,71.39a3.07,3.07,0,0,1-.26.25L60.63,81.29l17,17A8,8,0,0,1,72,112H24a8,8,0,0,1-8-8V56A8,8,0,0,1,29.66,50.3L49.31,70,60.25,60A96,96,0,0,1,224,128Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M222,128a94,94,0,0,1-92.74,94H128a93.43,93.43,0,0,1-64.5-25.65,6,6,0,1,1,8.24-8.72A82,82,0,1,0,70,70l-.19.19L39.44,98H72a6,6,0,0,1,0,12H24a6,6,0,0,1-6-6V56a6,6,0,0,1,12,0V90.34L61.63,61.4A94,94,0,0,1,222,128Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,128a96,96,0,0,1-94.71,96H128A95.38,95.38,0,0,1,62.1,197.8a8,8,0,0,1,11-11.63A80,80,0,1,0,71.43,71.39a3.07,3.07,0,0,1-.26.25L44.59,96H72a8,8,0,0,1,0,16H24a8,8,0,0,1-8-8V56a8,8,0,0,1,16,0V85.8L60.25,60A96,96,0,0,1,224,128Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M220,128a92,92,0,0,1-90.77,92H128a91.47,91.47,0,0,1-63.13-25.1,4,4,0,1,1,5.5-5.82A84,84,0,1,0,68.6,68.57l-.13.12L34.3,100H72a4,4,0,0,1,0,8H24a4,4,0,0,1-4-4V56a4,4,0,0,1,8,0V94.89l35-32A92,92,0,0,1,220,128Z"}))]]),eH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M228,128a12,12,0,0,1-12,12H69l51.52,51.51a12,12,0,0,1-17,17l-72-72a12,12,0,0,1,0-17l72-72a12,12,0,0,1,17,17L69,116H216A12,12,0,0,1,228,128Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M112,56V200L40,128Z",opacity:"0.2"}),r.createElement("path",{d:"M216,120H120V56a8,8,0,0,0-13.66-5.66l-72,72a8,8,0,0,0,0,11.32l72,72A8,8,0,0,0,120,200V136h96a8,8,0,0,0,0-16ZM104,180.69,51.31,128,104,75.31Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H120v64a8,8,0,0,1-13.66,5.66l-72-72a8,8,0,0,1,0-11.32l72-72A8,8,0,0,1,120,56v64h96A8,8,0,0,1,224,128Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M222,128a6,6,0,0,1-6,6H54.49l61.75,61.76a6,6,0,1,1-8.48,8.48l-72-72a6,6,0,0,1,0-8.48l72-72a6,6,0,0,1,8.48,8.48L54.49,122H216A6,6,0,0,1,222,128Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H59.31l58.35,58.34a8,8,0,0,1-11.32,11.32l-72-72a8,8,0,0,1,0-11.32l72-72a8,8,0,0,1,11.32,11.32L59.31,120H216A8,8,0,0,1,224,128Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M220,128a4,4,0,0,1-4,4H49.66l65.17,65.17a4,4,0,0,1-5.66,5.66l-72-72a4,4,0,0,1,0-5.66l72-72a4,4,0,0,1,5.66,5.66L49.66,124H216A4,4,0,0,1,220,128Z"}))]]),tH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208.49,143.51a12,12,0,0,1-17,17L140,109V224a12,12,0,0,1-24,0V109L64.49,160.49a12,12,0,0,1-17-17l72-72a12,12,0,0,1,17,0ZM216,28H40a12,12,0,0,0,0,24H216a12,12,0,0,0,0-24Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M200,144H56l72-72Z",opacity:"0.2"}),r.createElement("path",{d:"M133.66,66.34a8,8,0,0,0-11.32,0l-72,72A8,8,0,0,0,56,152h64v72a8,8,0,0,0,16,0V152h64a8,8,0,0,0,5.66-13.66ZM75.31,136,128,83.31,180.69,136ZM224,40a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,40Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M205.66,138.34A8,8,0,0,1,200,152H136v72a8,8,0,0,1-16,0V152H56a8,8,0,0,1-5.66-13.66l72-72a8,8,0,0,1,11.32,0ZM216,32H40a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M204.24,139.76a6,6,0,1,1-8.48,8.48L134,86.49V224a6,6,0,0,1-12,0V86.49L60.24,148.24a6,6,0,0,1-8.48-8.48l72-72a6,6,0,0,1,8.48,0ZM216,34H40a6,6,0,0,0,0,12H216a6,6,0,0,0,0-12Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M205.66,138.34a8,8,0,0,1-11.32,11.32L136,91.31V224a8,8,0,0,1-16,0V91.31L61.66,149.66a8,8,0,0,1-11.32-11.32l72-72a8,8,0,0,1,11.32,0ZM216,32H40a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M202.83,141.17a4,4,0,0,1-5.66,5.66L132,81.66V224a4,4,0,0,1-8,0V81.66L58.83,146.83a4,4,0,0,1-5.66-5.66l72-72a4,4,0,0,1,5.66,0ZM216,36H40a4,4,0,0,0,0,8H216a4,4,0,0,0,0-8Z"}))]]),nH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224.49,136.49l-72,72a12,12,0,0,1-17-17L187,140H40a12,12,0,0,1,0-24H187L135.51,64.48a12,12,0,0,1,17-17l72,72A12,12,0,0,1,224.49,136.49Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,128l-72,72V56Z",opacity:"0.2"}),r.createElement("path",{d:"M221.66,122.34l-72-72A8,8,0,0,0,136,56v64H40a8,8,0,0,0,0,16h96v64a8,8,0,0,0,13.66,5.66l72-72A8,8,0,0,0,221.66,122.34ZM152,180.69V75.31L204.69,128Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M221.66,133.66l-72,72A8,8,0,0,1,136,200V136H40a8,8,0,0,1,0-16h96V56a8,8,0,0,1,13.66-5.66l72,72A8,8,0,0,1,221.66,133.66Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M220.24,132.24l-72,72a6,6,0,0,1-8.48-8.48L201.51,134H40a6,6,0,0,1,0-12H201.51L139.76,60.24a6,6,0,0,1,8.48-8.48l72,72A6,6,0,0,1,220.24,132.24Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M221.66,133.66l-72,72a8,8,0,0,1-11.32-11.32L196.69,136H40a8,8,0,0,1,0-16H196.69L138.34,61.66a8,8,0,0,1,11.32-11.32l72,72A8,8,0,0,1,221.66,133.66Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M218.83,130.83l-72,72a4,4,0,0,1-5.66-5.66L206.34,132H40a4,4,0,0,1,0-8H206.34L141.17,58.83a4,4,0,0,1,5.66-5.66l72,72A4,4,0,0,1,218.83,130.83Z"}))]]),rH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M228,104a12,12,0,0,1-24,0V69l-59.51,59.51a12,12,0,0,1-17-17L187,52H152a12,12,0,0,1,0-24h64a12,12,0,0,1,12,12Zm-44,24a12,12,0,0,0-12,12v64H52V84h64a12,12,0,0,0,0-24H48A20,20,0,0,0,28,80V208a20,20,0,0,0,20,20H176a20,20,0,0,0,20-20V140A12,12,0,0,0,184,128Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M184,80V208a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V80a8,8,0,0,1,8-8H176A8,8,0,0,1,184,80Z",opacity:"0.2"}),r.createElement("path",{d:"M224,104a8,8,0,0,1-16,0V59.32l-66.33,66.34a8,8,0,0,1-11.32-11.32L196.68,48H152a8,8,0,0,1,0-16h64a8,8,0,0,1,8,8Zm-40,24a8,8,0,0,0-8,8v72H48V80h72a8,8,0,0,0,0-16H48A16,16,0,0,0,32,80V208a16,16,0,0,0,16,16H176a16,16,0,0,0,16-16V136A8,8,0,0,0,184,128Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M192,136v72a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V80A16,16,0,0,1,48,64h72a8,8,0,0,1,0,16H48V208H176V136a8,8,0,0,1,16,0Zm32-96a8,8,0,0,0-8-8H152a8,8,0,0,0-5.66,13.66L172.69,72l-42.35,42.34a8,8,0,0,0,11.32,11.32L184,83.31l26.34,26.35A8,8,0,0,0,224,104Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M222,104a6,6,0,0,1-12,0V54.49l-69.75,69.75a6,6,0,0,1-8.48-8.48L201.51,46H152a6,6,0,0,1,0-12h64a6,6,0,0,1,6,6Zm-38,26a6,6,0,0,0-6,6v72a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V80a2,2,0,0,1,2-2h72a6,6,0,0,0,0-12H48A14,14,0,0,0,34,80V208a14,14,0,0,0,14,14H176a14,14,0,0,0,14-14V136A6,6,0,0,0,184,130Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,104a8,8,0,0,1-16,0V59.32l-66.33,66.34a8,8,0,0,1-11.32-11.32L196.68,48H152a8,8,0,0,1,0-16h64a8,8,0,0,1,8,8Zm-40,24a8,8,0,0,0-8,8v72H48V80h72a8,8,0,0,0,0-16H48A16,16,0,0,0,32,80V208a16,16,0,0,0,16,16H176a16,16,0,0,0,16-16V136A8,8,0,0,0,184,128Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M220,104a4,4,0,0,1-8,0V49.66l-73.16,73.17a4,4,0,0,1-5.66-5.66L206.34,44H152a4,4,0,0,1,0-8h64a4,4,0,0,1,4,4Zm-36,28a4,4,0,0,0-4,4v72a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V80a4,4,0,0,1,4-4h72a4,4,0,0,0,0-8H48A12,12,0,0,0,36,80V208a12,12,0,0,0,12,12H176a12,12,0,0,0,12-12V136A4,4,0,0,0,184,132Z"}))]]),aH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208.49,120.49a12,12,0,0,1-17,0L140,69V216a12,12,0,0,1-24,0V69L64.49,120.49a12,12,0,0,1-17-17l72-72a12,12,0,0,1,17,0l72,72A12,12,0,0,1,208.49,120.49Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M200,112H56l72-72Z",opacity:"0.2"}),r.createElement("path",{d:"M205.66,106.34l-72-72a8,8,0,0,0-11.32,0l-72,72A8,8,0,0,0,56,120h64v96a8,8,0,0,0,16,0V120h64a8,8,0,0,0,5.66-13.66ZM75.31,104,128,51.31,180.69,104Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M207.39,115.06A8,8,0,0,1,200,120H136v96a8,8,0,0,1-16,0V120H56a8,8,0,0,1-5.66-13.66l72-72a8,8,0,0,1,11.32,0l72,72A8,8,0,0,1,207.39,115.06Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M204.24,116.24a6,6,0,0,1-8.48,0L134,54.49V216a6,6,0,0,1-12,0V54.49L60.24,116.24a6,6,0,0,1-8.48-8.48l72-72a6,6,0,0,1,8.48,0l72,72A6,6,0,0,1,204.24,116.24Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M205.66,117.66a8,8,0,0,1-11.32,0L136,59.31V216a8,8,0,0,1-16,0V59.31L61.66,117.66a8,8,0,0,1-11.32-11.32l72-72a8,8,0,0,1,11.32,0l72,72A8,8,0,0,1,205.66,117.66Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M202.83,114.83a4,4,0,0,1-5.66,0L132,49.66V216a4,4,0,0,1-8,0V49.66L58.83,114.83a4,4,0,0,1-5.66-5.66l72-72a4,4,0,0,1,5.66,0l72,72A4,4,0,0,1,202.83,114.83Z"}))]]),sH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M228,48V96a12,12,0,0,1-12,12H168a12,12,0,0,1,0-24h19l-7.8-7.8a75.55,75.55,0,0,0-53.32-22.26h-.43A75.49,75.49,0,0,0,72.39,75.57,12,12,0,1,1,55.61,58.41a99.38,99.38,0,0,1,69.87-28.47H126A99.42,99.42,0,0,1,196.2,59.23L204,67V48a12,12,0,0,1,24,0ZM183.61,180.43a75.49,75.49,0,0,1-53.09,21.63h-.43A75.55,75.55,0,0,1,76.77,179.8L69,172H88a12,12,0,0,0,0-24H40a12,12,0,0,0-12,12v48a12,12,0,0,0,24,0V189l7.8,7.8A99.42,99.42,0,0,0,130,226.06h.56a99.38,99.38,0,0,0,69.87-28.47,12,12,0,0,0-16.78-17.16Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z",opacity:"0.2"}),r.createElement("path",{d:"M224,48V96a8,8,0,0,1-8,8H168a8,8,0,0,1,0-16h28.69L182.06,73.37a79.56,79.56,0,0,0-56.13-23.43h-.45A79.52,79.52,0,0,0,69.59,72.71,8,8,0,0,1,58.41,61.27a96,96,0,0,1,135,.79L208,76.69V48a8,8,0,0,1,16,0ZM186.41,183.29a80,80,0,0,1-112.47-.66L59.31,168H88a8,8,0,0,0,0-16H40a8,8,0,0,0-8,8v48a8,8,0,0,0,16,0V179.31l14.63,14.63A95.43,95.43,0,0,0,130,222.06h.53a95.36,95.36,0,0,0,67.07-27.33,8,8,0,0,0-11.18-11.44Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,48V96a8,8,0,0,1-8,8H168a8,8,0,0,1-5.66-13.66L180.65,72a79.48,79.48,0,0,0-54.72-22.09h-.45A79.52,79.52,0,0,0,69.59,72.71,8,8,0,0,1,58.41,61.27,96,96,0,0,1,192,60.7l18.36-18.36A8,8,0,0,1,224,48ZM186.41,183.29A80,80,0,0,1,75.35,184l18.31-18.31A8,8,0,0,0,88,152H40a8,8,0,0,0-8,8v48a8,8,0,0,0,13.66,5.66L64,195.3a95.42,95.42,0,0,0,66,26.76h.53a95.36,95.36,0,0,0,67.07-27.33,8,8,0,0,0-11.18-11.44Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M222,48V96a6,6,0,0,1-6,6H168a6,6,0,0,1,0-12h33.52L183.47,72a81.51,81.51,0,0,0-57.53-24h-.46A81.5,81.5,0,0,0,68.19,71.28a6,6,0,1,1-8.38-8.58,93.38,93.38,0,0,1,65.67-26.76H126a93.45,93.45,0,0,1,66,27.53l18,18V48a6,6,0,0,1,12,0ZM187.81,184.72a81.5,81.5,0,0,1-57.29,23.34h-.46a81.51,81.51,0,0,1-57.53-24L54.48,166H88a6,6,0,0,0,0-12H40a6,6,0,0,0-6,6v48a6,6,0,0,0,12,0V174.48l18,18.05a93.45,93.45,0,0,0,66,27.53h.52a93.38,93.38,0,0,0,65.67-26.76,6,6,0,1,0-8.38-8.58Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,48V96a8,8,0,0,1-8,8H168a8,8,0,0,1,0-16h28.69L182.06,73.37a79.56,79.56,0,0,0-56.13-23.43h-.45A79.52,79.52,0,0,0,69.59,72.71,8,8,0,0,1,58.41,61.27a96,96,0,0,1,135,.79L208,76.69V48a8,8,0,0,1,16,0ZM186.41,183.29a80,80,0,0,1-112.47-.66L59.31,168H88a8,8,0,0,0,0-16H40a8,8,0,0,0-8,8v48a8,8,0,0,0,16,0V179.31l14.63,14.63A95.43,95.43,0,0,0,130,222.06h.53a95.36,95.36,0,0,0,67.07-27.33,8,8,0,0,0-11.18-11.44Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M220,48V96a4,4,0,0,1-4,4H168a4,4,0,0,1,0-8h38.34L184.89,70.54A84,84,0,0,0,66.8,69.85a4,4,0,1,1-5.6-5.72,92,92,0,0,1,129.34.76L212,86.34V48a4,4,0,0,1,8,0ZM189.2,186.15a83.44,83.44,0,0,1-58.68,23.91h-.47a83.52,83.52,0,0,1-58.94-24.6L49.66,164H88a4,4,0,0,0,0-8H40a4,4,0,0,0-4,4v48a4,4,0,0,0,8,0V169.66l21.46,21.45A91.43,91.43,0,0,0,130,218.06h.51a91.45,91.45,0,0,0,64.28-26.19,4,4,0,1,0-5.6-5.72Z"}))]]),oH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M120.49,167.51a12,12,0,0,1,0,17l-32,32a12,12,0,0,1-17,0l-32-32a12,12,0,1,1,17-17L68,179V48a12,12,0,0,1,24,0V179l11.51-11.52A12,12,0,0,1,120.49,167.51Zm96-96-32-32a12,12,0,0,0-17,0l-32,32a12,12,0,0,0,17,17L164,77V208a12,12,0,0,0,24,0V77l11.51,11.52a12,12,0,0,0,17-17Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M176,48V208H80V48Z",opacity:"0.2"}),r.createElement("path",{d:"M117.66,170.34a8,8,0,0,1,0,11.32l-32,32a8,8,0,0,1-11.32,0l-32-32a8,8,0,0,1,11.32-11.32L72,188.69V48a8,8,0,0,1,16,0V188.69l18.34-18.35A8,8,0,0,1,117.66,170.34Zm96-96-32-32a8,8,0,0,0-11.32,0l-32,32a8,8,0,0,0,11.32,11.32L168,67.31V208a8,8,0,0,0,16,0V67.31l18.34,18.35a8,8,0,0,0,11.32-11.32Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M119.39,172.94a8,8,0,0,1-1.73,8.72l-32,32a8,8,0,0,1-11.32,0l-32-32A8,8,0,0,1,48,168H72V48a8,8,0,0,1,16,0V168h24A8,8,0,0,1,119.39,172.94Zm94.27-98.6-32-32a8,8,0,0,0-11.32,0l-32,32A8,8,0,0,0,144,88h24V208a8,8,0,0,0,16,0V88h24a8,8,0,0,0,5.66-13.66Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M116.24,171.76a6,6,0,0,1,0,8.48l-32,32a6,6,0,0,1-8.48,0l-32-32a6,6,0,0,1,8.48-8.48L74,193.51V48a6,6,0,0,1,12,0V193.51l21.76-21.75A6,6,0,0,1,116.24,171.76Zm96-96-32-32a6,6,0,0,0-8.48,0l-32,32a6,6,0,0,0,8.48,8.48L170,62.49V208a6,6,0,0,0,12,0V62.49l21.76,21.75a6,6,0,0,0,8.48-8.48Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M117.66,170.34a8,8,0,0,1,0,11.32l-32,32a8,8,0,0,1-11.32,0l-32-32a8,8,0,0,1,11.32-11.32L72,188.69V48a8,8,0,0,1,16,0V188.69l18.34-18.35A8,8,0,0,1,117.66,170.34Zm96-96-32-32a8,8,0,0,0-11.32,0l-32,32a8,8,0,0,0,11.32,11.32L168,67.31V208a8,8,0,0,0,16,0V67.31l18.34,18.35a8,8,0,0,0,11.32-11.32Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M114.83,173.17a4,4,0,0,1,0,5.66l-32,32a4,4,0,0,1-5.66,0l-32-32a4,4,0,0,1,5.66-5.66L76,198.34V48a4,4,0,0,1,8,0V198.34l25.17-25.17A4,4,0,0,1,114.83,173.17Zm96-96-32-32a4,4,0,0,0-5.66,0l-32,32a4,4,0,0,0,5.66,5.66L172,57.66V208a4,4,0,0,0,8,0V57.66l25.17,25.17a4,4,0,1,0,5.66-5.66Z"}))]]),lH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216.49,184.49l-32,32a12,12,0,0,1-17-17L179,188H48a12,12,0,0,1,0-24H179l-11.52-11.51a12,12,0,0,1,17-17l32,32A12,12,0,0,1,216.49,184.49Zm-145-64a12,12,0,0,0,17-17L77,92H208a12,12,0,0,0,0-24H77L88.49,56.49a12,12,0,0,0-17-17l-32,32a12,12,0,0,0,0,17Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,80v96H48V80Z",opacity:"0.2"}),r.createElement("path",{d:"M213.66,181.66l-32,32a8,8,0,0,1-11.32-11.32L188.69,184H48a8,8,0,0,1,0-16H188.69l-18.35-18.34a8,8,0,0,1,11.32-11.32l32,32A8,8,0,0,1,213.66,181.66Zm-139.32-64a8,8,0,0,0,11.32-11.32L67.31,88H208a8,8,0,0,0,0-16H67.31L85.66,53.66A8,8,0,0,0,74.34,42.34l-32,32a8,8,0,0,0,0,11.32Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M42.34,85.66a8,8,0,0,1,0-11.32l32-32A8,8,0,0,1,88,48V72H208a8,8,0,0,1,0,16H88v24a8,8,0,0,1-13.66,5.66Zm171.32,84.68-32-32A8,8,0,0,0,168,144v24H48a8,8,0,0,0,0,16H168v24a8,8,0,0,0,13.66,5.66l32-32A8,8,0,0,0,213.66,170.34Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M212.24,171.76a6,6,0,0,1,0,8.48l-32,32a6,6,0,0,1-8.48-8.48L193.51,182H48a6,6,0,0,1,0-12H193.51l-21.75-21.76a6,6,0,0,1,8.48-8.48ZM75.76,116.24a6,6,0,0,0,8.48-8.48L62.49,86H208a6,6,0,0,0,0-12H62.49L84.24,52.24a6,6,0,0,0-8.48-8.48l-32,32a6,6,0,0,0,0,8.48Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M213.66,181.66l-32,32a8,8,0,0,1-11.32-11.32L188.69,184H48a8,8,0,0,1,0-16H188.69l-18.35-18.34a8,8,0,0,1,11.32-11.32l32,32A8,8,0,0,1,213.66,181.66Zm-139.32-64a8,8,0,0,0,11.32-11.32L67.31,88H208a8,8,0,0,0,0-16H67.31L85.66,53.66A8,8,0,0,0,74.34,42.34l-32,32a8,8,0,0,0,0,11.32Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M210.83,173.17a4,4,0,0,1,0,5.66l-32,32a4,4,0,0,1-5.66-5.66L198.34,180H48a4,4,0,0,1,0-8H198.34l-25.17-25.17a4,4,0,0,1,5.66-5.66ZM77.17,114.83a4,4,0,0,0,5.66-5.66L57.66,84H208a4,4,0,0,0,0-8H57.66L82.83,50.83a4,4,0,0,0-5.66-5.66l-32,32a4,4,0,0,0,0,5.66Z"}))]]),iH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M225.29,165.93C216.61,151,212,129.57,212,104a84,84,0,0,0-168,0c0,25.58-4.59,47-13.27,61.93A20.08,20.08,0,0,0,30.66,186,19.77,19.77,0,0,0,48,196H84.18a44,44,0,0,0,87.64,0H208a19.77,19.77,0,0,0,17.31-10A20.08,20.08,0,0,0,225.29,165.93ZM128,212a20,20,0,0,1-19.6-16h39.2A20,20,0,0,1,128,212ZM54.66,172C63.51,154,68,131.14,68,104a60,60,0,0,1,120,0c0,27.13,4.48,50,13.33,68Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,192H48a8,8,0,0,1-6.88-12C47.71,168.6,56,139.81,56,104a72,72,0,0,1,144,0c0,35.82,8.3,64.6,14.9,76A8,8,0,0,1,208,192Z",opacity:"0.2"}),r.createElement("path",{d:"M221.8,175.94C216.25,166.38,208,139.33,208,104a80,80,0,1,0-160,0c0,35.34-8.26,62.38-13.81,71.94A16,16,0,0,0,48,200H88.81a40,40,0,0,0,78.38,0H208a16,16,0,0,0,13.8-24.06ZM128,216a24,24,0,0,1-22.62-16h45.24A24,24,0,0,1,128,216ZM48,184c7.7-13.24,16-43.92,16-80a64,64,0,1,1,128,0c0,36.05,8.28,66.73,16,80Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M221.8,175.94C216.25,166.38,208,139.33,208,104a80,80,0,1,0-160,0c0,35.34-8.26,62.38-13.81,71.94A16,16,0,0,0,48,200H88.81a40,40,0,0,0,78.38,0H208a16,16,0,0,0,13.8-24.06ZM128,216a24,24,0,0,1-22.62-16h45.24A24,24,0,0,1,128,216Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M220.07,176.94C214.41,167.2,206,139.73,206,104a78,78,0,1,0-156,0c0,35.74-8.42,63.2-14.08,72.94A14,14,0,0,0,48,198H90.48a38,38,0,0,0,75,0H208a14,14,0,0,0,12.06-21.06ZM128,218a26,26,0,0,1-25.29-20h50.58A26,26,0,0,1,128,218Zm81.71-33a1.9,1.9,0,0,1-1.7,1H48a1.9,1.9,0,0,1-1.7-1,2,2,0,0,1,0-2C53.87,170,62,139.69,62,104a66,66,0,1,1,132,0c0,35.68,8.14,65.95,15.71,79A2,2,0,0,1,209.71,185Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M221.8,175.94C216.25,166.38,208,139.33,208,104a80,80,0,1,0-160,0c0,35.34-8.26,62.38-13.81,71.94A16,16,0,0,0,48,200H88.81a40,40,0,0,0,78.38,0H208a16,16,0,0,0,13.8-24.06ZM128,216a24,24,0,0,1-22.62-16h45.24A24,24,0,0,1,128,216ZM48,184c7.7-13.24,16-43.92,16-80a64,64,0,1,1,128,0c0,36.05,8.28,66.73,16,80Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M218.35,178C212.58,168,204,140.13,204,104a76,76,0,1,0-152,0c0,36.13-8.59,64-14.36,73.95A12,12,0,0,0,48,196H92.23a36,36,0,0,0,71.54,0H208A12,12,0,0,0,218.35,178ZM128,220a28,28,0,0,1-27.71-24h55.42A28,28,0,0,1,128,220Zm83.45-34a3.91,3.91,0,0,1-3.44,2H48a3.91,3.91,0,0,1-3.44-2,4,4,0,0,1,0-4C52,169.17,60,139.32,60,104a68,68,0,1,1,136,0c0,35.31,8,65.17,15.44,78A4,4,0,0,1,211.45,186Z"}))]]),cH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M184,28H72A20,20,0,0,0,52,48V224a12,12,0,0,0,18.36,10.18l57.63-36,57.65,36A12,12,0,0,0,204,224V48A20,20,0,0,0,184,28Zm-4,174.35-45.65-28.53a12,12,0,0,0-12.72,0L76,202.35V52H180Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M192,48V224l-64-40L64,224V48a8,8,0,0,1,8-8H184A8,8,0,0,1,192,48Z",opacity:"0.2"}),r.createElement("path",{d:"M184,32H72A16,16,0,0,0,56,48V224a8,8,0,0,0,12.24,6.78L128,193.43l59.77,37.35A8,8,0,0,0,200,224V48A16,16,0,0,0,184,32Zm0,177.57-51.77-32.35a8,8,0,0,0-8.48,0L72,209.57V48H184Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M184,32H72A16,16,0,0,0,56,48V224a8,8,0,0,0,12.24,6.78L128,193.43l59.77,37.35A8,8,0,0,0,200,224V48A16,16,0,0,0,184,32Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M184,34H72A14,14,0,0,0,58,48V224a6,6,0,0,0,9.18,5.09l60.81-38,60.83,38A6,6,0,0,0,198,224V48A14,14,0,0,0,184,34Zm2,179.17-54.83-34.26a6,6,0,0,0-6.36,0L70,213.17V48a2,2,0,0,1,2-2H184a2,2,0,0,1,2,2Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M184,32H72A16,16,0,0,0,56,48V224a8,8,0,0,0,12.24,6.78L128,193.43l59.77,37.35A8,8,0,0,0,200,224V48A16,16,0,0,0,184,32Zm0,177.57-51.77-32.35a8,8,0,0,0-8.48,0L72,209.57V48H184Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M184,36H72A12,12,0,0,0,60,48V224a4,4,0,0,0,6.12,3.39L128,188.72l61.89,38.67A4,4,0,0,0,192,228a4.06,4.06,0,0,0,1.94-.5A4,4,0,0,0,196,224V48A12,12,0,0,0,184,36Zm4,180.78-57.89-36.17a4,4,0,0,0-4.24,0L68,216.78V48a4,4,0,0,1,4-4H184a4,4,0,0,1,4,4Z"}))]]),uH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M237.24,213.21C216.12,203,204,180.64,204,152V134.73a19.94,19.94,0,0,0-12.62-18.59l-24.86-9.81a4,4,0,0,1-2.26-5.14l21.33-53A32,32,0,0,0,167.17,6,32.13,32.13,0,0,0,126.25,24.2l-.07.18-21,53.09a3.94,3.94,0,0,1-2.14,2.2,3.89,3.89,0,0,1-3,.06L74.6,69.43A19.89,19.89,0,0,0,52.87,74C31.06,96.43,20,122.68,20,152a115.46,115.46,0,0,0,32.29,80.3A12,12,0,0,0,61,236H232a12,12,0,0,0,5.24-22.79ZM68.19,92.73,91.06,102A28,28,0,0,0,127.5,86.31l20.95-53a8.32,8.32,0,0,1,10.33-4.81,8,8,0,0,1,4.61,10.57,1.17,1.17,0,0,0,0,.11L142,92.29a28.05,28.05,0,0,0,15.68,36.33L180,137.45V152c0,1,0,2.07.05,3.1l-122.44-49A101.91,101.91,0,0,1,68.19,92.73ZM116.74,212a83.73,83.73,0,0,1-22.09-39,12,12,0,0,0-23.25,6,110.27,110.27,0,0,0,14.49,33H66.25A91.53,91.53,0,0,1,44,152a84,84,0,0,1,3.41-24.11l136.67,54.66A86.58,86.58,0,0,0,198.66,212Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M192.8,165.12,43.93,105.57A110.88,110.88,0,0,1,61.47,82.38a8,8,0,0,1,8.67-1.81L95.52,90.85a16,16,0,0,0,20.82-9l21-53.1c4.15-10,15.47-15.33,25.63-11.53a20,20,0,0,1,11.51,26.39L153.13,96.71a16,16,0,0,0,8.93,20.75L187,127.3a8,8,0,0,1,5,7.43V152A104.58,104.58,0,0,0,192.8,165.12Z",opacity:"0.2"}),r.createElement("path",{d:"M235.5,216.81c-22.56-11-35.5-34.58-35.5-64.8V134.73a15.94,15.94,0,0,0-10.09-14.87L165,110a8,8,0,0,1-4.48-10.34l21.32-53a28,28,0,0,0-16.1-37,28.14,28.14,0,0,0-35.82,16,.61.61,0,0,0,0,.12L108.9,79a8,8,0,0,1-10.37,4.49L73.11,73.14A15.89,15.89,0,0,0,55.74,76.8C34.68,98.45,24,123.75,24,152a111.45,111.45,0,0,0,31.18,77.53A8,8,0,0,0,61,232H232a8,8,0,0,0,3.5-15.19ZM67.14,88l25.41,10.3a24,24,0,0,0,31.23-13.45l21-53c2.56-6.11,9.47-9.27,15.43-7a12,12,0,0,1,6.88,15.92L145.69,93.76a24,24,0,0,0,13.43,31.14L184,134.73V152c0,.33,0,.66,0,1L55.77,101.71A108.84,108.84,0,0,1,67.14,88Zm48,128a87.53,87.53,0,0,1-24.34-42,8,8,0,0,0-15.49,4,105.16,105.16,0,0,0,18.36,38H64.44A95.54,95.54,0,0,1,40,152a85.9,85.9,0,0,1,7.73-36.29l137.8,55.12c3,18,10.56,33.48,21.89,45.16Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M235.29,216.7C212.86,205.69,200,182.12,200,152V134.69a15.94,15.94,0,0,0-10.09-14.87l-28.65-11.46A8,8,0,0,1,156.79,98l22.32-56.67C184,28.79,178,14.21,165.34,9.51a24,24,0,0,0-30.7,13.71L112.25,80.08a8,8,0,0,1-10.41,4.5L73.11,73.08a15.91,15.91,0,0,0-17.38,3.66C34.68,98.4,24,123.71,24,152a111.53,111.53,0,0,0,31.15,77.53A8.06,8.06,0,0,0,61,232H232a8,8,0,0,0,8-7.51A8.21,8.21,0,0,0,235.29,216.7ZM115.11,216a87.52,87.52,0,0,1-24.26-41.71,8.21,8.21,0,0,0-9.25-6.18A8,8,0,0,0,75.28,178a105.33,105.33,0,0,0,18.36,38H64.44A95.62,95.62,0,0,1,40,152a85.92,85.92,0,0,1,7.73-36.3l137.8,55.13c3,18.06,10.55,33.5,21.89,45.19Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M234.62,218.6C211.35,207.29,198,183,198,152V134.7a14,14,0,0,0-8.82-13l-24.89-9.83a10,10,0,0,1-5.59-13L180,45.9a26,26,0,0,0-15-34.33c-12.95-4.83-27.88,1.84-33.31,15l-21,53.11a10,10,0,0,1-13,5.61L72.37,75a13.9,13.9,0,0,0-15.2,3.19C36.49,99.42,26,124.26,26,152a109.53,109.53,0,0,0,30.62,76.16A6,6,0,0,0,61,230H232a6,6,0,0,0,2.62-11.4ZM65.77,86.52a2,2,0,0,1,2.12-.43l25.4,10.29a22,22,0,0,0,28.63-12.32l21-53c3-7.13,11-10.81,18-8.21a14,14,0,0,1,8,18.54l-21.36,53.1A22.05,22.05,0,0,0,159.86,123l24.88,9.83A2,2,0,0,1,186,134.7V152c0,1.34,0,2.65.08,4L52.74,102.61A110.07,110.07,0,0,1,65.77,86.52ZM114.33,218a89.6,89.6,0,0,1-25.5-43.5,6,6,0,1,0-11.62,3A102.87,102.87,0,0,0,97.81,218H63.56A97.56,97.56,0,0,1,38,152a87.42,87.42,0,0,1,8.71-38.86L187.35,169.4c3.15,19.92,11.77,36.66,25,48.6Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M235.5,216.81c-22.56-11-35.5-34.58-35.5-64.8V134.73a15.94,15.94,0,0,0-10.09-14.87L165,110a8,8,0,0,1-4.48-10.34l21.32-53a28,28,0,0,0-16.1-37,28.14,28.14,0,0,0-35.82,16,.61.61,0,0,0,0,.12L108.9,79a8,8,0,0,1-10.37,4.49L73.11,73.14A15.89,15.89,0,0,0,55.74,76.8C34.68,98.45,24,123.75,24,152a111.45,111.45,0,0,0,31.18,77.53A8,8,0,0,0,61,232H232a8,8,0,0,0,3.5-15.19ZM67.14,88l25.41,10.3a24,24,0,0,0,31.23-13.45l21-53c2.56-6.11,9.47-9.27,15.43-7a12,12,0,0,1,6.88,15.92L145.69,93.76a24,24,0,0,0,13.43,31.14L184,134.73V152c0,.33,0,.66,0,1L55.77,101.71A108.84,108.84,0,0,1,67.14,88Zm48,128a87.53,87.53,0,0,1-24.34-42,8,8,0,0,0-15.49,4,105.16,105.16,0,0,0,18.36,38H64.44A95.54,95.54,0,0,1,40,152a85.9,85.9,0,0,1,7.73-36.29l137.8,55.12c3,18,10.56,33.48,21.89,45.16Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M233.75,220.4C209.76,208.75,196,183.82,196,152V134.72a12,12,0,0,0-7.56-11.15l-24.89-9.83a12,12,0,0,1-6.71-15.55l21.33-53a23.88,23.88,0,0,0-31.93-31A24.72,24.72,0,0,0,133.62,27.3l-21,53.1A12,12,0,0,1,97,87.13L71.63,76.84a12,12,0,0,0-13,2.73C38.3,100.45,28,124.82,28,152a107.5,107.5,0,0,0,30.07,74.77A4,4,0,0,0,61,228H232a4,4,0,0,0,1.75-7.6ZM64.34,85.15a3.94,3.94,0,0,1,4.3-.89L94,94.55a20,20,0,0,0,26-11.2l21-53C144.39,22.19,153.61,18,161.58,21a16,16,0,0,1,9.19,21.16L149.41,95.22a20,20,0,0,0,11.18,26l24.9,9.83a4,4,0,0,1,2.51,3.72V152c0,2.36.08,4.69.22,7l-138.5-55.4A110.84,110.84,0,0,1,64.34,85.15ZM113.56,220A91.35,91.35,0,0,1,86.9,175a4,4,0,0,0-7.75,2,100.21,100.21,0,0,0,23.09,43H62.68A99.5,99.5,0,0,1,36,152a89.37,89.37,0,0,1,9.73-41.4L189.13,168c3.22,22,13.23,40.09,28.8,52Z"}))]]),dH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216.49,104.49l-80,80a12,12,0,0,1-17,0l-80-80a12,12,0,0,1,17-17L128,159l71.51-71.52a12,12,0,0,1,17,17Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,96l-80,80L48,96Z",opacity:"0.2"}),r.createElement("path",{d:"M215.39,92.94A8,8,0,0,0,208,88H48a8,8,0,0,0-5.66,13.66l80,80a8,8,0,0,0,11.32,0l80-80A8,8,0,0,0,215.39,92.94ZM128,164.69,67.31,104H188.69Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,48,88H208a8,8,0,0,1,5.66,13.66Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M212.24,100.24l-80,80a6,6,0,0,1-8.48,0l-80-80a6,6,0,0,1,8.48-8.48L128,167.51l75.76-75.75a6,6,0,0,1,8.48,8.48Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M210.83,98.83l-80,80a4,4,0,0,1-5.66,0l-80-80a4,4,0,0,1,5.66-5.66L128,170.34l77.17-77.17a4,4,0,1,1,5.66,5.66Z"}))]]),fH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M168.49,199.51a12,12,0,0,1-17,17l-80-80a12,12,0,0,1,0-17l80-80a12,12,0,0,1,17,17L97,128Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M160,48V208L80,128Z",opacity:"0.2"}),r.createElement("path",{d:"M163.06,40.61a8,8,0,0,0-8.72,1.73l-80,80a8,8,0,0,0,0,11.32l80,80A8,8,0,0,0,168,208V48A8,8,0,0,0,163.06,40.61ZM152,188.69,91.31,128,152,67.31Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M168,48V208a8,8,0,0,1-13.66,5.66l-80-80a8,8,0,0,1,0-11.32l80-80A8,8,0,0,1,168,48Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M164.24,203.76a6,6,0,1,1-8.48,8.48l-80-80a6,6,0,0,1,0-8.48l80-80a6,6,0,0,1,8.48,8.48L88.49,128Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M165.66,202.34a8,8,0,0,1-11.32,11.32l-80-80a8,8,0,0,1,0-11.32l80-80a8,8,0,0,1,11.32,11.32L91.31,128Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M162.83,205.17a4,4,0,0,1-5.66,5.66l-80-80a4,4,0,0,1,0-5.66l80-80a4,4,0,1,1,5.66,5.66L85.66,128Z"}))]]),hH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M184.49,136.49l-80,80a12,12,0,0,1-17-17L159,128,87.51,56.49a12,12,0,1,1,17-17l80,80A12,12,0,0,1,184.49,136.49Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M176,128,96,208V48Z",opacity:"0.2"}),r.createElement("path",{d:"M181.66,122.34l-80-80A8,8,0,0,0,88,48V208a8,8,0,0,0,13.66,5.66l80-80A8,8,0,0,0,181.66,122.34ZM104,188.69V67.31L164.69,128Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M181.66,133.66l-80,80A8,8,0,0,1,88,208V48a8,8,0,0,1,13.66-5.66l80,80A8,8,0,0,1,181.66,133.66Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M180.24,132.24l-80,80a6,6,0,0,1-8.48-8.48L167.51,128,91.76,52.24a6,6,0,0,1,8.48-8.48l80,80A6,6,0,0,1,180.24,132.24Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M178.83,130.83l-80,80a4,4,0,0,1-5.66-5.66L170.34,128,93.17,50.83a4,4,0,0,1,5.66-5.66l80,80A4,4,0,0,1,178.83,130.83Z"}))]]),mH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M232.49,80.49l-128,128a12,12,0,0,1-17,0l-56-56a12,12,0,1,1,17-17L96,183,215.51,63.51a12,12,0,0,1,17,17Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M232,56V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56Z",opacity:"0.2"}),r.createElement("path",{d:"M205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M228.24,76.24l-128,128a6,6,0,0,1-8.48,0l-56-56a6,6,0,0,1,8.48-8.48L96,191.51,219.76,67.76a6,6,0,0,1,8.48,8.48Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M226.83,74.83l-128,128a4,4,0,0,1-5.66,0l-56-56a4,4,0,0,1,5.66-5.66L96,194.34,221.17,69.17a4,4,0,1,1,5.66,5.66Z"}))]]),pH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M176.49,95.51a12,12,0,0,1,0,17l-56,56a12,12,0,0,1-17,0l-24-24a12,12,0,1,1,17-17L112,143l47.51-47.52A12,12,0,0,1,176.49,95.51ZM236,128A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),r.createElement("path",{d:"M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm45.66,85.66-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35a8,8,0,0,1,11.32,11.32Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M172.24,99.76a6,6,0,0,1,0,8.48l-56,56a6,6,0,0,1-8.48,0l-24-24a6,6,0,0,1,8.48-8.48L112,151.51l51.76-51.75A6,6,0,0,1,172.24,99.76ZM230,128A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M170.83,101.17a4,4,0,0,1,0,5.66l-56,56a4,4,0,0,1-5.66,0l-24-24a4,4,0,0,1,5.66-5.66L112,154.34l53.17-53.17A4,4,0,0,1,170.83,101.17ZM228,128A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"}))]]),gH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,192a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,212Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),r.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M232,128A104,104,0,1,1,128,24,104.13,104.13,0,0,1,232,128Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220Z"}))]]),vH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,28H88A12,12,0,0,0,76,40V76H40A12,12,0,0,0,28,88V216a12,12,0,0,0,12,12H168a12,12,0,0,0,12-12V180h36a12,12,0,0,0,12-12V40A12,12,0,0,0,216,28ZM156,204H52V100H156Zm48-48H180V88a12,12,0,0,0-12-12H100V52H204Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,40V168H168V88H88V40Z",opacity:"0.2"}),r.createElement("path",{d:"M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32ZM160,208H48V96H160Zm48-48H176V88a8,8,0,0,0-8-8H96V48H208Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32Zm-8,128H176V88a8,8,0,0,0-8-8H96V48H208Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,34H88a6,6,0,0,0-6,6V82H40a6,6,0,0,0-6,6V216a6,6,0,0,0,6,6H168a6,6,0,0,0,6-6V174h42a6,6,0,0,0,6-6V40A6,6,0,0,0,216,34ZM162,210H46V94H162Zm48-48H174V88a6,6,0,0,0-6-6H94V46H210Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32ZM160,208H48V96H160Zm48-48H176V88a8,8,0,0,0-8-8H96V48H208Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,36H88a4,4,0,0,0-4,4V84H40a4,4,0,0,0-4,4V216a4,4,0,0,0,4,4H168a4,4,0,0,0,4-4V172h44a4,4,0,0,0,4-4V40A4,4,0,0,0,216,36ZM164,212H44V92H164Zm48-48H172V88a4,4,0,0,0-4-4H92V44H212Z"}))]]),yH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M180,64H40A12,12,0,0,0,28,76V216a12,12,0,0,0,12,12H180a12,12,0,0,0,12-12V76A12,12,0,0,0,180,64ZM168,204H52V88H168ZM228,40V180a12,12,0,0,1-24,0V52H76a12,12,0,0,1,0-24H216A12,12,0,0,1,228,40Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M184,72V216H40V72Z",opacity:"0.2"}),r.createElement("path",{d:"M184,64H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H184a8,8,0,0,0,8-8V72A8,8,0,0,0,184,64Zm-8,144H48V80H176ZM224,40V184a8,8,0,0,1-16,0V48H72a8,8,0,0,1,0-16H216A8,8,0,0,1,224,40Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M192,72V216a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V72a8,8,0,0,1,8-8H184A8,8,0,0,1,192,72Zm24-40H72a8,8,0,0,0,0,16H208V184a8,8,0,0,0,16,0V40A8,8,0,0,0,216,32Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M184,66H40a6,6,0,0,0-6,6V216a6,6,0,0,0,6,6H184a6,6,0,0,0,6-6V72A6,6,0,0,0,184,66Zm-6,144H46V78H178ZM222,40V184a6,6,0,0,1-12,0V46H72a6,6,0,0,1,0-12H216A6,6,0,0,1,222,40Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M184,64H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H184a8,8,0,0,0,8-8V72A8,8,0,0,0,184,64Zm-8,144H48V80H176ZM224,40V184a8,8,0,0,1-16,0V48H72a8,8,0,0,1,0-16H216A8,8,0,0,1,224,40Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M184,68H40a4,4,0,0,0-4,4V216a4,4,0,0,0,4,4H184a4,4,0,0,0,4-4V72A4,4,0,0,0,184,68Zm-4,144H44V76H180ZM220,40V184a4,4,0,0,1-8,0V44H72a4,4,0,0,1,0-8H216A4,4,0,0,1,220,40Z"}))]]),xH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M196,35.52C177.62,25.51,153.48,20,128,20S78.38,25.51,60,35.52C39.37,46.79,28,62.58,28,80v96c0,17.42,11.37,33.21,32,44.48,18.35,10,42.49,15.52,68,15.52s49.62-5.51,68-15.52c20.66-11.27,32-27.06,32-44.48V80C228,62.58,216.63,46.79,196,35.52ZM204,128c0,17-31.21,36-76,36s-76-19-76-36v-8.46a88.9,88.9,0,0,0,8,4.94c18.35,10,42.49,15.52,68,15.52s49.62-5.51,68-15.52a88.9,88.9,0,0,0,8-4.94ZM128,44c44.79,0,76,19,76,36s-31.21,36-76,36S52,97,52,80,83.21,44,128,44Zm0,168c-44.79,0-76-19-76-36v-8.46a88.9,88.9,0,0,0,8,4.94c18.35,10,42.49,15.52,68,15.52s49.62-5.51,68-15.52a88.9,88.9,0,0,0,8-4.94V176C204,193,172.79,212,128,212Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,80c0,26.51-39.4,48-88,48S40,106.51,40,80s39.4-48,88-48S216,53.49,216,80Z",opacity:"0.2"}),r.createElement("path",{d:"M128,24C74.17,24,32,48.6,32,80v96c0,31.4,42.17,56,96,56s96-24.6,96-56V80C224,48.6,181.83,24,128,24Zm80,104c0,9.62-7.88,19.43-21.61,26.92C170.93,163.35,150.19,168,128,168s-42.93-4.65-58.39-13.08C55.88,147.43,48,137.62,48,128V111.36c17.06,15,46.23,24.64,80,24.64s62.94-9.68,80-24.64ZM69.61,53.08C85.07,44.65,105.81,40,128,40s42.93,4.65,58.39,13.08C200.12,60.57,208,70.38,208,80s-7.88,19.43-21.61,26.92C170.93,115.35,150.19,120,128,120s-42.93-4.65-58.39-13.08C55.88,99.43,48,89.62,48,80S55.88,60.57,69.61,53.08ZM186.39,202.92C170.93,211.35,150.19,216,128,216s-42.93-4.65-58.39-13.08C55.88,195.43,48,185.62,48,176V159.36c17.06,15,46.23,24.64,80,24.64s62.94-9.68,80-24.64V176C208,185.62,200.12,195.43,186.39,202.92Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,24C74.17,24,32,48.6,32,80v96c0,31.4,42.17,56,96,56s96-24.6,96-56V80C224,48.6,181.83,24,128,24Zm80,104c0,9.62-7.88,19.43-21.61,26.92C170.93,163.35,150.19,168,128,168s-42.93-4.65-58.39-13.08C55.88,147.43,48,137.62,48,128V111.36c17.06,15,46.23,24.64,80,24.64s62.94-9.68,80-24.64Zm-21.61,74.92C170.93,211.35,150.19,216,128,216s-42.93-4.65-58.39-13.08C55.88,195.43,48,185.62,48,176V159.36c17.06,15,46.23,24.64,80,24.64s62.94-9.68,80-24.64V176C208,185.62,200.12,195.43,186.39,202.92Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,26C75.29,26,34,49.72,34,80v96c0,30.28,41.29,54,94,54s94-23.72,94-54V80C222,49.72,180.71,26,128,26Zm0,12c44.45,0,82,19.23,82,42s-37.55,42-82,42S46,102.77,46,80,83.55,38,128,38Zm82,138c0,22.77-37.55,42-82,42s-82-19.23-82-42V154.79C62,171.16,92.37,182,128,182s66-10.84,82-27.21Zm0-48c0,22.77-37.55,42-82,42s-82-19.23-82-42V106.79C62,123.16,92.37,134,128,134s66-10.84,82-27.21Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,24C74.17,24,32,48.6,32,80v96c0,31.4,42.17,56,96,56s96-24.6,96-56V80C224,48.6,181.83,24,128,24Zm80,104c0,9.62-7.88,19.43-21.61,26.92C170.93,163.35,150.19,168,128,168s-42.93-4.65-58.39-13.08C55.88,147.43,48,137.62,48,128V111.36c17.06,15,46.23,24.64,80,24.64s62.94-9.68,80-24.64ZM69.61,53.08C85.07,44.65,105.81,40,128,40s42.93,4.65,58.39,13.08C200.12,60.57,208,70.38,208,80s-7.88,19.43-21.61,26.92C170.93,115.35,150.19,120,128,120s-42.93-4.65-58.39-13.08C55.88,99.43,48,89.62,48,80S55.88,60.57,69.61,53.08ZM186.39,202.92C170.93,211.35,150.19,216,128,216s-42.93-4.65-58.39-13.08C55.88,195.43,48,185.62,48,176V159.36c17.06,15,46.23,24.64,80,24.64s62.94-9.68,80-24.64V176C208,185.62,200.12,195.43,186.39,202.92Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M192.14,42.55C174.94,33.17,152.16,28,128,28S81.06,33.17,63.86,42.55C45.89,52.35,36,65.65,36,80v96c0,14.35,9.89,27.65,27.86,37.45,17.2,9.38,40,14.55,64.14,14.55s46.94-5.17,64.14-14.55c18-9.8,27.86-23.1,27.86-37.45V80C220,65.65,210.11,52.35,192.14,42.55ZM212,176c0,11.29-8.41,22.1-23.69,30.43C172.27,215.18,150.85,220,128,220s-44.27-4.82-60.31-13.57C52.41,198.1,44,187.29,44,176V149.48c4.69,5.93,11.37,11.34,19.86,16,17.2,9.38,40,14.55,64.14,14.55s46.94-5.17,64.14-14.55c8.49-4.63,15.17-10,19.86-16Zm0-48c0,11.29-8.41,22.1-23.69,30.43C172.27,167.18,150.85,172,128,172s-44.27-4.82-60.31-13.57C52.41,150.1,44,139.29,44,128V101.48c4.69,5.93,11.37,11.34,19.86,16,17.2,9.38,40,14.55,64.14,14.55s46.94-5.17,64.14-14.55c8.49-4.63,15.17-10,19.86-16Zm-23.69-17.57C172.27,119.18,150.85,124,128,124s-44.27-4.82-60.31-13.57C52.41,102.1,44,91.29,44,80s8.41-22.1,23.69-30.43C83.73,40.82,105.15,36,128,36s44.27,4.82,60.31,13.57C203.59,57.9,212,68.71,212,80S203.59,102.1,188.31,110.43Z"}))]]),wH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M144,128a16,16,0,1,1-16-16A16,16,0,0,1,144,128ZM60,112a16,16,0,1,0,16,16A16,16,0,0,0,60,112Zm136,0a16,16,0,1,0,16,16A16,16,0,0,0,196,112Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M240,96v64a16,16,0,0,1-16,16H32a16,16,0,0,1-16-16V96A16,16,0,0,1,32,80H224A16,16,0,0,1,240,96Z",opacity:"0.2"}),r.createElement("path",{d:"M140,128a12,12,0,1,1-12-12A12,12,0,0,1,140,128Zm56-12a12,12,0,1,0,12,12A12,12,0,0,0,196,116ZM60,116a12,12,0,1,0,12,12A12,12,0,0,0,60,116Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,80H32A16,16,0,0,0,16,96v64a16,16,0,0,0,16,16H224a16,16,0,0,0,16-16V96A16,16,0,0,0,224,80ZM60,140a12,12,0,1,1,12-12A12,12,0,0,1,60,140Zm68,0a12,12,0,1,1,12-12A12,12,0,0,1,128,140Zm68,0a12,12,0,1,1,12-12A12,12,0,0,1,196,140Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M138,128a10,10,0,1,1-10-10A10,10,0,0,1,138,128ZM60,118a10,10,0,1,0,10,10A10,10,0,0,0,60,118Zm136,0a10,10,0,1,0,10,10A10,10,0,0,0,196,118Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M140,128a12,12,0,1,1-12-12A12,12,0,0,1,140,128Zm56-12a12,12,0,1,0,12,12A12,12,0,0,0,196,116ZM60,116a12,12,0,1,0,12,12A12,12,0,0,0,60,116Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M136,128a8,8,0,1,1-8-8A8,8,0,0,1,136,128Zm-76-8a8,8,0,1,0,8,8A8,8,0,0,0,60,120Zm136,0a8,8,0,1,0,8,8A8,8,0,0,0,196,120Z"}))]]),bH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M228,144v64a12,12,0,0,1-12,12H40a12,12,0,0,1-12-12V144a12,12,0,0,1,24,0v52H204V144a12,12,0,0,1,24,0Zm-108.49,8.49a12,12,0,0,0,17,0l40-40a12,12,0,0,0-17-17L140,115V32a12,12,0,0,0-24,0v83L96.49,95.51a12,12,0,0,0-17,17Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,48V208H40V48A16,16,0,0,1,56,32H200A16,16,0,0,1,216,48Z",opacity:"0.2"}),r.createElement("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0Zm-101.66,5.66a8,8,0,0,0,11.32,0l40-40a8,8,0,0,0-11.32-11.32L136,124.69V32a8,8,0,0,0-16,0v92.69L93.66,98.34a8,8,0,0,0-11.32,11.32Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0Zm-101.66,5.66a8,8,0,0,0,11.32,0l40-40A8,8,0,0,0,168,96H136V32a8,8,0,0,0-16,0V96H88a8,8,0,0,0-5.66,13.66Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M222,144v64a6,6,0,0,1-6,6H40a6,6,0,0,1-6-6V144a6,6,0,0,1,12,0v58H210V144a6,6,0,0,1,12,0Zm-98.24,4.24a6,6,0,0,0,8.48,0l40-40a6,6,0,0,0-8.48-8.48L134,129.51V32a6,6,0,0,0-12,0v97.51L92.24,99.76a6,6,0,0,0-8.48,8.48Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0Zm-101.66,5.66a8,8,0,0,0,11.32,0l40-40a8,8,0,0,0-11.32-11.32L136,124.69V32a8,8,0,0,0-16,0v92.69L93.66,98.34a8,8,0,0,0-11.32,11.32Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M220,144v64a4,4,0,0,1-4,4H40a4,4,0,0,1-4-4V144a4,4,0,0,1,8,0v60H212V144a4,4,0,0,1,8,0Zm-94.83,2.83a4,4,0,0,0,5.66,0l40-40a4,4,0,1,0-5.66-5.66L132,134.34V32a4,4,0,0,0-8,0V134.34L90.83,101.17a4,4,0,0,0-5.66,5.66Z"}))]]),EH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M251,123.13c-.37-.81-9.13-20.26-28.48-39.61C196.63,57.67,164,44,128,44S59.37,57.67,33.51,83.52C14.16,102.87,5.4,122.32,5,123.13a12.08,12.08,0,0,0,0,9.75c.37.82,9.13,20.26,28.49,39.61C59.37,198.34,92,212,128,212s68.63-13.66,94.48-39.51c19.36-19.35,28.12-38.79,28.49-39.61A12.08,12.08,0,0,0,251,123.13Zm-46.06,33C183.47,177.27,157.59,188,128,188s-55.47-10.73-76.91-31.88A130.36,130.36,0,0,1,29.52,128,130.45,130.45,0,0,1,51.09,99.89C72.54,78.73,98.41,68,128,68s55.46,10.73,76.91,31.89A130.36,130.36,0,0,1,226.48,128,130.45,130.45,0,0,1,204.91,156.12ZM128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,64a20,20,0,1,1,20-20A20,20,0,0,1,128,148Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,56C48,56,16,128,16,128s32,72,112,72,112-72,112-72S208,56,128,56Zm0,112a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z",opacity:"0.2"}),r.createElement("path",{d:"M247.31,124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57,61.26,162.88,48,128,48S61.43,61.26,36.34,86.35C17.51,105.18,9,124,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208s66.57-13.26,91.66-38.34c18.83-18.83,27.3-37.61,27.65-38.4A8,8,0,0,0,247.31,124.76ZM128,192c-30.78,0-57.67-11.19-79.93-33.25A133.47,133.47,0,0,1,25,128,133.33,133.33,0,0,1,48.07,97.25C70.33,75.19,97.22,64,128,64s57.67,11.19,79.93,33.25A133.46,133.46,0,0,1,231.05,128C223.84,141.46,192.43,192,128,192Zm0-112a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M247.31,124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57,61.26,162.88,48,128,48S61.43,61.26,36.34,86.35C17.51,105.18,9,124,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208s66.57-13.26,91.66-38.34c18.83-18.83,27.3-37.61,27.65-38.4A8,8,0,0,0,247.31,124.76ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M245.48,125.57c-.34-.78-8.66-19.23-27.24-37.81C201,70.54,171.38,50,128,50S55,70.54,37.76,87.76c-18.58,18.58-26.9,37-27.24,37.81a6,6,0,0,0,0,4.88c.34.77,8.66,19.22,27.24,37.8C55,185.47,84.62,206,128,206s73-20.53,90.24-37.75c18.58-18.58,26.9-37,27.24-37.8A6,6,0,0,0,245.48,125.57ZM128,194c-31.38,0-58.78-11.42-81.45-33.93A134.77,134.77,0,0,1,22.69,128,134.56,134.56,0,0,1,46.55,95.94C69.22,73.42,96.62,62,128,62s58.78,11.42,81.45,33.94A134.56,134.56,0,0,1,233.31,128C226.94,140.21,195,194,128,194Zm0-112a46,46,0,1,0,46,46A46.06,46.06,0,0,0,128,82Zm0,80a34,34,0,1,1,34-34A34,34,0,0,1,128,162Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M247.31,124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57,61.26,162.88,48,128,48S61.43,61.26,36.34,86.35C17.51,105.18,9,124,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208s66.57-13.26,91.66-38.34c18.83-18.83,27.3-37.61,27.65-38.4A8,8,0,0,0,247.31,124.76ZM128,192c-30.78,0-57.67-11.19-79.93-33.25A133.47,133.47,0,0,1,25,128,133.33,133.33,0,0,1,48.07,97.25C70.33,75.19,97.22,64,128,64s57.67,11.19,79.93,33.25A133.46,133.46,0,0,1,231.05,128C223.84,141.46,192.43,192,128,192Zm0-112a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M243.66,126.38c-.34-.76-8.52-18.89-26.83-37.2C199.87,72.22,170.7,52,128,52S56.13,72.22,39.17,89.18c-18.31,18.31-26.49,36.44-26.83,37.2a4.08,4.08,0,0,0,0,3.25c.34.77,8.52,18.89,26.83,37.2,17,17,46.14,37.17,88.83,37.17s71.87-20.21,88.83-37.17c18.31-18.31,26.49-36.43,26.83-37.2A4.08,4.08,0,0,0,243.66,126.38Zm-32.7,35c-23.07,23-51,34.62-83,34.62s-59.89-11.65-83-34.62A135.71,135.71,0,0,1,20.44,128,135.69,135.69,0,0,1,45,94.62C68.11,71.65,96,60,128,60s59.89,11.65,83,34.62A135.79,135.79,0,0,1,235.56,128,135.71,135.71,0,0,1,211,161.38ZM128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,80a36,36,0,1,1,36-36A36,36,0,0,1,128,164Z"}))]]),CH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,100H132.92l78.14-20.63a12,12,0,0,0,8.52-14.75l-8.16-30a19.94,19.94,0,0,0-24.3-13.95L34.79,60.87a19.74,19.74,0,0,0-12.14,9.27,19.48,19.48,0,0,0-1.95,15L28,112v88a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V112A12,12,0,0,0,216,100ZM124.89,61.91l18.29,10.56-25.95,6.85L98.94,68.76Zm64.45-17,3.91,14.35-17.13,4.52L157.83,53.21ZM66,77.46,84.29,88l-35.4,9.35L45,83ZM204,196H52V124H204Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M67.71,64.59l47.79,27.6L40.43,112,32.27,82a7.76,7.76,0,0,1,5.58-9.52ZM199.84,37.76a7.9,7.9,0,0,0-9.66-5.49L126.61,49.05,174.4,76.64,208,67.77Z",opacity:"0.2"}),r.createElement("path",{d:"M216,104H102.09L210,75.51a8,8,0,0,0,5.68-9.84l-8.16-30a15.93,15.93,0,0,0-19.42-11.13L35.81,64.74a15.75,15.75,0,0,0-9.7,7.4,15.51,15.51,0,0,0-1.55,12L32,111.56c0,.14,0,.29,0,.44v88a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V112A8,8,0,0,0,216,104ZM192.16,40l6,22.07-22.62,6L147.42,51.83Zm-66.69,17.6,28.12,16.24-36.94,9.75L88.53,67.37Zm-79.4,44.62-6-22.08,26.5-7L94.69,89.4ZM208,200H48V120H208v80Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,104H102.09L210,75.51a8,8,0,0,0,5.68-9.84l-8.16-30a15.93,15.93,0,0,0-19.42-11.13L35.81,64.74a15.75,15.75,0,0,0-9.7,7.4,15.51,15.51,0,0,0-1.55,12L32,111.56c0,.14,0,.29,0,.44v88a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V112A8,8,0,0,0,216,104ZM192.16,40l6,22.07L164.57,71,136.44,54.72ZM77.55,70.27l28.12,16.24-59.6,15.73-6-22.08Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,106H86.68L209.53,73.57a6,6,0,0,0,4.26-7.38l-8.16-30a13.94,13.94,0,0,0-17-9.72L36.32,66.67a13.77,13.77,0,0,0-8.48,6.47,13.57,13.57,0,0,0-1.36,10.42L34,111.34c0,.22,0,.44,0,.66v88a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V112A6,6,0,0,0,216,106ZM125.75,55.48l33,19.07-42.43,11.2-33-19.07Zm66-17.41a1.92,1.92,0,0,1,2.34,1.26l6.57,24.18L175.26,70.2l-33-19.07ZM38.23,79.14a1.85,1.85,0,0,1,1.15-.87L66.86,71l33,19.08L44.66,104.68l-6.6-24.27A1.63,1.63,0,0,1,38.23,79.14ZM210,200a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V118H210Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,104H102.09L210,75.51a8,8,0,0,0,5.68-9.84l-8.16-30a15.93,15.93,0,0,0-19.42-11.13L35.81,64.74a15.75,15.75,0,0,0-9.7,7.4,15.51,15.51,0,0,0-1.55,12L32,111.56c0,.14,0,.29,0,.44v88a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V112A8,8,0,0,0,216,104ZM192.16,40l6,22.07-22.62,6L147.42,51.83Zm-66.69,17.6,28.12,16.24-36.94,9.75L88.53,67.37Zm-79.4,44.62-6-22.08,26.5-7L94.69,89.4ZM208,200H48V120H208v80Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,108H71.26L209,71.64a4,4,0,0,0,2.84-4.92l-8.16-30a11.92,11.92,0,0,0-14.54-8.31L36.83,68.61a11.78,11.78,0,0,0-7.26,5.53A11.59,11.59,0,0,0,28.41,83l7.67,28.19A3.87,3.87,0,0,0,36,112v88a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V112A4,4,0,0,0,216,108ZM126,53.33l38,21.92L116.08,87.9,78.12,66Zm65.16-17.2a4,4,0,0,1,1-.13A3.88,3.88,0,0,1,196,38.81l7.1,26.12L175,72.35,137,50.43Zm-154.7,42a3.86,3.86,0,0,1,2.37-1.8l28.27-7.46,38,21.91L43.25,107.12,36.13,80.94A3.66,3.66,0,0,1,36.5,78.14ZM212,200a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V116H212Z"}))]]),SH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,68H132L105.33,48a20.12,20.12,0,0,0-12-4H40A20,20,0,0,0,20,64V200a20,20,0,0,0,20,20H216.89A19.13,19.13,0,0,0,236,200.89V88A20,20,0,0,0,216,68Zm-4,128H44V68H92l28.8,21.6A12,12,0,0,0,128,92h84Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,88V200.89a7.11,7.11,0,0,1-7.11,7.11H40a8,8,0,0,1-8-8V64a8,8,0,0,1,8-8H93.33a8,8,0,0,1,4.8,1.6L128,80h88A8,8,0,0,1,224,88Z",opacity:"0.2"}),r.createElement("path",{d:"M216,72H130.67L102.93,51.2a16.12,16.12,0,0,0-9.6-3.2H40A16,16,0,0,0,24,64V200a16,16,0,0,0,16,16H216.89A15.13,15.13,0,0,0,232,200.89V88A16,16,0,0,0,216,72Zm0,128H40V64H93.33L123.2,86.4A8,8,0,0,0,128,88h88Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M232,88V200.89A15.13,15.13,0,0,1,216.89,216H40a16,16,0,0,1-16-16V64A16,16,0,0,1,40,48H93.33a16.12,16.12,0,0,1,9.6,3.2L130.67,72H216A16,16,0,0,1,232,88Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,74H130L101.73,52.8a14,14,0,0,0-8.4-2.8H40A14,14,0,0,0,26,64V200a14,14,0,0,0,14,14H216.89A13.12,13.12,0,0,0,230,200.89V88A14,14,0,0,0,216,74Zm2,126.89a1.11,1.11,0,0,1-1.11,1.11H40a2,2,0,0,1-2-2V64a2,2,0,0,1,2-2H93.33a2,2,0,0,1,1.2.4L124.4,84.8A6,6,0,0,0,128,86h88a2,2,0,0,1,2,2Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,72H130.67L102.93,51.2a16.12,16.12,0,0,0-9.6-3.2H40A16,16,0,0,0,24,64V200a16,16,0,0,0,16,16H216.89A15.13,15.13,0,0,0,232,200.89V88A16,16,0,0,0,216,72Zm0,128H40V64H93.33L123.2,86.4A8,8,0,0,0,128,88h88Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,76H129.33l-28.8-21.6a12.05,12.05,0,0,0-7.2-2.4H40A12,12,0,0,0,28,64V200a12,12,0,0,0,12,12H216.89A11.12,11.12,0,0,0,228,200.89V88A12,12,0,0,0,216,76Zm4,124.89a3.12,3.12,0,0,1-3.11,3.11H40a4,4,0,0,1-4-4V64a4,4,0,0,1,4-4H93.33a4,4,0,0,1,2.4.8L125.6,83.2a4,4,0,0,0,2.4.8h88a4,4,0,0,1,4,4Z"}))]]),jH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M140,88a12,12,0,0,1,12-12h32a12,12,0,0,1,12,12v32a12,12,0,0,1-24,0V100H152A12,12,0,0,1,140,88ZM72,180h32a12,12,0,0,0,0-24H84V136a12,12,0,0,0-24,0v32A12,12,0,0,0,72,180ZM236,56V200a20,20,0,0,1-20,20H40a20,20,0,0,1-20-20V56A20,20,0,0,1,40,36H216A20,20,0,0,1,236,56Zm-24,4H44V196H212Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,56V200a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V56a8,8,0,0,1,8-8H216A8,8,0,0,1,224,56Z",opacity:"0.2"}),r.createElement("path",{d:"M200,80v32a8,8,0,0,1-16,0V88H160a8,8,0,0,1,0-16h32A8,8,0,0,1,200,80ZM96,168H72V144a8,8,0,0,0-16,0v32a8,8,0,0,0,8,8H96a8,8,0,0,0,0-16ZM232,56V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56ZM216,200V56H40V200H216Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM88,192H56a8,8,0,0,1-8-8V152a8,8,0,0,1,16,0v24H88a8,8,0,0,1,0,16Zm120-88a8,8,0,0,1-16,0V80H168a8,8,0,0,1,0-16h32a8,8,0,0,1,8,8Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M198,80v32a6,6,0,0,1-12,0V86H160a6,6,0,0,1,0-12h32A6,6,0,0,1,198,80ZM96,170H70V144a6,6,0,0,0-12,0v32a6,6,0,0,0,6,6H96a6,6,0,0,0,0-12ZM230,56V200a14,14,0,0,1-14,14H40a14,14,0,0,1-14-14V56A14,14,0,0,1,40,42H216A14,14,0,0,1,230,56Zm-12,0a2,2,0,0,0-2-2H40a2,2,0,0,0-2,2V200a2,2,0,0,0,2,2H216a2,2,0,0,0,2-2Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M200,80v32a8,8,0,0,1-16,0V88H160a8,8,0,0,1,0-16h32A8,8,0,0,1,200,80ZM96,168H72V144a8,8,0,0,0-16,0v32a8,8,0,0,0,8,8H96a8,8,0,0,0,0-16ZM232,56V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56ZM216,200V56H40V200H216Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M196,80v32a4,4,0,0,1-8,0V84H160a4,4,0,0,1,0-8h32A4,4,0,0,1,196,80ZM96,172H68V144a4,4,0,0,0-8,0v32a4,4,0,0,0,4,4H96a4,4,0,0,0,0-8ZM228,56V200a12,12,0,0,1-12,12H40a12,12,0,0,1-12-12V56A12,12,0,0,1,40,44H216A12,12,0,0,1,228,56Zm-8,0a4,4,0,0,0-4-4H40a4,4,0,0,0-4,4V200a4,4,0,0,0,4,4H216a4,4,0,0,0,4-4Z"}))]]),kH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,76a52,52,0,1,0,52,52A52.06,52.06,0,0,0,128,76Zm0,80a28,28,0,1,1,28-28A28,28,0,0,1,128,156Zm113.86-49.57A12,12,0,0,0,236,98.34L208.21,82.49l-.11-31.31a12,12,0,0,0-4.25-9.12,116,116,0,0,0-38-21.41,12,12,0,0,0-9.68.89L128,37.27,99.83,21.53a12,12,0,0,0-9.7-.9,116.06,116.06,0,0,0-38,21.47,12,12,0,0,0-4.24,9.1l-.14,31.34L20,98.35a12,12,0,0,0-5.85,8.11,110.7,110.7,0,0,0,0,43.11A12,12,0,0,0,20,157.66l27.82,15.85.11,31.31a12,12,0,0,0,4.25,9.12,116,116,0,0,0,38,21.41,12,12,0,0,0,9.68-.89L128,218.73l28.14,15.74a12,12,0,0,0,9.7.9,116.06,116.06,0,0,0,38-21.47,12,12,0,0,0,4.24-9.1l.14-31.34,27.81-15.81a12,12,0,0,0,5.85-8.11A110.7,110.7,0,0,0,241.86,106.43Zm-22.63,33.18-26.88,15.28a11.94,11.94,0,0,0-4.55,4.59c-.54,1-1.11,1.93-1.7,2.88a12,12,0,0,0-1.83,6.31L184.13,199a91.83,91.83,0,0,1-21.07,11.87l-27.15-15.19a12,12,0,0,0-5.86-1.53h-.29c-1.14,0-2.3,0-3.44,0a12.08,12.08,0,0,0-6.14,1.51L93,210.82A92.27,92.27,0,0,1,71.88,199l-.11-30.24a12,12,0,0,0-1.83-6.32c-.58-.94-1.16-1.91-1.7-2.88A11.92,11.92,0,0,0,63.7,155L36.8,139.63a86.53,86.53,0,0,1,0-23.24l26.88-15.28a12,12,0,0,0,4.55-4.58c.54-1,1.11-1.94,1.7-2.89a12,12,0,0,0,1.83-6.31L71.87,57A91.83,91.83,0,0,1,92.94,45.17l27.15,15.19a11.92,11.92,0,0,0,6.15,1.52c1.14,0,2.3,0,3.44,0a12.08,12.08,0,0,0,6.14-1.51L163,45.18A92.27,92.27,0,0,1,184.12,57l.11,30.24a12,12,0,0,0,1.83,6.32c.58.94,1.16,1.91,1.7,2.88A11.92,11.92,0,0,0,192.3,101l26.9,15.33A86.53,86.53,0,0,1,219.23,139.61Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M230.1,108.76,198.25,90.62c-.64-1.16-1.31-2.29-2-3.41l-.12-36A104.61,104.61,0,0,0,162,32L130,49.89c-1.34,0-2.69,0-4,0L94,32A104.58,104.58,0,0,0,59.89,51.25l-.16,36c-.7,1.12-1.37,2.26-2,3.41l-31.84,18.1a99.15,99.15,0,0,0,0,38.46l31.85,18.14c.64,1.16,1.31,2.29,2,3.41l.12,36A104.61,104.61,0,0,0,94,224l32-17.87c1.34,0,2.69,0,4,0L162,224a104.58,104.58,0,0,0,34.08-19.25l.16-36c.7-1.12,1.37-2.26,2-3.41l31.84-18.1A99.15,99.15,0,0,0,230.1,108.76ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z",opacity:"0.2"}),r.createElement("path",{d:"M128,80a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Zm109.94-52.79a8,8,0,0,0-3.89-5.4l-29.83-17-.12-33.62a8,8,0,0,0-2.83-6.08,111.91,111.91,0,0,0-36.72-20.67,8,8,0,0,0-6.46.59L128,41.85,97.88,25a8,8,0,0,0-6.47-.6A111.92,111.92,0,0,0,54.73,45.15a8,8,0,0,0-2.83,6.07l-.15,33.65-29.83,17a8,8,0,0,0-3.89,5.4,106.47,106.47,0,0,0,0,41.56,8,8,0,0,0,3.89,5.4l29.83,17,.12,33.63a8,8,0,0,0,2.83,6.08,111.91,111.91,0,0,0,36.72,20.67,8,8,0,0,0,6.46-.59L128,214.15,158.12,231a7.91,7.91,0,0,0,3.9,1,8.09,8.09,0,0,0,2.57-.42,112.1,112.1,0,0,0,36.68-20.73,8,8,0,0,0,2.83-6.07l.15-33.65,29.83-17a8,8,0,0,0,3.89-5.4A106.47,106.47,0,0,0,237.94,107.21Zm-15,34.91-28.57,16.25a8,8,0,0,0-3,3c-.58,1-1.19,2.06-1.81,3.06a7.94,7.94,0,0,0-1.22,4.21l-.15,32.25a95.89,95.89,0,0,1-25.37,14.3L134,199.13a8,8,0,0,0-3.91-1h-.19c-1.21,0-2.43,0-3.64,0a8.1,8.1,0,0,0-4.1,1l-28.84,16.1A96,96,0,0,1,67.88,201l-.11-32.2a8,8,0,0,0-1.22-4.22c-.62-1-1.23-2-1.8-3.06a8.09,8.09,0,0,0-3-3.06l-28.6-16.29a90.49,90.49,0,0,1,0-28.26L61.67,97.63a8,8,0,0,0,3-3c.58-1,1.19-2.06,1.81-3.06a7.94,7.94,0,0,0,1.22-4.21l.15-32.25a95.89,95.89,0,0,1,25.37-14.3L122,56.87a8,8,0,0,0,4.1,1c1.21,0,2.43,0,3.64,0a8,8,0,0,0,4.1-1l28.84-16.1A96,96,0,0,1,188.12,55l.11,32.2a8,8,0,0,0,1.22,4.22c.62,1,1.23,2,1.8,3.06a8.09,8.09,0,0,0,3,3.06l28.6,16.29A90.49,90.49,0,0,1,222.9,142.12Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M237.94,107.21a8,8,0,0,0-3.89-5.4l-29.83-17-.12-33.62a8,8,0,0,0-2.83-6.08,111.91,111.91,0,0,0-36.72-20.67,8,8,0,0,0-6.46.59L128,41.85,97.88,25a8,8,0,0,0-6.47-.6A111.92,111.92,0,0,0,54.73,45.15a8,8,0,0,0-2.83,6.07l-.15,33.65-29.83,17a8,8,0,0,0-3.89,5.4,106.47,106.47,0,0,0,0,41.56,8,8,0,0,0,3.89,5.4l29.83,17,.12,33.63a8,8,0,0,0,2.83,6.08,111.91,111.91,0,0,0,36.72,20.67,8,8,0,0,0,6.46-.59L128,214.15,158.12,231a7.91,7.91,0,0,0,3.9,1,8.09,8.09,0,0,0,2.57-.42,112.1,112.1,0,0,0,36.68-20.73,8,8,0,0,0,2.83-6.07l.15-33.65,29.83-17a8,8,0,0,0,3.89-5.4A106.47,106.47,0,0,0,237.94,107.21ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,82a46,46,0,1,0,46,46A46.06,46.06,0,0,0,128,82Zm0,80a34,34,0,1,1,34-34A34,34,0,0,1,128,162Zm108-54.4a6,6,0,0,0-2.92-4L202.64,86.22l-.42-.71L202.1,51.2A6,6,0,0,0,200,46.64a110.12,110.12,0,0,0-36.07-20.31,6,6,0,0,0-4.84.45L128.46,43.86h-1L96.91,26.76a6,6,0,0,0-4.86-.44A109.92,109.92,0,0,0,56,46.68a6,6,0,0,0-2.12,4.55l-.16,34.34c-.14.23-.28.47-.41.71L22.91,103.57A6,6,0,0,0,20,107.62a104.81,104.81,0,0,0,0,40.78,6,6,0,0,0,2.92,4l30.42,17.33.42.71.12,34.31A6,6,0,0,0,56,209.36a110.12,110.12,0,0,0,36.07,20.31,6,6,0,0,0,4.84-.45l30.61-17.08h1l30.56,17.1A6.09,6.09,0,0,0,162,230a5.83,5.83,0,0,0,1.93-.32,109.92,109.92,0,0,0,36-20.36,6,6,0,0,0,2.12-4.55l.16-34.34c.14-.23.28-.47.41-.71l30.42-17.29a6,6,0,0,0,2.92-4.05A104.81,104.81,0,0,0,236,107.6Zm-11.25,35.79L195.32,160.1a6.07,6.07,0,0,0-2.28,2.3c-.59,1-1.21,2.11-1.86,3.14a6,6,0,0,0-.91,3.16l-.16,33.21a98.15,98.15,0,0,1-27.52,15.53L133,200.88a6,6,0,0,0-2.93-.77h-.14c-1.24,0-2.5,0-3.74,0a6,6,0,0,0-3.07.76L93.45,217.43a98,98,0,0,1-27.56-15.49l-.12-33.17a6,6,0,0,0-.91-3.16c-.64-1-1.27-2.08-1.86-3.14a6,6,0,0,0-2.27-2.3L31.3,143.4a93,93,0,0,1,0-30.79L60.68,95.9A6.07,6.07,0,0,0,63,93.6c.59-1,1.21-2.11,1.86-3.14a6,6,0,0,0,.91-3.16l.16-33.21A98.15,98.15,0,0,1,93.41,38.56L123,55.12a5.81,5.81,0,0,0,3.07.76c1.24,0,2.5,0,3.74,0a6,6,0,0,0,3.07-.76l29.65-16.56a98,98,0,0,1,27.56,15.49l.12,33.17a6,6,0,0,0,.91,3.16c.64,1,1.27,2.08,1.86,3.14a6,6,0,0,0,2.27,2.3L224.7,112.6A93,93,0,0,1,224.73,143.39Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,80a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Zm109.94-52.79a8,8,0,0,0-3.89-5.4l-29.83-17-.12-33.62a8,8,0,0,0-2.83-6.08,111.91,111.91,0,0,0-36.72-20.67,8,8,0,0,0-6.46.59L128,41.85,97.88,25a8,8,0,0,0-6.47-.6A112.1,112.1,0,0,0,54.73,45.15a8,8,0,0,0-2.83,6.07l-.15,33.65-29.83,17a8,8,0,0,0-3.89,5.4,106.47,106.47,0,0,0,0,41.56,8,8,0,0,0,3.89,5.4l29.83,17,.12,33.62a8,8,0,0,0,2.83,6.08,111.91,111.91,0,0,0,36.72,20.67,8,8,0,0,0,6.46-.59L128,214.15,158.12,231a7.91,7.91,0,0,0,3.9,1,8.09,8.09,0,0,0,2.57-.42,112.1,112.1,0,0,0,36.68-20.73,8,8,0,0,0,2.83-6.07l.15-33.65,29.83-17a8,8,0,0,0,3.89-5.4A106.47,106.47,0,0,0,237.94,107.21Zm-15,34.91-28.57,16.25a8,8,0,0,0-3,3c-.58,1-1.19,2.06-1.81,3.06a7.94,7.94,0,0,0-1.22,4.21l-.15,32.25a95.89,95.89,0,0,1-25.37,14.3L134,199.13a8,8,0,0,0-3.91-1h-.19c-1.21,0-2.43,0-3.64,0a8.08,8.08,0,0,0-4.1,1l-28.84,16.1A96,96,0,0,1,67.88,201l-.11-32.2a8,8,0,0,0-1.22-4.22c-.62-1-1.23-2-1.8-3.06a8.09,8.09,0,0,0-3-3.06l-28.6-16.29a90.49,90.49,0,0,1,0-28.26L61.67,97.63a8,8,0,0,0,3-3c.58-1,1.19-2.06,1.81-3.06a7.94,7.94,0,0,0,1.22-4.21l.15-32.25a95.89,95.89,0,0,1,25.37-14.3L122,56.87a8,8,0,0,0,4.1,1c1.21,0,2.43,0,3.64,0a8.08,8.08,0,0,0,4.1-1l28.84-16.1A96,96,0,0,1,188.12,55l.11,32.2a8,8,0,0,0,1.22,4.22c.62,1,1.23,2,1.8,3.06a8.09,8.09,0,0,0,3,3.06l28.6,16.29A90.49,90.49,0,0,1,222.9,142.12Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,80a36,36,0,1,1,36-36A36,36,0,0,1,128,164Zm106-56a4,4,0,0,0-2-2.7l-30.89-17.6q-.47-.82-1-1.62L200.1,51.2a3.94,3.94,0,0,0-1.42-3,107.8,107.8,0,0,0-35.41-19.94,4,4,0,0,0-3.23.29L129,45.87h-2l-31-17.36a4,4,0,0,0-3.23-.3,108.05,108.05,0,0,0-35.39,20,4,4,0,0,0-1.41,3l-.16,34.9-1,1.62L23.9,105.3A4,4,0,0,0,22,108a102.76,102.76,0,0,0,0,40,4,4,0,0,0,1.95,2.7l30.89,17.6q.47.83,1,1.62l.12,34.87a3.94,3.94,0,0,0,1.42,3,107.8,107.8,0,0,0,35.41,19.94,4,4,0,0,0,3.23-.29L127,210.13h2l31,17.36a4,4,0,0,0,3.23.3,108.05,108.05,0,0,0,35.39-20,4,4,0,0,0,1.41-3l.16-34.9,1-1.62L232.1,150.7a4,4,0,0,0,2-2.71A102.76,102.76,0,0,0,234,108Zm-7.48,36.67L196.3,161.84a4,4,0,0,0-1.51,1.53c-.61,1.09-1.25,2.17-1.91,3.24a3.92,3.92,0,0,0-.61,2.1l-.16,34.15a99.8,99.8,0,0,1-29.7,16.77l-30.4-17a4.06,4.06,0,0,0-2-.51H130c-1.28,0-2.57,0-3.84,0a4.1,4.1,0,0,0-2.05.51l-30.45,17A100.23,100.23,0,0,1,63.89,202.9l-.12-34.12a3.93,3.93,0,0,0-.61-2.11c-.66-1-1.3-2.14-1.91-3.23a4,4,0,0,0-1.51-1.53L29.49,144.68a94.78,94.78,0,0,1,0-33.34L59.7,94.16a4,4,0,0,0,1.51-1.53c.61-1.09,1.25-2.17,1.91-3.23a4,4,0,0,0,.61-2.11l.16-34.15a99.8,99.8,0,0,1,29.7-16.77l30.4,17a4.1,4.1,0,0,0,2.05.51c1.28,0,2.57,0,3.84,0a4,4,0,0,0,2.05-.51l30.45-17A100.23,100.23,0,0,1,192.11,53.1l.12,34.12a3.93,3.93,0,0,0,.61,2.11c.66,1,1.3,2.14,1.91,3.23a4,4,0,0,0,1.51,1.53l30.25,17.23A94.78,94.78,0,0,1,226.54,144.66Z"}))]]),AH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,68H190.06A33.82,33.82,0,0,0,196,49.69,36.62,36.62,0,0,0,158.31,12,33.44,33.44,0,0,0,134,23.25a54.65,54.65,0,0,0-6,8.3,54.65,54.65,0,0,0-6-8.3A33.44,33.44,0,0,0,97.69,12,36.62,36.62,0,0,0,60,49.69,33.82,33.82,0,0,0,65.94,68H40A20,20,0,0,0,20,88v32a20,20,0,0,0,16,19.6V200a20,20,0,0,0,20,20H200a20,20,0,0,0,20-20V139.6A20,20,0,0,0,236,120V88A20,20,0,0,0,216,68Zm-4,48H140V92h72ZM152,39.17A9.59,9.59,0,0,1,159,36h.35A12.62,12.62,0,0,1,172,49,9.59,9.59,0,0,1,168.83,56c-6.9,6.12-18.25,9.26-27.63,10.76C142.7,57.42,145.84,46.07,152,39.17ZM87.7,39.7A12.8,12.8,0,0,1,96.61,36H97A9.59,9.59,0,0,1,104,39.17c6.12,6.9,9.26,18.24,10.75,27.61C105.45,65.27,94,62.13,87.17,56A9.59,9.59,0,0,1,84,49,12.72,12.72,0,0,1,87.7,39.7ZM44,92h72v24H44Zm16,48h56v56H60Zm80,56V140h56v56Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,128v72a8,8,0,0,1-8,8H56a8,8,0,0,1-8-8V128Z",opacity:"0.2"}),r.createElement("path",{d:"M216,72H180.92c.39-.33.79-.65,1.17-1A29.53,29.53,0,0,0,192,49.57,32.62,32.62,0,0,0,158.44,16,29.53,29.53,0,0,0,137,25.91a54.94,54.94,0,0,0-9,14.48,54.94,54.94,0,0,0-9-14.48A29.53,29.53,0,0,0,97.56,16,32.62,32.62,0,0,0,64,49.57,29.53,29.53,0,0,0,73.91,71c.38.33.78.65,1.17,1H40A16,16,0,0,0,24,88v32a16,16,0,0,0,16,16v64a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V136a16,16,0,0,0,16-16V88A16,16,0,0,0,216,72ZM149,36.51a13.69,13.69,0,0,1,10-4.5h.49A16.62,16.62,0,0,1,176,49.08a13.69,13.69,0,0,1-4.5,10c-9.49,8.4-25.24,11.36-35,12.4C137.7,60.89,141,45.5,149,36.51Zm-64.09.36A16.63,16.63,0,0,1,96.59,32h.49a13.69,13.69,0,0,1,10,4.5c8.39,9.48,11.35,25.2,12.39,34.92-9.72-1-25.44-4-34.92-12.39a13.69,13.69,0,0,1-4.5-10A16.6,16.6,0,0,1,84.87,36.87ZM40,88h80v32H40Zm16,48h64v64H56Zm144,64H136V136h64Zm16-80H136V88h80v32Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,72H180.92c.39-.33.79-.65,1.17-1A29.53,29.53,0,0,0,192,49.57,32.62,32.62,0,0,0,158.44,16,29.53,29.53,0,0,0,137,25.91a54.94,54.94,0,0,0-9,14.48,54.94,54.94,0,0,0-9-14.48A29.53,29.53,0,0,0,97.56,16,32.62,32.62,0,0,0,64,49.57,29.53,29.53,0,0,0,73.91,71c.38.33.78.65,1.17,1H40A16,16,0,0,0,24,88v32a16,16,0,0,0,16,16v64a16,16,0,0,0,16,16h60a4,4,0,0,0,4-4V120H40V88h80v32h16V88h80v32H136v92a4,4,0,0,0,4,4h60a16,16,0,0,0,16-16V136a16,16,0,0,0,16-16V88A16,16,0,0,0,216,72ZM84.51,59a13.69,13.69,0,0,1-4.5-10A16.62,16.62,0,0,1,96.59,32h.49a13.69,13.69,0,0,1,10,4.5c8.39,9.48,11.35,25.2,12.39,34.92C109.71,70.39,94,67.43,84.51,59Zm87,0c-9.49,8.4-25.24,11.36-35,12.4C137.7,60.89,141,45.5,149,36.51a13.69,13.69,0,0,1,10-4.5h.49A16.62,16.62,0,0,1,176,49.08,13.69,13.69,0,0,1,171.49,59Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,74H174.74a46.41,46.41,0,0,0,6-4.48,27.56,27.56,0,0,0,9.22-20A30.63,30.63,0,0,0,158.5,18a27.56,27.56,0,0,0-20,9.22A57.1,57.1,0,0,0,128,45.76a57.1,57.1,0,0,0-10.48-18.53A27.56,27.56,0,0,0,97.5,18,30.63,30.63,0,0,0,66,49.51a27.56,27.56,0,0,0,9.22,20,45.74,45.74,0,0,0,6,4.48H40A14,14,0,0,0,26,88v32a14,14,0,0,0,14,14h2v66a14,14,0,0,0,14,14H200a14,14,0,0,0,14-14V134h2a14,14,0,0,0,14-14V88A14,14,0,0,0,216,74ZM135.77,63c2.25-12.12,6.29-21.75,11.69-27.85A15.68,15.68,0,0,1,158.86,30h.55A18.6,18.6,0,0,1,178,49.14a15.68,15.68,0,0,1-5.18,11.4C162.1,70,143.92,72.83,134.34,73.65,134.59,70.76,135,67.08,135.77,63ZM83.45,35.45A18.69,18.69,0,0,1,96.59,30h.55a15.68,15.68,0,0,1,11.4,5.18C118,45.9,120.83,64.08,121.65,73.66c-2.89-.25-6.57-.68-10.61-1.43C98.92,70,89.29,65.94,83.19,60.53A15.64,15.64,0,0,1,78,49.14,18.65,18.65,0,0,1,83.45,35.45ZM38,120V88a2,2,0,0,1,2-2h82v36H40A2,2,0,0,1,38,120Zm16,80V134h68v68H56A2,2,0,0,1,54,200Zm148,0a2,2,0,0,1-2,2H134V134h68Zm16-80a2,2,0,0,1-2,2H134V86h82a2,2,0,0,1,2,2Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,72H180.92c.39-.33.79-.65,1.17-1A29.53,29.53,0,0,0,192,49.57,32.62,32.62,0,0,0,158.44,16,29.53,29.53,0,0,0,137,25.91a54.94,54.94,0,0,0-9,14.48,54.94,54.94,0,0,0-9-14.48A29.53,29.53,0,0,0,97.56,16,32.62,32.62,0,0,0,64,49.57,29.53,29.53,0,0,0,73.91,71c.38.33.78.65,1.17,1H40A16,16,0,0,0,24,88v32a16,16,0,0,0,16,16v64a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V136a16,16,0,0,0,16-16V88A16,16,0,0,0,216,72ZM149,36.51a13.69,13.69,0,0,1,10-4.5h.49A16.62,16.62,0,0,1,176,49.08a13.69,13.69,0,0,1-4.5,10c-9.49,8.4-25.24,11.36-35,12.4C137.7,60.89,141,45.5,149,36.51Zm-64.09.36A16.63,16.63,0,0,1,96.59,32h.49a13.69,13.69,0,0,1,10,4.5c8.39,9.48,11.35,25.2,12.39,34.92-9.72-1-25.44-4-34.92-12.39a13.69,13.69,0,0,1-4.5-10A16.6,16.6,0,0,1,84.87,36.87ZM40,88h80v32H40Zm16,48h64v64H56Zm144,64H136V136h64Zm16-80H136V88h80v32Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,76H166.81a50.54,50.54,0,0,0,12.63-8A25.53,25.53,0,0,0,188,49.44,28.62,28.62,0,0,0,158.56,20,25.53,25.53,0,0,0,140,28.56c-5.91,6.67-9.63,15.36-12,23.69-2.35-8.33-6.07-17-12-23.69A25.53,25.53,0,0,0,97.44,20,28.62,28.62,0,0,0,68,49.44,25.53,25.53,0,0,0,76.56,68a50.54,50.54,0,0,0,12.63,8H40A12,12,0,0,0,28,88v32a12,12,0,0,0,12,12h4v68a12,12,0,0,0,12,12H200a12,12,0,0,0,12-12V132h4a12,12,0,0,0,12-12V88A12,12,0,0,0,216,76ZM146,33.86A17.59,17.59,0,0,1,158.8,28h.61A20.62,20.62,0,0,1,180,49.2,17.6,17.6,0,0,1,174.14,62c-12.09,10.7-33.07,13.21-42,13.79C132.76,66.93,135.26,46,146,33.86ZM76,49.2A20.62,20.62,0,0,1,96.59,28h.61A17.59,17.59,0,0,1,110,33.86c10.71,12.09,13.21,33.07,13.79,42-8.89-.58-29.87-3.09-42-13.79A17.6,17.6,0,0,1,76,49.2ZM36,120V88a4,4,0,0,1,4-4h84v40H40A4,4,0,0,1,36,120Zm16,80V132h72v72H56A4,4,0,0,1,52,200Zm152,0a4,4,0,0,1-4,4H132V132h72Zm16-80a4,4,0,0,1-4,4H132V84h84a4,4,0,0,1,4,4Z"}))]]),NH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M222.14,105.85l-80-80a20,20,0,0,0-28.28,0l-80,80A19.86,19.86,0,0,0,28,120v96a12,12,0,0,0,12,12h64a12,12,0,0,0,12-12V164h24v52a12,12,0,0,0,12,12h64a12,12,0,0,0,12-12V120A19.86,19.86,0,0,0,222.14,105.85ZM204,204H164V152a12,12,0,0,0-12-12H104a12,12,0,0,0-12,12v52H52V121.65l76-76,76,76Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,120v96H152V152H104v64H40V120a8,8,0,0,1,2.34-5.66l80-80a8,8,0,0,1,11.32,0l80,80A8,8,0,0,1,216,120Z",opacity:"0.2"}),r.createElement("path",{d:"M219.31,108.68l-80-80a16,16,0,0,0-22.62,0l-80,80A15.87,15.87,0,0,0,32,120v96a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V160h32v56a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V120A15.87,15.87,0,0,0,219.31,108.68ZM208,208H160V152a8,8,0,0,0-8-8H104a8,8,0,0,0-8,8v56H48V120l80-80,80,80Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,120v96a8,8,0,0,1-8,8H160a8,8,0,0,1-8-8V164a4,4,0,0,0-4-4H108a4,4,0,0,0-4,4v52a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V120a16,16,0,0,1,4.69-11.31l80-80a16,16,0,0,1,22.62,0l80,80A16,16,0,0,1,224,120Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M217.9,110.1l-80-80a14,14,0,0,0-19.8,0l-80,80A13.92,13.92,0,0,0,34,120v96a6,6,0,0,0,6,6h64a6,6,0,0,0,6-6V158h36v58a6,6,0,0,0,6,6h64a6,6,0,0,0,6-6V120A13.92,13.92,0,0,0,217.9,110.1ZM210,210H158V152a6,6,0,0,0-6-6H104a6,6,0,0,0-6,6v58H46V120a2,2,0,0,1,.58-1.42l80-80a2,2,0,0,1,2.84,0l80,80A2,2,0,0,1,210,120Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M219.31,108.68l-80-80a16,16,0,0,0-22.62,0l-80,80A15.87,15.87,0,0,0,32,120v96a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V160h32v56a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V120A15.87,15.87,0,0,0,219.31,108.68ZM208,208H160V152a8,8,0,0,0-8-8H104a8,8,0,0,0-8,8v56H48V120l80-80,80,80Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216.49,111.51l-80-80a12,12,0,0,0-17,0l-80,80A12,12,0,0,0,36,120v96a4,4,0,0,0,4,4h64a4,4,0,0,0,4-4V156h40v60a4,4,0,0,0,4,4h64a4,4,0,0,0,4-4V120A12,12,0,0,0,216.49,111.51ZM212,212H156V152a4,4,0,0,0-4-4H104a4,4,0,0,0-4,4v60H44V120a4,4,0,0,1,1.17-2.83l80-80a4,4,0,0,1,5.66,0l80,80A4,4,0,0,1,212,120Z"}))]]),MH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M200,20H56A20,20,0,0,0,36,40V216a20,20,0,0,0,20,20H200a20,20,0,0,0,20-20V40A20,20,0,0,0,200,20Zm-4,192H60V44H196ZM84,68A12,12,0,0,1,96,56h64a12,12,0,0,1,0,24H96A12,12,0,0,1,84,68Zm8.8,127.37a48,48,0,0,1,70.4,0,12,12,0,0,0,17.6-16.32,72,72,0,0,0-19.21-14.68,44,44,0,1,0-67.19,0,72.12,72.12,0,0,0-19.2,14.68,12,12,0,0,0,17.6,16.32ZM128,116a20,20,0,1,1-20,20A20,20,0,0,1,128,116Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M200,32H56a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H200a8,8,0,0,0,8-8V40A8,8,0,0,0,200,32ZM128,168a32,32,0,1,1,32-32A32,32,0,0,1,128,168Z",opacity:"0.2"}),r.createElement("path",{d:"M75.19,198.4a8,8,0,0,0,11.21-1.6,52,52,0,0,1,83.2,0,8,8,0,1,0,12.8-9.6A67.88,67.88,0,0,0,155,165.51a40,40,0,1,0-53.94,0A67.88,67.88,0,0,0,73.6,187.2,8,8,0,0,0,75.19,198.4ZM128,112a24,24,0,1,1-24,24A24,24,0,0,1,128,112Zm72-88H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V40A16,16,0,0,0,200,24Zm0,192H56V40H200ZM88,64a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H96A8,8,0,0,1,88,64Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M200,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V40A16,16,0,0,0,200,24ZM96,48h64a8,8,0,0,1,0,16H96a8,8,0,0,1,0-16Zm84.81,150.4a8,8,0,0,1-11.21-1.6,52,52,0,0,0-83.2,0,8,8,0,1,1-12.8-9.6A67.88,67.88,0,0,1,101,165.51a40,40,0,1,1,53.94,0A67.88,67.88,0,0,1,182.4,187.2,8,8,0,0,1,180.81,198.4ZM152,136a24,24,0,1,1-24-24A24,24,0,0,1,152,136Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M151.11,166.13a38,38,0,1,0-46.22,0A65.75,65.75,0,0,0,75.2,188.4a6,6,0,0,0,9.6,7.2,54,54,0,0,1,86.4,0,6,6,0,0,0,9.6-7.2A65.75,65.75,0,0,0,151.11,166.13ZM128,110a26,26,0,1,1-26,26A26,26,0,0,1,128,110Zm72-84H56A14,14,0,0,0,42,40V216a14,14,0,0,0,14,14H200a14,14,0,0,0,14-14V40A14,14,0,0,0,200,26Zm2,190a2,2,0,0,1-2,2H56a2,2,0,0,1-2-2V40a2,2,0,0,1,2-2H200a2,2,0,0,1,2,2ZM90,64a6,6,0,0,1,6-6h64a6,6,0,0,1,0,12H96A6,6,0,0,1,90,64Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M75.19,198.4a8,8,0,0,0,11.21-1.6,52,52,0,0,1,83.2,0,8,8,0,1,0,12.8-9.6A67.88,67.88,0,0,0,155,165.51a40,40,0,1,0-53.94,0A67.88,67.88,0,0,0,73.6,187.2,8,8,0,0,0,75.19,198.4ZM128,112a24,24,0,1,1-24,24A24,24,0,0,1,128,112Zm72-88H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V40A16,16,0,0,0,200,24Zm0,192H56V40H200ZM88,64a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H96A8,8,0,0,1,88,64Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M146.7,166.75a36,36,0,1,0-37.4,0A63.61,63.61,0,0,0,76.8,189.6a4,4,0,0,0,6.4,4.8,56,56,0,0,1,89.6,0,4,4,0,0,0,6.4-4.8A63.65,63.65,0,0,0,146.7,166.75ZM100,136a28,28,0,1,1,28,28A28,28,0,0,1,100,136ZM200,28H56A12,12,0,0,0,44,40V216a12,12,0,0,0,12,12H200a12,12,0,0,0,12-12V40A12,12,0,0,0,200,28Zm4,188a4,4,0,0,1-4,4H56a4,4,0,0,1-4-4V40a4,4,0,0,1,4-4H200a4,4,0,0,1,4,4ZM92,64a4,4,0,0,1,4-4h64a4,4,0,0,1,0,8H96A4,4,0,0,1,92,64Z"}))]]),RH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,28H48A20,20,0,0,0,28,48V208a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V48A20,20,0,0,0,208,28Zm-4,24v63.72L186.14,97.86a20,20,0,0,0-28.28,0L52,203.72V52ZM85.66,204,172,117.66l32,32V204ZM76,96a20,20,0,1,1,20,20A20,20,0,0,1,76,96Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,40H48a8,8,0,0,0-8,8V208a8,8,0,0,0,8,8h8.69L166.34,106.34a8,8,0,0,1,11.32,0L216,144.69V48A8,8,0,0,0,208,40ZM96,112a16,16,0,1,1,16-16A16,16,0,0,1,96,112Z",opacity:"0.2"}),r.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM48,48H208v77.38l-24.69-24.7a16,16,0,0,0-22.62,0L53.37,208H48ZM208,208H76l96-96,36,36v60ZM96,120A24,24,0,1,0,72,96,24,24,0,0,0,96,120Zm0-32a8,8,0,1,1-8,8A8,8,0,0,1,96,88Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM48,48H208v77.38l-24.69-24.7a16,16,0,0,0-22.62,0L53.37,208H48ZM80,96a16,16,0,1,1,16,16A16,16,0,0,1,80,96Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,34H48A14,14,0,0,0,34,48V208a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V48A14,14,0,0,0,208,34ZM46,208V48a2,2,0,0,1,2-2H208a2,2,0,0,1,2,2v82.2l-28.1-28.1a14,14,0,0,0-19.8,0L54.2,210H48A2,2,0,0,1,46,208Zm162,2H71.17l99.41-99.41a2,2,0,0,1,2.83,0L210,147.17V208A2,2,0,0,1,208,210ZM96,118A22,22,0,1,0,74,96,22,22,0,0,0,96,118Zm0-32A10,10,0,1,1,86,96,10,10,0,0,1,96,86Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM48,48H208v77.38l-24.69-24.7a16,16,0,0,0-22.62,0L53.37,208H48ZM208,208H76l96-96,36,36v60ZM96,120A24,24,0,1,0,72,96,24,24,0,0,0,96,120Zm0-32a8,8,0,1,1-8,8A8,8,0,0,1,96,88Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,36H48A12,12,0,0,0,36,48V208a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V48A12,12,0,0,0,208,36ZM44,208V48a4,4,0,0,1,4-4H208a4,4,0,0,1,4,4v87l-31.51-31.52a12,12,0,0,0-17,0L55,212H48A4,4,0,0,1,44,208Zm164,4H66.34L169.17,109.17a4,4,0,0,1,5.66,0L212,146.34V208A4,4,0,0,1,208,212ZM96,116A20,20,0,1,0,76,96,20,20,0,0,0,96,116Zm0-32A12,12,0,1,1,84,96,12,12,0,0,1,96,84Z"}))]]),PH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M108,84a16,16,0,1,1,16,16A16,16,0,0,1,108,84Zm128,44A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Zm-72,36.68V132a20,20,0,0,0-20-20,12,12,0,0,0-4,23.32V168a20,20,0,0,0,20,20,12,12,0,0,0,4-23.32Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),r.createElement("path",{d:"M144,176a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176Zm88-48A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128ZM124,96a12,12,0,1,0-12-12A12,12,0,0,0,124,96Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm-4,48a12,12,0,1,1-12,12A12,12,0,0,1,124,72Zm12,112a16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40a8,8,0,0,1,0,16Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M142,176a6,6,0,0,1-6,6,14,14,0,0,1-14-14V128a2,2,0,0,0-2-2,6,6,0,0,1,0-12,14,14,0,0,1,14,14v40a2,2,0,0,0,2,2A6,6,0,0,1,142,176ZM124,94a10,10,0,1,0-10-10A10,10,0,0,0,124,94Zm106,34A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm16-40a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176ZM112,84a12,12,0,1,1,12,12A12,12,0,0,1,112,84Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M140,176a4,4,0,0,1-4,4,12,12,0,0,1-12-12V128a4,4,0,0,0-4-4,4,4,0,0,1,0-8,12,12,0,0,1,12,12v40a4,4,0,0,0,4,4A4,4,0,0,1,140,176ZM124,92a8,8,0,1,0-8-8A8,8,0,0,0,124,92Zm104,36A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"}))]]),LH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M196,76a16,16,0,1,1-16-16A16,16,0,0,1,196,76Zm48,22.74A84.3,84.3,0,0,1,160.11,180H160a83.52,83.52,0,0,1-23.65-3.38l-7.86,7.87A12,12,0,0,1,120,188H108v12a12,12,0,0,1-12,12H84v12a12,12,0,0,1-12,12H40a20,20,0,0,1-20-20V187.31a19.86,19.86,0,0,1,5.86-14.14l53.52-53.52A84,84,0,1,1,244,98.74ZM202.43,53.57A59.48,59.48,0,0,0,158,36c-32,1-58,27.89-58,59.89a59.69,59.69,0,0,0,4.2,22.19,12,12,0,0,1-2.55,13.21L44,189v23H60V200a12,12,0,0,1,12-12H84V176a12,12,0,0,1,12-12h19l9.65-9.65a12,12,0,0,1,13.22-2.55A59.58,59.58,0,0,0,160,156h.08c32,0,58.87-26.07,59.89-58A59.55,59.55,0,0,0,202.43,53.57Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M232,98.36C230.73,136.92,198.67,168,160.09,168a71.68,71.68,0,0,1-26.92-5.17h0L120,176H96v24H72v24H40a8,8,0,0,1-8-8V187.31a8,8,0,0,1,2.34-5.65l58.83-58.83h0A71.68,71.68,0,0,1,88,95.91c0-38.58,31.08-70.64,69.64-71.87A72,72,0,0,1,232,98.36Z",opacity:"0.2"}),r.createElement("path",{d:"M216.57,39.43A80,80,0,0,0,83.91,120.78L28.69,176A15.86,15.86,0,0,0,24,187.31V216a16,16,0,0,0,16,16H72a8,8,0,0,0,8-8V208H96a8,8,0,0,0,8-8V184h16a8,8,0,0,0,5.66-2.34l9.56-9.57A79.73,79.73,0,0,0,160,176h.1A80,80,0,0,0,216.57,39.43ZM224,98.1c-1.09,34.09-29.75,61.86-63.89,61.9H160a63.7,63.7,0,0,1-23.65-4.51,8,8,0,0,0-8.84,1.68L116.69,168H96a8,8,0,0,0-8,8v16H72a8,8,0,0,0-8,8v16H40V187.31l58.83-58.82a8,8,0,0,0,1.68-8.84A63.72,63.72,0,0,1,96,95.92c0-34.14,27.81-62.8,61.9-63.89A64,64,0,0,1,224,98.1ZM192,76a12,12,0,1,1-12-12A12,12,0,0,1,192,76Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216.57,39.43A80,80,0,0,0,83.91,120.78L28.69,176A15.86,15.86,0,0,0,24,187.31V216a16,16,0,0,0,16,16H72a8,8,0,0,0,8-8V208H96a8,8,0,0,0,8-8V184h16a8,8,0,0,0,5.66-2.34l9.56-9.57A79.73,79.73,0,0,0,160,176h.1A80,80,0,0,0,216.57,39.43ZM180,92a16,16,0,1,1,16-16A16,16,0,0,1,180,92Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M215.15,40.85A78,78,0,0,0,86.2,121.31l-56.1,56.1a13.94,13.94,0,0,0-4.1,9.9V216a14,14,0,0,0,14,14H72a6,6,0,0,0,6-6V206H96a6,6,0,0,0,6-6V182h18a6,6,0,0,0,4.24-1.76l10.45-10.44A77.59,77.59,0,0,0,160,174h.1A78,78,0,0,0,215.15,40.85ZM226,98.16c-1.12,35.16-30.67,63.8-65.88,63.84a65.93,65.93,0,0,1-24.51-4.67,6,6,0,0,0-6.64,1.26L117.51,170H96a6,6,0,0,0-6,6v18H72a6,6,0,0,0-6,6v18H40a2,2,0,0,1-2-2V187.31a2,2,0,0,1,.58-1.41l58.83-58.83a6,6,0,0,0,1.26-6.64A65.61,65.61,0,0,1,94,95.92C94,60.71,122.68,31.16,157.83,30A66,66,0,0,1,226,98.16ZM190,76a10,10,0,1,1-10-10A10,10,0,0,1,190,76Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216.57,39.43A80,80,0,0,0,83.91,120.78L28.69,176A15.86,15.86,0,0,0,24,187.31V216a16,16,0,0,0,16,16H72a8,8,0,0,0,8-8V208H96a8,8,0,0,0,8-8V184h16a8,8,0,0,0,5.66-2.34l9.56-9.57A79.73,79.73,0,0,0,160,176h.1A80,80,0,0,0,216.57,39.43ZM224,98.1c-1.09,34.09-29.75,61.86-63.89,61.9H160a63.7,63.7,0,0,1-23.65-4.51,8,8,0,0,0-8.84,1.68L116.69,168H96a8,8,0,0,0-8,8v16H72a8,8,0,0,0-8,8v16H40V187.31l58.83-58.82a8,8,0,0,0,1.68-8.84A63.72,63.72,0,0,1,96,95.92c0-34.14,27.81-62.8,61.9-63.89A64,64,0,0,1,224,98.1ZM192,76a12,12,0,1,1-12-12A12,12,0,0,1,192,76Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M213.74,42.26A76,76,0,0,0,88.51,121.84l-57,57A11.93,11.93,0,0,0,28,187.31V216a12,12,0,0,0,12,12H72a4,4,0,0,0,4-4V204H96a4,4,0,0,0,4-4V180h20a4,4,0,0,0,2.83-1.17l11.33-11.34A75.72,75.72,0,0,0,160,172h.1A76,76,0,0,0,213.74,42.26Zm14.22,56c-1.15,36.22-31.6,65.72-67.87,65.77H160a67.52,67.52,0,0,1-25.21-4.83,4,4,0,0,0-4.45.83l-12,12H96a4,4,0,0,0-4,4v20H72a4,4,0,0,0-4,4v20H40a4,4,0,0,1-4-4V187.31a4.06,4.06,0,0,1,1.17-2.83L96,125.66a4,4,0,0,0,.83-4.45A67.51,67.51,0,0,1,92,95.91C92,59.64,121.55,29.19,157.77,28A68,68,0,0,1,228,98.23ZM188,76a8,8,0,1,1-8-8A8,8,0,0,1,188,76Z"}))]]),TH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M219.71,117.38a12,12,0,0,0-7.25-8.52L161.28,88.39l10.59-70.61a12,12,0,0,0-20.64-10l-112,120a12,12,0,0,0,4.31,19.33l51.18,20.47L84.13,238.22a12,12,0,0,0,20.64,10l112-120A12,12,0,0,0,219.71,117.38ZM113.6,203.55l6.27-41.77a12,12,0,0,0-7.41-12.92L68.74,131.37,142.4,52.45l-6.27,41.77a12,12,0,0,0,7.41,12.92l43.72,17.49Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M96,240l16-80L48,136,160,16,144,96l64,24Z",opacity:"0.2"}),r.createElement("path",{d:"M215.79,118.17a8,8,0,0,0-5-5.66L153.18,90.9l14.66-73.33a8,8,0,0,0-13.69-7l-112,120a8,8,0,0,0,3,13l57.63,21.61L88.16,238.43a8,8,0,0,0,13.69,7l112-120A8,8,0,0,0,215.79,118.17ZM109.37,214l10.47-52.38a8,8,0,0,0-5-9.06L62,132.71l84.62-90.66L136.16,94.43a8,8,0,0,0,5,9.06l52.8,19.8Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M213.85,125.46l-112,120a8,8,0,0,1-13.69-7l14.66-73.33L45.19,143.49a8,8,0,0,1-3-13l112-120a8,8,0,0,1,13.69,7L153.18,90.9l57.63,21.61a8,8,0,0,1,3,12.95Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M213.84,118.63a6,6,0,0,0-3.73-4.25L150.88,92.17l15-75a6,6,0,0,0-10.27-5.27l-112,120a6,6,0,0,0,2.28,9.71l59.23,22.21-15,75a6,6,0,0,0,3.14,6.52A6.07,6.07,0,0,0,96,246a6,6,0,0,0,4.39-1.91l112-120A6,6,0,0,0,213.84,118.63ZM106,220.46l11.85-59.28a6,6,0,0,0-3.77-6.8l-55.6-20.85,91.46-98L138.12,94.82a6,6,0,0,0,3.77,6.8l55.6,20.85Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M215.79,118.17a8,8,0,0,0-5-5.66L153.18,90.9l14.66-73.33a8,8,0,0,0-13.69-7l-112,120a8,8,0,0,0,3,13l57.63,21.61L88.16,238.43a8,8,0,0,0,13.69,7l112-120A8,8,0,0,0,215.79,118.17ZM109.37,214l10.47-52.38a8,8,0,0,0-5-9.06L62,132.71l84.62-90.66L136.16,94.43a8,8,0,0,0,5,9.06l52.8,19.8Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M211.89,119.09a4,4,0,0,0-2.49-2.84l-60.81-22.8,15.33-76.67a4,4,0,0,0-6.84-3.51l-112,120a4,4,0,0,0-1,3.64,4,4,0,0,0,2.49,2.84l60.81,22.8L92.08,239.22a4,4,0,0,0,6.84,3.51l112-120A4,4,0,0,0,211.89,119.09ZM102.68,227l13.24-66.2a4,4,0,0,0-2.52-4.53L55,134.36,153.32,29l-13.24,66.2a4,4,0,0,0,2.52,4.53L201,121.64Z"}))]]),HH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M232.49,215.51,185,168a92.12,92.12,0,1,0-17,17l47.53,47.54a12,12,0,0,0,17-17ZM44,112a68,68,0,1,1,68,68A68.07,68.07,0,0,1,44,112Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M192,112a80,80,0,1,1-80-80A80,80,0,0,1,192,112Z",opacity:"0.2"}),r.createElement("path",{d:"M229.66,218.34,179.6,168.28a88.21,88.21,0,1,0-11.32,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M168,112a56,56,0,1,1-56-56A56,56,0,0,1,168,112Zm61.66,117.66a8,8,0,0,1-11.32,0l-50.06-50.07a88,88,0,1,1,11.32-11.31l50.06,50.06A8,8,0,0,1,229.66,229.66ZM112,184a72,72,0,1,0-72-72A72.08,72.08,0,0,0,112,184Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M228.24,219.76l-51.38-51.38a86.15,86.15,0,1,0-8.48,8.48l51.38,51.38a6,6,0,0,0,8.48-8.48ZM38,112a74,74,0,1,1,74,74A74.09,74.09,0,0,1,38,112Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M229.66,218.34l-50.07-50.06a88.11,88.11,0,1,0-11.31,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M226.83,221.17l-52.7-52.7a84.1,84.1,0,1,0-5.66,5.66l52.7,52.7a4,4,0,0,0,5.66-5.66ZM36,112a76,76,0,1,1,76,76A76.08,76.08,0,0,1,36,112Z"}))]]),$H=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M160,80a32,32,0,1,0-32-32A32,32,0,0,0,160,80Zm0-40a8,8,0,1,1-8,8A8,8,0,0,1,160,40Zm94.32,153.88L199.76,101.8A19.85,19.85,0,0,0,182.55,92h0a19.83,19.83,0,0,0-17.2,9.8l-18.7,31.55-37.42-63.5a20,20,0,0,0-34.46,0L1.66,193.91A12,12,0,0,0,12,212H244a12,12,0,0,0,10.32-18.12ZM92,87.87,108.57,116H75.43ZM33,188l28.28-48h61.44L151,188Zm145.86,0L160.56,157l22-37.1L222.94,188Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M144,52a20,20,0,1,1,20,20A20,20,0,0,1,144,52Zm49.44,55.92a8,8,0,0,0-13.77,0l-33,55.75-21-35.67H50.35L8,200H248Z",opacity:"0.2"}),r.createElement("path",{d:"M164,80a28,28,0,1,0-28-28A28,28,0,0,0,164,80Zm0-40a12,12,0,1,1-12,12A12,12,0,0,1,164,40Zm90.88,155.92-54.56-92.08A15.87,15.87,0,0,0,186.55,96h0a15.85,15.85,0,0,0-13.76,7.84L146.63,148l-44.84-76.1a16,16,0,0,0-27.58,0L1.11,195.94A8,8,0,0,0,8,208H248a8,8,0,0,0,6.88-12.08ZM88,80l23.57,40H64.43ZM22,192l33-56h66l33,56Zm150.57,0-16.66-28.28L186.55,112,234,192Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M254.88,195.92l-54.56-92.08A15.87,15.87,0,0,0,186.55,96h0a15.85,15.85,0,0,0-13.76,7.84l-15.64,26.39a4,4,0,0,0,0,4.07l26.8,45.47a8.13,8.13,0,0,1-1.89,10.55,8,8,0,0,1-11.8-2.26L101.79,71.88a16,16,0,0,0-27.58,0L1.11,195.94a8,8,0,0,0,1,9.52A8.23,8.23,0,0,0,8.23,208H247.77a8.29,8.29,0,0,0,6.09-2.55A8,8,0,0,0,254.88,195.92ZM64.43,120,88,80l23.57,40ZM140,52a24,24,0,1,1,24,24A24,24,0,0,1,140,52Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M164,78a26,26,0,1,0-26-26A26,26,0,0,0,164,78Zm0-40a14,14,0,1,1-14,14A14,14,0,0,1,164,38Zm89.16,158.94L198.6,104.86a13.9,13.9,0,0,0-12-6.86h0a13.88,13.88,0,0,0-12,6.86l-27.88,47.05-46.56-79a14,14,0,0,0-24.13,0L2.83,197A6,6,0,0,0,8,206H248a6,6,0,0,0,5.16-9.06ZM86.27,79a2,2,0,0,1,3.46,0l25.34,43H60.93ZM18.5,194l35.36-60h68.29l19.3,32.77,0,0,16,27.2Zm152.93,0-17.85-30.29L184.83,111a2,2,0,0,1,1.72-1,1.93,1.93,0,0,1,1.72,1l49.2,83Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M164,80a28,28,0,1,0-28-28A28,28,0,0,0,164,80Zm0-40a12,12,0,1,1-12,12A12,12,0,0,1,164,40Zm90.88,155.92-54.56-92.08A15.87,15.87,0,0,0,186.55,96h0a15.85,15.85,0,0,0-13.76,7.84L146.63,148l-44.84-76.1a16,16,0,0,0-27.58,0L1.11,195.94A8,8,0,0,0,8,208H248a8,8,0,0,0,6.88-12.08ZM88,80l23.57,40H64.43ZM22,192l33-56h66l18.74,31.8,0,0L154,192Zm150.57,0-16.66-28.28L186.55,112,234,192Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M164,76a24,24,0,1,0-24-24A24,24,0,0,0,164,76Zm0-40a16,16,0,1,1-16,16A16,16,0,0,1,164,36Zm87.44,162-54.56-92.08A11.91,11.91,0,0,0,186.55,100h0a11.89,11.89,0,0,0-10.32,5.88l-29.61,50L98.34,73.91a12,12,0,0,0-20.68,0L4.55,198A4,4,0,0,0,8,204H248a4,4,0,0,0,3.44-6ZM84.55,78a4,4,0,0,1,6.9,0l27.12,46H57.43ZM15,196l37.71-64h70.58L161,196Zm155.29,0-19-32.29L183.11,110a4,4,0,0,1,6.88,0l51,86Z"}))]]),DH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M225.6,62.64l-88-48.17a19.91,19.91,0,0,0-19.2,0l-88,48.17A20,20,0,0,0,20,80.19v95.62a20,20,0,0,0,10.4,17.55l88,48.17a19.89,19.89,0,0,0,19.2,0l88-48.17A20,20,0,0,0,236,175.81V80.19A20,20,0,0,0,225.6,62.64ZM128,36.57,200,76,178.57,87.73l-72-39.42Zm0,78.83L56,76,81.56,62l72,39.41ZM44,96.79l72,39.4v76.67L44,173.44Zm96,116.07V136.19l24-13.13V152a12,12,0,0,0,24,0V109.92l24-13.13v76.65Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,129.09V232a8,8,0,0,1-3.84-1l-88-48.18a8,8,0,0,1-4.16-7V80.18a8,8,0,0,1,.7-3.25Z",opacity:"0.2"}),r.createElement("path",{d:"M223.68,66.15,135.68,18a15.88,15.88,0,0,0-15.36,0l-88,48.17a16,16,0,0,0-8.32,14v95.64a16,16,0,0,0,8.32,14l88,48.17a15.88,15.88,0,0,0,15.36,0l88-48.17a16,16,0,0,0,8.32-14V80.18A16,16,0,0,0,223.68,66.15ZM128,32l80.34,44-29.77,16.3-80.35-44ZM128,120,47.66,76l33.9-18.56,80.34,44ZM40,90l80,43.78v85.79L40,175.82Zm176,85.78h0l-80,43.79V133.82l32-17.51V152a8,8,0,0,0,16,0V107.55L216,90v85.77Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M223.68,66.15,135.68,18a15.88,15.88,0,0,0-15.36,0l-88,48.17a16,16,0,0,0-8.32,14v95.64a16,16,0,0,0,8.32,14l88,48.17a15.88,15.88,0,0,0,15.36,0l88-48.17a16,16,0,0,0,8.32-14V80.18A16,16,0,0,0,223.68,66.15ZM128,32l80.35,44L178.57,92.29l-80.35-44Zm0,88L47.65,76,81.56,57.43l80.35,44Zm88,55.85h0l-80,43.79V133.83l32-17.51V152a8,8,0,0,0,16,0V107.56l32-17.51v85.76Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M222.72,67.91l-88-48.18a13.9,13.9,0,0,0-13.44,0l-88,48.18A14,14,0,0,0,26,80.18v95.64a14,14,0,0,0,7.28,12.27l88,48.18a13.92,13.92,0,0,0,13.44,0l88-48.18A14,14,0,0,0,230,175.82V80.18A14,14,0,0,0,222.72,67.91ZM127,30.25a2,2,0,0,1,1.92,0L212.51,76,178.57,94.57,94.05,48.31ZM122,223,39,177.57a2,2,0,0,1-1-1.75V86.66l84,46ZM43.49,76,81.56,55.15l84.51,46.26L128,122.24ZM218,175.82a2,2,0,0,1-1,1.75h0L134,223V132.64l36-19.71V152a6,6,0,0,0,12,0V106.37l36-19.71Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M223.68,66.15,135.68,18a15.88,15.88,0,0,0-15.36,0l-88,48.17a16,16,0,0,0-8.32,14v95.64a16,16,0,0,0,8.32,14l88,48.17a15.88,15.88,0,0,0,15.36,0l88-48.17a16,16,0,0,0,8.32-14V80.18A16,16,0,0,0,223.68,66.15ZM128,32l80.34,44-29.77,16.3-80.35-44ZM128,120,47.66,76l33.9-18.56,80.34,44ZM40,90l80,43.78v85.79L40,175.82Zm176,85.78h0l-80,43.79V133.82l32-17.51V152a8,8,0,0,0,16,0V107.55L216,90v85.77Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M221.76,69.66l-88-48.18a12,12,0,0,0-11.52,0l-88,48.18A12,12,0,0,0,28,80.18v95.64a12,12,0,0,0,6.24,10.52l88,48.18a11.95,11.95,0,0,0,11.52,0l88-48.18A12,12,0,0,0,228,175.82V80.18A12,12,0,0,0,221.76,69.66ZM126.08,28.5a3.94,3.94,0,0,1,3.84,0L216.67,76,178.5,96.89a4,4,0,0,0-.58-.4l-88-48.18Zm1.92,96L39.33,76,81.56,52.87l88.67,48.54Zm-89.92,54.8a4,4,0,0,1-2.08-3.5V83.29l88,48.16v94.91Zm179.84,0h0l-85.92,47V131.45l40-21.89V152a4,4,0,0,0,8,0V105.18l40-21.89v92.53A4,4,0,0,1,217.92,179.32Z"}))]]),FH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,20H72A44.05,44.05,0,0,0,28,64v72a28,28,0,0,0,28,28H95.64L92,207c0,.33,0,.67,0,1a36,36,0,0,0,72,0c0-.33,0-.67,0-1l-3.6-43H200a28,28,0,0,0,28-28V32A12,12,0,0,0,216,20ZM72,44h88V68a12,12,0,0,0,24,0V44h20V96H52V64A20,20,0,0,1,72,44Zm128,96H156a20,20,0,0,0-19.85,22.4l3.84,46a12,12,0,0,1-24,0l3.84-46A20,20,0,0,0,100,140H56a4,4,0,0,1-4-4V120H204v16A4,4,0,0,1,200,140Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,112v24a16,16,0,0,1-16,16H152a8,8,0,0,0-7.92,9.13L152,208a24,24,0,0,1-48,0l7.92-46.87A8,8,0,0,0,104,152H56a16,16,0,0,1-16-16V112Z",opacity:"0.2"}),r.createElement("path",{d:"M216,24H72A40,40,0,0,0,32,64v72a24,24,0,0,0,24,24h48l-7.89,46.67A8.42,8.42,0,0,0,96,208a32,32,0,0,0,64,0,8.42,8.42,0,0,0-.11-1.33L152,160h48a24,24,0,0,0,24-24V32A8,8,0,0,0,216,24ZM72,40H176V80a8,8,0,0,0,16,0V40h16v64H48V64A24,24,0,0,1,72,40ZM200,144H152a16,16,0,0,0-15.84,18.26l0,.2L144,208.6a16,16,0,0,1-32,0l7.8-46.14,0-.2A16,16,0,0,0,104,144H56a8,8,0,0,1-8-8V120H208v16A8,8,0,0,1,200,144Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,24H72A40,40,0,0,0,32,64v72a24,24,0,0,0,24,24h48l-7.89,46.67A8.42,8.42,0,0,0,96,208a32,32,0,0,0,64,0,8.42,8.42,0,0,0-.11-1.33L152,160h48a24,24,0,0,0,24-24V32A8,8,0,0,0,216,24ZM72,40H176V80a8,8,0,0,0,16,0V40h16v72H48V64A24,24,0,0,1,72,40Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,26H72A38,38,0,0,0,34,64v72a22,22,0,0,0,22,22h48a2,2,0,0,1,2,2.23L98.08,207a6.74,6.74,0,0,0-.08,1,30,30,0,0,0,60,0,6.74,6.74,0,0,0-.08-1L150,160.23a2,2,0,0,1,2-2.23h48a22,22,0,0,0,22-22V32A6,6,0,0,0,216,26ZM72,38H178V80a6,6,0,0,0,12,0V38h20v68H46V64A26,26,0,0,1,72,38ZM200,146H152a14,14,0,0,0-13.86,16l0,.15L146,208.47a18,18,0,0,1-36,0l7.82-46.34,0-.15A14,14,0,0,0,104,146H56a10,10,0,0,1-10-10V118H210v18A10,10,0,0,1,200,146Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,24H72A40,40,0,0,0,32,64v72a24,24,0,0,0,24,24h48l-7.89,46.67A8.42,8.42,0,0,0,96,208a32,32,0,0,0,64,0,8.42,8.42,0,0,0-.11-1.33L152,160h48a24,24,0,0,0,24-24V32A8,8,0,0,0,216,24ZM72,40H176V80a8,8,0,0,0,16,0V40h16v64H48V64A24,24,0,0,1,72,40ZM200,144H152a16,16,0,0,0-15.84,18.26l0,.2L144,208.6a16,16,0,0,1-32,0l7.8-46.14,0-.2A16,16,0,0,0,104,144H56a8,8,0,0,1-8-8V120H208v16A8,8,0,0,1,200,144Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,28H72A36,36,0,0,0,36,64v72a20,20,0,0,0,20,20h48a4,4,0,0,1,4,4.52l-7.9,46.81a3.79,3.79,0,0,0-.06.67,28,28,0,0,0,56,0,3.79,3.79,0,0,0-.06-.67L148,160.52a4,4,0,0,1,4-4.52h48a20,20,0,0,0,20-20V32A4,4,0,0,0,216,28ZM72,36H180V80a4,4,0,0,0,8,0V36h24v72H44V64A28,28,0,0,1,72,36ZM200,148H152a12,12,0,0,0-11.88,13.7s0,.06,0,.1L148,208.32a20,20,0,0,1-40,0l7.86-46.52s0-.07,0-.1A12,12,0,0,0,104,148H56a12,12,0,0,1-12-12V116H212v20A12,12,0,0,1,200,148Z"}))]]),IH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M203.57,51A107.9,107.9,0,0,0,20,128c0,44.72,27.6,82.25,72,97.94A36,36,0,0,0,140,192a12,12,0,0,1,12-12h46.21a35.79,35.79,0,0,0,35.1-28A108.6,108.6,0,0,0,236,127.09,107.23,107.23,0,0,0,203.57,51Zm6.34,95.67a11.91,11.91,0,0,1-11.7,9.3H152a36,36,0,0,0-36,36,12,12,0,0,1-16,11.3c-16.65-5.88-30.65-15.76-40.48-28.56A76,76,0,0,1,44,128a84,84,0,0,1,83.13-84H128a84.35,84.35,0,0,1,84,83.29A84.72,84.72,0,0,1,209.91,146.71ZM144,76a16,16,0,1,1-16-16A16,16,0,0,1,144,76Zm-44,24A16,16,0,1,1,84,84,16,16,0,0,1,100,100Zm0,56a16,16,0,1,1-16-16A16,16,0,0,1,100,156Zm88-56a16,16,0,1,1-16-16A16,16,0,0,1,188,100Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,127.17a96.48,96.48,0,0,1-2.39,22.18A24,24,0,0,1,198.21,168H152a24,24,0,0,0-24,24,24,24,0,0,1-32,22.61C58.73,201.44,32,169.81,32,128a96,96,0,0,1,95-96C179.84,31.47,223.55,74.35,224,127.17Z",opacity:"0.2"}),r.createElement("path",{d:"M200.77,53.89A103.27,103.27,0,0,0,128,24h-1.07A104,104,0,0,0,24,128c0,43,26.58,79.06,69.36,94.17A32,32,0,0,0,136,192a16,16,0,0,1,16-16h46.21a31.81,31.81,0,0,0,31.2-24.88,104.43,104.43,0,0,0,2.59-24A103.28,103.28,0,0,0,200.77,53.89Zm13,93.71A15.89,15.89,0,0,1,198.21,160H152a32,32,0,0,0-32,32,16,16,0,0,1-21.31,15.07C62.49,194.3,40,164,40,128a88,88,0,0,1,87.09-88h.9a88.35,88.35,0,0,1,88,87.25A88.86,88.86,0,0,1,213.81,147.6ZM140,76a12,12,0,1,1-12-12A12,12,0,0,1,140,76ZM96,100A12,12,0,1,1,84,88,12,12,0,0,1,96,100Zm0,56a12,12,0,1,1-12-12A12,12,0,0,1,96,156Zm88-56a12,12,0,1,1-12-12A12,12,0,0,1,184,100Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M200.77,53.89A103.27,103.27,0,0,0,128,24h-1.07A104,104,0,0,0,24,128c0,43,26.58,79.06,69.36,94.17A32,32,0,0,0,136,192a16,16,0,0,1,16-16h46.21a31.81,31.81,0,0,0,31.2-24.88,104.43,104.43,0,0,0,2.59-24A103.28,103.28,0,0,0,200.77,53.89ZM84,168a12,12,0,1,1,12-12A12,12,0,0,1,84,168Zm0-56a12,12,0,1,1,12-12A12,12,0,0,1,84,112Zm44-24a12,12,0,1,1,12-12A12,12,0,0,1,128,88Zm44,24a12,12,0,1,1,12-12A12,12,0,0,1,172,112Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M199.37,55.31A101.32,101.32,0,0,0,128,26h-1A102,102,0,0,0,26,128c0,42.09,26.07,77.44,68,92.26A30.21,30.21,0,0,0,104.11,222,30.06,30.06,0,0,0,134,192a18,18,0,0,1,18-18h46.21a29.82,29.82,0,0,0,29.25-23.31A102.71,102.71,0,0,0,230,127.11,101.25,101.25,0,0,0,199.37,55.31ZM215.76,148a17.89,17.89,0,0,1-17.55,14H152a30,30,0,0,0-30,30,18,18,0,0,1-24,17C61,195.86,38,164.85,38,128a90,90,0,0,1,89.07-90H128a90.34,90.34,0,0,1,90,89.22A90.46,90.46,0,0,1,215.76,148ZM138,76a10,10,0,1,1-10-10A10,10,0,0,1,138,76ZM94,100A10,10,0,1,1,84,90,10,10,0,0,1,94,100Zm0,56a10,10,0,1,1-10-10A10,10,0,0,1,94,156Zm88-56a10,10,0,1,1-10-10A10,10,0,0,1,182,100Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M200.77,53.89A103.27,103.27,0,0,0,128,24h-1.07A104,104,0,0,0,24,128c0,43,26.58,79.06,69.36,94.17A32,32,0,0,0,136,192a16,16,0,0,1,16-16h46.21a31.81,31.81,0,0,0,31.2-24.88,104.43,104.43,0,0,0,2.59-24A103.28,103.28,0,0,0,200.77,53.89Zm13,93.71A15.89,15.89,0,0,1,198.21,160H152a32,32,0,0,0-32,32,16,16,0,0,1-21.31,15.07C62.49,194.3,40,164,40,128a88,88,0,0,1,87.09-88h.9a88.35,88.35,0,0,1,88,87.25A88.86,88.86,0,0,1,213.81,147.6ZM140,76a12,12,0,1,1-12-12A12,12,0,0,1,140,76ZM96,100A12,12,0,1,1,84,88,12,12,0,0,1,96,100Zm0,56a12,12,0,1,1-12-12A12,12,0,0,1,96,156Zm88-56a12,12,0,1,1-12-12A12,12,0,0,1,184,100Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M198,56.74A99.31,99.31,0,0,0,128,28h-1A100,100,0,0,0,28,128c0,41.22,25.55,75.85,66.69,90.38a28.34,28.34,0,0,0,9.42,1.63A28,28,0,0,0,132,192a20,20,0,0,1,20-20h46.21a27.84,27.84,0,0,0,27.3-21.76,100.37,100.37,0,0,0,2.49-23.1A99.26,99.26,0,0,0,198,56.74Zm19.74,91.72A19.89,19.89,0,0,1,198.21,164H152a28,28,0,0,0-28,28,20,20,0,0,1-26.64,18.83C59.51,197.46,36,165.72,36,128a92,92,0,0,1,91.05-92H128a92,92,0,0,1,89.72,112.46ZM136,76a8,8,0,1,1-8-8A8,8,0,0,1,136,76ZM92,100a8,8,0,1,1-8-8A8,8,0,0,1,92,100Zm0,56a8,8,0,1,1-8-8A8,8,0,0,1,92,156Zm88-56a8,8,0,1,1-8-8A8,8,0,0,1,180,100Z"}))]]),OH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M230.15,70.54,185.46,25.86a20,20,0,0,0-28.28,0L33.86,149.17A19.86,19.86,0,0,0,28,163.31V208a20,20,0,0,0,20,20H216a12,12,0,0,0,0-24H125L230.15,98.83A20,20,0,0,0,230.15,70.54ZM136,81l11,11L76,163,65,152ZM52,204V173l15.52,15.51h0L83,204Zm52-13L93,180l71-71,11,11Zm88-88L153,64l18.34-18.34,39,39Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M221.66,90.34,192,120,136,64l29.66-29.66a8,8,0,0,1,11.31,0L221.66,79A8,8,0,0,1,221.66,90.34Z",opacity:"0.2"}),r.createElement("path",{d:"M227.32,73.37,182.63,28.69a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H216a8,8,0,0,0,0-16H115.32l112-112A16,16,0,0,0,227.32,73.37ZM79.32,188,164,103.31,180.69,120,96,204.69ZM68,176.69,51.31,160,136,75.31,152.69,92Zm-20,2.62L76.69,208H48Zm144-70.62L147.32,64l24-24L216,84.69Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M227.32,73.37,182.63,28.69a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H216a8,8,0,0,0,0-16H115.32l112-112A16,16,0,0,0,227.32,73.37ZM79.32,188l90.34-90.34,16.69,16.68L96,204.69Zm79-101.66h0L68,176.69,51.31,160l90.35-90.34ZM48,179.31,76.69,208H48Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M225.91,74.79,181.22,30.1a14,14,0,0,0-19.8,0L38.1,153.41a13.94,13.94,0,0,0-4.1,9.9V208a14,14,0,0,0,14,14H216a6,6,0,0,0,0-12H110.49L225.91,94.59A14,14,0,0,0,225.91,74.79ZM76.49,188,164,100.48,183.52,120,96,207.51ZM68,179.52,48.49,160,136,72.49,155.52,92ZM46,208V174.48L81.52,210H48A2,2,0,0,1,46,208ZM217.42,86.1,192,111.52,144.49,64,169.9,38.59a2,2,0,0,1,2.83,0l44.69,44.68A2,2,0,0,1,217.42,86.1Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M227.32,73.37,182.63,28.69a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H216a8,8,0,0,0,0-16H115.32l112-112A16,16,0,0,0,227.32,73.37ZM136,75.31,152.69,92,68,176.69,51.31,160ZM48,208V179.31L76.69,208Zm48-3.31L79.32,188,164,103.31,180.69,120Zm96-96L147.32,64l24-24L216,84.69Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224.49,76.2,179.8,31.51a12,12,0,0,0-17,0L39.51,154.83A12,12,0,0,0,36,163.31V208a12,12,0,0,0,12,12H216a4,4,0,0,0,0-8H105.66L224.49,93.17A12,12,0,0,0,224.49,76.2ZM73.66,188,164,97.66,186.35,120,96,210.34ZM68,182.34,45.66,160,136,69.66,158.35,92ZM44,208V169.66l21.17,21.17h0L86.34,212H48A4,4,0,0,1,44,208ZM218.83,87.51,192,114.34,141.66,64l26.83-26.83a4,4,0,0,1,5.66,0l44.68,44.69A4,4,0,0,1,218.83,87.51Z"}))]]),_H=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M200,120a16,16,0,1,1-16-16A16,16,0,0,1,200,120ZM156,64H116a12,12,0,0,0,0,24h40a12,12,0,0,0,0-24Zm100,48v32a28,28,0,0,1-27.54,28L213.2,214.73A20,20,0,0,1,194.36,228H181.64a20,20,0,0,1-18.84-13.27l-1-2.73H110.17l-1,2.73A20,20,0,0,1,90.36,228H77.64A20,20,0,0,1,58.8,214.73L46.5,180.28A91.63,91.63,0,0,1,25.75,137.8,11.91,11.91,0,0,0,24,144a12,12,0,0,1-24,0,36.07,36.07,0,0,1,24.56-34.13A92.13,92.13,0,0,1,116,28H220a12,12,0,0,1,0,24H210a92,92,0,0,1,22.48,31.45l.42,1A28.05,28.05,0,0,1,256,112Zm-24,0a4,4,0,0,0-4-4h-3.66a12,12,0,0,1-11.45-8.41A68,68,0,0,0,148,52H116A68,68,0,0,0,65.86,165.94,11.85,11.85,0,0,1,68.31,170l12.15,34h7.08l2.87-8a12,12,0,0,1,11.3-8h68.58a12,12,0,0,1,11.3,8l2.87,8h7.08l17.16-48a12,12,0,0,1,11.3-8h8a4,4,0,0,0,4-4Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M240,112v32a16,16,0,0,1-16,16h-8l-18.1,50.69a8,8,0,0,1-7.54,5.31H177.64a8,8,0,0,1-7.54-5.31L166.29,200H97.71L93.9,210.69A8,8,0,0,1,86.36,216H73.64a8,8,0,0,1-7.54-5.31L53,174a79.7,79.7,0,0,1-21-54h0a80,80,0,0,1,80-80h32a80,80,0,0,1,73.44,48.22,82.22,82.22,0,0,1,2.9,7.78H224A16,16,0,0,1,240,112Z",opacity:"0.2"}),r.createElement("path",{d:"M192,116a12,12,0,1,1-12-12A12,12,0,0,1,192,116ZM152,64H112a8,8,0,0,0,0,16h40a8,8,0,0,0,0-16Zm96,48v32a24,24,0,0,1-24,24h-2.36l-16.21,45.38A16,16,0,0,1,190.36,224H177.64a16,16,0,0,1-15.07-10.62L160.65,208h-57.3l-1.92,5.38A16,16,0,0,1,86.36,224H73.64a16,16,0,0,1-15.07-10.62L46,178.22a87.69,87.69,0,0,1-21.44-48.38A16,16,0,0,0,16,144a8,8,0,0,1-16,0,32,32,0,0,1,24.28-31A88.12,88.12,0,0,1,112,32H216a8,8,0,0,1,0,16H194.61a87.93,87.93,0,0,1,30.17,37c.43,1,.85,2,1.25,3A24,24,0,0,1,248,112Zm-16,0a8,8,0,0,0-8-8h-3.66a8,8,0,0,1-7.64-5.6A71.9,71.9,0,0,0,144,48H112A72,72,0,0,0,58.91,168.64a8,8,0,0,1,1.64,2.71L73.64,208H86.36l3.82-10.69A8,8,0,0,1,97.71,192h68.58a8,8,0,0,1,7.53,5.31L177.64,208h12.72l18.11-50.69A8,8,0,0,1,216,152h8a8,8,0,0,0,8-8Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M226,88.08c-.4-1-.82-2-1.25-3a87.93,87.93,0,0,0-30.17-37H216a8,8,0,0,0,0-16H112a88.12,88.12,0,0,0-87.72,81A32,32,0,0,0,0,144a8,8,0,0,0,16,0,16,16,0,0,1,8.57-14.16A87.69,87.69,0,0,0,46,178.22l12.56,35.16A16,16,0,0,0,73.64,224H86.36a16,16,0,0,0,15.07-10.62l1.92-5.38h57.3l1.92,5.38A16,16,0,0,0,177.64,224h12.72a16,16,0,0,0,15.07-10.62L221.64,168H224a24,24,0,0,0,24-24V112A24,24,0,0,0,226,88.08ZM152,72H112a8,8,0,0,1,0-16h40a8,8,0,0,1,0,16Zm28,56a12,12,0,1,1,12-12A12,12,0,0,1,180,128Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M190,116a10,10,0,1,1-10-10A10,10,0,0,1,190,116ZM152,66H112a6,6,0,0,0,0,12h40a6,6,0,0,0,0-12Zm94,46v32a22,22,0,0,1-22,22h-3.77l-16.68,46.71A14,14,0,0,1,190.36,222H177.64a14,14,0,0,1-13.19-9.29L162.06,206H101.94l-2.39,6.71A14,14,0,0,1,86.36,222H73.64a14,14,0,0,1-13.19-9.29L47.76,177.18a85.72,85.72,0,0,1-21.47-50.24A18,18,0,0,0,14,144a6,6,0,0,1-12,0,30,30,0,0,1,24.19-29.43A86.1,86.1,0,0,1,112,34H216a6,6,0,0,1,0,12H187.82a85.92,85.92,0,0,1,35.12,39.83c.6,1.38,1.16,2.77,1.68,4.18A22,22,0,0,1,246,112Zm-12,0a10,10,0,0,0-10-10h-3.66a6,6,0,0,1-5.73-4.2,71.4,71.4,0,0,0-2.68-7.19A74,74,0,0,0,144,46H112A74,74,0,0,0,57.44,170a5.81,5.81,0,0,1,1.22,2l13.09,36.64A2,2,0,0,0,73.64,210H86.36a2,2,0,0,0,1.89-1.33L92.06,198a6,6,0,0,1,5.65-4h68.58a6,6,0,0,1,5.65,4l3.81,10.69a2,2,0,0,0,1.89,1.33h12.72a2,2,0,0,0,1.89-1.33L210.35,158a6,6,0,0,1,5.65-4h8a10,10,0,0,0,10-10Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M192,116a12,12,0,1,1-12-12A12,12,0,0,1,192,116ZM152,64H112a8,8,0,0,0,0,16h40a8,8,0,0,0,0-16Zm96,48v32a24,24,0,0,1-24,24h-2.36l-16.21,45.38A16,16,0,0,1,190.36,224H177.64a16,16,0,0,1-15.07-10.62L160.65,208h-57.3l-1.92,5.38A16,16,0,0,1,86.36,224H73.64a16,16,0,0,1-15.07-10.62L46,178.22a87.69,87.69,0,0,1-21.44-48.38A16,16,0,0,0,16,144a8,8,0,0,1-16,0,32,32,0,0,1,24.28-31A88.12,88.12,0,0,1,112,32H216a8,8,0,0,1,0,16H194.61a87.93,87.93,0,0,1,30.17,37c.43,1,.85,2,1.25,3A24,24,0,0,1,248,112Zm-16,0a8,8,0,0,0-8-8h-3.66a8,8,0,0,1-7.64-5.6A71.9,71.9,0,0,0,144,48H112A72,72,0,0,0,58.91,168.64a8,8,0,0,1,1.64,2.71L73.64,208H86.36l3.82-10.69A8,8,0,0,1,97.71,192h68.58a8,8,0,0,1,7.53,5.31L177.64,208h12.72l18.11-50.69A8,8,0,0,1,216,152h8a8,8,0,0,0,8-8Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M188,116a8,8,0,1,1-8-8A8,8,0,0,1,188,116ZM152,68H112a4,4,0,0,0,0,8h40a4,4,0,0,0,0-8Zm92,44v32a20,20,0,0,1-20,20h-5.18l-17.16,48a12,12,0,0,1-11.3,8H177.64a12,12,0,0,1-11.3-8l-2.87-8H100.53l-2.87,8a12,12,0,0,1-11.3,8H73.64a12,12,0,0,1-11.3-8l-12.82-35.9a83.73,83.73,0,0,1-21.4-51.76A20,20,0,0,0,12,144a4,4,0,0,1-8,0,28,28,0,0,1,24.09-27.72A84.1,84.1,0,0,1,112,36H216a4,4,0,0,1,0,8H179.8a84,84,0,0,1,41.31,42.63c.76,1.76,1.47,3.55,2.11,5.37H224A20,20,0,0,1,244,112Zm-8,0a12,12,0,0,0-12-12h-3.66a4,4,0,0,1-3.82-2.8,74.45,74.45,0,0,0-2.75-7.39A76,76,0,0,0,144,44H112A76,76,0,0,0,56,171.34a4,4,0,0,1,.82,1.36l13.09,36.65A4,4,0,0,0,73.64,212H86.36a4,4,0,0,0,3.77-2.65L94,198.65A4,4,0,0,1,97.71,196h68.58a4,4,0,0,1,3.76,2.65l3.82,10.7a4,4,0,0,0,3.77,2.65h12.72a4,4,0,0,0,3.77-2.65l18.1-50.7A4,4,0,0,1,216,156h8a12,12,0,0,0,12-12Z"}))]]),ZH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M228,128a12,12,0,0,1-12,12H140v76a12,12,0,0,1-24,0V140H40a12,12,0,0,1,0-24h76V40a12,12,0,0,1,24,0v76h76A12,12,0,0,1,228,128Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z",opacity:"0.2"}),r.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H136v80a8,8,0,0,1-16,0V136H40a8,8,0,0,1,0-16h80V40a8,8,0,0,1,16,0v80h80A8,8,0,0,1,224,128Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM184,136H136v48a8,8,0,0,1-16,0V136H72a8,8,0,0,1,0-16h48V72a8,8,0,0,1,16,0v48h48a8,8,0,0,1,0,16Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M222,128a6,6,0,0,1-6,6H134v82a6,6,0,0,1-12,0V134H40a6,6,0,0,1,0-12h82V40a6,6,0,0,1,12,0v82h82A6,6,0,0,1,222,128Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H136v80a8,8,0,0,1-16,0V136H40a8,8,0,0,1,0-16h80V40a8,8,0,0,1,16,0v80h80A8,8,0,0,1,224,128Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M220,128a4,4,0,0,1-4,4H132v84a4,4,0,0,1-8,0V132H40a4,4,0,0,1,0-8h84V40a4,4,0,0,1,8,0v84h84A4,4,0,0,1,220,128Z"}))]]),VH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,192a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,212Zm52-84a12,12,0,0,1-12,12H140v28a12,12,0,0,1-24,0V140H88a12,12,0,0,1,0-24h28V88a12,12,0,0,1,24,0v28h28A12,12,0,0,1,180,128Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),r.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm48-88a8,8,0,0,1-8,8H136v32a8,8,0,0,1-16,0V136H88a8,8,0,0,1,0-16h32V88a8,8,0,0,1,16,0v32h32A8,8,0,0,1,176,128Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.13,104.13,0,0,0,128,24Zm40,112H136v32a8,8,0,0,1-16,0V136H88a8,8,0,0,1,0-16h32V88a8,8,0,0,1,16,0v32h32a8,8,0,0,1,0,16Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218Zm46-90a6,6,0,0,1-6,6H134v34a6,6,0,0,1-12,0V134H88a6,6,0,0,1,0-12h34V88a6,6,0,0,1,12,0v34h34A6,6,0,0,1,174,128Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm48-88a8,8,0,0,1-8,8H136v32a8,8,0,0,1-16,0V136H88a8,8,0,0,1,0-16h32V88a8,8,0,0,1,16,0v32h32A8,8,0,0,1,176,128Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220Zm44-92a4,4,0,0,1-4,4H132v36a4,4,0,0,1-8,0V132H88a4,4,0,0,1,0-8h36V88a4,4,0,0,1,8,0v36h36A4,4,0,0,1,172,128Z"}))]]),zH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,36H40A20,20,0,0,0,20,56V200a20,20,0,0,0,20,20H216a20,20,0,0,0,20-20V56A20,20,0,0,0,216,36ZM44,60H76V196H44ZM212,196H100V60H212Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M88,48V208H40a8,8,0,0,1-8-8V56a8,8,0,0,1,8-8Z",opacity:"0.2"}),r.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM40,56H80V200H40ZM216,200H96V56H216V200Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40Zm0,160H88V56H216V200Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,42H40A14,14,0,0,0,26,56V200a14,14,0,0,0,14,14H216a14,14,0,0,0,14-14V56A14,14,0,0,0,216,42ZM38,200V56a2,2,0,0,1,2-2H82V202H40A2,2,0,0,1,38,200Zm180,0a2,2,0,0,1-2,2H94V54H216a2,2,0,0,1,2,2Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM40,56H80V200H40ZM216,200H96V56H216V200Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,44H40A12,12,0,0,0,28,56V200a12,12,0,0,0,12,12H216a12,12,0,0,0,12-12V56A12,12,0,0,0,216,44ZM36,200V56a4,4,0,0,1,4-4H84V204H40A4,4,0,0,1,36,200Zm184,0a4,4,0,0,1-4,4H92V52H216a4,4,0,0,1,4,4Z"}))]]),BH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M144.49,136.49l-40,40a12,12,0,0,1-17-17L107,140H24a12,12,0,0,1,0-24h83L87.51,96.49a12,12,0,0,1,17-17l40,40A12,12,0,0,1,144.49,136.49ZM200,28H136a12,12,0,0,0,0,24h52V204H136a12,12,0,0,0,0,24h64a12,12,0,0,0,12-12V40A12,12,0,0,0,200,28Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M200,40V216H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40Z",opacity:"0.2"}),r.createElement("path",{d:"M141.66,133.66l-40,40a8,8,0,0,1-11.32-11.32L116.69,136H24a8,8,0,0,1,0-16h92.69L90.34,93.66a8,8,0,0,1,11.32-11.32l40,40A8,8,0,0,1,141.66,133.66ZM200,32H136a8,8,0,0,0,0,16h56V208H136a8,8,0,0,0,0,16h64a8,8,0,0,0,8-8V40A8,8,0,0,0,200,32Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M141.66,133.66l-40,40A8,8,0,0,1,88,168V136H24a8,8,0,0,1,0-16H88V88a8,8,0,0,1,13.66-5.66l40,40A8,8,0,0,1,141.66,133.66ZM200,32H136a8,8,0,0,0,0,16h56V208H136a8,8,0,0,0,0,16h64a8,8,0,0,0,8-8V40A8,8,0,0,0,200,32Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M140.24,132.24l-40,40a6,6,0,0,1-8.48-8.48L121.51,134H24a6,6,0,0,1,0-12h97.51L91.76,92.24a6,6,0,0,1,8.48-8.48l40,40A6,6,0,0,1,140.24,132.24ZM200,34H136a6,6,0,0,0,0,12h58V210H136a6,6,0,0,0,0,12h64a6,6,0,0,0,6-6V40A6,6,0,0,0,200,34Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M141.66,133.66l-40,40a8,8,0,0,1-11.32-11.32L116.69,136H24a8,8,0,0,1,0-16h92.69L90.34,93.66a8,8,0,0,1,11.32-11.32l40,40A8,8,0,0,1,141.66,133.66ZM200,32H136a8,8,0,0,0,0,16h56V208H136a8,8,0,0,0,0,16h64a8,8,0,0,0,8-8V40A8,8,0,0,0,200,32Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M138.83,130.83l-40,40a4,4,0,0,1-5.66-5.66L126.34,132H24a4,4,0,0,1,0-8H126.34L93.17,90.83a4,4,0,0,1,5.66-5.66l40,40A4,4,0,0,1,138.83,130.83ZM200,36H136a4,4,0,0,0,0,8h60V212H136a4,4,0,0,0,0,8h64a4,4,0,0,0,4-4V40A4,4,0,0,0,200,36Z"}))]]),UH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M40,92H70.06a36,36,0,0,0,67.88,0H216a12,12,0,0,0,0-24H137.94a36,36,0,0,0-67.88,0H40a12,12,0,0,0,0,24Zm64-24A12,12,0,1,1,92,80,12,12,0,0,1,104,68Zm112,96H201.94a36,36,0,0,0-67.88,0H40a12,12,0,0,0,0,24h94.06a36,36,0,0,0,67.88,0H216a12,12,0,0,0,0-24Zm-48,24a12,12,0,1,1,12-12A12,12,0,0,1,168,188Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,80a24,24,0,1,1-24-24A24,24,0,0,1,128,80Zm40,72a24,24,0,1,0,24,24A24,24,0,0,0,168,152Z",opacity:"0.2"}),r.createElement("path",{d:"M40,88H73a32,32,0,0,0,62,0h81a8,8,0,0,0,0-16H135a32,32,0,0,0-62,0H40a8,8,0,0,0,0,16Zm64-24A16,16,0,1,1,88,80,16,16,0,0,1,104,64ZM216,168H199a32,32,0,0,0-62,0H40a8,8,0,0,0,0,16h97a32,32,0,0,0,62,0h17a8,8,0,0,0,0-16Zm-48,24a16,16,0,1,1,16-16A16,16,0,0,1,168,192Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M32,80a8,8,0,0,1,8-8H77.17a28,28,0,0,1,53.66,0H216a8,8,0,0,1,0,16H130.83a28,28,0,0,1-53.66,0H40A8,8,0,0,1,32,80Zm184,88H194.83a28,28,0,0,0-53.66,0H40a8,8,0,0,0,0,16H141.17a28,28,0,0,0,53.66,0H216a8,8,0,0,0,0-16Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M40,86H74.6a30,30,0,0,0,58.8,0H216a6,6,0,0,0,0-12H133.4a30,30,0,0,0-58.8,0H40a6,6,0,0,0,0,12Zm64-24A18,18,0,1,1,86,80,18,18,0,0,1,104,62ZM216,170H197.4a30,30,0,0,0-58.8,0H40a6,6,0,0,0,0,12h98.6a30,30,0,0,0,58.8,0H216a6,6,0,0,0,0-12Zm-48,24a18,18,0,1,1,18-18A18,18,0,0,1,168,194Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M40,88H73a32,32,0,0,0,62,0h81a8,8,0,0,0,0-16H135a32,32,0,0,0-62,0H40a8,8,0,0,0,0,16Zm64-24A16,16,0,1,1,88,80,16,16,0,0,1,104,64ZM216,168H199a32,32,0,0,0-62,0H40a8,8,0,0,0,0,16h97a32,32,0,0,0,62,0h17a8,8,0,0,0,0-16Zm-48,24a16,16,0,1,1,16-16A16,16,0,0,1,168,192Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M40,84H76.29a28,28,0,0,0,55.42,0H216a4,4,0,0,0,0-8H131.71a28,28,0,0,0-55.42,0H40a4,4,0,0,0,0,8Zm64-24A20,20,0,1,1,84,80,20,20,0,0,1,104,60ZM216,172H195.71a28,28,0,0,0-55.42,0H40a4,4,0,0,0,0,8H140.29a28,28,0,0,0,55.42,0H216a4,4,0,0,0,0-8Zm-48,24a20,20,0,1,1,20-20A20,20,0,0,1,168,196Z"}))]]),WH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M199,125.31l-49.88-18.39L130.69,57a19.92,19.92,0,0,0-37.38,0L74.92,106.92,25,125.31a19.92,19.92,0,0,0,0,37.38l49.88,18.39L93.31,231a19.92,19.92,0,0,0,37.38,0l18.39-49.88L199,162.69a19.92,19.92,0,0,0,0-37.38Zm-63.38,35.16a12,12,0,0,0-7.11,7.11L112,212.28l-16.47-44.7a12,12,0,0,0-7.11-7.11L43.72,144l44.7-16.47a12,12,0,0,0,7.11-7.11L112,75.72l16.47,44.7a12,12,0,0,0,7.11,7.11L180.28,144ZM140,40a12,12,0,0,1,12-12h12V16a12,12,0,0,1,24,0V28h12a12,12,0,0,1,0,24H188V64a12,12,0,0,1-24,0V52H152A12,12,0,0,1,140,40ZM252,88a12,12,0,0,1-12,12h-4v4a12,12,0,0,1-24,0v-4h-4a12,12,0,0,1,0-24h4V72a12,12,0,0,1,24,0v4h4A12,12,0,0,1,252,88Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M194.82,151.43l-55.09,20.3-20.3,55.09a7.92,7.92,0,0,1-14.86,0l-20.3-55.09-55.09-20.3a7.92,7.92,0,0,1,0-14.86l55.09-20.3,20.3-55.09a7.92,7.92,0,0,1,14.86,0l20.3,55.09,55.09,20.3A7.92,7.92,0,0,1,194.82,151.43Z",opacity:"0.2"}),r.createElement("path",{d:"M197.58,129.06,146,110l-19-51.62a15.92,15.92,0,0,0-29.88,0L78,110l-51.62,19a15.92,15.92,0,0,0,0,29.88L78,178l19,51.62a15.92,15.92,0,0,0,29.88,0L146,178l51.62-19a15.92,15.92,0,0,0,0-29.88ZM137,164.22a8,8,0,0,0-4.74,4.74L112,223.85,91.78,169A8,8,0,0,0,87,164.22L32.15,144,87,123.78A8,8,0,0,0,91.78,119L112,64.15,132.22,119a8,8,0,0,0,4.74,4.74L191.85,144ZM144,40a8,8,0,0,1,8-8h16V16a8,8,0,0,1,16,0V32h16a8,8,0,0,1,0,16H184V64a8,8,0,0,1-16,0V48H152A8,8,0,0,1,144,40ZM248,88a8,8,0,0,1-8,8h-8v8a8,8,0,0,1-16,0V96h-8a8,8,0,0,1,0-16h8V72a8,8,0,0,1,16,0v8h8A8,8,0,0,1,248,88Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,144a15.78,15.78,0,0,1-10.42,14.94L146,178l-19,51.62a15.92,15.92,0,0,1-29.88,0L78,178l-51.62-19a15.92,15.92,0,0,1,0-29.88L78,110l19-51.62a15.92,15.92,0,0,1,29.88,0L146,110l51.62,19A15.78,15.78,0,0,1,208,144ZM152,48h16V64a8,8,0,0,0,16,0V48h16a8,8,0,0,0,0-16H184V16a8,8,0,0,0-16,0V32H152a8,8,0,0,0,0,16Zm88,32h-8V72a8,8,0,0,0-16,0v8h-8a8,8,0,0,0,0,16h8v8a8,8,0,0,0,16,0V96h8a8,8,0,0,0,0-16Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M196.89,130.94,144.4,111.6,125.06,59.11a13.92,13.92,0,0,0-26.12,0L79.6,111.6,27.11,130.94a13.92,13.92,0,0,0,0,26.12L79.6,176.4l19.34,52.49a13.92,13.92,0,0,0,26.12,0L144.4,176.4l52.49-19.34a13.92,13.92,0,0,0,0-26.12Zm-4.15,14.86-55.08,20.3a6,6,0,0,0-3.56,3.56l-20.3,55.08a1.92,1.92,0,0,1-3.6,0L89.9,169.66a6,6,0,0,0-3.56-3.56L31.26,145.8a1.92,1.92,0,0,1,0-3.6l55.08-20.3a6,6,0,0,0,3.56-3.56l20.3-55.08a1.92,1.92,0,0,1,3.6,0l20.3,55.08a6,6,0,0,0,3.56,3.56l55.08,20.3a1.92,1.92,0,0,1,0,3.6ZM146,40a6,6,0,0,1,6-6h18V16a6,6,0,0,1,12,0V34h18a6,6,0,0,1,0,12H182V64a6,6,0,0,1-12,0V46H152A6,6,0,0,1,146,40ZM246,88a6,6,0,0,1-6,6H230v10a6,6,0,0,1-12,0V94H208a6,6,0,0,1,0-12h10V72a6,6,0,0,1,12,0V82h10A6,6,0,0,1,246,88Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M197.58,129.06,146,110l-19-51.62a15.92,15.92,0,0,0-29.88,0L78,110l-51.62,19a15.92,15.92,0,0,0,0,29.88L78,178l19,51.62a15.92,15.92,0,0,0,29.88,0L146,178l51.62-19a15.92,15.92,0,0,0,0-29.88ZM137,164.22a8,8,0,0,0-4.74,4.74L112,223.85,91.78,169A8,8,0,0,0,87,164.22L32.15,144,87,123.78A8,8,0,0,0,91.78,119L112,64.15,132.22,119a8,8,0,0,0,4.74,4.74L191.85,144ZM144,40a8,8,0,0,1,8-8h16V16a8,8,0,0,1,16,0V32h16a8,8,0,0,1,0,16H184V64a8,8,0,0,1-16,0V48H152A8,8,0,0,1,144,40ZM248,88a8,8,0,0,1-8,8h-8v8a8,8,0,0,1-16,0V96h-8a8,8,0,0,1,0-16h8V72a8,8,0,0,1,16,0v8h8A8,8,0,0,1,248,88Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M196.2,132.81l-53.36-19.65L123.19,59.8a11.93,11.93,0,0,0-22.38,0L81.16,113.16,27.8,132.81a11.93,11.93,0,0,0,0,22.38l53.36,19.65,19.65,53.36a11.93,11.93,0,0,0,22.38,0l19.65-53.36,53.36-19.65a11.93,11.93,0,0,0,0-22.38Zm-2.77,14.87L138.35,168a4,4,0,0,0-2.37,2.37l-20.3,55.08a3.92,3.92,0,0,1-7.36,0L88,170.35A4,4,0,0,0,85.65,168l-55.08-20.3a3.92,3.92,0,0,1,0-7.36L85.65,120A4,4,0,0,0,88,117.65l20.3-55.08a3.92,3.92,0,0,1,7.36,0L136,117.65a4,4,0,0,0,2.37,2.37l55.08,20.3a3.92,3.92,0,0,1,0,7.36ZM148,40a4,4,0,0,1,4-4h20V16a4,4,0,0,1,8,0V36h20a4,4,0,0,1,0,8H180V64a4,4,0,0,1-8,0V44H152A4,4,0,0,1,148,40Zm96,48a4,4,0,0,1-4,4H228v12a4,4,0,0,1-8,0V92H208a4,4,0,0,1,0-8h12V72a4,4,0,0,1,8,0V84h12A4,4,0,0,1,244,88Z"}))]]),GH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M234.36,170A12,12,0,0,1,230,186.37l-96,56a12,12,0,0,1-12.1,0l-96-56a12,12,0,0,1,12.09-20.74l90,52.48L218,165.63A12,12,0,0,1,234.36,170ZM218,117.63,128,170.11,38.05,117.63A12,12,0,0,0,26,138.37l96,56a12,12,0,0,0,12.1,0l96-56A12,12,0,0,0,218,117.63ZM20,80a12,12,0,0,1,6-10.37l96-56a12.06,12.06,0,0,1,12.1,0l96,56a12,12,0,0,1,0,20.74l-96,56a12,12,0,0,1-12.1,0l-96-56A12,12,0,0,1,20,80Zm35.82,0L128,122.11,200.18,80,128,37.89Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,80l-96,56L32,80l96-56Z",opacity:"0.2"}),r.createElement("path",{d:"M230.91,172A8,8,0,0,1,228,182.91l-96,56a8,8,0,0,1-8.06,0l-96-56A8,8,0,0,1,36,169.09l92,53.65,92-53.65A8,8,0,0,1,230.91,172ZM220,121.09l-92,53.65L36,121.09A8,8,0,0,0,28,134.91l96,56a8,8,0,0,0,8.06,0l96-56A8,8,0,1,0,220,121.09ZM24,80a8,8,0,0,1,4-6.91l96-56a8,8,0,0,1,8.06,0l96,56a8,8,0,0,1,0,13.82l-96,56a8,8,0,0,1-8.06,0l-96-56A8,8,0,0,1,24,80Zm23.88,0L128,126.74,208.12,80,128,33.26Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M220,169.09l-92,53.65L36,169.09A8,8,0,0,0,28,182.91l96,56a8,8,0,0,0,8.06,0l96-56A8,8,0,1,0,220,169.09Z"}),r.createElement("path",{d:"M220,121.09l-92,53.65L36,121.09A8,8,0,0,0,28,134.91l96,56a8,8,0,0,0,8.06,0l96-56A8,8,0,1,0,220,121.09Z"}),r.createElement("path",{d:"M28,86.91l96,56a8,8,0,0,0,8.06,0l96-56a8,8,0,0,0,0-13.82l-96-56a8,8,0,0,0-8.06,0l-96,56a8,8,0,0,0,0,13.82Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M229.18,173a6,6,0,0,1-2.16,8.2l-96,56a6,6,0,0,1-6,0l-96-56a6,6,0,0,1,6-10.36l93,54.23,93-54.23A6,6,0,0,1,229.18,173ZM221,122.82l-93,54.23L35,122.82a6,6,0,0,0-6,10.36l96,56a6,6,0,0,0,6,0l96-56a6,6,0,0,0-6-10.36ZM26,80a6,6,0,0,1,3-5.18l96-56a6,6,0,0,1,6,0l96,56a6,6,0,0,1,0,10.36l-96,56a6,6,0,0,1-6,0l-96-56A6,6,0,0,1,26,80Zm17.91,0L128,129.05,212.09,80,128,31Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M230.91,172A8,8,0,0,1,228,182.91l-96,56a8,8,0,0,1-8.06,0l-96-56A8,8,0,0,1,36,169.09l92,53.65,92-53.65A8,8,0,0,1,230.91,172ZM220,121.09l-92,53.65L36,121.09A8,8,0,0,0,28,134.91l96,56a8,8,0,0,0,8.06,0l96-56A8,8,0,1,0,220,121.09ZM24,80a8,8,0,0,1,4-6.91l96-56a8,8,0,0,1,8.06,0l96,56a8,8,0,0,1,0,13.82l-96,56a8,8,0,0,1-8.06,0l-96-56A8,8,0,0,1,24,80Zm23.88,0L128,126.74,208.12,80,128,33.26Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M227.45,174a4,4,0,0,1-1.44,5.48l-96,56a4,4,0,0,1-4,0l-96-56a4,4,0,0,1,4-6.92l94,54.83,94-54.83A4,4,0,0,1,227.45,174ZM222,124.54l-94,54.83L34,124.54a4,4,0,0,0-4,6.92l96,56a4,4,0,0,0,4,0l96-56a4,4,0,0,0-4-6.92ZM28,80a4,4,0,0,1,2-3.46l96-56a4,4,0,0,1,4,0l96,56a4,4,0,0,1,0,6.92l-96,56a4,4,0,0,1-4,0l-96-56A4,4,0,0,1,28,80Zm11.94,0L128,131.37,216.06,80,128,28.63Z"}))]]),KH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M243,96a20.33,20.33,0,0,0-17.74-14l-56.59-4.57L146.83,24.62a20.36,20.36,0,0,0-37.66,0L87.35,77.44,30.76,82A20.45,20.45,0,0,0,19.1,117.88l43.18,37.24-13.2,55.7A20.37,20.37,0,0,0,79.57,233L128,203.19,176.43,233a20.39,20.39,0,0,0,30.49-22.15l-13.2-55.7,43.18-37.24A20.43,20.43,0,0,0,243,96ZM172.53,141.7a12,12,0,0,0-3.84,11.86L181.58,208l-47.29-29.08a12,12,0,0,0-12.58,0L74.42,208l12.89-54.4a12,12,0,0,0-3.84-11.86L41.2,105.24l55.4-4.47a12,12,0,0,0,10.13-7.38L128,41.89l21.27,51.5a12,12,0,0,0,10.13,7.38l55.4,4.47Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M229.06,108.79l-48.7,42,14.88,62.79a8.4,8.4,0,0,1-12.52,9.17L128,189.09,73.28,222.74a8.4,8.4,0,0,1-12.52-9.17l14.88-62.79-48.7-42A8.46,8.46,0,0,1,31.73,94L95.64,88.8l24.62-59.6a8.36,8.36,0,0,1,15.48,0l24.62,59.6L224.27,94A8.46,8.46,0,0,1,229.06,108.79Z",opacity:"0.2"}),r.createElement("path",{d:"M239.18,97.26A16.38,16.38,0,0,0,224.92,86l-59-4.76L143.14,26.15a16.36,16.36,0,0,0-30.27,0L90.11,81.23,31.08,86a16.46,16.46,0,0,0-9.37,28.86l45,38.83L53,211.75a16.38,16.38,0,0,0,24.5,17.82L128,198.49l50.53,31.08A16.4,16.4,0,0,0,203,211.75l-13.76-58.07,45-38.83A16.43,16.43,0,0,0,239.18,97.26Zm-15.34,5.47-48.7,42a8,8,0,0,0-2.56,7.91l14.88,62.8a.37.37,0,0,1-.17.48c-.18.14-.23.11-.38,0l-54.72-33.65a8,8,0,0,0-8.38,0L69.09,215.94c-.15.09-.19.12-.38,0a.37.37,0,0,1-.17-.48l14.88-62.8a8,8,0,0,0-2.56-7.91l-48.7-42c-.12-.1-.23-.19-.13-.5s.18-.27.33-.29l63.92-5.16A8,8,0,0,0,103,91.86l24.62-59.61c.08-.17.11-.25.35-.25s.27.08.35.25L153,91.86a8,8,0,0,0,6.75,4.92l63.92,5.16c.15,0,.24,0,.33.29S224,102.63,223.84,102.73Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M234.29,114.85l-45,38.83L203,211.75a16.4,16.4,0,0,1-24.5,17.82L128,198.49,77.47,229.57A16.4,16.4,0,0,1,53,211.75l13.76-58.07-45-38.83A16.46,16.46,0,0,1,31.08,86l59-4.76,22.76-55.08a16.36,16.36,0,0,1,30.27,0l22.75,55.08,59,4.76a16.46,16.46,0,0,1,9.37,28.86Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M237.28,97.87A14.18,14.18,0,0,0,224.76,88l-60.25-4.87-23.22-56.2a14.37,14.37,0,0,0-26.58,0L91.49,83.11,31.24,88a14.18,14.18,0,0,0-12.52,9.89A14.43,14.43,0,0,0,23,113.32L69,152.93l-14,59.25a14.4,14.4,0,0,0,5.59,15,14.1,14.1,0,0,0,15.91.6L128,196.12l51.58,31.71a14.1,14.1,0,0,0,15.91-.6,14.4,14.4,0,0,0,5.59-15l-14-59.25L233,113.32A14.43,14.43,0,0,0,237.28,97.87Zm-12.14,6.37-48.69,42a6,6,0,0,0-1.92,5.92l14.88,62.79a2.35,2.35,0,0,1-.95,2.57,2.24,2.24,0,0,1-2.6.1L131.14,184a6,6,0,0,0-6.28,0L70.14,217.61a2.24,2.24,0,0,1-2.6-.1,2.35,2.35,0,0,1-1-2.57l14.88-62.79a6,6,0,0,0-1.92-5.92l-48.69-42a2.37,2.37,0,0,1-.73-2.65,2.28,2.28,0,0,1,2.07-1.65l63.92-5.16a6,6,0,0,0,5.06-3.69l24.63-59.6a2.35,2.35,0,0,1,4.38,0l24.63,59.6a6,6,0,0,0,5.06,3.69l63.92,5.16a2.28,2.28,0,0,1,2.07,1.65A2.37,2.37,0,0,1,225.14,104.24Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M239.18,97.26A16.38,16.38,0,0,0,224.92,86l-59-4.76L143.14,26.15a16.36,16.36,0,0,0-30.27,0L90.11,81.23,31.08,86a16.46,16.46,0,0,0-9.37,28.86l45,38.83L53,211.75a16.38,16.38,0,0,0,24.5,17.82L128,198.49l50.53,31.08A16.4,16.4,0,0,0,203,211.75l-13.76-58.07,45-38.83A16.43,16.43,0,0,0,239.18,97.26Zm-15.34,5.47-48.7,42a8,8,0,0,0-2.56,7.91l14.88,62.8a.37.37,0,0,1-.17.48c-.18.14-.23.11-.38,0l-54.72-33.65a8,8,0,0,0-8.38,0L69.09,215.94c-.15.09-.19.12-.38,0a.37.37,0,0,1-.17-.48l14.88-62.8a8,8,0,0,0-2.56-7.91l-48.7-42c-.12-.1-.23-.19-.13-.5s.18-.27.33-.29l63.92-5.16A8,8,0,0,0,103,91.86l24.62-59.61c.08-.17.11-.25.35-.25s.27.08.35.25L153,91.86a8,8,0,0,0,6.75,4.92l63.92,5.16c.15,0,.24,0,.33.29S224,102.63,223.84,102.73Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M235.36,98.49A12.21,12.21,0,0,0,224.59,90l-61.47-5L139.44,27.67a12.37,12.37,0,0,0-22.88,0L92.88,85,31.41,90a12.45,12.45,0,0,0-7.07,21.84l46.85,40.41L56.87,212.64a12.35,12.35,0,0,0,18.51,13.49L128,193.77l52.62,32.36a12.12,12.12,0,0,0,13.69-.51,12.28,12.28,0,0,0,4.82-13l-14.32-60.42,46.85-40.41A12.29,12.29,0,0,0,235.36,98.49Zm-8.93,7.26-48.68,42a4,4,0,0,0-1.28,3.95l14.87,62.79a4.37,4.37,0,0,1-1.72,4.65,4.24,4.24,0,0,1-4.81.18L130.1,185.67a4,4,0,0,0-4.2,0L71.19,219.32a4.24,4.24,0,0,1-4.81-.18,4.37,4.37,0,0,1-1.72-4.65L79.53,151.7a4,4,0,0,0-1.28-3.95l-48.68-42A4.37,4.37,0,0,1,28.25,101a4.31,4.31,0,0,1,3.81-3L96,92.79a4,4,0,0,0,3.38-2.46L124,30.73a4.35,4.35,0,0,1,8.08,0l24.62,59.6A4,4,0,0,0,160,92.79l63.9,5.15a4.31,4.31,0,0,1,3.81,3A4.37,4.37,0,0,1,226.43,105.75Z"}))]]),YH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M236,96a12,12,0,0,0-.44-3.3L221.2,42.51A20.08,20.08,0,0,0,202,28H54A20.08,20.08,0,0,0,34.8,42.51L20.46,92.7A12,12,0,0,0,20,96h0v16a43.94,43.94,0,0,0,16,33.92V216a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V145.92A43.94,43.94,0,0,0,236,112V96ZM57.05,52H199l9.14,32H47.91Zm91,56v4a20,20,0,0,1-40,0v-4ZM53,128.71A20,20,0,0,1,44,112v-4H84v4a20,20,0,0,1-20,20,19.76,19.76,0,0,1-9.07-2.2A11.54,11.54,0,0,0,53,128.71ZM196,204H60V155.81c1.32.12,2.65.19,4,.19a43.86,43.86,0,0,0,32-13.85,43.89,43.89,0,0,0,64,0A43.86,43.86,0,0,0,192,156c1.35,0,2.68-.07,4-.19Zm16-92a20,20,0,0,1-9,16.71,11.66,11.66,0,0,0-1.88,1.09A20,20,0,0,1,172,112v-4h40Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,96v16a32,32,0,0,1-64,0V96H96v16a32,32,0,0,1-64,0V96L46.34,45.8A8,8,0,0,1,54,40H202a8,8,0,0,1,7.69,5.8Z",opacity:"0.2"}),r.createElement("path",{d:"M231.69,93.81,217.35,43.6A16.07,16.07,0,0,0,202,32H54A16.07,16.07,0,0,0,38.65,43.6L24.31,93.81A7.94,7.94,0,0,0,24,96v16a40,40,0,0,0,16,32v72a8,8,0,0,0,8,8H208a8,8,0,0,0,8-8V144a40,40,0,0,0,16-32V96A7.94,7.94,0,0,0,231.69,93.81ZM54,48H202l11.42,40H42.61Zm98,56v8a24,24,0,0,1-48,0v-8ZM51.06,132.2A24,24,0,0,1,40,112v-8H88v8a24,24,0,0,1-35.12,21.26A7.88,7.88,0,0,0,51.06,132.2ZM200,208H56V151.2a40.57,40.57,0,0,0,8,.8,40,40,0,0,0,32-16,40,40,0,0,0,64,0,40,40,0,0,0,32,16,40.57,40.57,0,0,0,8-.8Zm16-96a24,24,0,0,1-11.07,20.2,8.08,8.08,0,0,0-1.8,1.05A24,24,0,0,1,168,112v-8h48Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M231.69,93.81,217.35,43.6A16.07,16.07,0,0,0,202,32H54A16.07,16.07,0,0,0,38.65,43.6L24.31,93.81A7.94,7.94,0,0,0,24,96v16a40,40,0,0,0,16,32v72a8,8,0,0,0,8,8H208a8,8,0,0,0,8-8V144a40,40,0,0,0,16-32V96A7.94,7.94,0,0,0,231.69,93.81ZM88,112a24,24,0,0,1-35.12,21.26,7.88,7.88,0,0,0-1.82-1.06A24,24,0,0,1,40,112v-8H88Zm64,0a24,24,0,0,1-48,0v-8h48Zm64,0a24,24,0,0,1-11.07,20.2,8.08,8.08,0,0,0-1.8,1.05A24,24,0,0,1,168,112v-8h48Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M26.22,94.41A6,6,0,0,0,26,96v16A38,38,0,0,0,42,143V216a6,6,0,0,0,6,6H208a6,6,0,0,0,6-6V143A38,38,0,0,0,230,112V96a5.91,5.91,0,0,0-.23-1.64L215.43,44.15A14.07,14.07,0,0,0,202,34H54A14.07,14.07,0,0,0,40.57,44.15Zm25.89-47A2,2,0,0,1,54,46H202a2,2,0,0,1,1.92,1.45L216.05,90H40ZM102,102h52v10a26,26,0,0,1-52,0Zm-64,0H90v10a26,26,0,0,1-38.18,23,6,6,0,0,0-1.65-1A26,26,0,0,1,38,112ZM202,210H54V148.66a38,38,0,0,0,42-16.21,37.95,37.95,0,0,0,64,0,38,38,0,0,0,42,16.21Zm3.83-76a6,6,0,0,0-1.65,1A26,26,0,0,1,166,112V102h52v10A26,26,0,0,1,205.83,134Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M232,96a7.89,7.89,0,0,0-.3-2.2L217.35,43.6A16.07,16.07,0,0,0,202,32H54A16.07,16.07,0,0,0,38.65,43.6L24.31,93.8A7.89,7.89,0,0,0,24,96h0v16a40,40,0,0,0,16,32v72a8,8,0,0,0,8,8H208a8,8,0,0,0,8-8V144a40,40,0,0,0,16-32V96ZM54,48H202l11.42,40H42.61Zm50,56h48v8a24,24,0,0,1-48,0Zm-16,0v8a24,24,0,0,1-35.12,21.26,7.88,7.88,0,0,0-1.82-1.06A24,24,0,0,1,40,112v-8ZM200,208H56V151.2a40.57,40.57,0,0,0,8,.8,40,40,0,0,0,32-16,40,40,0,0,0,64,0,40,40,0,0,0,32,16,40.57,40.57,0,0,0,8-.8Zm4.93-75.8a8.08,8.08,0,0,0-1.8,1.05A24,24,0,0,1,168,112v-8h48v8A24,24,0,0,1,204.93,132.2Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M28.15,95A3.81,3.81,0,0,0,28,96v16a36,36,0,0,0,16,29.92V216a4,4,0,0,0,4,4H208a4,4,0,0,0,4-4V141.92A36,36,0,0,0,228,112V96a3.81,3.81,0,0,0-.17-1.08L213.5,44.7A12,12,0,0,0,202,36H54A12,12,0,0,0,42.5,44.7Zm22-48.08A4,4,0,0,1,54,44H202a4,4,0,0,1,3.84,2.9L218.7,92H37.3ZM100,100h56v12a28,28,0,0,1-56,0ZM36,112V100H92v12a28,28,0,0,1-41.37,24.59,4,4,0,0,0-1.31-.76A28,28,0,0,1,36,112ZM204,212H52V145.94a36,36,0,0,0,44-17.48,36,36,0,0,0,64,0,36,36,0,0,0,44,17.48Zm2.68-76.17a3.94,3.94,0,0,0-1.3.76A28,28,0,0,1,164,112V100h56v12A28,28,0,0,1,206.68,135.83Z"}))]]),qH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M116,36V20a12,12,0,0,1,24,0V36a12,12,0,0,1-24,0Zm80,92a68,68,0,1,1-68-68A68.07,68.07,0,0,1,196,128Zm-24,0a44,44,0,1,0-44,44A44.05,44.05,0,0,0,172,128ZM51.51,68.49a12,12,0,1,0,17-17l-12-12a12,12,0,0,0-17,17Zm0,119-12,12a12,12,0,0,0,17,17l12-12a12,12,0,1,0-17-17ZM196,72a12,12,0,0,0,8.49-3.51l12-12a12,12,0,0,0-17-17l-12,12A12,12,0,0,0,196,72Zm8.49,115.51a12,12,0,0,0-17,17l12,12a12,12,0,0,0,17-17ZM48,128a12,12,0,0,0-12-12H20a12,12,0,0,0,0,24H36A12,12,0,0,0,48,128Zm80,80a12,12,0,0,0-12,12v16a12,12,0,0,0,24,0V220A12,12,0,0,0,128,208Zm108-92H220a12,12,0,0,0,0,24h16a12,12,0,0,0,0-24Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M184,128a56,56,0,1,1-56-56A56,56,0,0,1,184,128Z",opacity:"0.2"}),r.createElement("path",{d:"M120,40V16a8,8,0,0,1,16,0V40a8,8,0,0,1-16,0Zm72,88a64,64,0,1,1-64-64A64.07,64.07,0,0,1,192,128Zm-16,0a48,48,0,1,0-48,48A48.05,48.05,0,0,0,176,128ZM58.34,69.66A8,8,0,0,0,69.66,58.34l-16-16A8,8,0,0,0,42.34,53.66Zm0,116.68-16,16a8,8,0,0,0,11.32,11.32l16-16a8,8,0,0,0-11.32-11.32ZM192,72a8,8,0,0,0,5.66-2.34l16-16a8,8,0,0,0-11.32-11.32l-16,16A8,8,0,0,0,192,72Zm5.66,114.34a8,8,0,0,0-11.32,11.32l16,16a8,8,0,0,0,11.32-11.32ZM48,128a8,8,0,0,0-8-8H16a8,8,0,0,0,0,16H40A8,8,0,0,0,48,128Zm80,80a8,8,0,0,0-8,8v24a8,8,0,0,0,16,0V216A8,8,0,0,0,128,208Zm112-88H216a8,8,0,0,0,0,16h24a8,8,0,0,0,0-16Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M120,40V16a8,8,0,0,1,16,0V40a8,8,0,0,1-16,0Zm8,24a64,64,0,1,0,64,64A64.07,64.07,0,0,0,128,64ZM58.34,69.66A8,8,0,0,0,69.66,58.34l-16-16A8,8,0,0,0,42.34,53.66Zm0,116.68-16,16a8,8,0,0,0,11.32,11.32l16-16a8,8,0,0,0-11.32-11.32ZM192,72a8,8,0,0,0,5.66-2.34l16-16a8,8,0,0,0-11.32-11.32l-16,16A8,8,0,0,0,192,72Zm5.66,114.34a8,8,0,0,0-11.32,11.32l16,16a8,8,0,0,0,11.32-11.32ZM48,128a8,8,0,0,0-8-8H16a8,8,0,0,0,0,16H40A8,8,0,0,0,48,128Zm80,80a8,8,0,0,0-8,8v24a8,8,0,0,0,16,0V216A8,8,0,0,0,128,208Zm112-88H216a8,8,0,0,0,0,16h24a8,8,0,0,0,0-16Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M122,40V16a6,6,0,0,1,12,0V40a6,6,0,0,1-12,0Zm68,88a62,62,0,1,1-62-62A62.07,62.07,0,0,1,190,128Zm-12,0a50,50,0,1,0-50,50A50.06,50.06,0,0,0,178,128ZM59.76,68.24a6,6,0,1,0,8.48-8.48l-16-16a6,6,0,0,0-8.48,8.48Zm0,119.52-16,16a6,6,0,1,0,8.48,8.48l16-16a6,6,0,1,0-8.48-8.48ZM192,70a6,6,0,0,0,4.24-1.76l16-16a6,6,0,0,0-8.48-8.48l-16,16A6,6,0,0,0,192,70Zm4.24,117.76a6,6,0,0,0-8.48,8.48l16,16a6,6,0,0,0,8.48-8.48ZM46,128a6,6,0,0,0-6-6H16a6,6,0,0,0,0,12H40A6,6,0,0,0,46,128Zm82,82a6,6,0,0,0-6,6v24a6,6,0,0,0,12,0V216A6,6,0,0,0,128,210Zm112-88H216a6,6,0,0,0,0,12h24a6,6,0,0,0,0-12Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M120,40V16a8,8,0,0,1,16,0V40a8,8,0,0,1-16,0Zm72,88a64,64,0,1,1-64-64A64.07,64.07,0,0,1,192,128Zm-16,0a48,48,0,1,0-48,48A48.05,48.05,0,0,0,176,128ZM58.34,69.66A8,8,0,0,0,69.66,58.34l-16-16A8,8,0,0,0,42.34,53.66Zm0,116.68-16,16a8,8,0,0,0,11.32,11.32l16-16a8,8,0,0,0-11.32-11.32ZM192,72a8,8,0,0,0,5.66-2.34l16-16a8,8,0,0,0-11.32-11.32l-16,16A8,8,0,0,0,192,72Zm5.66,114.34a8,8,0,0,0-11.32,11.32l16,16a8,8,0,0,0,11.32-11.32ZM48,128a8,8,0,0,0-8-8H16a8,8,0,0,0,0,16H40A8,8,0,0,0,48,128Zm80,80a8,8,0,0,0-8,8v24a8,8,0,0,0,16,0V216A8,8,0,0,0,128,208Zm112-88H216a8,8,0,0,0,0,16h24a8,8,0,0,0,0-16Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M124,40V16a4,4,0,0,1,8,0V40a4,4,0,0,1-8,0Zm64,88a60,60,0,1,1-60-60A60.07,60.07,0,0,1,188,128Zm-8,0a52,52,0,1,0-52,52A52.06,52.06,0,0,0,180,128ZM61.17,66.83a4,4,0,0,0,5.66-5.66l-16-16a4,4,0,0,0-5.66,5.66Zm0,122.34-16,16a4,4,0,0,0,5.66,5.66l16-16a4,4,0,0,0-5.66-5.66ZM192,68a4,4,0,0,0,2.83-1.17l16-16a4,4,0,1,0-5.66-5.66l-16,16A4,4,0,0,0,192,68Zm2.83,121.17a4,4,0,0,0-5.66,5.66l16,16a4,4,0,0,0,5.66-5.66ZM40,124H16a4,4,0,0,0,0,8H40a4,4,0,0,0,0-8Zm88,88a4,4,0,0,0-4,4v24a4,4,0,0,0,8,0V216A4,4,0,0,0,128,212Zm112-88H216a4,4,0,0,0,0,8h24a4,4,0,0,0,0-8Z"}))]]),XH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,48H180V36A28,28,0,0,0,152,8H104A28,28,0,0,0,76,36V48H40a12,12,0,0,0,0,24h4V208a20,20,0,0,0,20,20H192a20,20,0,0,0,20-20V72h4a12,12,0,0,0,0-24ZM100,36a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4V48H100Zm88,168H68V72H188ZM116,104v64a12,12,0,0,1-24,0V104a12,12,0,0,1,24,0Zm48,0v64a12,12,0,0,1-24,0V104a12,12,0,0,1,24,0Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M200,56V208a8,8,0,0,1-8,8H64a8,8,0,0,1-8-8V56Z",opacity:"0.2"}),r.createElement("path",{d:"M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM96,40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8v8H96Zm96,168H64V64H192ZM112,104v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM112,168a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm0-120H96V40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,50H174V40a22,22,0,0,0-22-22H104A22,22,0,0,0,82,40V50H40a6,6,0,0,0,0,12H50V208a14,14,0,0,0,14,14H192a14,14,0,0,0,14-14V62h10a6,6,0,0,0,0-12ZM94,40a10,10,0,0,1,10-10h48a10,10,0,0,1,10,10V50H94ZM194,208a2,2,0,0,1-2,2H64a2,2,0,0,1-2-2V62H194ZM110,104v64a6,6,0,0,1-12,0V104a6,6,0,0,1,12,0Zm48,0v64a6,6,0,0,1-12,0V104a6,6,0,0,1,12,0Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM96,40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8v8H96Zm96,168H64V64H192ZM112,104v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,52H172V40a20,20,0,0,0-20-20H104A20,20,0,0,0,84,40V52H40a4,4,0,0,0,0,8H52V208a12,12,0,0,0,12,12H192a12,12,0,0,0,12-12V60h12a4,4,0,0,0,0-8ZM92,40a12,12,0,0,1,12-12h48a12,12,0,0,1,12,12V52H92ZM196,208a4,4,0,0,1-4,4H64a4,4,0,0,1-4-4V60H196ZM108,104v64a4,4,0,0,1-8,0V104a4,4,0,0,1,8,0Zm48,0v64a4,4,0,0,1-8,0V104a4,4,0,0,1,8,0Z"}))]]),QH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,48H40a12,12,0,0,0,0,24h4V208a20,20,0,0,0,20,20H192a20,20,0,0,0,20-20V72h4a12,12,0,0,0,0-24ZM188,204H68V72H188ZM76,20A12,12,0,0,1,88,8h80a12,12,0,0,1,0,24H88A12,12,0,0,1,76,20Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M200,56V208a8,8,0,0,1-8,8H64a8,8,0,0,1-8-8V56Z",opacity:"0.2"}),r.createElement("path",{d:"M216,48H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM192,208H64V64H192ZM80,24a8,8,0,0,1,8-8h80a8,8,0,0,1,0,16H88A8,8,0,0,1,80,24Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,56a8,8,0,0,1-8,8h-8V208a16,16,0,0,1-16,16H64a16,16,0,0,1-16-16V64H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,56ZM88,32h80a8,8,0,0,0,0-16H88a8,8,0,0,0,0,16Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,50H40a6,6,0,0,0,0,12H50V208a14,14,0,0,0,14,14H192a14,14,0,0,0,14-14V62h10a6,6,0,0,0,0-12ZM194,208a2,2,0,0,1-2,2H64a2,2,0,0,1-2-2V62H194ZM82,24a6,6,0,0,1,6-6h80a6,6,0,0,1,0,12H88A6,6,0,0,1,82,24Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,48H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM192,208H64V64H192ZM80,24a8,8,0,0,1,8-8h80a8,8,0,0,1,0,16H88A8,8,0,0,1,80,24Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,52H40a4,4,0,0,0,0,8H52V208a12,12,0,0,0,12,12H192a12,12,0,0,0,12-12V60h12a4,4,0,0,0,0-8ZM196,208a4,4,0,0,1-4,4H64a4,4,0,0,1-4-4V60H196ZM84,24a4,4,0,0,1,4-4h80a4,4,0,0,1,0,8H88A4,4,0,0,1,84,24Z"}))]]),JH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M228,144v64a12,12,0,0,1-12,12H40a12,12,0,0,1-12-12V144a12,12,0,0,1,24,0v52H204V144a12,12,0,0,1,24,0ZM96.49,80.49,116,61v83a12,12,0,0,0,24,0V61l19.51,19.52a12,12,0,1,0,17-17l-40-40a12,12,0,0,0-17,0l-40,40a12,12,0,1,0,17,17Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,48V208H40V48A16,16,0,0,1,56,32H200A16,16,0,0,1,216,48Z",opacity:"0.2"}),r.createElement("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0ZM93.66,77.66,120,51.31V144a8,8,0,0,0,16,0V51.31l26.34,26.35a8,8,0,0,0,11.32-11.32l-40-40a8,8,0,0,0-11.32,0l-40,40A8,8,0,0,0,93.66,77.66Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0ZM88,80h32v64a8,8,0,0,0,16,0V80h32a8,8,0,0,0,5.66-13.66l-40-40a8,8,0,0,0-11.32,0l-40,40A8,8,0,0,0,88,80Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M222,144v64a6,6,0,0,1-6,6H40a6,6,0,0,1-6-6V144a6,6,0,0,1,12,0v58H210V144a6,6,0,0,1,12,0ZM92.24,76.24,122,46.49V144a6,6,0,0,0,12,0V46.49l29.76,29.75a6,6,0,0,0,8.48-8.48l-40-40a6,6,0,0,0-8.48,0l-40,40a6,6,0,0,0,8.48,8.48Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0ZM93.66,77.66,120,51.31V144a8,8,0,0,0,16,0V51.31l26.34,26.35a8,8,0,0,0,11.32-11.32l-40-40a8,8,0,0,0-11.32,0l-40,40A8,8,0,0,0,93.66,77.66Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M220,144v64a4,4,0,0,1-4,4H40a4,4,0,0,1-4-4V144a4,4,0,0,1,8,0v60H212V144a4,4,0,0,1,8,0ZM90.83,74.83,124,41.66V144a4,4,0,0,0,8,0V41.66l33.17,33.17a4,4,0,1,0,5.66-5.66l-40-40a4,4,0,0,0-5.66,0l-40,40a4,4,0,0,0,5.66,5.66Z"}))]]),e$=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M234.38,210a123.36,123.36,0,0,0-60.78-53.23,76,76,0,1,0-91.2,0A123.36,123.36,0,0,0,21.62,210a12,12,0,1,0,20.77,12c18.12-31.32,50.12-50,85.61-50s67.49,18.69,85.61,50a12,12,0,0,0,20.77-12ZM76,96a52,52,0,1,1,52,52A52.06,52.06,0,0,1,76,96Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M192,96a64,64,0,1,1-64-64A64,64,0,0,1,192,96Z",opacity:"0.2"}),r.createElement("path",{d:"M230.92,212c-15.23-26.33-38.7-45.21-66.09-54.16a72,72,0,1,0-73.66,0C63.78,166.78,40.31,185.66,25.08,212a8,8,0,1,0,13.85,8c18.84-32.56,52.14-52,89.07-52s70.23,19.44,89.07,52a8,8,0,1,0,13.85-8ZM72,96a56,56,0,1,1,56,56A56.06,56.06,0,0,1,72,96Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M230.93,220a8,8,0,0,1-6.93,4H32a8,8,0,0,1-6.92-12c15.23-26.33,38.7-45.21,66.09-54.16a72,72,0,1,1,73.66,0c27.39,8.95,50.86,27.83,66.09,54.16A8,8,0,0,1,230.93,220Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M229.19,213c-15.81-27.32-40.63-46.49-69.47-54.62a70,70,0,1,0-63.44,0C67.44,166.5,42.62,185.67,26.81,213a6,6,0,1,0,10.38,6C56.4,185.81,90.34,166,128,166s71.6,19.81,90.81,53a6,6,0,1,0,10.38-6ZM70,96a58,58,0,1,1,58,58A58.07,58.07,0,0,1,70,96Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M230.92,212c-15.23-26.33-38.7-45.21-66.09-54.16a72,72,0,1,0-73.66,0C63.78,166.78,40.31,185.66,25.08,212a8,8,0,1,0,13.85,8c18.84-32.56,52.14-52,89.07-52s70.23,19.44,89.07,52a8,8,0,1,0,13.85-8ZM72,96a56,56,0,1,1,56,56A56.06,56.06,0,0,1,72,96Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M227.46,214c-16.52-28.56-43-48.06-73.68-55.09a68,68,0,1,0-51.56,0c-30.64,7-57.16,26.53-73.68,55.09a4,4,0,0,0,6.92,4C55,184.19,89.62,164,128,164s73,20.19,92.54,54a4,4,0,0,0,3.46,2,3.93,3.93,0,0,0,2-.54A4,4,0,0,0,227.46,214ZM68,96a60,60,0,1,1,60,60A60.07,60.07,0,0,1,68,96Z"}))]]),t$=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M240.26,186.1,152.81,34.23h0a28.74,28.74,0,0,0-49.62,0L15.74,186.1a27.45,27.45,0,0,0,0,27.71A28.31,28.31,0,0,0,40.55,228h174.9a28.31,28.31,0,0,0,24.79-14.19A27.45,27.45,0,0,0,240.26,186.1Zm-20.8,15.7a4.46,4.46,0,0,1-4,2.2H40.55a4.46,4.46,0,0,1-4-2.2,3.56,3.56,0,0,1,0-3.73L124,46.2a4.77,4.77,0,0,1,8,0l87.44,151.87A3.56,3.56,0,0,1,219.46,201.8ZM116,136V104a12,12,0,0,1,24,0v32a12,12,0,0,1-24,0Zm28,40a16,16,0,1,1-16-16A16,16,0,0,1,144,176Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M215.46,216H40.54C27.92,216,20,202.79,26.13,192.09L113.59,40.22c6.3-11,22.52-11,28.82,0l87.46,151.87C236,202.79,228.08,216,215.46,216Z",opacity:"0.2"}),r.createElement("path",{d:"M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM222.93,203.8a8.5,8.5,0,0,1-7.48,4.2H40.55a8.5,8.5,0,0,1-7.48-4.2,7.59,7.59,0,0,1,0-7.72L120.52,44.21a8.75,8.75,0,0,1,15,0l87.45,151.87A7.59,7.59,0,0,1,222.93,203.8ZM120,144V104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,180Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM120,104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm8,88a12,12,0,1,1,12-12A12,12,0,0,1,128,192Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M235.07,189.09,147.61,37.22h0a22.75,22.75,0,0,0-39.22,0L20.93,189.09a21.53,21.53,0,0,0,0,21.72A22.35,22.35,0,0,0,40.55,222h174.9a22.35,22.35,0,0,0,19.6-11.19A21.53,21.53,0,0,0,235.07,189.09ZM224.66,204.8a10.46,10.46,0,0,1-9.21,5.2H40.55a10.46,10.46,0,0,1-9.21-5.2,9.51,9.51,0,0,1,0-9.72L118.79,43.21a10.75,10.75,0,0,1,18.42,0l87.46,151.87A9.51,9.51,0,0,1,224.66,204.8ZM122,144V104a6,6,0,0,1,12,0v40a6,6,0,0,1-12,0Zm16,36a10,10,0,1,1-10-10A10,10,0,0,1,138,180Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM222.93,203.8a8.5,8.5,0,0,1-7.48,4.2H40.55a8.5,8.5,0,0,1-7.48-4.2,7.59,7.59,0,0,1,0-7.72L120.52,44.21a8.75,8.75,0,0,1,15,0l87.45,151.87A7.59,7.59,0,0,1,222.93,203.8ZM120,144V104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,180Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M233.34,190.09,145.88,38.22h0a20.75,20.75,0,0,0-35.76,0L22.66,190.09a19.52,19.52,0,0,0,0,19.71A20.36,20.36,0,0,0,40.54,220H215.46a20.36,20.36,0,0,0,17.86-10.2A19.52,19.52,0,0,0,233.34,190.09ZM226.4,205.8a12.47,12.47,0,0,1-10.94,6.2H40.54a12.47,12.47,0,0,1-10.94-6.2,11.45,11.45,0,0,1,0-11.72L117.05,42.21a12.76,12.76,0,0,1,21.9,0L226.4,194.08A11.45,11.45,0,0,1,226.4,205.8ZM124,144V104a4,4,0,0,1,8,0v40a4,4,0,0,1-8,0Zm12,36a8,8,0,1,1-8-8A8,8,0,0,1,136,180Z"}))]]),n$=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,192a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,212Zm-12-80V80a12,12,0,0,1,24,0v52a12,12,0,0,1-24,0Zm28,40a16,16,0,1,1-16-16A16,16,0,0,1,144,172Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),r.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm-8-80V80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,172Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm-8,56a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm8,104a12,12,0,1,1,12-12A12,12,0,0,1,128,184Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218Zm-6-82V80a6,6,0,0,1,12,0v56a6,6,0,0,1-12,0Zm16,36a10,10,0,1,1-10-10A10,10,0,0,1,138,172Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm-8-80V80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,172Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220Zm-4-84V80a4,4,0,0,1,8,0v56a4,4,0,0,1-8,0Zm12,36a8,8,0,1,1-8-8A8,8,0,0,1,136,172Z"}))]]),r$=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208.49,191.51a12,12,0,0,1-17,17L128,145,64.49,208.49a12,12,0,0,1-17-17L111,128,47.51,64.49a12,12,0,0,1,17-17L128,111l63.51-63.52a12,12,0,0,1,17,17L145,128Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z",opacity:"0.2"}),r.createElement("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM181.66,170.34a8,8,0,0,1-11.32,11.32L128,139.31,85.66,181.66a8,8,0,0,1-11.32-11.32L116.69,128,74.34,85.66A8,8,0,0,1,85.66,74.34L128,116.69l42.34-42.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M204.24,195.76a6,6,0,1,1-8.48,8.48L128,136.49,60.24,204.24a6,6,0,0,1-8.48-8.48L119.51,128,51.76,60.24a6,6,0,0,1,8.48-8.48L128,119.51l67.76-67.75a6,6,0,0,1,8.48,8.48L136.49,128Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M202.83,197.17a4,4,0,0,1-5.66,5.66L128,133.66,58.83,202.83a4,4,0,0,1-5.66-5.66L122.34,128,53.17,58.83a4,4,0,0,1,5.66-5.66L128,122.34l69.17-69.17a4,4,0,1,1,5.66,5.66L133.66,128Z"}))]]),a$=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M168.49,104.49,145,128l23.52,23.51a12,12,0,0,1-17,17L128,145l-23.51,23.52a12,12,0,0,1-17-17L111,128,87.51,104.49a12,12,0,0,1,17-17L128,111l23.51-23.52a12,12,0,0,1,17,17ZM236,128A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),r.createElement("path",{d:"M165.66,101.66,139.31,128l26.35,26.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm37.66,130.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M164.24,100.24,136.48,128l27.76,27.76a6,6,0,1,1-8.48,8.48L128,136.48l-27.76,27.76a6,6,0,0,1-8.48-8.48L119.52,128,91.76,100.24a6,6,0,0,1,8.48-8.48L128,119.52l27.76-27.76a6,6,0,0,1,8.48,8.48ZM230,128A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M165.66,101.66,139.31,128l26.35,26.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M162.83,98.83,133.66,128l29.17,29.17a4,4,0,0,1-5.66,5.66L128,133.66,98.83,162.83a4,4,0,0,1-5.66-5.66L122.34,128,93.17,98.83a4,4,0,0,1,5.66-5.66L128,122.34l29.17-29.17a4,4,0,1,1,5.66,5.66ZM228,128A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"}))]]),s$=r.createContext({color:"currentColor",size:"1em",weight:"regular",mirrored:!1}),ze=r.forwardRef((e,t)=>{const{alt:n,color:s,size:l,weight:c,mirrored:u,children:f,weights:h,...m}=e,{color:p="currentColor",size:v,weight:y="regular",mirrored:x=!1,...b}=r.useContext(s$);return r.createElement("svg",{ref:t,xmlns:"http://www.w3.org/2000/svg",width:l??v,height:l??v,fill:s??p,viewBox:"0 0 256 256",transform:u||x?"scale(-1, 1)":void 0,...b,...m},!!n&&r.createElement("title",null,n),f,h.get(c??y))});ze.displayName="IconBase";const R5=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:YT}));R5.displayName="ApertureIcon";const o$=R5,P5=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:qT}));P5.displayName="ArchiveIcon";const l$=P5,L5=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:XT}));L5.displayName="ArrowCircleUpIcon";const T5=L5,H5=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:QT}));H5.displayName="ArrowClockwiseIcon";const gp=H5,$5=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:JT}));$5.displayName="ArrowCounterClockwiseIcon";const Fh=$5,D5=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:eH}));D5.displayName="ArrowLeftIcon";const vp=D5,F5=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:tH}));F5.displayName="ArrowLineUpIcon";const i$=F5,I5=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:nH}));I5.displayName="ArrowRightIcon";const Qc=I5,O5=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:rH}));O5.displayName="ArrowSquareOutIcon";const fd=O5,_5=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:aH}));_5.displayName="ArrowUpIcon";const c$=_5,Z5=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:sH}));Z5.displayName="ArrowsClockwiseIcon";const f1=Z5,V5=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:oH}));V5.displayName="ArrowsDownUpIcon";const u$=V5,z5=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:lH}));z5.displayName="ArrowsLeftRightIcon";const d$=z5,B5=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:iH}));B5.displayName="BellIcon";const Hg=B5,U5=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:cH}));U5.displayName="BookmarkSimpleIcon";const hd=U5,W5=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:uH}));W5.displayName="BroomIcon";const f$=W5,G5=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:dH}));G5.displayName="CaretDownIcon";const ki=G5,K5=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:fH}));K5.displayName="CaretLeftIcon";const Fi=K5,Y5=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:hH}));Y5.displayName="CaretRightIcon";const md=Y5,q5=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:mH}));q5.displayName="CheckIcon";const la=q5,X5=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:pH}));X5.displayName="CheckCircleIcon";const h$=X5,Q5=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:gH}));Q5.displayName="CircleIcon";const m$=Q5,J5=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:vH}));J5.displayName="CopyIcon";const $g=J5,ew=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:yH}));ew.displayName="CopySimpleIcon";const p$=ew,tw=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:xH}));tw.displayName="DatabaseIcon";const g$=tw,nw=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:wH}));nw.displayName="DotsThreeIcon";const rw=nw,aw=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:bH}));aw.displayName="DownloadSimpleIcon";const sw=aw,ow=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:EH}));ow.displayName="EyeIcon";const v$=ow,lw=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:CH}));lw.displayName="FilmSlateIcon";const yp=lw,iw=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:SH}));iw.displayName="FolderSimpleIcon";const y$=iw,cw=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:jH}));cw.displayName="FrameCornersIcon";const x$=cw,uw=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:kH}));uw.displayName="GearSixIcon";const w$=uw,dw=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:AH}));dw.displayName="GiftIcon";const b$=dw,fw=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:NH}));fw.displayName="HouseIcon";const E$=fw,hw=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:MH}));hw.displayName="IdentificationBadgeIcon";const xp=hw,mw=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:RH}));mw.displayName="ImageSquareIcon";const ha=mw,pw=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:PH}));pw.displayName="InfoIcon";const wp=pw,gw=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:LH}));gw.displayName="KeyIcon";const vw=gw,yw=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:TH}));yw.displayName="LightningIcon";const N1=yw,xw=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:HH}));xw.displayName="MagnifyingGlassIcon";const Jc=xw,ww=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:$H}));ww.displayName="MountainsIcon";const C$=ww,bw=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:DH}));bw.displayName="PackageIcon";const bp=bw,Ew=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:FH}));Ew.displayName="PaintBrushBroadIcon";const S$=Ew,Cw=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:IH}));Cw.displayName="PaletteIcon";const j$=Cw,Sw=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:OH}));Sw.displayName="PencilLineIcon";const k$=Sw,jw=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:_H}));jw.displayName="PiggyBankIcon";const A$=jw,kw=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:ZH}));kw.displayName="PlusIcon";const Wn=kw,Aw=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:VH}));Aw.displayName="PlusCircleIcon";const N$=Aw,Nw=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:zH}));Nw.displayName="SidebarSimpleIcon";const M$=Nw,Mw=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:BH}));Mw.displayName="SignInIcon";const R$=Mw,Rw=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:UH}));Rw.displayName="SlidersHorizontalIcon";const Pw=Rw,Lw=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:WH}));Lw.displayName="SparkleIcon";const P$=Lw,Tw=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:GH}));Tw.displayName="StackIcon";const Hw=Tw,$w=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:KH}));$w.displayName="StarIcon";const Ih=$w,Dw=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:YH}));Dw.displayName="StorefrontIcon";const L$=Dw,Fw=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:qH}));Fw.displayName="SunIcon";const T$=Fw,Iw=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:XH}));Iw.displayName="TrashIcon";const Ep=Iw,Ow=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:QH}));Ow.displayName="TrashSimpleIcon";const pd=Ow,_w=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:JH}));_w.displayName="UploadSimpleIcon";const Zw=_w,Vw=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:e$}));Vw.displayName="UserIcon";const H$=Vw,zw=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:t$}));zw.displayName="WarningIcon";const Bw=zw,Uw=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:n$}));Uw.displayName="WarningCircleIcon";const Su=Uw,Ww=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:r$}));Ww.displayName="XIcon";const Mn=Ww,Gw=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:a$}));Gw.displayName="XCircleIcon";const Kw=Gw,Yw=r.createContext({push:()=>{}}),rr=()=>r.useContext(Yw),Dg=4;function $$({children:e}){const[t,n]=r.useState([]),s=r.useRef(1),l=r.useCallback(u=>n(f=>f.filter(h=>h.id!==u)),[]),c=r.useCallback(u=>{const f=s.current++;n(h=>{const m=[...h,{...u,id:f}];if(m.length<=Dg)return m;const p=[...m];for(;p.length>Dg;){const v=p.findIndex(y=>{var x;return y.kind!=="error"&&!y.action&&!((x=y.actions)!=null&&x.length)});p.splice(v===-1?0:v,1)}return p}),window.setTimeout(()=>l(f),u.kind==="error"?9e3:5e3)},[l]);return o.jsxs(Yw.Provider,{value:{push:c},children:[e,o.jsx("div",{className:"sc-toasts",role:"status","aria-live":"polite",children:t.map(u=>{var f;return o.jsxs("div",{className:"sc-toast",children:[u.kind==="success"?o.jsx(h$,{className:"sc-toast-ok",size:17,weight:"fill"}):o.jsx(Su,{className:"sc-toast-err",size:17,weight:"fill"}),o.jsxs("div",{style:{minWidth:0,flex:1},children:[o.jsx("b",{children:u.title}),u.detail&&o.jsx("small",{children:u.detail.slice(0,140)}),((f=u.actions)!=null&&f.length?u.actions:u.action?[u.action]:[]).slice(0,2).map(h=>o.jsx("button",{type:"button",className:"sc-toast-act",onClick:()=>{h.onClick(),l(u.id)},children:h.label},h.label))]}),o.jsx("button",{type:"button",className:"sc-toast-x",onClick:()=>l(u.id),"aria-label":"Dismiss",children:o.jsx(Mn,{size:13})})]},u.id)})})]})}async function $e(e,t,n){const s=await fetch(t,{method:e,headers:n!==void 0?{"content-type":"application/json"}:void 0,body:n!==void 0?JSON.stringify(n):void 0});if(!s.ok){let l=`HTTP ${s.status}`;try{const c=await s.json();l=c.error??l,c.details&&(l+=`: ${c.details.join("; ")}`)}catch{}throw Object.assign(new Error(l),{status:s.status,method:e,url:t})}return s.json()}const D$=(e,t,n)=>$e("DELETE",`/api/brands/${e}/${t}/${n}`),F$=(e,t)=>D$(e,"products",t);async function qw(e,t,n={}){const s=new FormData;n.role&&s.append("role",n.role),n.background&&s.append("background",n.background),s.append("file",t);const l=await fetch(`/api/brands/${e}/logos`,{method:"POST",body:s});if(!l.ok)throw new Error((await l.json().catch(()=>({}))).error??`HTTP ${l.status}`);return l.json()}const I$=e=>`/api/brands/${e}/export`;async function O$(e,t,n,s){const l=new FormData;l.append("file",n);const c=await fetch(`/api/brands/${e}/products/${t}/shots`,{method:"POST",body:l});if(!c.ok)throw new Error((await c.json().catch(()=>({}))).error??`HTTP ${c.status}`);return c.json()}async function Xw(e){const t=new FormData;t.append("file",e);const n=await fetch("/api/images",{method:"POST",body:t});if(!n.ok)throw new Error((await n.json().catch(()=>({}))).error??`HTTP ${n.status}`);return(await n.json()).hash}function _$(e,t){try{fetch(`/api/brands/${e}`,{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify({brand:t}),keepalive:!0})}catch{}}const Pt=e=>`/api/images/${e}`,Un=e=>e!=null&&e.startsWith("asset:")?Pt(e.slice(6)):null;async function Z$(e,t,n){const s=await fetch("/api/export",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({imageHash:e,presets:t,baseName:n})});if(!s.ok)throw new Error(`export failed: HTTP ${s.status}`);const l=await s.blob(),c=document.createElement("a");c.href=URL.createObjectURL(l),c.download=`${n||"scenri-export"}.zip`,c.click(),URL.revokeObjectURL(c.href)}function Qw(e){return e.every(t=>t.kind==="root")}let Jw=new Map;function V$(e){const t=new Map;for(const n of e)for(const s of n.legacyNames??[])s!==n.name&&t.set(s,n.name);Jw=t}function nn(e){var s;const t=(s=/^\[([^\]]+)\]/.exec(e.prompt))==null?void 0:s[1];return t?Jw.get(t)??t:e.prompt.startsWith("Remove all overlaid marketing text")||e.prompt.startsWith("Remove ALL text")?"Text lift":e.prompt.trim().split(/\s+/).slice(0,6).join(" ")||(e.kind==="edit"?"Edit":"Generation")}const ke={brands:()=>$e("GET","/api/brands"),createBrand:e=>$e("POST","/api/brands",{brand:e}),brandFromUrl:e=>$e("POST","/api/brands/from-url",{url:e}),updateBrand:(e,t)=>$e("PUT",`/api/brands/${e}`,{brand:t}),deleteBrand:e=>$e("DELETE",`/api/brands/${e}`),brandRules:e=>$e("GET",`/api/brands/${e}/directives`),refreshBrandFromUrl:(e,t)=>$e("POST",`/api/brands/${e}/refresh-from-url`,t?{url:t}:{}),updateLogo:(e,t,n)=>$e("PATCH",`/api/brands/${e}/logos/${t}`,n),deleteLogo:(e,t)=>$e("DELETE",`/api/brands/${e}/logos/${t}`),projects:e=>$e("GET",`/api/projects?brandId=${encodeURIComponent(e)}`),createProject:(e,t)=>$e("POST","/api/projects",{brandId:e,name:t}),tree:e=>$e("GET",`/api/projects/${e}/tree`),activity:e=>$e("GET",`/api/brands/${e}/activity`),workspace:e=>$e("GET",`/api/brands/${e}/workspace`),sets:e=>$e("GET",`/api/brands/${e}/sets`),createSet:(e,t)=>$e("POST",`/api/brands/${e}/sets`,{name:t}),renameSet:(e,t)=>$e("PATCH",`/api/sets/${e}`,{name:t}),deleteSet:e=>$e("DELETE",`/api/sets/${e}`),addToSet:(e,t)=>$e("POST",`/api/sets/${e}/nodes`,{nodeIds:t}),removeFromSet:(e,t)=>$e("DELETE",`/api/sets/${e}/nodes/${t}`),engines:()=>$e("GET","/api/engines"),codexStatus:()=>$e("GET","/api/engines/codex/status"),installCodex:()=>$e("POST","/api/engines/codex/install"),loginCodex:()=>$e("POST","/api/engines/codex/login"),setCap:(e,t)=>$e("PUT","/api/caps",{engineId:e,capUsd:t}),addNode:e=>$e("POST","/api/nodes",e),cancelNode:e=>$e("POST",`/api/nodes/${e}/cancel`),scenes:()=>$e("GET","/api/scenes"),presenters:()=>$e("GET","/api/presenters"),presenterFrames:e=>$e("GET",`/api/presenter-previews/${e}`),demoProducts:()=>$e("GET","/api/demo-products"),demoProductFrames:e=>$e("GET",`/api/demo-product-previews/${e}`),showcase:()=>$e("GET","/api/showcase"),exportPresets:()=>$e("GET","/api/export/presets"),previewBrief:(e,t,n,s)=>$e("POST","/api/brief/preview",{brief:e,engineId:t,brandId:n,...s?{parentId:s}:{}}),keep:(e,t)=>$e("POST",`/api/nodes/${e}/keep`,{kept:t}),archiveNode:(e,t)=>$e("POST",`/api/nodes/${e}/archive`,{archived:t}),deleteNode:e=>$e("DELETE",`/api/nodes/${e}`),deleteNodesBatch:e=>$e("POST","/api/nodes/delete-batch",{nodeIds:e}),diff:(e,t)=>$e("POST","/api/diff",{imageA:e,imageB:t}),settings:()=>$e("GET","/api/settings"),saveSettings:e=>$e("PUT","/api/settings",e),costs:()=>$e("GET","/api/costs/summary"),home:()=>$e("GET","/api/home"),reveal:()=>$e("POST","/api/system/reveal"),version:()=>$e("GET","/api/version"),updateStatus:()=>$e("GET","/api/update/status"),updateCheck:()=>$e("POST","/api/update/check"),updateApply:()=>$e("POST","/api/update/apply"),updateRestart:()=>$e("POST","/api/update/restart"),releaseNotes:()=>$e("GET","/api/release/notes"),releaseSeen:e=>$e("POST","/api/release/seen",{version:e}),sceneFrames:e=>$e("GET",`/api/scene-previews/${e}`),deleteData:e=>$e("DELETE",`/api/data?scope=${e}`),productsLibrary:e=>$e("GET",`/api/brands/${e}/products-library`),catalogImport:(e,t)=>$e("POST",`/api/brands/${e}/catalog/import`,{url:t}),catalogJob:(e,t)=>$e("GET",`/api/brands/${e}/catalog/jobs/${t}`),catalogJobs:e=>$e("GET",`/api/brands/${e}/catalog/jobs`),cancelCatalogJob:(e,t)=>$e("POST",`/api/brands/${e}/catalog/jobs/${t}/cancel`),deleteCatalogProduct:(e,t)=>$e("DELETE",`/api/brands/${e}/catalog/products/${t}`),updateProduct:(e,t,n)=>$e("PATCH",`/api/brands/${e}/products/${t}`,n),updateCatalogProduct:(e,t,n)=>$e("PATCH",`/api/brands/${e}/catalog/products/${t}`,n),setProductShots:(e,t,n)=>$e("PUT",`/api/brands/${e}/products/${t}/shots`,{files:n}),assetBuildCapabilities:()=>$e("GET","/api/asset-builds/capabilities"),startAssetBuild:(e,t)=>$e("POST",`/api/brands/${e}/asset-builds`,t),assetBuild:(e,t)=>$e("GET",`/api/brands/${e}/asset-builds/${t}`),assetBuilds:e=>$e("GET",`/api/brands/${e}/asset-builds`),cancelAssetBuild:(e,t)=>$e("POST",`/api/brands/${e}/asset-builds/${t}/cancel`),deleteAssetBuild:(e,t)=>$e("DELETE",`/api/brands/${e}/asset-builds/${t}`),createProduct:(e,t)=>$e("POST",`/api/brands/${e}/products`,t),createPresenter:(e,t)=>$e("POST",`/api/brands/${e}/presenters`,t),updatePresenter:(e,t,n)=>$e("PATCH",`/api/brands/${e}/presenters/${t}`,n),deletePresenter:(e,t)=>$e("DELETE",`/api/brands/${e}/presenters/${t}`),createScene:(e,t)=>$e("POST",`/api/brands/${e}/scenes`,t),updateScene:(e,t,n)=>$e("PATCH",`/api/brands/${e}/scenes/${t}`,n),deleteScene:(e,t)=>$e("DELETE",`/api/brands/${e}/scenes/${t}`),generateScenePreview:(e,t)=>$e("POST",`/api/brands/${e}/scenes/${t}/preview`),rereadScene:(e,t,n)=>$e("POST",`/api/brands/${e}/scenes/${t}/reread`,{correction:n})},Ye={root:"/",setup:"/setup",brand:"/:brandSlug",kit:"/:brandSlug/kit",products:"/:brandSlug/products",product:"/:brandSlug/products/:productId",scenes:"/:brandSlug/scenes",scene:"/:brandSlug/scenes/:sceneId",presenters:"/:brandSlug/presenters",presenter:"/:brandSlug/presenters/:presenterId",hub:"/:brandSlug/create",hubShot:"/:brandSlug/create/shots/:shotId",set:"/:brandSlug/sets/:setSlug",setShot:"/:brandSlug/sets/:setSlug/shots/:shotId",legacy:"/b/*",notFound:"*"},ho=e=>ca(Ye.brand,{brandSlug:e.slug}),z$=e=>ca(Ye.kit,{brandSlug:e.slug}),h1=e=>ca(Ye.products,{brandSlug:e.slug}),sa=(e,t)=>ca(Ye.product,{brandSlug:e.slug,productId:t}),Hc=e=>ca(Ye.scenes,{brandSlug:e.slug}),ia=(e,t)=>ca(Ye.scene,{brandSlug:e.slug,sceneId:t}),$c=e=>ca(Ye.presenters,{brandSlug:e.slug}),Ka=(e,t)=>ca(Ye.presenter,{brandSlug:e.slug,presenterId:t}),hr=e=>ca(Ye.hub,{brandSlug:e.slug}),kc=(e,t)=>ca(Ye.set,{brandSlug:e.slug,setSlug:t.slug}),gd=(e,t,n)=>t?ca(Ye.setShot,{brandSlug:e.slug,setSlug:t.slug,shotId:n}):ca(Ye.hubShot,{brandSlug:e.slug,shotId:n});function B$(e,t=""){const[,,n,...s]=e.split("/");if(!n)return Ye.root;const l=`/${n}${U$(s)}`;return t?l+t:l}function U$(e){const[t,n,s,l]=e;return t==="create"?s&&n==="n"?`/create/shots/${s}`:"/create":t==="s"&&n?l&&s==="n"?`/sets/${n}/shots/${l}`:`/sets/${n}`:t==="brand"?"/kit":t==="p"?"/create":t==="n"&&n?`/create/shots/${n}`:e.length?`/${e.join("/")}`:""}const D2="Scenri",Fg=" - ",Ig=40,W$=[["whatsnew","What's new"],["setup","Providers"],["settings","Settings"]],G$=[[Ye.setup,"Set up",!1],[Ye.hubShot,"Shot",!1],[Ye.setShot,"Shot",!1],[Ye.hub,"Create",!1],[Ye.set,"Create",!0],[Ye.kit,"Brand kit",!1],[Ye.product,"Products",!0],[Ye.products,"Products",!1],[Ye.scene,"Scenes",!0],[Ye.scenes,"Scenes",!1],[Ye.presenter,"Presenters",!0],[Ye.presenters,"Presenters",!1],[Ye.brand,"Home",!1]];function K$(e){if(!e)return null;const t=e.replace(/[\u0000-\u001F\u007F-\u009F]/g," ").replace(/\s+/g," ").trim();return t?t.length>Ig?`${t.slice(0,Ig-1).trimEnd()}…`:t:null}function Y$(e,t="",n=null){const s=new URLSearchParams(t);for(const[l,c]of W$)if(s.has(l))return c+Fg+D2;for(const[l,c,u]of G$)if(wi(l,e))return((u?K$(n):null)??c)+Fg+D2;return D2}const e9=r.createContext(null);function q$(){const{pathname:e,search:t}=rn(),[n,s]=r.useState(null);return r.useEffect(()=>{document.title=Y$(e,t,n)},[e,t,n]),s}function vd(e){const t=r.useContext(e9);r.useEffect(()=>{if(t)return t(e??null),()=>t(null)},[t,e])}const X$={scenes:[],collections:[],verticals:[],loaded:!1,error:!1};function Q$(){const[e,t]=r.useState(X$),[n,s]=r.useState(0);r.useEffect(()=>{let c=!0;return ke.scenes().then(u=>{V$(u.scenes),c&&t({scenes:u.scenes,collections:u.collections,verticals:u.verticals,loaded:!0,error:!1})}).catch(()=>{c&&t(u=>({...u,loaded:!0,error:!0}))}),()=>{c=!1}},[n]);const l=r.useCallback(()=>{t(c=>({...c,loaded:!1,error:!1})),s(c=>c+1)},[]);return{...e,refetch:l}}const J$={presenters:[],categories:[],styles:[],loaded:!1,error:!1};function eD(){const[e,t]=r.useState(J$),[n,s]=r.useState(0);r.useEffect(()=>{let c=!0;return ke.presenters().then(u=>{c&&t({presenters:u.presenters,categories:u.categories,styles:u.styles,loaded:!0,error:!1})}).catch(()=>{c&&t(u=>({...u,loaded:!0,error:!0}))}),()=>{c=!1}},[n]);const l=r.useCallback(()=>{t(c=>({...c,loaded:!1,error:!1})),s(c=>c+1)},[]);return{...e,refetch:l}}const tD={demoProducts:[],categories:[],loaded:!1,error:!1};function nD(){const[e,t]=r.useState(tD),[n,s]=r.useState(0);r.useEffect(()=>{let c=!0;return ke.demoProducts().then(u=>{c&&t({demoProducts:u.demoProducts,categories:u.categories,loaded:!0,error:!1})}).catch(()=>{c&&t(u=>({...u,loaded:!0,error:!0}))}),()=>{c=!1}},[n]);const l=r.useCallback(()=>{t(c=>({...c,loaded:!1,error:!1})),s(c=>c+1)},[]);return{...e,refetch:l}}const rD={showcase:[],categories:[],loaded:!1,error:!1};function aD(){const[e,t]=r.useState(rD),[n,s]=r.useState(0);r.useEffect(()=>{let c=!0;return ke.showcase().then(u=>{c&&t({showcase:u.showcase,categories:u.categories,loaded:!0,error:!1})}).catch(()=>{c&&t(u=>({...u,loaded:!0,error:!0}))}),()=>{c=!1}},[n]);const l=r.useCallback(()=>{t(c=>({...c,loaded:!1,error:!1})),s(c=>c+1)},[]);return{...e,refetch:l}}function yd(){const{open:e}=Ps("settings");return r.useCallback((t="brand")=>e(t),[e])}const Og="codex-cli";function xd(){const{open:e}=Ps("setup");return r.useCallback((t=Og)=>{e(typeof t=="string"?t:Og)},[e])}function ju(e){var t;e.preventDefault(),(t=e.currentTarget)==null||t.focus({preventScroll:!0})}function Cp({failure:e,density:t,onRetry:n,dismiss:s}){const l=yd(),c=xd(),{remedy:u}=e,f=t==="tile",h=()=>{u&&(u.opens==="setup"?c("codex-cli"):l(u.opens))},m=n&&e.retryable,p=x=>f?`sc-s${x?" sc-s-primary":""}`:`sc-btn ${x?"sc-btn-primary":"sc-btn-ghost"}`,v=!f&&!!e.fix,y=!f&&!!e.raw;return o.jsxs("div",{className:"sc-fail","data-density":t,"data-kind":e.kind,"data-long":e.title.length>90||void 0,role:"alert",children:[o.jsx("span",{className:"sc-fail-ic","aria-hidden":!0,children:o.jsx(Su,{size:f?15:21,weight:"fill"})}),o.jsxs("div",{className:"sc-fail-txt",children:[o.jsx("b",{children:e.title}),v&&o.jsx("small",{children:e.fix})]}),(u||m||s)&&o.jsxs("div",{className:"sc-fail-acts",children:[u&&o.jsx("button",{type:"button",className:p(!0),onClick:h,children:u.label}),m&&o.jsxs("button",{type:"button",className:p(!u),onClick:n,children:[o.jsx(Fh,{size:f?12:14})," Try again"]}),s&&o.jsx("button",{type:"button",className:"sc-fail-alt",onClick:s.onClick,children:s.label})]}),y&&o.jsxs("details",{className:"sc-fail-raw",children:[o.jsx("summary",{children:"Details"}),o.jsx("pre",{children:e.raw})]})]})}function Sp({failure:e,action:t,tone:n="error"}){return o.jsx("div",{className:"sc-failrow","data-tone":n,role:n==="error"?"alert":"status",children:o.jsxs("div",{className:"sc-banner","data-tone":n==="error"?"error":void 0,children:[o.jsx("span",{className:"sc-banner-ic",children:n==="error"?o.jsx(Su,{size:16,weight:"fill"}):o.jsx(wp,{size:16,weight:"fill"})}),o.jsxs("span",{className:"sc-banner-txt",children:[o.jsx("b",{children:e.title}),e.fix&&o.jsx("small",{children:e.fix})]}),t]})})}const t9="the engine",sD=[{re:/codex.*(not logged in|login required|\b401\b|unauthorized|token.*expired)/i,kind:"auth",title:()=>"Codex is signed out on this machine.",fix:"Sign in with your ChatGPT account, then run this again.",remedy:{label:"Sign in",opens:"setup"},retryable:!1},{re:/HTTP 401\b|missing authentication|no auth credentials|invalid api key|unauthorized/i,kind:"auth",title:e=>`${za(e)} did not accept your API key.`,fix:"Add or replace the key, then run this again.",remedy:{label:"Add key",opens:"engines"},retryable:!1},{re:/HTTP 403\b|forbidden/i,kind:"auth",title:e=>`${za(e)} refused this key.`,fix:"It may not cover the model this shot asked for.",remedy:{label:"Check key",opens:"engines"},retryable:!1},{re:/spend cap for .*would exceed it|spend cap for/i,kind:"budget",title:e=>`This would go past your monthly cap for ${e}.`,fix:"Raise the cap, or wait for the month to roll over.",remedy:{label:"Open budget",opens:"budget"},retryable:!1},{re:/HTTP 402\b|insufficient (credit|funds|balance)|out of credit|billing|payment required/i,kind:"credit",title:e=>`${za(e)} is out of credit.`,fix:"Top up with the provider, then run this again.",remedy:{label:"Open engines",opens:"engines"},retryable:!1},{re:/HTTP 429\b|rate.?limit|too many requests/i,kind:"rate",title:e=>`${za(e)} is rate limiting this key.`,fix:"Give it a minute, then try again.",retryable:!0},{re:/moderation|content policy|safety system|flagged|violat(es|ion)|blocked by/i,kind:"policy",title:e=>`${za(e)} declined this brief.`,fix:"Reword what you asked for and run it again.",retryable:!1},{re:/cannot carry enough reference images/i,kind:"references",title:()=>"",remedy:{label:"Choose engine",opens:"engines"},retryable:!1},{re:/cannot produce the requested aspect ratio|engine returned \d+x\d+ for a \d+x\d+ request/i,kind:"format",title:e=>`${za(e)} cannot make this shape.`,fix:"Pick another format, or an engine that can.",remedy:{label:"Choose engine",opens:"engines"},retryable:!1},{re:/HTTP 404\b|model not found|no endpoints found|no allowed providers/i,kind:"model",title:e=>`${za(e)} has no model for this shot.`,fix:"Pick another engine in Settings.",remedy:{label:"Choose engine",opens:"engines"},retryable:!1},{re:/failed to spawn codex|codex.*enoent|command not found/i,kind:"setup",title:()=>"Codex is not installed on this machine.",fix:"Run setup once and this works from then on.",remedy:{label:"Set up Codex",opens:"setup"},retryable:!1},{re:/could not verify codex/i,kind:"setup",title:()=>"Scenri could not verify Codex.",fix:"Open setup and check again. If Codex was just installed, restart Scenri.",remedy:{label:"Check Codex",opens:"setup"},retryable:!0},{re:/codex cli .* is too old|Scenri needs \d+\.\d+\.\d+ or newer/i,kind:"setup",title:()=>"Codex CLI needs an update.",fix:"Update Codex, then run this again.",remedy:{label:"Update Codex",opens:"setup"},retryable:!1},{re:/\brun aborted\b/i,kind:"cancelled",title:()=>"You stopped this shot.",fix:"The brief is kept. Run it again whenever.",retryable:!0},{re:/produced no output for \d+s/i,kind:"timeout",title:()=>"Codex never started answering.",fix:"Try again. If it keeps happening, run Codex once in a terminal to check it still works.",retryable:!0},{re:/Codex CLI timed out after/i,kind:"timeout",title:()=>"Codex ran out of time on this shot.",fix:"Try again. Fewer variants or fewer reference photos finish faster.",retryable:!0},{re:/generation timed out after \d+ minutes?/i,kind:"timeout",title:()=>"This run hit the overall time limit.",fix:"Try again, with fewer variants if it repeats.",retryable:!0},{re:/timed out|ETIMEDOUT/i,kind:"timeout",title:e=>`${za(e)} took too long to answer.`,fix:"Try again.",retryable:!0},{re:/ENOTFOUND|ECONNREFUSED|ECONNRESET|EAI_AGAIN|fetch failed|network error/i,kind:"network",title:e=>`Could not reach ${e}.`,fix:"Check your connection, then try again.",retryable:!0},{re:/interrupted\W+server restarted/i,kind:"restarted",title:()=>"Scenri restarted while this was rendering.",fix:"The shot was lost, not the brief. Run it again.",retryable:!0},{re:/HTTP 5\d\d\b|internal server error|bad gateway|service unavailable|overloaded|upstream/i,kind:"server",title:e=>`${za(e)} had a problem on its end.`,fix:"Nothing wrong with your brief. Try again shortly.",retryable:!0},{re:/produced no images|returned no image|no images returned|finished but produced no/i,kind:"empty",title:e=>`${za(e)} finished without making a picture.`,fix:"Run it again. This usually clears on a second try.",retryable:!0}];function za(e){return e===t9?"The engine":e}function bo(e,t){const n=(e??"").trim(),s=(t??"").replace(/\s*\(BYOK\)\s*$/i,"").trim()||t9;if(!n)return{kind:"unknown",title:"This shot did not finish.",raw:"",retryable:!0};for(const l of sD){if(!l.re.test(n))continue;const c=l.title(s)||oD(n);return{kind:l.kind,title:c,fix:l.fix,raw:n,remedy:l.remedy,retryable:l.retryable}}return{kind:"unknown",title:"This shot did not finish.",raw:n,retryable:!0}}function n9(){return{kind:"cancelled",title:"You stopped this shot.",fix:"The brief is kept. Run it again whenever.",raw:"",retryable:!0}}function tn(e,t,n){const s=e instanceof Error?e.message:typeof e=="string"?e:String((e==null?void 0:e.message)??e),l=bo(s,n),c=l.kind==="unknown"?l.raw||void 0:[l.title,l.fix].filter(Boolean).join(" ");return{kind:"error",title:t,detail:c}}function oD(e){const t=e.trim();if(!t)return t;const n=t[0].toUpperCase()+t.slice(1);return/[.!?]$/.test(n)?n:`${n}.`}function r9(e){return{get(t){try{return e().getItem(t)}catch{return null}},set(t,n){try{e().setItem(t,n)}catch{}},del(t){try{e().removeItem(t)}catch{}}}}const Ii=r9(()=>localStorage),ku=r9(()=>sessionStorage),a9=720*60*60*1e3;function s9(e){return e?e.phase==="ready"?e.blockReason!=="dev"&&e.blockReason!=="unsupervised"&&e.blockReason!=="launcher-too-old":e.canApply:!1}function lD(e){return!!(e!=null&&e.available)&&e.blockReason!=="dev"}function iD(e){return e.phase==="staging"?{kind:"downloading"}:e.phase==="ready"?{kind:"ready",version:e.stagedVersion??e.latest??e.current}:e.phase==="error"&&e.available?{kind:"stage-error"}:{kind:"announce",oneClick:s9(e)}}const cD=1800*1e3,_g=300*1e3,F2=e=>new Promise(t=>setTimeout(t,e)),o9="scenri:update-dismissed",uD=()=>ku.get(o9),dD=e=>ku.set(o9,e),l9=r.createContext(null);function jp(){const e=r.useContext(l9);if(!e)throw new Error("useUpdateCenter must be used inside UpdateCenterProvider");return e}function fD({children:e}){const[t,n]=r.useState(null),[s,l]=r.useState(!1),[c,u]=r.useState(uD),f=r.useRef(void 0);r.useEffect(()=>{let P=!0;const $=async()=>{if(P){if(!document.hidden)try{const W=await ke.updateStatus();P&&n(W)}catch{}P&&(f.current=window.setTimeout($,cD))}};$();const L=()=>{document.hidden||!P||(window.clearTimeout(f.current),$())};return document.addEventListener("visibilitychange",L),window.addEventListener("focus",L),()=>{P=!1,window.clearTimeout(f.current),document.removeEventListener("visibilitychange",L),window.removeEventListener("focus",L)}},[]);const[h,m]=r.useState(null),p=r.useCallback(async()=>{l(!0);try{n(await ke.updateCheck()),m(null)}catch(P){m(String((P==null?void 0:P.message)??P))}finally{l(!1)}},[]),v=r.useCallback(()=>{const P=t==null?void 0:t.latest;P&&(dD(P),u(P))},[t]),y=(t==null?void 0:t.latest)!=null&&t.latest===c,[x,b]=r.useState("idle"),[C,S]=r.useState(null),A=r.useCallback(async P=>{b("restarting");try{await ke.updateRestart()}catch(L){if(typeof L.status=="number"){b("idle"),S(String((L==null?void 0:L.message)??L));return}}const $=Date.now()+3e4;for(;Date.now()<$;){await F2(800);try{if((await ke.version()).version!==P){location.reload();return}}catch{}}b("idle"),S("The restart did not complete. Check the terminal Scenri runs in.")},[]),E=r.useCallback(async()=>{if(x!=="idle")return;S(null);const P=t==null?void 0:t.current;try{if((t==null?void 0:t.phase)!=="ready"){b("applying"),await ke.updateApply();const $=Date.now()+_g;let L=!1;for(;Date.now()<$;){await F2(1500);const W=await ke.updateStatus();if(n(W),W.phase==="ready"){L=!0;break}if(W.phase==="error"){S(W.error??"The update could not be staged."),b("idle");return}}if(!L){S("Couldn't download the update. Try again."),b("idle");return}}await A(P)}catch($){S(String(($==null?void 0:$.message)??$)),b("idle")}},[x,t,A]),k=r.useRef(!1);r.useEffect(()=>{if((t==null?void 0:t.phase)!=="staging"||x!=="idle"||k.current)return;k.current=!0;let P=!0;const $=Date.now()+_g;return(async()=>{for(;P&&Date.now()<$;){if(await F2(1500),!P)return;try{const W=await ke.updateStatus();if(!P||(n(W),W.phase!=="staging"))return}catch{}}})().finally(()=>{k.current=!1}),()=>{P=!1}},[t==null?void 0:t.phase,x]);const{pathname:M}=rn(),N=M===Ye.setup;return o.jsxs(l9.Provider,{value:{status:t,checking:s,checkNow:p,checkError:h,dismissed:y,dismiss:v,apply:E,busy:x,applyError:C},children:[e,x!=="restarting"&&lD(t)&&!y&&!N&&o.jsx(mD,{}),x==="restarting"&&o.jsx(hD,{version:(t==null?void 0:t.stagedVersion)??(t==null?void 0:t.latest)??null})]})}function hD({version:e}){return o.jsx("div",{className:"sc-upd-overlay",role:"status","aria-live":"polite",children:o.jsxs("div",{className:"sc-upd-overlay-card",children:[o.jsx(T5,{size:22}),o.jsx("b",{children:e?`Updating to Scenri ${e}`:"Updating Scenri"}),o.jsx("small",{children:"Restarting. This page reconnects by itself."})]})})}function mD(){const{status:e,dismiss:t,apply:n,busy:s,applyError:l}=jp(),c=yd();if(!e)return null;const u=iD(e),f=u.kind==="downloading"?"Downloading update…":u.kind==="ready"?`Scenri ${u.version} is ready`:u.kind==="stage-error"?"Couldn't download the update":"A new update is available",h=s==="applying"?"Updating…":u.kind==="stage-error"?"Try again":"Update",m=u.kind!=="announce"||u.oneClick;return o.jsxs("div",{className:"sc-upd-float",role:"status",children:[o.jsx(b$,{className:"sc-upd-float-dot",size:16,weight:"fill","aria-hidden":"true"}),o.jsxs("span",{className:"sc-upd-float-txt",children:[f,l&&u.kind!=="downloading"&&o.jsx("small",{children:l})]}),o.jsx("button",{type:"button",className:"sc-upd-float-later",onClick:t,children:u.kind==="ready"?"Later":"Not now"}),u.kind!=="downloading"&&o.jsx("button",{type:"button",className:"sc-btn sc-btn-primary",disabled:s!=="idle",onClick:()=>m?void n():c("about"),children:h})]})}const kp=(e,t)=>`scenri:new-${e}-${t}`,pD=e=>ku.get(e),gD=(e,t)=>ku.set(e,t);function Ac(e){ku.del(e),Ii.del(e)}function I2(e){var t,n,s;return!!((t=e.name)!=null&&t.trim())||!!((n=e.instruction)!=null&&n.trim())||!!((s=e.importUrl)!=null&&s.trim())||(e.facets??[]).length>0||(e.imageHashes??[]).length>0}const Zg=e=>Array.isArray(e)?e.filter(t=>typeof t=="string"):[];function i9(e,t){const n=kp(e,t),s=pD(n);if(!s)return null;let l;try{l=JSON.parse(s)}catch{return Ac(n),null}if(typeof l!="object"||l===null)return Ac(n),null;const c=l;if(c.v!==1||c.brandId!==e||c.kind!==t)return Ac(n),null;const u=Date.now()-Date.parse(c.updatedAt??"");return!Number.isFinite(u)||u>a9?(Ac(n),null):{v:1,brandId:e,kind:t,updatedAt:c.updatedAt,name:typeof c.name=="string"?c.name:"",instruction:typeof c.instruction=="string"?c.instruction:"",facets:Zg(c.facets),imageHashes:Zg(c.imageHashes),importUrl:typeof c.importUrl=="string"?c.importUrl:"",pending:typeof c.pending=="string"?c.pending:null}}function O2(e,t,n){const s={v:1,brandId:e,kind:t,updatedAt:new Date().toISOString(),name:n.name??"",instruction:n.instruction??"",facets:n.facets??[],imageHashes:n.imageHashes??[],importUrl:n.importUrl??"",pending:n.pending??null};gD(kp(e,t),JSON.stringify(s))}function li(e,t){Ac(kp(e,t))}function vD(e,t,n){const s=i9(e,t);(s==null?void 0:s.pending)===n&&li(e,t)}function yD(e,t){if(!e)return!1;if(e.pending===null)return!0;const n=t??"unknown";return n==="failed"||n==="cancelled"||n==="unknown"}const c9=50;function ys(e){return Date.parse(e.includes("T")?e:`${e.replace(" ","T")}Z`)}function mo(e,t=Date.now()){const n=ys(e);return Number.isNaN(n)?0:Math.max(0,Math.round((t-n)/1e3))}function Ap(e,t=Date.now()){const n=mo(e,t);return n<20?"generating":n<60?"still generating":"taking longer than usual"}function xD(e,t=Date.now()){const n=mo(e,t);if(n<60)return`${n}s`;const s=Math.floor(n/60);return s<60?`${s}m`:`${Math.floor(s/60)}h ${s%60}m`}function u9(e,t=Date.now()){const n=mo(e,t);if(n<45)return"just now";if(n<3600)return`${Math.round(n/60)}m ago`;if(n<86400)return`${Math.floor(n/3600)}h ago`;const s=Math.floor(n/86400);return s===1?"Yesterday":`${s}d ago`}function wD(e){if(!e)return 0;if(e.stage==="discovering")return e.discovered?15:8;if(e.stage==="fetching_products"){const t=Math.max(e.discovered,e.fetched,1);return 15+Math.min(45,Math.round(e.fetched/t*45))}if(e.stage==="processing_assets"){const t=Math.max(e.imagesTotal,1);return 60+Math.min(35,Math.round(e.imagesDone/t*35))}return e.stage==="completed"?100:e.stage==="partial"?95:5}function bD(e,t,n=Date.now()){const s=e.setNames.length>0?`${e.setNames.join(", ")} · `:"",l=e.status==="running"?`${s}${Ap(e.createdAt,n)}`:e.status==="error"?`${s}${e.error??"failed"}`:e.status==="cancelled"?`${s}cancelled`:`${s}${e.images.length} image${e.images.length===1?"":"s"}`;return{id:`node:${e.id}`,kind:e.kind==="edit"?"edit":"generation",state:e.status,title:e.kind==="edit"?`Edit · ${nn(e)}`:nn(e),subtitle:l,thumb:e.images[0]??null,percent:null,startedAt:e.createdAt,href:gd(t,null,e.id)}}function ED(e,t){const n=e.stage==="completed"?"done":e.stage==="partial"?"partial":e.stage==="failed"?"error":"running";let s=e.url;try{s=new URL(e.url).hostname.replace(/^www\./,"")}catch{}const l=e.discovered?`${e.upserted} of ${e.discovered} products`:`${e.upserted} products`;return{id:`catalog:${e.id}`,kind:"catalog",state:n,title:s,subtitle:n==="error"?`Catalog import · ${e.message??"failed"}`:`Catalog import · ${l}`,thumb:null,percent:wD(e),startedAt:e.createdAt,href:z$(t)}}function CD(e,t){const n=e.stage==="done"?"done":e.stage==="failed"?"error":e.stage==="cancelled"?"cancelled":"running",s=n==="error"?e.error??"failed":n==="cancelled"?"stopped":n==="done"?e.warnings[0]??e.coverage[0]??(e.kind==="presenter"?"Ready to cast":"Ready to use"):e.message??(e.kind==="presenter"?"Building the studio views":"Reading the references");return{id:`build:${e.id}`,kind:e.kind,state:n,title:e.name,subtitle:s,thumb:e.previewHash,percent:e.steps>0?Math.min(100,Math.round(e.step/e.steps*100)):null,startedAt:e.startedAt,href:e.assetId?e.kind==="presenter"?Ka(t,e.assetId):ia(t,e.assetId):null}}function SD(e,t=12){const n=e.filter(l=>l.state==="running"),s=e.filter(l=>l.state!=="running").sort((l,c)=>ys(c.startedAt)-ys(l.startedAt)).slice(0,t);return n.sort((l,c)=>ys(l.startedAt)-ys(c.startedAt)),[...n,...s]}function jD(e,t,n=new Date){if(!e)return[];const s=[];for(const l of t){if(l.state==="running")continue;const c=e.get(l.id);c&&c.state!=="running"||s.push({id:l.id,kind:l.kind,state:l.state,title:l.title,subtitle:l.subtitle,thumb:l.thumb,at:n.toISOString(),href:l.href})}return s}function kD(e,t,n=c9){if(t.length===0)return e;const s=new Set(t.map(l=>l.id));return[...t,...e.filter(l=>!s.has(l.id))].sort((l,c)=>ys(c.at)-ys(l.at)).slice(0,n)}function AD(e,t){const n=e.filter(l=>!l.watched);if(!t)return n.length;const s=ys(t);return n.filter(l=>ys(l.at)>s).length}const d9=e=>`scenri:notifications-${e}`,f9=e=>`scenri:notifications-seen-${e}`,h9=e=>Ii.get(e),m9=(e,t)=>Ii.set(e,t);function Vg(e){const t=h9(d9(e));if(!t)return[];try{const n=JSON.parse(t);return Array.isArray(n)?n:[]}catch{return[]}}const zg=(e,t)=>m9(d9(e),JSON.stringify(t.slice(0,c9))),Bg=e=>h9(f9(e)),ND=(e,t)=>m9(f9(e),t),MD=1500,RD=5e3,p9=r.createContext(null);function Sl(){const e=r.useContext(p9);if(!e)throw new Error("useTaskCenter must be used inside TaskCenterProvider");return e}function PD({brand:e,children:t}){const n=vn(),{push:s}=rr(),{refresh:l}=an(),c=e.id,[u,f]=r.useState([]),[h,m]=r.useState([]),p=r.useRef([]);p.current=h;const[v,y]=r.useState(()=>Vg(c)),[x,b]=r.useState(()=>Bg(c)),[C,S]=r.useState(!1),A=r.useRef(null),E=r.useRef(new Set),k=r.useRef(0),M=r.useRef(new Set),N=r.useRef(l);N.current=l;const P=r.useRef(null),$=r.useRef(C);$.current=C;const L=r.useRef(n);L.current=n;const{pathname:W}=rn(),B=r.useRef(!1);B.current=/\/(create|sets)(\/|$)/.test(W);const te=r.useRef(s);te.current=s,r.useEffect(()=>{A.current=null,E.current=new Set,k.current=0,M.current=new Set,f([]),m([]),y(Vg(c)),b(Bg(c))},[c]);const X=r.useCallback(async()=>{var ae;let ne,U;try{const[{nodes:q,jobs:ge},{builds:ce}]=await Promise.all([ke.activity(c),ke.assetBuilds(c)]);U=ce,ne=[...q.map(he=>bD(he,e)),...ge.map(he=>ED(he,e)),...ce.map(he=>CD(he,e))]}catch{return}const D=U.filter(q=>q.finished&&q.assetId&&!M.current.has(q.id)),V=new Set(U.map(q=>q.id)),F=p.current.some(q=>!q.finished&&!V.has(q.id));if(D.length||F){for(const q of D)M.current.add(q.id),vD(c,q.kind,q.id);await N.current()}m(U);const Q=jD(A.current,ne);if(A.current=new Map(ne.map(q=>[q.id,q])),k.current=ne.filter(q=>q.state==="running").length,f(SD(ne)),Q.length!==0&&(y(q=>{const ge=B.current?Q.map(he=>he.state==="error"?he:{...he,watched:!0}):Q,ce=kD(q,ge);return zg(c,ce),ce}),!$.current))for(const q of Q){if(E.current.has(q.id)||(E.current.add(q.id),q.state==="cancelled")||q.state!=="error"&&B.current)continue;const ge=q.href,ce=ge?{label:"View",onClick:()=>L.current(ge)}:void 0;if(q.state==="error"){te.current({kind:"error",title:`${q.title} failed`,detail:q.subtitle,action:ce});continue}if(q.kind==="presenter"||q.kind==="scene"){const he=q.id.startsWith("build:")?((ae=U.find(me=>`build:${me.id}`===q.id))==null?void 0:ae.assetId)??null:null;te.current({kind:"success",title:`${q.title} is ready`,detail:q.subtitle,actions:ge?[{label:q.kind==="presenter"?"View presenter":"View scene",onClick:()=>L.current(ge)},{label:"Use in a shot",onClick:()=>L.current(`${hr(e)}?${q.kind==="presenter"?"presenter":"scene"}=${he}&compose=1`)}]:void 0});continue}te.current({kind:"success",title:q.kind==="catalog"?"Catalog import finished":"Generation finished",detail:q.title,action:ce})}},[c,e]);r.useEffect(()=>{let ne=null,U=!0;const D=async()=>{if(!U||(document.hidden||await X(),!U))return;const F=!document.hidden&&k.current>0;ne=setTimeout(D,F?MD:RD)},V=()=>{ne&&clearTimeout(ne),ne=null,document.hidden||D()};return P.current=V,D(),document.addEventListener("visibilitychange",V),window.addEventListener("focus",V),()=>{U=!1,P.current=null,ne&&clearTimeout(ne),document.removeEventListener("visibilitychange",V),window.removeEventListener("focus",V)}},[X]);const Z=r.useCallback(()=>{var ne;return(ne=P.current)==null?void 0:ne.call(P)},[]),G=r.useCallback(()=>{const ne=new Date().toISOString();b(ne),ND(c,ne)},[c]),re=r.useCallback(()=>{y([]),zg(c,[]),G()},[c,G]),de=r.useMemo(()=>({tasks:u,running:u.filter(ne=>ne.state==="running").length,builds:h,feed:v,unread:AD(v,x),markSeen:G,clearFeed:re,panelOpen:C,setPanelOpen:S,poke:Z}),[u,h,v,x,G,re,C,Z]);return o.jsx(p9.Provider,{value:de,children:t})}const g9=["primary","mark","wordmark","monochrome","alternate"],Np=["light","dark","any"],G0={primary:"Primary logo",mark:"Mark",wordmark:"Wordmark",monochrome:"Monochrome",alternate:"Alternate"},LD=/^[a-f0-9]{32}$/,TD=e=>{const t=String(e??"");if(!t.startsWith("asset:"))return null;const n=t.slice(6);return LD.test(n)?n:null},HD=e=>g9.includes(e)?e:"primary",$D=e=>Np.includes(e)?e:"any";function Mp(e){return(Array.isArray(e==null?void 0:e.logos)?e.logos:[]).filter(n=>n&&String(n.file??"").trim()).map(n=>{const s=TD(n.file),l=String(n.clearSpace??"").trim();return{hash:s,file:String(n.file),role:HD(n.role),background:$D(n.background),...l?{clearSpace:l}:{},attachable:s!==null}})}function wd(e){return Mp(e).filter(t=>t.attachable)}function v9(e){return e.find(t=>t.role==="primary")??e[0]??null}function y9(e){return v9(Mp(e))}function bd(e,t){var l;const n={primary:"logo",mark:"mark",wordmark:"wordmark",monochrome:"monochrome logo",alternate:"alternate logo"},s=String(((l=e==null?void 0:e.meta)==null?void 0:l.name)??"").trim();return s?`${s} ${n[t.role]}`:`Brand ${n[t.role]}`}function x9(e){const{brand:t}=Tt(),{pathname:n}=rn(),s=!!ur(Ye.brand),l=!!ur({path:Ye.hub,end:!1}),c=!!ur({path:Ye.set,end:!1}),u=l||c,f=!!ur({path:Ye.products,end:!1}),h=!!ur({path:Ye.scenes,end:!1}),m=!!ur({path:Ye.presenters,end:!1}),p=v=>v?"fill":"regular";return[{key:"home",label:"Home",icon:o.jsx(E$,{size:e,weight:p(s)}),active:s,to:ho(t)},{key:"create",label:"Create",icon:o.jsx(N$,{size:e,weight:p(u)}),active:u,to:u?`${n}?compose=1`:`${hr(t)}?compose=1`},{key:"products",label:"Products",icon:o.jsx(bp,{size:e,weight:p(f)}),active:f,to:h1(t)},{key:"presenters",label:"Presenters",icon:o.jsx(xp,{size:e,weight:p(m)}),active:m,to:$c(t)},{key:"scenes",label:"Scenes",icon:o.jsx(yp,{size:e,weight:p(h)}),active:h,to:Hc(t)}]}const xs=e=>{var t,n;return((n=(t=e.json)==null?void 0:t.meta)==null?void 0:n.name)??e.slug};function DD(e){return([...e.trim()].find(n=>new RegExp("\\p{L}|\\p{N}","u").test(n))??"?").toUpperCase()}function FD(e){const t=/^#?([0-9a-f]{6})$/i.exec(e.trim());if(!t)return"#ffffff";const[n,s,l]=[0,2,4].map(u=>Number.parseInt(t[1].slice(u,u+2),16)/255),c=u=>u<=.03928?u/12.92:((u+.055)/1.055)**2.4;return .2126*c(n)+.7152*c(s)+.0722*c(l)>.42?"#0a0a0a":"#ffffff"}function Ug({brand:e,size:t=20}){var l,c,u,f;const n=Un((l=y9(e.json))==null?void 0:l.file),s=((f=(u=(c=e.json)==null?void 0:c.palette)==null?void 0:u.primary)==null?void 0:f.hex)??"#6b6b6b";return o.jsx("span",{className:"sc-brand-av","data-logo":n?"":void 0,style:{width:t,height:t,fontSize:Math.round(t*.5),...n?{}:{background:s,color:FD(s)}},"aria-hidden":!0,children:n?o.jsx("img",{src:n,alt:""}):DD(xs(e))})}function ID(){const e=x9(22);return o.jsx("nav",{className:"sc-tabbar","aria-label":"Main",children:o.jsx("ul",{children:e.map(t=>o.jsx("li",{children:o.jsxs(Ut,{to:t.to,"data-on":t.active||void 0,"aria-current":t.active?"page":void 0,children:[o.jsx("span",{className:"sc-tab-ic",children:t.icon}),o.jsx("span",{className:"sc-tab-lb",children:t.label})]})},t.key))})})}function OD(){var p,v;const{brands:e}=an(),{brand:t}=Tt(),n=vn(),s=yd(),l=jp(),c=Sd(),u=y=>xs(y).trim().toLowerCase(),f=new Map;for(const y of e)f.set(u(y),(f.get(u(y))??0)+1);const h=!!((p=l.status)!=null&&p.available),m=h&&!l.dismissed||c.unread;return o.jsxs(co,{children:[o.jsx(uo,{children:o.jsxs("button",{type:"button",className:"sc-org-btn","aria-label":`${xs(t)}, brand and settings`,children:[o.jsx(Ug,{brand:t,size:22}),o.jsx("span",{dir:"auto",className:"sc-org-name",children:xs(t)}),o.jsx(ki,{size:11,className:"sc-caret"}),m&&o.jsx("span",{className:"sc-upd-dot","aria-hidden":"true"})]})}),o.jsxs(fo,{align:"end",sideOffset:8,className:"sc-menu",children:[e.map(y=>{const x=y.id===t.id,b=(f.get(u(y))??0)>1;return o.jsxs(Zr,{className:"sc-menu-item","data-current":x||void 0,"data-two-line":b||void 0,onSelect:x?void 0:()=>n(ho(y)),children:[o.jsx(Ug,{brand:y,size:20}),o.jsxs("span",{className:"sc-menu-brand-lb",children:[o.jsx("span",{dir:"auto",children:xs(y)}),b&&o.jsxs("span",{className:"sc-menu-brand-sub",children:["/",y.slug]})]}),x&&o.jsxs(o.Fragment,{children:[o.jsx(la,{size:14,className:"sc-menu-check","aria-hidden":"true"}),o.jsx("span",{className:"sc-vh",children:", current brand"})]})]},y.id)}),o.jsx("div",{className:"sc-menu-sep"}),o.jsxs(Zr,{className:"sc-menu-item",onSelect:()=>n("/setup"),children:[o.jsx(Wn,{size:18,className:"sc-menu-ic"}),o.jsx("span",{className:"sc-menu-lb",children:"Set up a brand"})]}),o.jsx("div",{className:"sc-menu-sep"}),h&&o.jsxs(Zr,{className:"sc-menu-item","data-update":"",onSelect:()=>s("about"),children:[o.jsx(T5,{size:18,className:"sc-menu-ic"}),o.jsxs("span",{className:"sc-menu-lb",children:["Update available · ",(v=l.status)==null?void 0:v.latest]})]}),o.jsxs(Zr,{className:"sc-menu-item",onSelect:()=>c.open(),children:[o.jsx(P$,{size:18,className:"sc-menu-ic"}),o.jsx("span",{className:"sc-menu-lb",children:"What's new"}),c.unread&&o.jsxs(o.Fragment,{children:[o.jsx("span",{className:"sc-menu-new","aria-hidden":"true"}),o.jsx("span",{className:"sc-vh",children:", not read yet"})]})]}),o.jsxs(Zr,{className:"sc-menu-item",onSelect:()=>s(),children:[o.jsx(w$,{size:18,className:"sc-menu-ic"}),o.jsx("span",{className:"sc-menu-lb",children:"Settings"})]})]})]})}function Oi(e){const t=r.useRef(null),n=r.useRef(null),s=r.useRef(0),l=f=>{f.pointerType==="mouse"&&f.button!==0||(n.current={y:f.clientY,t:f.timeStamp},s.current=0,t.current&&(t.current.style.transition="none"),f.currentTarget.setPointerCapture(f.pointerId))},c=f=>{!n.current||!t.current||(s.current=Math.max(0,f.clientY-n.current.y),t.current.style.transform=`translateY(${s.current}px)`)},u=f=>{const h=n.current;if(n.current=null,!h||!t.current)return;t.current.style.transition="";const m=s.current/Math.max(1,f.timeStamp-h.t);if(s.current>96||m>.45){e();return}t.current.style.transform=""};return{sheet:t,grip:{onPointerDown:l,onPointerMove:c,onPointerUp:u,onPointerCancel:u}}}function Ed({open:e=!0,className:t,maxWidth:n,described:s,children:l,onDismiss:c,onOpenAutoFocus:u,onCloseAutoFocus:f,onPaste:h}){const{sheet:m,grip:p}=Oi(c),v=u??ju,y=f;return o.jsx(ul,{open:e,onOpenChange:x=>!x&&c(),children:o.jsxs(dl,{children:[o.jsx(fl,{className:"sc-newdlg-scrim"}),o.jsx(hl,{className:"sc-newdlg-layer",...s?{}:{"aria-describedby":void 0},onOpenAutoFocus:v,onCloseAutoFocus:y,onPaste:h,onPointerDown:x=>{x.target===x.currentTarget&&c()},children:o.jsxs("div",{ref:m,className:["sc-newdlg",t].filter(Boolean).join(" "),style:n?{"--sc-newdlg-max":n}:void 0,children:[o.jsx("div",{className:"sc-shotsheet-grip",...p,children:o.jsx("span",{className:"sc-shotsheet-bar","aria-hidden":!0})}),l]})})]})})}function Rp({className:e,children:t}){return o.jsx(ml,{className:e,children:t})}function M1({children:e}){return o.jsx(q1,{asChild:!0,children:e})}function _D({className:e,children:t}){return o.jsx(Nm,{className:e,children:t})}const Oh=e=>Array.isArray(e)?e.map(t=>Un(t==null?void 0:t.file)).filter(t=>!!t):[];function Au(e){var n;return(((n=e==null?void 0:e.json)==null?void 0:n.characters)??[]).filter(s=>(s==null?void 0:s.origin)==="custom").map(VD)}function ZD(e,t){return Au(e).find(n=>n.id===t)}function VD(e){const t=Oh(e.shots),n=Oh(e.sourceRefs),s=Un(e.preview)??t[0]??n[0]??null;return{id:String(e.id),name:String(e.name??""),promptName:e.promptName,presentation:e.presentation==="man"?"man":"woman",descriptor:String(e.descriptor??""),ageRange:String(e.ageRange??""),hair:String(e.hair??""),identityNotes:String(e.identityNotes??""),negativeConstraints:Array.isArray(e.negativeConstraints)?e.negativeConstraints.map(String):[],facial:"",skin:"",build:"",wardrobeDefault:"",suitableCategories:Array.isArray(e.suitableCategories)?e.suitableCategories.map(String):[],suitableStyles:[],width:1024,height:1280,previewUrl:s,avatarUrl:Un(e.avatar),custom:!0,shots:t,sourceRefs:n}}function jl(e){var n;return(((n=e==null?void 0:e.json)==null?void 0:n.scenes)??[]).map(BD)}function zD(e,t){return jl(e).find(n=>n.id===t)}function BD(e){const t=Oh(e.refs);return{id:String(e.id),name:String(e.name??""),promptName:e.promptName,description:String(e.description??""),lighting:String(e.lighting??""),subject:e.subject==="product"||e.subject==="person"?e.subject:"either",collections:Array.isArray(e.collections)?e.collections.map(String):[],verticals:Array.isArray(e.verticals)?e.verticals.map(String):[],keywords:Array.isArray(e.keywords)?e.keywords.map(String):void 0,prompt:String(e.prompt??""),width:Number(e.width)||1024,height:Number(e.height)||1280,previewUrl:Un(e.preview)??t[0]??null,previewColor:null,custom:!0,refs:t,instruction:e.instruction?String(e.instruction):void 0,figure:e.figure?String(e.figure):void 0,figureTreatment:e.figureTreatment?String(e.figureTreatment):void 0}}function _h(e,t){const n=new Set(e.map(s=>s.id));return[...e,...t.filter(s=>!n.has(s.id))]}function UD(){const{brand:e,products:t}=Tt(),{scenes:n,presenters:s,demoProducts:l,showcase:c}=an();return r.useMemo(()=>{const u={presenters:Au(e),scenes:jl(e)},f=new Set,h=b=>!b||f.has(b)?null:(f.add(b),b),m=(b,C)=>{for(const S of b){const A=h(C(S));if(A)return A}return null},p=b=>m(c.filter(C=>{var S;return(((S=C.brief)==null?void 0:S.tokens)??[]).some(A=>(A==null?void 0:A.t)===b)}),C=>C.previewUrl),v=m([...t].reverse(),b=>{var C,S;return Un((S=(C=b==null?void 0:b.shots)==null?void 0:C[0])==null?void 0:S.file)}),y=m(u.presenters,b=>b.previewUrl),x=m(u.scenes,b=>b.previewUrl);return{product:{url:v??p("product")??m(l,b=>b.previewUrl)??null,count:t.length,own:!!v},presenter:{url:y??p("character")??m(s,b=>b.previewUrl??b.avatarUrl)??null,count:u.presenters.length,own:!!y},scene:{url:x??m(n,b=>b.previewUrl)??p("template")??null,count:u.scenes.length,own:!!x}}},[e,t,n,s,l,c])}const WD=[{kind:"product",label:"Product",line:"What you are photographing",noun:"product",icon:bp},{kind:"presenter",label:"Presenter",line:"Who appears in the shot",noun:"presenter",icon:xp},{kind:"scene",label:"Scene",line:"Where it takes place",noun:"scene",icon:yp}],Wg=(e,t)=>e===0?"None yet":`${e} ${t}${e===1?"":"s"}`;function GD({suggest:e,onPick:t}){const n=r.useRef(null),{close:s}=Ps("new"),l=UD(),c=()=>{var u,f;(f=(u=n.current)==null?void 0:u.querySelector(e?`[data-kind="${e}"]`:"[data-kind]"))==null||f.focus()};return r.useEffect(c,[e]),o.jsxs(Ed,{className:"sc-newpick",maxWidth:"620px",onDismiss:s,onOpenAutoFocus:u=>{u.preventDefault(),c()},children:[o.jsxs("div",{className:"sc-newdlg-head",children:[o.jsx(Rp,{className:"sc-newdlg-title",children:"Add to this brand"}),o.jsx(M1,{children:o.jsx("button",{type:"button",className:"sc-set-close sc-newdlg-close","aria-label":"Close",children:o.jsx(Mn,{size:16})})})]}),o.jsx("p",{className:"sc-newdlg-sub",children:"The three things every shot is made from."}),o.jsx("div",{className:"sc-newdlg-body",children:o.jsx("div",{className:"sc-pickgrid",ref:n,children:WD.map(({kind:u,label:f,line:h,noun:m,icon:p})=>{const{url:v,count:y,own:x}=l[u];return o.jsxs("button",{type:"button",className:"sc-pick","data-kind":u,onClick:()=>t(u),"aria-label":`${f}. ${h}. ${Wg(y,m)}.`,children:[o.jsxs("span",{className:"sc-pick-media",children:[v?o.jsx("img",{src:v,alt:"",loading:"lazy"}):o.jsx("span",{className:"sc-pick-blank",children:o.jsx(p,{size:22})}),x&&o.jsx("span",{className:"sc-pick-mine",children:"Yours"})]}),o.jsxs("span",{className:"sc-pick-cap",children:[o.jsx("b",{children:f}),o.jsx("small",{children:h})]}),o.jsx("span",{className:"sc-pick-count",children:Wg(y,m)})]},u)})})})]})}function Pp({title:e,sub:t,error:n,footnote:s,primaryLabel:l,ready:c,blocked:u,busy:f,width:h="440px",onBack:m,onPrimary:p,onPasteFiles:v,children:y}){const{close:x}=Ps("new");return o.jsxs(Ed,{maxWidth:h,onDismiss:x,onPaste:b=>{var S;if(!v)return;const C=Array.from(((S=b.clipboardData)==null?void 0:S.files)??[]).filter(A=>A.type.startsWith("image/"));C.length&&(b.preventDefault(),v(C))},children:[o.jsxs("div",{className:"sc-newdlg-head",children:[m&&o.jsx("button",{type:"button",className:"sc-newdlg-back",onClick:m,"aria-label":"Back",children:o.jsx(Fi,{size:15})}),o.jsx(Rp,{className:"sc-newdlg-title",children:e}),o.jsx(M1,{children:o.jsx("button",{type:"button",className:"sc-set-close sc-newdlg-close","aria-label":"Close",children:o.jsx(Mn,{size:16})})})]}),t&&o.jsx("p",{className:"sc-newdlg-sub",children:t}),o.jsx("div",{className:"sc-newdlg-body",children:y}),o.jsxs("div",{className:"sc-newdlg-foot",children:[n&&o.jsx("p",{className:"sc-newdlg-err",role:"alert",children:n}),o.jsxs("button",{type:"button",className:"sc-btn sc-btn-primary sc-dlg-go","aria-disabled":!c||f||void 0,title:u,onClick:()=>{c&&!f&&p()},children:[f?o.jsx(qt,{size:"1"}):null,l]}),s&&o.jsx("p",{className:"sc-dlg-foot",children:s})]})]})}function w9({onFiles:e,onReject:t,disabled:n}){const s=r.useRef(0),[l,c]=r.useState(!1),u=r.useCallback(()=>{s.current=0,c(!1)},[]);return{dragOver:l,dropProps:{"data-drag-over":l||void 0,onDragEnter:h=>{n||!Array.from(h.dataTransfer.types).includes("Files")||(h.preventDefault(),s.current++,c(!0))},onDragOver:h=>{n||h.preventDefault()},onDragLeave:()=>{s.current=Math.max(0,s.current-1),s.current===0&&c(!1)},onDrop:h=>{if(n)return;h.preventDefault(),u();const m=Array.from(h.dataTransfer.files).filter(p=>p.type.startsWith("image/"));m.length?e(m):t==null||t()}}}}function Gg({label:e,hint:t,busy:n,disabled:s,multiple:l=!0,accept:c="image/*",onFiles:u,onReject:f,children:h}){const m=r.useRef(null),{dropProps:p}=w9({onFiles:u,onReject:f,disabled:s||n});return o.jsxs("button",{type:"button",className:"sc-dropzone",disabled:s||n,onClick:()=>{var v;return(v=m.current)==null?void 0:v.click()},...p,children:[o.jsx("input",{ref:m,type:"file",accept:c,multiple:l,hidden:!0,onChange:v=>{const y=Array.from(v.target.files??[]);v.target.value="",y.length&&u(y)}}),n?o.jsx(qt,{}):h,o.jsx("span",{className:"sc-dropzone-label",children:e}),t&&o.jsx("small",{children:t})]})}function Lp({hashes:e,max:t,label:n,hint:s,busy:l,onAdd:c,onRemove:u,onReject:f}){if(e.length===0)return o.jsx("div",{className:"sc-assetwell",children:o.jsx(Gg,{label:n,hint:s,busy:l,onFiles:c,onReject:f,children:o.jsx(Wn,{size:18})})});const h=t-e.length;return o.jsxs("div",{className:"sc-assetform-refs",children:[e.map((m,p)=>o.jsxs("span",{className:"sc-assetform-ref",children:[o.jsx("img",{src:Pt(m),alt:`Reference ${p+1}`}),o.jsx("button",{type:"button",className:"sc-assetform-drop","aria-label":`Remove reference ${p+1}`,onClick:()=>u(m),children:o.jsx(Mn,{size:11,weight:"bold"})})]},m)),h>0&&o.jsx(Gg,{label:`${h} more`,busy:l,onFiles:c,onReject:f,children:o.jsx(Wn,{size:15})})]})}let Nc=null;const b9=(e,t)=>`${e}:${t}`;function KD(e,t,n){Nc={key:b9(e,t),fields:n}}function YD(e,t){if(!Nc||Nc.key!==b9(e,t))return null;const{fields:n}=Nc;return Nc=null,n}const Kg={name:"",instruction:"",facets:[],imageHashes:[],importUrl:""};function Tp(e,t,n){const s=n.restore??!1,[l,c]=r.useState(Kg),[u,f]=r.useState(!1),[h,m]=r.useState(null),p=r.useRef(null),v=r.useRef(null),y=r.useRef(n.pendingState);y.current=n.pendingState;const x=r.useRef(n.exists);x.current=n.exists;const b=r.useRef(n.onDiscarded);b.current=n.onDiscarded;const C=r.useRef(l);C.current=l,r.useEffect(()=>{var W;if(s){const B=YD(e,t);if(B){c(B);return}}const $=i9(e,t),L=$!=null&&$.pending?y.current($.pending):null;if($!=null&&$.pending&&L==="unknown"&&((W=x.current)!=null&&W.call(x,$.name))){li(e,t);return}if($&&!$.pending){li(e,t);return}$&&yD($,L)&&(v.current=$.pending,c({name:$.name,instruction:$.instruction,facets:$.facets,imageHashes:$.imageHashes,importUrl:$.importUrl}))},[e,t,s]);const S=r.useCallback($=>{p.current&&clearTimeout(p.current),p.current=setTimeout(()=>{v.current&&I2($)?O2(e,t,{...$,pending:v.current}):li(e,t)},400)},[e,t]),A=r.useCallback($=>{c(L=>{const W={...L,...typeof $=="function"?$(L):$};return S(W),W})},[S]),E=r.useCallback(()=>{var L;p.current&&clearTimeout(p.current);const $=C.current;if(v.current&&I2($)){O2(e,t,{...$,pending:v.current});return}li(e,t),I2($)&&(KD(e,t,$),(L=b.current)==null||L.call(b))},[e,t]);r.useEffect(()=>(window.addEventListener("beforeunload",E),()=>{window.removeEventListener("beforeunload",E),E()}),[E]);const k=r.useCallback(async $=>{f(!0),m(null);try{const L=n.max-C.current.imageHashes.length,W=[];for(const B of $.slice(0,L))W.push(await Xw(B));A(B=>({imageHashes:[...new Set([...B.imageHashes,...W])].slice(0,n.max)}))}catch(L){m(String(L.message??L))}finally{f(!1)}},[n.max,A]),M=r.useCallback($=>A(L=>({imageHashes:L.imageHashes.filter(W=>W!==$)})),[A]),N=r.useCallback($=>A(L=>({facets:L.facets.includes($)?L.facets.filter(W=>W!==$):[...L.facets,$]})),[A]),P=r.useCallback($=>{if(p.current&&clearTimeout(p.current),!$){li(e,t),v.current=null,c(Kg);return}v.current=$,c(L=>(O2(e,t,{...L,pending:$}),L))},[e,t]);return{fields:l,set:A,uploading:u,err:h,setErr:m,addFiles:k,removeHash:M,toggleFacet:N,submitted:P}}const E9=(e,t)=>{const n=t.trim().toLowerCase();return n.length>0&&e.some(s=>s.name.trim().toLowerCase()===n)},Yg=4;function qD({onBack:e,onStarted:t,caps:n,capsNote:s,pendingState:l,restore:c,onDiscarded:u}){const{brand:f}=Tt(),{presenterCategories:h}=an(),[m,p]=r.useState(!1),v=r.useCallback(A=>E9(Au(f),A),[f]),y=Tp(f.id,"presenter",{max:Yg,pendingState:l,exists:v,restore:c,onDiscarded:u}),x=!!y.fields.name.trim()&&y.fields.imageHashes.length>0,b=x?void 0:"Add a name and at least one photo",C=async()=>{p(!0),y.setErr(null);try{const{jobId:A}=await ke.startAssetBuild(f.id,{kind:"presenter",name:y.fields.name.trim(),instruction:y.fields.instruction.trim()||void 0,imageHashes:y.fields.imageHashes,facets:y.fields.facets});y.submitted(A),t({kind:"presenter",jobId:A,name:y.fields.name.trim()})}catch(A){y.setErr(String(A.message??A))}finally{p(!1)}},S=A=>{A.key!=="Enter"||A.shiftKey||(A.preventDefault(),x&&!m&&C())};return o.jsx(Pp,{title:"New presenter",error:y.err,footnote:s(n!=null&&n.canGenerate?"Four studio views. A few minutes.":"Saved from the photos you add."),primaryLabel:"Create presenter",ready:x,blocked:b,busy:m,onBack:e,onPrimary:()=>void C(),onPasteFiles:A=>void y.addFiles(A),children:o.jsxs("div",{className:"sc-assetform",children:[o.jsx(Lp,{hashes:y.fields.imageHashes,max:Yg,label:"Add photos",hint:"One works. Two to four, from different angles, hold the likeness far better.",busy:y.uploading,onAdd:A=>void y.addFiles(A),onRemove:y.removeHash,onReject:()=>y.setErr("Drop an image file.")}),o.jsxs("div",{className:"sc-assetform-fields",children:[o.jsxs("div",{className:"sc-assetform-field",children:[o.jsx("label",{className:"sc-newdlg-seclabel",htmlFor:"sc-presenter-name",children:"Name"}),o.jsx("input",{id:"sc-presenter-name",className:"sc-in",type:"text",placeholder:"Their name",value:y.fields.name,onChange:A=>y.set({name:A.target.value}),onKeyDown:S})]}),o.jsxs("div",{className:"sc-assetform-field",children:[o.jsx("label",{className:"sc-newdlg-seclabel",htmlFor:"sc-presenter-notes",children:"Notes"}),o.jsx("textarea",{id:"sc-presenter-notes",className:"sc-in",placeholder:"Anything worth knowing about them (optional)",rows:2,value:y.fields.instruction,onChange:A=>y.set({instruction:A.target.value})})]})]}),h.length>0&&o.jsxs("fieldset",{className:"sc-assetform-facets",children:[o.jsx("legend",{children:"Categories"}),o.jsx("div",{className:"sc-assetform-facets-chips",children:h.map(A=>o.jsx("button",{type:"button",className:"sc-chip","data-on":y.fields.facets.includes(A)||void 0,"aria-pressed":y.fields.facets.includes(A),onClick:()=>y.toggleFacet(A),children:A},A))})]})]})})}const eu=[{key:"fragrance",label:"Fragrance",angles:[{key:"three-quarter",label:"Three-quarter"},{key:"front",label:"Front"},{key:"side",label:"Side"}]},{key:"footwear",label:"Footwear",angles:[{key:"three-quarter",label:"Three-quarter"},{key:"lateral-side",label:"Lateral side"},{key:"medial-side",label:"Medial side"}]},{key:"apparel",label:"Apparel",angles:[{key:"front",label:"Front"},{key:"back",label:"Back"},{key:"detail-fabric",label:"Detail / fabric"}]},{key:"furniture",label:"Furniture",angles:[{key:"three-quarter",label:"Three-quarter"},{key:"front",label:"Front"},{key:"side",label:"Side"}]},{key:"beauty",label:"Beauty / skincare",angles:[{key:"three-quarter",label:"Three-quarter"},{key:"front",label:"Front"},{key:"label",label:"Label"}]},{key:"electronics",label:"Electronics",angles:[{key:"three-quarter",label:"Three-quarter"},{key:"front",label:"Front"},{key:"back",label:"Back"}]},{key:"jewelry",label:"Jewelry",angles:[{key:"three-quarter",label:"Three-quarter"},{key:"front",label:"Front"},{key:"clasp-detail",label:"Clasp detail"}]},{key:"accessories",label:"Accessories",angles:[{key:"three-quarter",label:"Three-quarter"},{key:"front",label:"Front"},{key:"detail",label:"Detail"}]},{key:"beverage",label:"Beverage",angles:[{key:"three-quarter",label:"Three-quarter"},{key:"front",label:"Front"},{key:"label",label:"Label"}]},{key:"food",label:"Food",angles:[{key:"three-quarter",label:"Three-quarter"},{key:"front",label:"Front"},{key:"packaging-label",label:"Packaging label"}]},{key:"other",label:"Other",angles:[{key:"three-quarter",label:"Three-quarter"},{key:"front",label:"Front"},{key:"side",label:"Side"}]}],Hp=new Map(eu.map(e=>[e.key,e]));Hp.get("other");function Ai(e){var t;return e?((t=Hp.get(e))==null?void 0:t.label)??e:null}function XD(e,t){const n=[e??"",...t??[]].join(" ").toLowerCase();if(!n.trim())return;const s=[["fragrance",["fragrance","perfume","eau de","cologne"]],["footwear",["shoe","sneaker","boot","sandal","footwear"]],["apparel",["shirt","dress","jacket","pant","apparel","clothing","hoodie"]],["furniture",["chair","table","sofa","furniture","shelf","desk"]],["beauty",["skincare","serum","cream","lotion","cosmetic","makeup","beauty"]],["electronics",["electronic","headphone","speaker","charger","device","gadget"]],["jewelry",["jewelry","jewellery","necklace","bracelet","earring","ring"]],["accessories",["bag","handbag","wallet","watch","accessory","accessories"]],["beverage",["drink","beverage","soda","juice","coffee","tea"]],["food",["food","snack","grocery","sauce","spice","pantry"]]];for(const[l,c]of s)if(c.some(u=>n.includes(u)))return l}function $p(e){return e.category&&Hp.has(e.category)?e.category:XD(e.productType,e.tags)??null}const qg=6,QD=3;function JD({onBack:e,onStarted:t,restore:n,onDiscarded:s}){var A,E;const{brand:l}=Tt(),[c,u]=r.useState(!1),[f,h]=r.useState(!1),[m,p]=r.useState(!1),v=Tp(l.id,"product",{max:qg,pendingState:()=>"unknown",restore:n,onDiscarded:s}),y=v.fields.imageHashes.length>0,x=y?void 0:"Add at least one photo",b=async()=>{u(!0),v.setErr(null);try{const k=await ke.createProduct(l.id,{name:v.fields.name.trim(),imageHashes:v.fields.imageHashes,category:v.fields.facets[0]}),M=v.fields.name.trim()||"Product";v.submitted(null),t({kind:"product",id:k.productId,name:M})}catch(k){v.setErr(String(k.message??k))}finally{u(!1)}},C=async()=>{var M,N;const k=v.fields.importUrl.trim()||(((N=(M=l.json)==null?void 0:M.meta)==null?void 0:N.website)??"");if(k){h(!0),v.setErr(null);try{await ke.catalogImport(l.id,k),v.set({importUrl:""}),t({kind:"product",id:"",name:k})}catch(P){v.setErr(String(P.message??P))}finally{h(!1)}}},S=k=>{k.key==="Enter"&&(k.preventDefault(),y&&!c&&b())};return o.jsxs(Pp,{title:"New product",error:v.err,footnote:"Added to this brand. No preview.",primaryLabel:"Add product",ready:y,blocked:x,busy:c,onBack:e,onPrimary:()=>void b(),onPasteFiles:k=>void v.addFiles(k),children:[o.jsxs("div",{className:"sc-assetform",children:[o.jsx(Lp,{hashes:v.fields.imageHashes,max:qg,label:"Add packshots",hint:`Straight, well-lit packshots. The first ${QD} are the ones a shot attaches.`,busy:v.uploading,onAdd:k=>void v.addFiles(k),onRemove:v.removeHash,onReject:()=>v.setErr("Drop an image file.")}),o.jsx("div",{className:"sc-assetform-fields",children:o.jsxs("div",{className:"sc-assetform-field",children:[o.jsx("label",{className:"sc-newdlg-seclabel",htmlFor:"sc-product-name",children:"Name"}),o.jsx("input",{id:"sc-product-name",className:"sc-in",type:"text",placeholder:"Name this product",value:v.fields.name,onChange:k=>v.set({name:k.target.value}),onKeyDown:S})]})}),o.jsxs("fieldset",{className:"sc-assetform-facets",children:[o.jsx("legend",{children:"Category"}),o.jsx("div",{className:"sc-assetform-facets-chips",children:eu.map(k=>o.jsx("button",{type:"button",className:"sc-chip","data-on":v.fields.facets[0]===k.key||void 0,"aria-pressed":v.fields.facets[0]===k.key,onClick:()=>v.set({facets:v.fields.facets[0]===k.key?[]:[k.key]}),children:k.label},k.key))})]})]}),o.jsx("div",{className:"sc-newdlg-secondary",children:m?o.jsxs(o.Fragment,{children:[o.jsx("label",{className:"sc-newdlg-seclabel",htmlFor:"sc-import-url",children:"Your store's address"}),o.jsxs("div",{className:"sc-newdlg-secrow",children:[o.jsx("input",{id:"sc-import-url",className:"sc-in",type:"url",placeholder:((E=(A=l.json)==null?void 0:A.meta)==null?void 0:E.website)??"https://yourstore.com",value:v.fields.importUrl,onChange:k=>v.set({importUrl:k.target.value}),onKeyDown:k=>{k.key==="Enter"&&C()}}),o.jsx("button",{type:"button",className:"sc-btn sc-btn-ghost",disabled:f,onClick:()=>void C(),children:f?"Starting…":"Import"})]})]}):o.jsx("button",{type:"button",className:"sc-newdlg-secmore",onClick:()=>p(!0),children:"Import a catalog from a store URL"})})]})}const _2=4;function eF({onBack:e,onStarted:t,caps:n,capsNote:s,pendingState:l,restore:c,onDiscarded:u}){const{brand:f}=Tt(),{verticals:h}=an(),[m,p]=r.useState(!1),v=r.useCallback(E=>E9(jl(f),E),[f]),y=Tp(f.id,"scene",{max:_2,pendingState:l,exists:v,restore:c,onDiscarded:u}),x=!!y.fields.name.trim()&&(y.fields.imageHashes.length>0||!!y.fields.instruction.trim()),b=x?void 0:"Add a name, and a photo or a line of direction",C=async()=>{p(!0),y.setErr(null);try{const{jobId:E}=await ke.startAssetBuild(f.id,{kind:"scene",name:y.fields.name.trim(),instruction:y.fields.instruction.trim()||void 0,imageHashes:y.fields.imageHashes,facets:y.fields.facets});y.submitted(E),t({kind:"scene",jobId:E,name:y.fields.name.trim()})}catch(E){y.setErr(String(E.message??E))}finally{p(!1)}},S=E=>{E.key==="Enter"&&(E.preventDefault(),x&&!m&&C())},A=E=>{E.key!=="Enter"||!(E.metaKey||E.ctrlKey)||(E.preventDefault(),x&&!m&&C())};return o.jsx(Pp,{title:"New scene",error:y.err,footnote:s(n!=null&&n.canGenerate?"One preview. A few minutes.":"Saved without a preview."),primaryLabel:"Create scene",ready:x,blocked:b,busy:m,onBack:e,onPrimary:()=>void C(),onPasteFiles:E=>void y.addFiles(E),children:o.jsxs("div",{className:"sc-assetform",children:[o.jsx(Lp,{hashes:y.fields.imageHashes,max:_2,label:"Add a place",hint:`Screenshots, photography, anything showing the world you want. Up to ${_2}.`,busy:y.uploading,onAdd:E=>void y.addFiles(E),onRemove:y.removeHash,onReject:()=>y.setErr("Drop an image file.")}),o.jsxs("div",{className:"sc-assetform-fields",children:[o.jsxs("div",{className:"sc-assetform-field",children:[o.jsx("label",{className:"sc-newdlg-seclabel",htmlFor:"sc-scene-name",children:"Name"}),o.jsx("input",{id:"sc-scene-name",className:"sc-in",type:"text",placeholder:"Name this place",value:y.fields.name,onChange:E=>y.set({name:E.target.value}),onKeyDown:S})]}),o.jsxs("div",{className:"sc-assetform-field",children:[o.jsx("label",{className:"sc-newdlg-seclabel",htmlFor:"sc-scene-direction",children:"Direction"}),o.jsx("textarea",{id:"sc-scene-direction",className:"sc-in",placeholder:"What matters in these references, and what to ignore",rows:3,maxLength:400,value:y.fields.instruction,onChange:E=>y.set({instruction:E.target.value}),onKeyDown:A})]})]}),h.length>0&&o.jsxs("fieldset",{className:"sc-assetform-facets",children:[o.jsx("legend",{children:"Categories"}),o.jsx("div",{className:"sc-assetform-facets-chips",children:h.map(E=>o.jsx("button",{type:"button",className:"sc-chip","data-on":y.fields.facets.includes(E)||void 0,"aria-pressed":y.fields.facets.includes(E),onClick:()=>y.toggleFacet(E),children:E},E))})]})]})})}const Z2="1",tF={product:"Product",presenter:"Presenter",scene:"Scene"},nF=["product","presenter","scene"],rF=e=>!!e&&nF.includes(e),C9=r.createContext(null);function kl(){const e=r.useContext(C9);if(!e)throw new Error("useCreateAsset must be used inside AssetCreateHost");return e.open}function aF({children:e}){const{brand:t}=Tt(),n=vn(),{push:s}=rr(),{refresh:l}=an(),{builds:c,poke:u}=Sl(),f=Ps("new"),h=f.value,m=!!ur({path:Ye.products,end:!1}),p=!!ur({path:Ye.presenters,end:!1}),v=!!ur({path:Ye.scenes,end:!1}),y=m?"product":p?"presenter":v?"scene":null,[x,b]=r.useState(null),[C,S]=r.useState(!1),[A,E]=r.useState(!1),[k,M]=r.useState(!1),N=r.useRef(null),P=r.useRef(null),$=f.open,L=f.set,W=f.close,B=r.useCallback((D,V)=>{N.current=D==="choose"||!(V!=null&&V.onCreated)?null:{kind:D,fn:V.onCreated},P.current=document.activeElement instanceof HTMLElement?document.activeElement:null,E(D==="choose"),M(!1),$(D==="choose"?Z2:D)},[$]),te=r.useCallback(()=>{N.current=null,E(!1),W()},[W]),X=r.useCallback(D=>{s({kind:"success",title:`${tF[D]} discarded`,detail:"Nothing was saved.",action:{label:"Undo",onClick:()=>{M(!0),E(!1),$(D)}}})},[$,s]);r.useEffect(()=>{h===null&&M(!1)},[h]),r.useEffect(()=>{if(h!==null)return;const D=P.current;P.current=null,D!=null&&D.isConnected&&D.focus()},[h]),r.useEffect(()=>{if(h===null)return;let D=!0;S(!1);const V=F=>ke.assetBuildCapabilities().then(Q=>D&&b(Q)).catch(()=>{D&&(F?setTimeout(()=>V(!1),600):S(!0))});return V(!0),()=>{D=!1}},[h]);const Z=r.useCallback(D=>x?D:C?"Could not reach the engine. You can still try.":"Checking the engine…",[x,C]),G=r.useCallback(D=>{const V=c.find(F=>F.id===D);return V?V.stage==="failed"?"failed":V.stage==="cancelled"?"cancelled":V.stage==="done"?"done":"running":"unknown"},[c]),re=r.useCallback(D=>{const V=N.current;if(te(),u(),D.kind==="product"){if(!D.id){s({kind:"success",title:"Importing your catalog",detail:D.name});return}l(),(V==null?void 0:V.kind)==="product"&&V.fn(D),s({kind:"success",title:`${D.name} added`,actions:[{label:"Add details",onClick:()=>n(sa(t,D.id))},{label:"Use in a shot",onClick:()=>n(`${hr(t)}?product=${D.id}&compose=1`)}]});return}(V==null?void 0:V.kind)===D.kind&&V.fn(D),s({kind:"success",title:`Building ${D.name}`,detail:D.kind==="presenter"?"Four studio views. The bell will say when.":"The bell will say when."})},[t,te,n,u,s,l]),de=r.useMemo(()=>({open:B}),[B]),ne=rF(h)?h:null,U={onBack:A?()=>L(Z2):void 0,onStarted:re,caps:x,capsNote:Z,pendingState:G,restore:k,onDiscarded:()=>ne&&X(ne)};return o.jsxs(C9.Provider,{value:de,children:[e,h===Z2&&o.jsx(GD,{suggest:y,onPick:D=>{E(!0),L(D)}}),ne==="product"&&o.jsx(JD,{...U},"product"),ne==="presenter"&&o.jsx(qD,{...U},"presenter"),ne==="scene"&&o.jsx(eF,{...U},"scene")]})}function sF(){const e=kl();return o.jsx("button",{type:"button",className:"sc-icon-btn","aria-label":"Add to this brand",title:"Add to this brand",onClick:()=>e("choose"),children:o.jsx(Wn,{size:17,weight:"bold"})})}const _i="(max-width: 767px)";function Eo(e){const[t,n]=r.useState(()=>window.matchMedia(e).matches);return r.useEffect(()=>{const s=window.matchMedia(e),l=()=>n(s.matches);return l(),s.addEventListener("change",l),()=>s.removeEventListener("change",l)},[e]),t}function oF(){const{running:e,unread:t,panelOpen:n,setPanelOpen:s,markSeen:l}=Sl(),{pathname:c}=rn(),u=Eo(_i);r.useEffect(()=>s(!1),[c,s]);const f="Notifications"+(t?`, ${t} unread`:"")+(e?`, ${e} task${e===1?"":"s"} running`:""),h=t>0?o.jsx("span",{className:"sc-bell-dot","data-count":t,"aria-hidden":!0,children:t>9?"9+":t}):e>0?o.jsx("span",{className:"sc-bell-dot","data-running":"","aria-hidden":!0}):null;return u?o.jsxs(o.Fragment,{children:[o.jsxs("button",{type:"button",className:"sc-icon-btn sc-notif-btn","data-on":n||void 0,"aria-label":f,"aria-expanded":n,title:"Notifications",onClick:()=>s(!n),children:[o.jsx(Hg,{size:16,weight:e?"fill":"regular"}),h]}),n?o.jsx(lF,{onClose:()=>s(!1),onSeen:l}):null]}):o.jsxs(Ci,{open:n,onOpenChange:s,children:[o.jsx(Si,{children:o.jsxs("button",{type:"button",className:"sc-icon-btn sc-notif-btn","aria-label":f,title:"Notifications",children:[o.jsx(Hg,{size:16,weight:e?"fill":"regular"}),h]})}),o.jsx(ji,{align:"end",className:"sc-notif-pop",children:o.jsx(S9,{onClose:()=>s(!1),onSeen:l})})]})}function lF({onClose:e,onSeen:t}){const{sheet:n,grip:s}=Oi(e);return r.useEffect(()=>{const l=c=>{c.key==="Escape"&&e()};return document.addEventListener("keydown",l),()=>document.removeEventListener("keydown",l)},[e]),Ur.createPortal(o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"sc-notif-scrim",onClick:e,"aria-hidden":!0}),o.jsxs("div",{ref:n,className:"sc-notif-sheet",role:"dialog","aria-modal":"true","aria-label":"Notifications",children:[o.jsx("div",{className:"sc-shotsheet-grip",...s,children:o.jsx("span",{className:"sc-shotsheet-bar","aria-hidden":!0})}),o.jsx(S9,{onClose:e,onSeen:t})]})]}),document.body)}function S9({onClose:e,onSeen:t}){const{tasks:n,feed:s,unread:l,clearFeed:c}=Sl(),{brand:u}=Tt(),{push:f}=rr(),[h,m]=r.useState("tasks"),p=r.useRef(null),v=uF(1e3),y=b=>{if(b.startsWith("node:")){ke.cancelNode(b.slice(5)).catch(C=>f(tn(C,"Could not cancel this shot")));return}b.startsWith("build:")&&ke.cancelAssetBuild(u.id,b.slice(6)).catch(C=>f(tn(C,"Could not stop this build")))};r.useEffect(()=>{h==="feed"&&t()},[h,t]);const x=b=>{var E,k;const C=["tasks","feed"],S=C.indexOf(h);let A=null;b.key==="ArrowRight"?A=C[(S+1)%C.length]:b.key==="ArrowLeft"?A=C[(S-1+C.length)%C.length]:b.key==="Home"?A=C[0]:b.key==="End"&&(A=C[C.length-1]),A&&(b.preventDefault(),m(A),(k=(E=p.current)==null?void 0:E.querySelector(`#sc-notif-tab-${A}`))==null||k.focus())};return o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"sc-notif-tabs",role:"tablist","aria-label":"Notifications",ref:p,onKeyDown:x,children:[o.jsx(Xg,{id:"tasks",tab:h,onSelect:m,count:n.length,children:"Tasks"}),o.jsx(Xg,{id:"feed",tab:h,onSelect:m,count:l||void 0,children:"Notifications"})]}),o.jsx("div",{className:"sc-notif-scroll",role:"tabpanel",id:`sc-notif-panel-${h}`,"aria-labelledby":`sc-notif-tab-${h}`,tabIndex:0,children:h==="tasks"?n.length===0?o.jsx("p",{className:"sc-notif-empty",children:"Nothing running. Generations show up here as they go."}):n.map(b=>o.jsx(iF,{task:b,now:v,onNavigate:e,onCancel:y},b.id)):s.length===0?o.jsx("p",{className:"sc-notif-empty",children:"You have no notifications yet."}):s.map(b=>o.jsx(cF,{item:b,now:v,onNavigate:e},b.id))}),h==="feed"&&s.length>0?o.jsx("div",{className:"sc-notif-foot",children:o.jsx("button",{type:"button",className:"sc-notif-clear",onClick:c,children:"Clear all"})}):null]})}function Xg({id:e,tab:t,onSelect:n,count:s,children:l}){const c=t===e;return o.jsxs("button",{type:"button",role:"tab",id:`sc-notif-tab-${e}`,className:"sc-notif-tab","aria-selected":c,"aria-controls":`sc-notif-panel-${e}`,tabIndex:c?0:-1,onClick:()=>n(e),children:[l,s?o.jsx("span",{className:"sc-notif-n",children:s}):null]})}function j9({task:e}){return e.thumb?o.jsx("img",{src:Pt(e.thumb),alt:""}):e.state==="running"?o.jsx("span",{className:"sc-shimmer"}):e.state==="error"?o.jsx(Su,{size:17,weight:"fill"}):e.state==="cancelled"?o.jsx(Kw,{size:17,color:"var(--sc-fg3)"}):e.kind==="catalog"?o.jsx(L$,{size:17}):e.kind==="presenter"?o.jsx(xp,{size:17}):e.kind==="scene"?o.jsx(yp,{size:17}):o.jsx(ha,{size:17})}function iF({task:e,now:t,onNavigate:n,onCancel:s}){const l=e.state==="running",c=e.id.startsWith("node:")||e.id.startsWith("build:"),u=l&&mo(e.startedAt,t)>=60,f=o.jsxs(o.Fragment,{children:[o.jsx("span",{className:"sc-notif-thumb",children:o.jsx(j9,{task:e})}),o.jsxs("span",{className:"sc-notif-txt",children:[o.jsx("b",{dir:"auto",children:e.title}),o.jsx("small",{dir:"auto",children:e.subtitle}),l&&e.percent!==null?o.jsx("span",{className:"sc-notif-meter",children:o.jsx("div",{style:{width:`${e.percent}%`}})}):null]}),o.jsx("span",{className:"sc-notif-time",children:l?xD(e.startedAt,t):u9(e.startedAt,t)})]});return o.jsxs("div",{className:"sc-notif-row-wrap",children:[e.href?o.jsx(Ut,{className:"sc-notif-row","data-state":e.state,"data-running":l||void 0,to:e.href,onClick:n,children:f}):o.jsx("button",{type:"button",className:"sc-notif-row","data-state":e.state,"data-running":l||void 0,disabled:!0,children:f}),l&&c&&o.jsx("button",{type:"button",className:"sc-notif-row-cancel","data-urgent":u||void 0,onClick:h=>{h.stopPropagation(),s(e.id)},children:"Cancel"})]})}function cF({item:e,now:t,onNavigate:n}){const s=o.jsxs(o.Fragment,{children:[o.jsx("span",{className:"sc-notif-thumb",children:o.jsx(j9,{task:e})}),o.jsxs("span",{className:"sc-notif-txt",children:[o.jsx("b",{dir:"auto",children:e.title}),o.jsx("small",{dir:"auto",children:e.subtitle})]}),o.jsx("span",{className:"sc-notif-time",children:u9(e.at,t)})]});return e.href?o.jsx(Ut,{className:"sc-notif-row","data-state":e.state,to:e.href,onClick:n,children:s}):o.jsx("button",{type:"button",className:"sc-notif-row","data-state":e.state,disabled:!0,children:s})}function uF(e){const[t,n]=r.useState(()=>Date.now());return r.useEffect(()=>{const s=setInterval(()=>n(Date.now()),e);return()=>clearInterval(s)},[e]),t}const dF=["M64 18.71V38.8L51.38 51.39V12.62H57.9C61.27 12.62 64 15.35 64 18.72V18.71Z","M12.62 12.62V51.39H6.1C2.73 51.39 0 48.66 0 45.29V25.2L12.62 12.61V12.62Z","M51.38 51.38L38.79 64H18.7C15.33 64 12.6 61.27 12.6 57.9V51.38H51.37H51.38Z","M12.62 12.62L25.2 0H45.29C48.66 0 51.39 2.73 51.39 6.1V12.62H12.62Z"],fF=["M100.99 28.93L91.76 27.8C88.5 27.41 87.19 26.58 87.19 25.1C87.19 23.45 89.98 22.49 94.29 22.49C99.38 22.49 102.43 23.36 104.17 26.58L111.61 24.27C108.65 17.87 102.08 16 94.98 16C85.1 16 78.7 19.31 78.7 25.97C78.7 31.02 82.49 33.81 90.28 34.76L98.68 35.8C102.29 36.24 103.3 37.19 103.3 38.5C103.3 40.24 100.64 41.46 95.59 41.46C89.41 41.46 87.01 40.2 85.31 37.02L77.52 39.33C80.31 45.77 86.92 47.95 95.07 47.95C105.17 47.95 111.88 44.55 111.88 37.72C111.88 32.84 108.53 29.84 101 28.93H100.99Z","M132.73 22.66C137 22.66 140.87 24.01 142.7 28.54L150.49 26.67C148.79 20.66 142.3 16.05 132.6 16.05C121.41 16.05 113.44 22.23 113.44 31.98C113.44 41.73 121.41 48 132.6 48C142.31 48 148.8 43.3 150.49 37.29L142.7 35.42C140.87 39.95 137 41.3 132.73 41.3C126.94 41.3 122.24 38.38 122.24 32.42V31.55C122.24 25.59 126.94 22.67 132.73 22.67V22.66Z","M161.51 34.89H179.58V28.71H161.51V22.97H181.54V16.52H152.8V47.43H181.84V40.99H161.51V34.89Z","M208.71 33.85H208.67L193.86 16.52H184.94V47.43H193.04V27.49H193.08L210.15 47.43H216.81V16.52H208.71V33.85Z","M252.25 26.8C252.25 20.14 248.07 16.52 239.84 16.52H220.77V47.43H229.48V37.5H236.62L242.63 47.43H252.56L245.55 36.37C249.9 34.8 252.25 31.62 252.25 26.79V26.8ZM243.54 27.32C243.54 29.98 242.06 31.28 239.06 31.28H229.48V22.96H239.06C242.06 22.96 243.54 24.27 243.54 26.88V27.32Z","M263.79 16.52H255.08V47.43H263.79V16.52Z"];function hF(e){return o.jsx("svg",{viewBox:"0 0 263.79 64",fill:"currentColor","aria-hidden":"true",focusable:"false",...e,children:[...dF,...fF].map(t=>o.jsx("path",{d:t},t))})}function mF(){const{brand:e}=Tt(),t=ur({path:Ye.set,end:!1}),s=!!ur({path:Ye.hub,end:!1})||!!t;return o.jsxs("header",{className:"sc-topbar","data-project":s?"":void 0,children:[o.jsx("a",{className:"sc-skip",href:"#main",children:"Skip to content"}),o.jsx("div",{className:"sc-topbar-lead",children:o.jsx(Ut,{className:"sc-wordmark","aria-label":"Scenri home",to:ho(e),children:o.jsx(hF,{})})}),o.jsx(pF,{}),o.jsxs("div",{className:"sc-topbar-end",children:[o.jsx(sF,{}),o.jsx(oF,{}),o.jsx(OD,{})]})]})}function pF(){const e=x9(16);return o.jsx("nav",{className:"sc-nav sc-desktop-only","aria-label":"Main",children:o.jsx("ul",{children:e.map(t=>o.jsx("li",{children:o.jsx(Ut,{to:t.to,"data-active":t.active||void 0,"aria-current":t.active?"page":void 0,children:t.label})},t.key))})})}const gF=60;function vF(){r.useEffect(()=>{const e=window.visualViewport;if(!e)return;const t=document.documentElement,n=()=>{const s=window.innerHeight-e.height-e.offsetTop;t.style.setProperty("--sc-kb",s>gF?`${Math.round(s)}px`:"0px")};return n(),e.addEventListener("resize",n),e.addEventListener("scroll",n),()=>{e.removeEventListener("resize",n),e.removeEventListener("scroll",n),t.style.removeProperty("--sc-kb")}},[])}function yF(e){const[t,n]=r.useState({products:[],loaded:!1}),s=r.useCallback(async()=>{if(e)try{const l=await ke.productsLibrary(e);n({products:l.products,loaded:!0})}catch{n(l=>({products:l.products,loaded:!0}))}},[e]);return r.useEffect(()=>{if(!e){n({products:[],loaded:!0});return}let l=!0;n({products:[],loaded:!1});const c=()=>{ke.productsLibrary(e).then(f=>{l&&n({products:f.products,loaded:!0})}).catch(()=>{l&&n(f=>({products:f.products,loaded:!0}))})};c();const u=setInterval(c,4e3);return()=>{l=!1,clearInterval(u)}},[e]),{...t,reload:s}}function Vr({title:e,sub:t,children:n}){return o.jsxs("section",{className:"sc-set-sec",children:[(e||t)&&o.jsxs("div",{className:"sc-set-sech",children:[e&&o.jsx("h3",{children:e}),t&&o.jsx("p",{children:t})]}),o.jsx("div",{className:"sc-set-card",children:n})]})}function xF({value:e,onChange:t,placeholder:n,label:s,suggestions:l,max:c=24,maxLength:u=200}){const[f,h]=r.useState(""),m=e.length>=c,p=y=>{const x=y.trim().slice(0,u);h(""),!(!x||m)&&(e.some(b=>b.toLowerCase()===x.toLowerCase())||t([...e,x]))},v=!m&&l&&l.length>0?o.jsx("div",{className:"sc-chips-sugg",children:l.map(y=>o.jsx("button",{type:"button",className:"sc-chip",onClick:()=>p(y),"aria-label":`Never show ${y}`,children:y},y))}):null;return o.jsxs(o.Fragment,{children:[e.length===0&&v,o.jsxs("div",{className:"sc-chips",children:[e.map((y,x)=>o.jsxs("span",{className:"sc-chips-item",children:[o.jsx("span",{dir:"auto",children:y}),o.jsx("button",{type:"button",onClick:()=>t(e.filter((b,C)=>C!==x)),"aria-label":`Remove ${y}`,children:o.jsx(Mn,{size:10,weight:"bold"})})]},y)),o.jsx("input",{className:"sc-chips-in",value:f,"aria-label":s,placeholder:m?void 0:e.length?"Add another…":n??"Add one…",disabled:m,dir:"auto",onChange:y=>{const x=y.target.value;if(x.includes(",")){const b=x.split(",");for(const C of b.slice(0,-1))p(C);h(b[b.length-1]);return}h(x.slice(0,u))},onKeyDown:y=>{y.key==="Enter"?(y.preventDefault(),p(f)):y.key==="Backspace"&&!f&&e.length&&t(e.slice(0,-1))},onBlur:()=>p(f)})]}),e.length>0&&v]})}const wF=["competitor logos in frame","visible text or wordmarks on clothing","alcohol","children","visible clutter or mess","heavy skin retouching","neon or harsh colour","pure white studio backgrounds"],Qg=e=>e.trim().toLowerCase();function bF(e){const t=new Set((e??[]).map(Qg));return wF.filter(n=>!t.has(Qg(n)))}function EF({doc:e}){var l;const t=((l=e.json)==null?void 0:l.rules)??{},n=t.never??[],s=c=>{const u={...t};c.length?u.never=c:delete u.never,e.patch({rules:u})};return o.jsx("div",{className:"sc-nv",children:o.jsx(xF,{label:"Things this brand never shows",value:n,placeholder:"Or type your own",suggestions:bF(n),max:24,onChange:s})})}function CF({brand:e,doc:t}){const{push:n}=rr(),[s,l]=r.useState(!1),c=t.json??{},u=c.meta??{},f=u.name??e.slug,h=Mp(c),m=v9(h)??void 0,p=h.filter(C=>C!==m),v=C=>{const S={...u};for(const[A,E]of Object.entries(C)){const k=E.trim();k?S[A]=k:delete S[A]}S.name||(S.name=u.name),t.patch({meta:S})},y=async(C,S)=>{l(!0);try{await t.flush(),t.applyRow(await S())}catch(A){n(tn(A,C))}finally{l(!1)}},x=C=>void y("Could not upload that mark",async()=>{const S=await qw(e.id,C[0]),A=S.logoEdge;return A&&A<512&&n({kind:"success",title:"Logo added, but it is small",detail:`Only ${A}px across. Fine lettering may not survive generation. Export it larger, or as SVG.`}),S}),{dropProps:b}=w9({onFiles:x,onReject:()=>n({kind:"error",title:"That is not an image",detail:"Drop a PNG, SVG or JPG."}),disabled:s});return o.jsxs("div",{className:"sc-ident",...b,children:[o.jsxs("div",{className:"sc-set-row",children:[o.jsxs("span",{className:"txt",children:[o.jsx("b",{children:"Logo"}),o.jsx("small",{children:"Drop an image, or tap to add."})]}),o.jsxs("div",{className:"sc-set-controls",children:[o.jsx(SF,{mark:m,name:f,busy:s,onUpload:x}),(m==null?void 0:m.attachable)&&o.jsx("button",{type:"button",className:"sc-btn sc-btn-ghost",disabled:s,onClick:()=>void y("Could not remove that mark",()=>ke.deleteLogo(e.id,m.hash??"")),children:"Remove"})]})]}),m&&o.jsxs("div",{className:"sc-set-row",children:[o.jsxs("span",{className:"txt",children:[o.jsx("b",{children:"Sits on"}),o.jsx("small",{children:"So a dark mark is not shown on a dark ground."})]}),o.jsx("select",{className:"sc-in",value:m.background,disabled:s||!m.attachable,onChange:C=>void y("Could not update that mark",()=>ke.updateLogo(e.id,m.hash??"",{background:C.target.value})),"aria-label":"Sits on",children:Np.map(C=>o.jsx("option",{value:C,children:C==="any"?"Any background":`On ${C}`},C))})]}),o.jsx(Jg,{label:"Name",value:u.name??"",placeholder:e.slug,maxLength:120,onCommit:C=>v({name:C})}),o.jsx(Jg,{label:"Tagline",value:u.tagline??"",placeholder:"Add a tagline",maxLength:200,onCommit:C=>v({tagline:C})}),p.map(C=>o.jsx(jF,{mark:C,busy:s,onRole:S=>void y("Could not retag that mark",()=>ke.updateLogo(e.id,C.hash??"",{role:S})),onBackground:S=>void y("Could not update that mark",()=>ke.updateLogo(e.id,C.hash??"",{background:S})),onRemove:()=>void y("Could not remove that mark",()=>ke.deleteLogo(e.id,C.hash??""))},C.hash??C.file)),m&&o.jsxs("div",{className:"sc-set-row",children:[o.jsxs("span",{className:"txt",children:[o.jsx("b",{children:"Variant"}),o.jsx("small",{children:"A second mark for dark or light grounds."})]}),o.jsxs("label",{className:"sc-btn sc-btn-ghost",children:[o.jsx(Wn,{size:12}),"Add",o.jsx("input",{type:"file",accept:"image/*",hidden:!0,disabled:s,onChange:C=>{const S=Array.from(C.target.files??[]);C.target.value="",S.length&&x(S)}})]})]})]})}function Jg({label:e,value:t,placeholder:n,maxLength:s,onCommit:l}){const[c,u]=r.useState(t);return r.useEffect(()=>u(t),[t]),o.jsxs("div",{className:"sc-set-row",children:[o.jsx("span",{className:"txt",children:o.jsx("b",{children:e})}),o.jsx("input",{className:"sc-in",value:c,placeholder:n,"aria-label":e,maxLength:s,dir:"auto",onChange:f=>u(f.target.value),onBlur:()=>{const f=c.trim();f!==t&&l(f),u(f)},onKeyDown:f=>{f.key==="Enter"&&f.currentTarget.blur(),f.key==="Escape"&&(u(t),f.currentTarget.blur())}})]})}function SF({mark:e,name:t,busy:n,onUpload:s}){const[l,c]=r.useState(null);if(e){const u=e.hash?Pt(e.hash):e.file;return o.jsxs(o.Fragment,{children:[o.jsx("span",{className:"sc-well","data-bg":e.background,children:o.jsx("img",{src:u,alt:`${t} logo`,onLoad:f=>{const h=f.currentTarget,m=Math.max(h.naturalWidth,h.naturalHeight);c(m>0&&m<512?m:null)}})}),l!==null&&o.jsxs("small",{className:"sc-mark-small",children:["Only ",l,"px across. Fine lettering may not survive generation."]})]})}return o.jsxs("label",{className:"sc-well","data-empty":"","aria-label":"Add logo",children:[o.jsx(Zw,{size:16}),o.jsx("input",{type:"file",accept:"image/*",hidden:!0,disabled:n,onChange:u=>{const f=Array.from(u.target.files??[]);u.target.value="",f.length&&s(f)}})]})}function jF({mark:e,busy:t,onRole:n,onBackground:s,onRemove:l}){const c=e.hash?Pt(e.hash):e.file;return o.jsxs("div",{className:"sc-set-row",children:[o.jsx("span",{className:"txt",children:o.jsx("b",{children:G0[e.role]})}),o.jsxs("div",{className:"sc-set-controls",children:[o.jsx("span",{className:"sc-well","data-bg":e.background,children:o.jsx("img",{src:c,alt:G0[e.role]})}),o.jsx("select",{className:"sc-in",value:e.role,disabled:t||!e.attachable,onChange:u=>n(u.target.value),"aria-label":"Mark role",children:g9.map(u=>o.jsx("option",{value:u,children:G0[u]},u))}),o.jsx("select",{className:"sc-in",value:e.background,disabled:t||!e.attachable,onChange:u=>s(u.target.value),"aria-label":"Sits on",children:Np.map(u=>o.jsx("option",{value:u,children:u==="any"?"Any background":`On ${u}`},u))}),e.attachable&&o.jsx("button",{type:"button",disabled:t,onClick:l,"aria-label":`Remove ${G0[e.role]}`,children:o.jsx(pd,{size:13})})]})]})}const ev={primary:"Primary",secondary:"Secondary",accent:"Accent",neutral:"Neutral"},kF=(e,t)=>t<=1?ev[e]:`${ev[e]} ${t}`;function AF(e){return/^(Primary|Secondary|Accent|Neutral)( [2-9]\d*)?$/.test(String(e??"").trim())}const NF=/^#[0-9A-F]{6}$/;function cn(e){const t=String(e??"").trim(),n=(t.startsWith("#")?t.slice(1):t).toUpperCase();if(/^[0-9A-F]{3}$/.test(n)){const[l,c,u]=n;return`#${l}${l}${c}${c}${u}${u}`}const s=`#${n}`;return NF.test(s)?s:null}const MF=/^#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6})$/;function RF(e){const t=String(e??"").trim();return MF.test(t)?cn(t):null}function Na(e){const t=[],n={primary:0,secondary:0,accent:0,neutral:0},s=(l,c)=>{const u=cn(String((l==null?void 0:l.hex)??""));if(!u)return;n[c]+=1;const f=String((l==null?void 0:l.name)??"").trim();t.push({hex:u,name:f||kF(c,n[c]),slot:c})};s(e==null?void 0:e.primary,"primary"),s(e==null?void 0:e.secondary,"secondary");for(const l of Array.isArray(e==null?void 0:e.accent)?e.accent:[])s(l,"accent");for(const l of Array.isArray(e==null?void 0:e.neutrals)?e.neutrals:[])s(l,"neutral");return t}function Dp(e,t){const n={},s=[],l=[],c=p=>{const v=p.name.trim();return v&&!AF(v)?{hex:p.hex,name:v}:{hex:p.hex}};for(const p of e){const v=cn(p.hex);if(!v)continue;const y=c({...p,hex:v});p.slot==="neutral"?l.push(y):s.push(y)}const[u,f,...h]=s;u&&(n.primary=u),f&&(n.secondary=f),h.length&&(n.accent=h),l.length&&(n.neutrals=l);const m=String((t==null?void 0:t.usage)??"").trim();return m&&(n.usage=m),n}const tv=e=>e.slot!=="neutral";function Fp(e){var u;const t=(u=e[e.length-1])==null?void 0:u.hex;if(!t)return"#808080";const n=Number.parseInt(t.slice(1),16),[s,l,c]=[n>>16&255,n>>8&255,n&255];return`#${[c,s,l].map(f=>f.toString(16).padStart(2,"0")).join("").toUpperCase()}`}function PF(e,t){const n=cn(t);if(!n)return{palette:e,added:!1,swatch:null};const s=Na(e),l=s.find(h=>h.hex===n);if(l)return{palette:e,added:!1,swatch:l};const c=[...s,{hex:n,name:"",slot:s.length?"accent":"primary"}],u=Dp(c,e),f=Na(u).find(h=>h.hex===n)??null;return{palette:u,added:!0,swatch:f}}function LF(e,t){const n=cn(t);if(!n)return{palette:e,removed:!1};const s=Na(e),l=s.filter(c=>c.hex!==n);return l.length===s.length?{palette:e,removed:!1}:{palette:Dp(l,e),removed:!0}}function Cd(){return(Cd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e}).apply(this,arguments)}function k9(e,t){if(e==null)return{};var n,s,l={},c=Object.keys(e);for(s=0;s<c.length;s++)t.indexOf(n=c[s])>=0||(l[n]=e[n]);return l}function Dc(e){var t=r.useRef(e),n=r.useRef(function(s){t.current&&t.current(s)});return t.current=e,n.current}var tu=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e<t?t:e},Fc=function(e){return"touches"in e},Zh=function(e){return e&&e.ownerDocument.defaultView||self},nv=function(e,t,n){var s=e.getBoundingClientRect(),l=Fc(t)?(function(c,u){for(var f=0;f<c.length;f++)if(c[f].identifier===u)return c[f];return c[0]})(t.touches,n):t;return{left:tu((l.pageX-(s.left+Zh(e).pageXOffset))/s.width),top:tu((l.pageY-(s.top+Zh(e).pageYOffset))/s.height)}},rv=function(e){!Fc(e)&&e.preventDefault()},A9=Rt.memo(function(e){var t=e.onMove,n=e.onKey,s=e.onEnd,l=k9(e,["onMove","onKey","onEnd"]),c=r.useRef(null),u=Dc(t),f=Dc(n),h=Dc(s),m=r.useRef(null),p=r.useRef(!1),v=r.useMemo(function(){var S=function(k){rv(k),(Fc(k)?k.touches.length>0:k.buttons>0)&&c.current?u(nv(c.current,k,m.current)):(E(!1),h())},A=function(){E(!1),h()};function E(k){var M=p.current,N=Zh(c.current),P=k?N.addEventListener:N.removeEventListener;P(M?"touchmove":"mousemove",S),P(M?"touchend":"mouseup",A)}return[function(k){var M=k.nativeEvent,N=c.current;if(N&&(rv(M),!(function($,L){return L&&!Fc($)})(M,p.current)&&N)){if(Fc(M)){p.current=!0;var P=M.changedTouches||[];P.length&&(m.current=P[0].identifier)}N.focus(),u(nv(N,M,m.current)),E(!0)}},function(k){var M=k.which||k.keyCode;M<37||M>40||(k.preventDefault(),f({left:M===39?.05:M===37?-.05:0,top:M===40?.05:M===38?-.05:0}))},function(k){var M=k.which||k.keyCode;M>=37&&M<=40&&h()},E]},[f,u,h]),y=v[0],x=v[1],b=v[2],C=v[3];return r.useEffect(function(){return C},[C]),Rt.createElement("div",Cd({},l,{onTouchStart:y,onMouseDown:y,className:"react-colorful__interactive",ref:c,onKeyDown:x,onKeyUp:b,tabIndex:0,role:"slider"}))}),Ip=function(e){return e.filter(Boolean).join(" ")},N9=function(e){var t=e.color,n=e.left,s=e.top,l=s===void 0?.5:s,c=Ip(["react-colorful__pointer",e.className]);return Rt.createElement("div",{className:c,style:{top:100*l+"%",left:100*n+"%"}},Rt.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},zn=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n},TF=function(e){return IF(Vh(e))},Vh=function(e){return e[0]==="#"&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?zn(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:e.length===8?zn(parseInt(e.substring(6,8),16)/255,2):1}},HF=function(e){return FF(DF(e))},$F=function(e){var t=e.s,n=e.v,s=e.a,l=(200-t)*n/100;return{h:zn(e.h),s:zn(l>0&&l<200?t*n/100/(l<=100?l:200-l)*100:0),l:zn(l/2),a:zn(s,2)}},zh=function(e){var t=$F(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},DF=function(e){var t=e.h,n=e.s,s=e.v,l=e.a;t=t/360*6,n/=100,s/=100;var c=Math.floor(t),u=s*(1-n),f=s*(1-(t-c)*n),h=s*(1-(1-t+c)*n),m=c%6;return{r:zn(255*[s,f,u,u,h,s][m]),g:zn(255*[h,s,s,f,u,u][m]),b:zn(255*[u,u,h,s,s,f][m]),a:zn(l,2)}},K0=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},FF=function(e){var t=e.r,n=e.g,s=e.b,l=e.a,c=l<1?K0(zn(255*l)):"";return"#"+K0(t)+K0(n)+K0(s)+c},IF=function(e){var t=e.r,n=e.g,s=e.b,l=e.a,c=Math.max(t,n,s),u=c-Math.min(t,n,s),f=u?c===t?(n-s)/u:c===n?2+(s-t)/u:4+(t-n)/u:0;return{h:zn(60*(f<0?f+6:f)),s:zn(c?u/c*100:0),v:zn(c/255*100),a:l}},OF=Rt.memo(function(e){var t=e.hue,n=e.onChange,s=e.onChangeEnd,l=Ip(["react-colorful__hue",e.className]);return Rt.createElement("div",{className:l},Rt.createElement(A9,{onMove:function(c){n({h:360*c.left})},onKey:function(c){n({h:tu(t+360*c.left,0,360)})},onEnd:s,"aria-label":"Hue","aria-valuenow":zn(t),"aria-valuemax":"360","aria-valuemin":"0"},Rt.createElement(N9,{className:"react-colorful__hue-pointer",left:t/360,color:zh({h:t,s:100,v:100,a:1})})))}),_F=Rt.memo(function(e){var t=e.hsva,n=e.onChange,s=e.onChangeEnd,l={backgroundColor:zh({h:t.h,s:100,v:100,a:1})};return Rt.createElement("div",{className:"react-colorful__saturation",style:l},Rt.createElement(A9,{onMove:function(c){n({s:100*c.left,v:100-100*c.top})},onKey:function(c){n({s:tu(t.s+100*c.left,0,100),v:tu(t.v-100*c.top,0,100)})},onEnd:s,"aria-label":"Color","aria-valuetext":"Saturation "+zn(t.s)+"%, Brightness "+zn(t.v)+"%"},Rt.createElement(N9,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:zh(t)})))}),M9=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0},ZF=function(e,t){return e.toLowerCase()===t.toLowerCase()||M9(Vh(e),Vh(t))};function VF(e,t,n,s){var l=Dc(n),c=Dc(s),u=r.useState(function(){return e.toHsva(t)}),f=u[0],h=u[1],m=r.useRef({color:t,hsva:f}),p=r.useRef(!1);r.useEffect(function(){if(!e.equal(t,m.current.color)){var x=e.toHsva(t);m.current={hsva:x,color:t},h(x),p.current=!1}},[t,e]),r.useEffect(function(){var x;M9(f,m.current.hsva)||e.equal(x=e.fromHsva(f),m.current.color)||(m.current={hsva:f,color:x},l(x),p.current=!0)},[f,e,l]);var v=r.useCallback(function(x){h(function(b){return Object.assign({},b,x)})},[]),y=r.useCallback(function(){p.current&&(p.current=!1,c(m.current.color))},[c]);return[f,v,y]}var zF=typeof window<"u"?r.useLayoutEffect:r.useEffect,BF=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},av=new WeakMap,UF=function(e){zF(function(){var t=e.current;if(typeof document<"u"&&t){var n=t.getRootNode?t.getRootNode():t.ownerDocument,s=n&&("head"in n||"host"in n)?n:t.ownerDocument;if(!av.has(s)){var l="head"in s?s.head:s,c=(l.ownerDocument||document).createElement("style");c.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`;var u=BF();u&&c.setAttribute("nonce",u),av.set(s,c),l.appendChild(c)}}},[])},WF=function(e){var t=e.className,n=e.colorModel,s=e.color,l=s===void 0?n.defaultColor:s,c=e.onChange,u=e.onChangeEnd,f=k9(e,["className","colorModel","color","onChange","onChangeEnd"]),h=r.useRef(null);UF(h);var m=VF(n,l,c,u),p=m[0],v=m[1],y=m[2],x=Ip(["react-colorful",t]);return Rt.createElement("div",Cd({},f,{ref:h,className:x}),Rt.createElement(_F,{hsva:p,onChange:v,onChangeEnd:y}),Rt.createElement(OF,{hue:p.h,onChange:v,onChangeEnd:y,className:"react-colorful__last-control"}))},GF={defaultColor:"000",toHsva:TF,fromHsva:function(e){return HF({h:e.h,s:e.s,v:e.v,a:1})},equal:ZF},KF=function(e){return Rt.createElement(WF,Cd({},e,{colorModel:GF}))};function R1({value:e,onChange:t,label:n,presets:s,className:l,triggerStyle:c,triggerProps:u,commitMode:f="live",align:h="start",children:m}){const p=cn(e)??"#000000",[v,y]=r.useState(p),[x,b]=r.useState(!1);r.useEffect(()=>{x||y(p)},[p,x]);const C=k=>{const M=cn(k);M&&(y(M),f==="live"&&t(M))},S=k=>{const M=cn(k);M&&(y(M),t(M),f==="close"&&b(!1))},A=k=>{if(b(k),k||f!=="close")return;const M=cn(v);M&&M!==p&&t(M)},E=[...new Set((s??[]).map(k=>cn(k)).filter(k=>!!k))];return o.jsxs(Ci,{open:x,onOpenChange:A,children:[o.jsx(Si,{children:o.jsx("button",{type:"button",className:l??"sc-cp-trigger",style:{background:p,...c},"aria-label":n,...u,children:m})}),o.jsxs(ji,{className:"sc-cp",align:h,sideOffset:6,width:"232px",children:[o.jsx(KF,{color:v,onChange:C}),o.jsxs("div",{className:"sc-cp-foot",children:[o.jsx("span",{className:"sc-cp-preview",style:{background:v},"aria-hidden":!0}),o.jsx("input",{className:"sc-cp-hex",value:v,spellCheck:!1,maxLength:7,"aria-label":"Hex value",onChange:k=>{y(k.target.value);const M=cn(k.target.value);M&&f==="live"&&t(M)},onBlur:()=>y(cn(v)??p),onKeyDown:k=>{k.key==="Enter"&&(k.preventDefault(),f==="close"?S(v):b(!1))}})]}),E.length>0&&o.jsx("div",{className:"sc-cp-presets",children:E.map(k=>o.jsx("button",{type:"button",style:{background:k},"data-on":k===v||void 0,title:k,"aria-label":k,onClick:()=>f==="close"?S(k):C(k)},k))})]})]})}function YF({doc:e,suggestions:t}){var x;const n=(x=e.json)==null?void 0:x.palette,[s,l]=r.useState(()=>Na(n)),c=JSON.stringify(n??{});r.useEffect(()=>{l(Na(n))},[c]);const u=(b,C=0)=>{l(b),e.patch({palette:Dp(b,n)},{debounce:C})},f=(b,C,S=0)=>u(s.map((A,E)=>E===b?{...A,...C}:A),S),h=()=>u([...s,{hex:Fp(s),name:"",slot:s.length?"accent":"primary"}]),m=(t??[]).filter(b=>{const C=cn(b.hex);return C&&!s.some(S=>S.hex===C)}),p=(b,C)=>o.jsx(qF,{swatch:b,presets:s.map(S=>S.hex),onHex:S=>f(C,{hex:S},300),onRemove:()=>u(s.filter((S,A)=>A!==C))},`${b.slot}-${C}`),v=s.map((b,C)=>[b,C]),y=v.filter(([b])=>!tv(b));return o.jsxs("div",{className:"sc-pal",children:[s.length===0&&o.jsx("p",{className:"sc-pal-empty",children:"No colours yet. Add one and it becomes a chip you can drop into any shot."}),v.filter(([b])=>tv(b)).map(([b,C])=>p(b,C)),y.length>0&&o.jsxs(o.Fragment,{children:[o.jsx("p",{className:"sc-pal-group",children:"Neutrals"}),y.map(([b,C])=>p(b,C))]}),o.jsxs("div",{className:"sc-pal-foot",children:[o.jsxs("button",{type:"button",className:"sc-btn sc-btn-ghost",onClick:h,children:[o.jsx(Wn,{size:12}),"Add colour"]}),m.length>0&&o.jsxs("span",{className:"sc-pal-sugg",children:[o.jsx("small",{children:"From the website"}),m.map(b=>{const C=cn(b.hex);return o.jsx("button",{type:"button",className:"sc-pal-sugg-chip",style:{background:C},title:`Add ${C}`,"aria-label":`Add ${C}`,onClick:()=>u([...s,{hex:C,name:"",slot:"accent"}])},C)})]})]})]})}function qF({swatch:e,presets:t,onHex:n,onRemove:s}){const[l,c]=r.useState(e.hex);r.useEffect(()=>c(e.hex),[e.hex]);const u=()=>{const f=cn(l);f&&n(f),c(f??e.hex)};return o.jsxs("div",{className:"sc-pal-row",children:[o.jsx(R1,{value:e.hex,onChange:n,label:`${e.name} color`,presets:t,className:"sc-pal-chip"}),o.jsx("span",{className:"sc-pal-name",children:e.name}),o.jsx("input",{className:"sc-in sc-pal-hex",value:l,spellCheck:!1,maxLength:7,"aria-label":`${e.name} hex`,onChange:f=>c(f.target.value),onBlur:u,onKeyDown:f=>{f.key==="Enter"&&f.currentTarget.blur()}}),o.jsx("button",{type:"button",className:"sc-pal-act","data-danger":"",onClick:s,"aria-label":`Remove ${e.name}`,title:"Remove",children:o.jsx(pd,{size:13})})]})}function XF(){const{brand:e}=Tt(),{applyBrand:t}=an(),{push:n}=rr(),[s,l]=r.useState({}),[c,u]=r.useState("idle"),f=r.useRef(s);f.current=s;const h=r.useRef(e);h.current=e;const m=r.useRef(null),p=r.useRef(!1),v=r.useRef(!1),y=r.useCallback(()=>({...h.current.json??{},...f.current}),[]),x=r.useCallback(async()=>{if(!Object.keys(f.current).length)return;if(p.current){v.current=!0;return}p.current=!0,u("saving");const E=f.current;try{const k=await ke.updateBrand(h.current.id,y());t(k),l(M=>{const N={...M};for(const P of Object.keys(E))M[P]===E[P]&&delete N[P];return N}),u(v.current?"pending":"idle")}catch(k){u("error"),n({kind:"error",title:"Could not save the brand",detail:String((k==null?void 0:k.message)??k),action:{label:"Retry",onClick:()=>void x()}})}finally{p.current=!1,v.current&&(v.current=!1,x())}},[t,y,n]),b=r.useCallback((E,k)=>{m.current&&(clearTimeout(m.current),m.current=null);const M={...f.current,...E};f.current=M,l(M),u("pending");const N=(k==null?void 0:k.debounce)??0;N>0?m.current=setTimeout(()=>void x(),N):x()},[x]),C=r.useCallback(async()=>{m.current&&(clearTimeout(m.current),m.current=null),await x()},[x]),S=r.useCallback(E=>{l({}),f.current={},t(E),u("idle")},[t]),A=e.id;return r.useEffect(()=>{l({}),f.current={},u("idle")},[A]),r.useEffect(()=>{const E=()=>{Object.keys(f.current).length&&_$(h.current.id,y())};return window.addEventListener("beforeunload",E),()=>{window.removeEventListener("beforeunload",E),m.current&&clearTimeout(m.current),E()}},[y]),{json:y(),state:c,patch:b,flush:C,applyRow:S}}function QF(e){return e==="saving"?"Saving…":e==="pending"?"Unsaved changes":e==="error"?"Not saved":"Saved"}function JF(){var y,x;const{brand:e}=Tt(),{push:t}=rr(),n=XF(),[s,l]=r.useState(!1),[c,u]=r.useState([]),f=((x=(y=n.json)==null?void 0:y.meta)==null?void 0:x.website)??"",[h,m]=r.useState(f);r.useEffect(()=>m(f),[f]);const p=()=>{var A;const b=h.trim(),C=b&&!/^https?:\/\//i.test(b)?`https://${b}`:b;m(C);const S={...((A=n.json)==null?void 0:A.meta)??{}};C?S.website=C:delete S.website,n.patch({meta:S})},v=async()=>{var b,C;l(!0);try{await n.flush();const S=await ke.refreshBrandFromUrl(e.id);n.applyRow(S),u(((b=S.suggestions)==null?void 0:b.palette)??[]),t({kind:"success",title:"Read the website again",detail:(C=S.warnings)!=null&&C.length?S.warnings.join(" "):"Your edits were kept."})}catch(S){t(tn(S,"Could not read that website"))}finally{l(!1)}};return o.jsxs(o.Fragment,{children:[o.jsx(Vr,{title:"Identity",sub:"The name and the mark.",children:o.jsx(CF,{brand:e,doc:n})}),o.jsx(Vr,{title:"Palette",sub:"Favoured on a shot that asks for the kit.",children:o.jsx("div",{className:"sc-set-block",children:o.jsx(YF,{doc:n,suggestions:c})})}),o.jsx(Vr,{title:"We never",sub:"Held on every shot, whether the kit is asked for or not.",children:o.jsx("div",{className:"sc-set-block",children:o.jsx(EF,{doc:n})})}),o.jsxs(Vr,{title:"Portable",sub:"The kit is a file, not a lock-in.",children:[o.jsxs("div",{className:"sc-set-row","data-stack":"",children:[o.jsxs("span",{className:"txt",children:[o.jsx("b",{children:"Website"}),o.jsx("small",{children:"Reads colours and marks from the site again. Edits are kept; new colours are offered, not applied."})]}),o.jsxs("div",{className:"sc-set-controls",children:[o.jsx("input",{className:"sc-in",value:h,type:"url",inputMode:"url",placeholder:"acme.coffee","aria-label":"Brand website",onChange:b=>m(b.target.value),onBlur:p,onKeyDown:b=>{b.key==="Enter"&&b.currentTarget.blur()}}),o.jsxs("button",{type:"button",className:"sc-btn sc-btn-ghost",disabled:!f||s,onClick:()=>void v(),children:[s?o.jsx(qt,{size:"1"}):o.jsx(gp,{size:13})," Refresh"]})]})]}),o.jsxs("div",{className:"sc-set-row",children:[o.jsxs("span",{className:"txt",children:[o.jsx("b",{children:"Export .brand"}),o.jsx("small",{"data-prose":"",children:"A zip holding brand.json and every image it references: the form any tool can read."})]}),o.jsx("a",{className:"sc-btn sc-btn-ghost",href:I$(e.id),download:!0,onClick:()=>void n.flush(),children:"Export"})]}),o.jsxs("div",{className:"sc-set-row",children:[o.jsxs("span",{className:"txt",children:[o.jsx("b",{children:"Changes"}),o.jsx("small",{"data-prose":"",children:"Written as you make them. There is no save button to forget."})]}),o.jsx("span",{className:"sc-tag","data-state":n.state,children:QF(n.state)})]})]})]})}const ro=e=>e.replace(/\s*\(BYOK\)\s*$/i,""),nu="codex-cli";function eI(e,t){var n;return e.some(s=>s.id===t)?t:((n=e[0])==null?void 0:n.id)??nu}const tI=e=>e.toFixed(3).replace(/0+$/,"").replace(/\.$/,"");function nI(e){return e.free?e.localOnly?"Runs on your ChatGPT plan":"No cost per image":`$${tI(e.perGeneration)} / image`}function rI(e,t){if(t)return e.available?"Manage":"Connect";if(e.available)return e.id===nu?"Manage":null;switch(e.code){case"update-needed":return"Update";case"not-installed":case"not-authenticated":case"unverified":return"Set up";default:return null}}function R9(e){return o.jsx("svg",{viewBox:"0 0 24 24",width:"20",height:"20",fill:"currentColor","aria-hidden":"true",focusable:"false",...e,children:o.jsx("path",{d:"M22.282 9.821a6 6 0 0 0-.516-4.91a6.05 6.05 0 0 0-6.51-2.9A6.065 6.065 0 0 0 4.981 4.18a6 6 0 0 0-3.998 2.9a6.05 6.05 0 0 0 .743 7.097a5.98 5.98 0 0 0 .51 4.911a6.05 6.05 0 0 0 6.515 2.9A6 6 0 0 0 13.26 24a6.06 6.06 0 0 0 5.772-4.206a6 6 0 0 0 3.997-2.9a6.06 6.06 0 0 0-.747-7.073M13.26 22.43a4.48 4.48 0 0 1-2.876-1.04l.141-.081l4.779-2.758a.8.8 0 0 0 .392-.681v-6.737l2.02 1.168a.07.07 0 0 1 .038.052v5.583a4.504 4.504 0 0 1-4.494 4.494M3.6 18.304a4.47 4.47 0 0 1-.535-3.014l.142.085l4.783 2.759a.77.77 0 0 0 .78 0l5.843-3.369v2.332a.08.08 0 0 1-.033.062L9.74 19.95a4.5 4.5 0 0 1-6.14-1.646M2.34 7.896a4.5 4.5 0 0 1 2.366-1.973V11.6a.77.77 0 0 0 .388.677l5.815 3.354l-2.02 1.168a.08.08 0 0 1-.071 0l-4.83-2.786A4.504 4.504 0 0 1 2.34 7.872zm16.597 3.855l-5.833-3.387L15.119 7.2a.08.08 0 0 1 .071 0l4.83 2.791a4.494 4.494 0 0 1-.676 8.105v-5.678a.79.79 0 0 0-.407-.667m2.01-3.023l-.141-.085l-4.774-2.782a.78.78 0 0 0-.785 0L9.409 9.23V6.897a.07.07 0 0 1 .028-.061l4.83-2.787a4.5 4.5 0 0 1 6.68 4.66zm-12.64 4.135l-2.02-1.164a.08.08 0 0 1-.038-.057V6.075a4.5 4.5 0 0 1 7.375-3.453l-.142.08L8.704 5.46a.8.8 0 0 0-.393.681zm1.097-2.365l2.602-1.5l2.607 1.5v2.999l-2.597 1.5l-2.607-1.5Z"})})}function aI(e){return o.jsx("svg",{viewBox:"0 0 24 24",width:"20",height:"20",fill:"currentColor","aria-hidden":"true",focusable:"false",...e,children:o.jsx("path",{d:"M16.778 1.844v1.919q-.569-.026-1.138-.032-.708-.008-1.415.037c-1.93.126-4.023.728-6.149 2.237-2.911 2.066-2.731 1.95-4.14 2.75-.396.223-1.342.574-2.185.798-.841.225-1.753.333-1.751.333v4.229s.768.108 1.61.333c.842.224 1.789.575 2.185.799 1.41.798 1.228.683 4.14 2.75 2.126 1.509 4.22 2.11 6.148 2.236.88.058 1.716.041 2.555.005v1.918l7.222-4.168-7.222-4.17v2.176c-.86.038-1.611.065-2.278.021-1.364-.09-2.417-.357-3.979-1.465-2.244-1.593-2.866-2.027-3.68-2.508.889-.518 1.449-.906 3.822-2.59 1.56-1.109 2.614-1.377 3.978-1.466.667-.044 1.418-.017 2.278.02v2.176L24 6.014Z"})})}function sI(e){return o.jsx("svg",{viewBox:"0 0 24 24",width:"20",height:"20",fill:"currentColor","aria-hidden":"true",focusable:"false",...e,children:o.jsx("path",{d:"M24 10.262v2.712h-9.518V24h-3.034V10.262zm0-5.131v2.717H8.755V24H5.722V5.131zM24 0v2.717H3.034V24H0V0z"})})}const oI=[{engineId:"openrouter",settingKey:"openrouter_api_key",hint:"sk-or-...",keysUrl:"https://openrouter.ai/keys"},{engineId:"replicate",settingKey:"replicate_api_token",hint:"r8_...",keysUrl:"https://replicate.com/account/api-tokens"},{engineId:"fal",settingKey:"fal_key",hint:"fal_...",keysUrl:"https://fal.ai/dashboard/keys"}],P9=e=>oI.find(t=>t.engineId===e),L9={"codex-cli":{Mark:R9,size:16,plate:"#FFFFFF",ink:"#000000"},openrouter:{Mark:aI,size:18,plate:"#FFFFFF",ink:"#7624F4"},replicate:{Mark:sI,size:15,plate:"#E42022",ink:"#FFFFFF"}},Bh=e=>{const t=L9[e];return t?{plate:t.plate,ink:t.ink}:void 0},lI={demo:m$};function T9({engineId:e,scale:t=1}){const n=L9[e];if(n){const l=Math.round(n.size*t);return o.jsx(n.Mark,{width:l,height:l})}const s=lI[e]??N1;return o.jsx(s,{size:Math.round(15*t)})}const iI=e=>[...e].sort((t,n)=>+(n.id===nu)-+(t.id===nu));function cI({engines:e}){const t=xd(),s=e.filter(l=>l.available).length===0;return o.jsx(Vr,{sub:"Where your images are generated. Connect as many as you like, then pick one in the composer.",children:iI(e).map(l=>{const c=P9(l.id),u=ro(l.displayName),f=rI(l,!!c),h=l.available?"Connected":null,m=!h&&l.reason&&(!f||l.code==="unverified"),p=Bh(l.id);return o.jsxs("div",{className:"sc-eng","data-connected":l.available?"":void 0,children:[o.jsx("span",{className:"sc-eng-ic","data-brand":p?"":void 0,style:p?{"--sc-plate":p.plate,"--sc-ink":p.ink}:void 0,children:o.jsx(T9,{engineId:l.id})}),o.jsxs("span",{className:"sc-eng-name",children:[o.jsx("b",{children:u}),o.jsx("small",{children:nI(l)})]}),h&&o.jsxs("span",{className:"sc-stat",children:[o.jsx("span",{className:"d"}),h]}),m&&o.jsx("span",{className:"sc-stat sc-stat-why",children:l.reason}),f&&o.jsx("button",{type:"button",className:`sc-btn ${s&&!c?"sc-btn-primary":"sc-btn-ghost"} sc-eng-act`,onClick:()=>t(l.id),"aria-label":`${f} ${u}`,children:f})]},l.id)})})}const uI={npx:"run with npx",global:"installed with npm",managed:"managed install",dev:"running from source",unknown:"local studio"};function dI(e){switch(e){case"npx":return"npx scenri update";case"global":case"managed":return"scenri update";default:return"npx scenri@latest"}}function fI({version:e}){var b;const t=jp(),n=Sd(),s=t.status,[l,c]=r.useState(null),[u,f]=r.useState(!1);r.useEffect(()=>{ke.settings().then(C=>c(!!C.updateCheck)).catch(()=>{})},[]);const h=async()=>{if(l===null)return;const C=!l;c(C);try{await ke.saveSettings({updateCheck:C})}catch{c(!C)}},m=dI(e==null?void 0:e.installKind),p=async()=>{try{await navigator.clipboard.writeText(m),f(!0),setTimeout(()=>f(!1),1600)}catch{}},v=t.checking?o.jsx("span",{className:"sc-tag",children:"checking…"}):s!=null&&s.available?o.jsxs("span",{className:"sc-tag sc-tag-gold",children:[s.latest," available"]}):t.checkError||s!=null&&s.error?o.jsx("span",{className:"sc-tag",children:"couldn't check for updates"}):s!=null&&s.checkedAt?o.jsx("span",{className:"sc-tag",children:"up to date"}):null;let y,x;return s!=null&&s.available?(e==null?void 0:e.installKind)==="dev"?(y="Running from source. Pull and rebuild when you're ready; nothing here touches your checkout.",x=null):s9(s)?s.phase==="ready"?(y=t.applyError??`${s.stagedVersion} is downloaded and verified. Restarting finishes it.`,x="restart"):s.phase==="staging"?(y="Downloading in the background. Nothing interrupts your work.",x="downloading"):s.phase==="error"?(y=t.applyError??s.error??"Couldn't download the update. Try again.",x="update"):(y=`You are on ${s.current}.`,x="update"):(y=o.jsxs(o.Fragment,{children:["Run ",o.jsx("code",{children:m})," in a terminal, then start Scenri again. Your library is not part of the app and stays put."]}),x="copy"):(y=s&&!s.enabled?"Automatic checks are off. Checking here still works.":"New versions announce themselves here.",x="check"),o.jsxs(Vr,{children:[o.jsx("div",{className:"sc-set-row",children:o.jsxs("span",{className:"txt",children:[o.jsx("b",{children:"Scenri"}),o.jsxs("small",{children:[e?`v${e.version}`:""," · ",uI[(e==null?void 0:e.installKind)??"unknown"]]})]})}),o.jsxs("div",{className:"sc-set-row",children:[o.jsxs("span",{className:"txt",children:[o.jsx("b",{children:"Updates"}),o.jsxs("small",{"data-prose":"",children:[y,(s==null?void 0:s.available)&&s.phase!=="ready"&&s.notesUrl&&o.jsxs(o.Fragment,{children:[" ",o.jsxs("a",{href:s.notesUrl,target:"_blank",rel:"noreferrer",children:["See what's in ",s.latest]})]})]})]}),v,x==="check"&&o.jsx("button",{type:"button",className:"sc-btn sc-btn-ghost",disabled:t.checking,onClick:()=>void t.checkNow(),children:"Check for updates"}),(x==="update"||x==="restart")&&o.jsx("button",{type:"button",className:"sc-btn sc-btn-primary",disabled:t.busy!=="idle",onClick:()=>void t.apply(),children:t.busy!=="idle"?"Updating…":(s==null?void 0:s.phase)==="error"?"Try again":"Update"}),x==="downloading"&&o.jsx("button",{type:"button",className:"sc-btn sc-btn-primary",disabled:!0,children:"Downloading…"}),x==="copy"&&o.jsx("button",{type:"button",className:"sc-btn sc-btn-ghost",onClick:()=>void p(),children:u?"Copied":"Copy command"})]}),o.jsxs("div",{className:"sc-set-row",children:[o.jsxs("span",{className:"txt",children:[o.jsx("b",{children:"What's new"}),o.jsx("small",{children:((b=n.entry)==null?void 0:b.title)??`What changed in ${n.version?`v${n.version}`:"this version"}.`})]}),o.jsx("button",{type:"button",className:"sc-btn sc-btn-ghost",onClick:()=>n.open(),children:"Show"})]}),o.jsxs("div",{className:"sc-set-row",children:[o.jsxs("span",{className:"txt",children:[o.jsx("b",{children:"Automatic updates"}),o.jsx("small",{"data-prose":"",children:"A version check every six hours; new versions download in the background, and restarting is always your call. Off means Scenri never calls anywhere by itself."})]}),o.jsx("button",{type:"button",className:"sc-btn sc-btn-ghost",disabled:l===null,onClick:()=>void h(),children:l===null?"…":l?"Turn off":"Turn on"})]}),o.jsx("div",{className:"sc-set-row",children:o.jsxs("span",{className:"txt",children:[o.jsx("b",{children:"License"}),o.jsx("small",{children:"AGPL-3.0 for the app · Apache-2.0 for the .brand format"})]})}),o.jsx("div",{className:"sc-set-row",children:o.jsxs("span",{className:"txt",children:[o.jsx("b",{children:"Open source"}),o.jsxs("small",{children:["Built by Tony Gorb ·"," ",o.jsx("a",{href:"https://github.com/tonygorb/scenri",target:"_blank",rel:"noreferrer",children:"GitHub"})]})]})})]})}function hI(){const{choice:e,setChoice:t}=WT(),n=[{id:"light",label:"Light",swatch:"linear-gradient(140deg,#ffffff 55%,#f1f1f1)"},{id:"dark",label:"Dark",swatch:"linear-gradient(140deg,#0d0d0d 55%,#1c1c1c)"},{id:"system",label:"System",swatch:"linear-gradient(110deg,#ffffff 50%,#0d0d0d 50%)"}];return o.jsx(Vr,{sub:"Follows your system unless you pick a side.",children:o.jsx("div",{className:"sc-themes",children:n.map(s=>o.jsxs("button",{type:"button",className:"sc-tp","data-on":e===s.id?"":void 0,onClick:()=>t(s.id),children:[o.jsx("span",{className:"swl",style:{background:s.swatch}}),o.jsxs("span",{className:"lbl",children:[o.jsx("span",{className:"dot"}),s.label]})]},s.id))})})}function mI({engines:e,onSaved:t}){const n=e.filter(u=>!u.free),[s,l]=r.useState({});r.useEffect(()=>{l(Object.fromEntries(n.map(u=>[u.id,u.cap===null?"":String(u.cap)])))},[e]);const c=async u=>{const f=(s[u]??"").trim(),h=f===""?null:Number(f);h!==null&&(Number.isNaN(h)||h<0)||(await ke.setCap(u,h),t())};return n.length?o.jsx(Vr,{sub:"Your own API budget. Generation stops before a cap is crossed, so a runaway loop cannot spend your month.",children:n.map(u=>{const f=u.generationsLeft,h=u.generationsTotal,m=h&&h>0?Math.min(100,Math.round((h-(f??0))/h*100)):0,p=`$${u.monthlySpend.toFixed(2)} this month`;return o.jsxs("div",{className:"sc-cap",children:[o.jsxs("div",{className:"sc-cap-top",children:[o.jsxs("span",{className:"txt",children:[o.jsx("b",{children:ro(u.displayName)}),o.jsx("small",{children:f===null?p:`${p} · ${f} left`})]}),o.jsxs("div",{className:"sc-cap-in",children:[o.jsx("span",{className:"sc-cap-dollar",children:"$"}),o.jsx("input",{className:"sc-in",inputMode:"decimal",placeholder:"None",value:s[u.id]??"",onChange:v=>l(y=>({...y,[u.id]:v.target.value})),onBlur:()=>void c(u.id),"aria-label":`${ro(u.displayName)} monthly cap in dollars`})]})]}),h!==null&&o.jsx("div",{className:"sc-meter",children:o.jsx("i",{style:{width:`${m}%`}})})]},u.id)})}):o.jsx(Vr,{sub:"Nothing to cap yet. Caps apply to engines you pay for per image. Codex usage counts against your ChatGPT plan, which OpenAI meters, not Scenri.",children:o.jsx("p",{className:"sc-set-empty",children:"Add a paid engine key and its cap appears here."})})}function Cs({label:e,title:t,body:n,busy:s,onConfirm:l,fullWidth:c}){return o.jsxs(vu,{children:[o.jsx(i5,{children:o.jsx("button",{type:"button",className:"sc-btn sc-btn-ghost sc-btn-red",disabled:s,style:c?{width:"100%"}:void 0,children:e})}),o.jsxs(yu,{maxWidth:"420px",children:[o.jsx(xu,{children:t}),o.jsx(wu,{size:"2",children:n}),o.jsxs(pr,{gap:"3",mt:"4",justify:"end",children:[o.jsx(Eu,{children:o.jsx(ja,{variant:"soft",color:"gray",children:"Cancel"})}),o.jsx(bu,{children:o.jsx(ja,{color:"red",onClick:l,children:e})})]})]})]})}function pI({onDone:e}){const{brand:t}=Tt(),n=vn(),[s,l]=r.useState(!1),c=r.useCallback(async u=>{l(!0);try{await ke.deleteData(u),e(),u==="all"&&window.location.replace("/")}finally{l(!1)}},[e]);return o.jsxs(Vr,{sub:"These do not come back. Export from Library first if you are not certain.",children:[o.jsxs("div",{className:"sc-set-row",children:[o.jsxs("span",{className:"txt",children:[o.jsx("b",{children:"Delete this brand"}),o.jsxs("small",{"data-prose":"",children:["Removes ",xs(t),", its sets and every shot. Other brands stay."]})]}),o.jsx(Cs,{label:"Delete brand",title:`Delete ${xs(t)}?`,body:"The kit, its sets and every shot go with it. Exports you already downloaded stay yours.",busy:s,onConfirm:()=>{l(!0),ke.deleteBrand(t.id).then(e).then(()=>n("/",{replace:!0})).finally(()=>l(!1))}})]}),o.jsxs("div",{className:"sc-set-row",children:[o.jsxs("span",{className:"txt",children:[o.jsx("b",{children:"Delete generated shots"}),o.jsx("small",{"data-prose":"",children:"Keeps brands, cast and scenes. Removes every set and every generated shot."})]}),o.jsx(Cs,{label:"Delete shots",title:"Delete every generated shot?",body:"Brands, cast and scenes stay. Every set and every generated shot goes.",busy:s,onConfirm:()=>void c("shots")})]}),o.jsxs("div",{className:"sc-set-row",children:[o.jsxs("span",{className:"txt",children:[o.jsx("b",{children:"Delete all local data"}),o.jsx("small",{"data-prose":"",children:"Brands, cast, sets, shots and saved keys, in one go."})]}),o.jsx(Cs,{label:"Delete everything",title:"Delete everything on this machine?",body:"The whole library folder is removed: brands, cast, sets, shots and your saved keys. There is no undo.",busy:s,onConfirm:()=>void c("all")})]})]})}const gI=e=>e>1e9?`${(e/1e9).toFixed(1)} GB`:e>1e6?`${Math.round(e/1e6)} MB`:`${Math.round(e/1e3)} KB`,V2=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function vI(e){return e===0?0:e<3?1:e<6?2:e<12?3:4}function sv(e,t){const n=t*7,s=new Date,l=new Date(s);l.setDate(s.getDate()-(n-1)-s.getDay());const c=[],u=[];let f=-1,h=0;for(let m=0;m<n;m++){const p=new Date(l);p.setDate(l.getDate()+m);const v=p.toISOString().slice(0,10),y=e.get(v)??0;if(h+=y,c.push({key:v,level:vI(y),title:y?`${y} run${y===1?"":"s"} on ${p.getDate()} ${V2[p.getMonth()]}`:`nothing on ${p.getDate()} ${V2[p.getMonth()]}`}),p.getDay()===0){const x=p.getMonth()!==f&&p.getDate()<=7;x&&(f=p.getMonth()),u.push({key:v,label:x?V2[p.getMonth()]:""})}}return{cells:c,months:u,sum:h}}function yI(){const[e,t]=r.useState(null);return r.useEffect(()=>{ke.home().then(t).catch(()=>{})},[]),o.jsxs(Vr,{sub:"Plain files on this machine. Open them yourself, back them up like anything else.",children:[o.jsxs("div",{className:"sc-set-row",children:[o.jsxs("span",{className:"txt",children:[o.jsx("b",{children:"Library folder"}),o.jsx("small",{children:e?`${e.dir} · ${gI(e.bytes)} across ${e.images} images`:"…"})]}),o.jsx("button",{type:"button",className:"sc-btn sc-btn-ghost",onClick:()=>void ke.reveal(),children:"Reveal"})]}),o.jsxs("div",{className:"sc-set-row",children:[o.jsxs("span",{className:"txt",children:[o.jsx("b",{children:"Export everything"}),o.jsx("small",{children:"One zip: brands, cast, briefs, shots. Never keys."})]}),o.jsx("a",{className:"sc-btn sc-btn-ghost",href:"/api/export/all",download:!0,children:"Export"})]}),o.jsxs("div",{className:"sc-set-row",children:[o.jsxs("span",{className:"txt",children:[o.jsx("b",{children:"Telemetry"}),o.jsx("small",{children:"There is none. This row exists to say so."})]}),o.jsx("span",{className:"sc-tag",children:"off, permanently"})]})]})}function ov({weeks:e,months:t,cells:n}){return o.jsxs("div",{className:"sc-heat-range","data-weeks":e,children:[o.jsx("div",{className:"sc-heat-months",children:t.map(s=>o.jsx("span",{children:s.label},s.key))}),o.jsx("div",{className:"sc-heat-grid",children:n.map(s=>o.jsx("i",{"data-l":s.level||void 0,title:s.title},s.key))})]})}function xI({shots:e}){const t=r.useMemo(()=>e.filter(f=>f.kind!=="root"),[e]),{year:n,quarter:s,total:l,byKind:c}=r.useMemo(()=>{const f=new Map,h={generation:0,edit:0};for(const v of t??[]){const y=String(v.createdAt).slice(0,10);f.set(y,(f.get(y)??0)+1),v.kind==="edit"?h.edit++:h.generation++}const m=sv(f,53),p=sv(f,13);return{year:m,quarter:p,total:m.sum,byKind:h}},[t]);if(t===null)return o.jsx("p",{className:"sc-set-empty",children:"Reading your library…"});const u=Math.max(c.generation,c.edit,1);return o.jsxs(o.Fragment,{children:[o.jsx(Vr,{title:"The last year",sub:"One square per day, counted from your own runs.",children:o.jsxs("div",{className:"sc-heat",children:[o.jsx("div",{className:"sc-heat-h",children:o.jsxs("b",{children:[l.toLocaleString()," runs in the last year"]})}),o.jsx(ov,{weeks:53,months:n.months,cells:n.cells}),o.jsx(ov,{weeks:13,months:s.months,cells:s.cells})]})}),o.jsx(Vr,{title:"By activity",children:o.jsxs("div",{className:"sc-bars",children:[o.jsxs("div",{className:"sc-bar",children:[o.jsx("span",{className:"k",children:"Generations"}),o.jsx("span",{className:"t",children:o.jsx("i",{style:{width:`${c.generation/u*100}%`}})}),o.jsx("span",{className:"v",children:c.generation})]}),o.jsxs("div",{className:"sc-bar",children:[o.jsx("span",{className:"k",children:"Edits"}),o.jsx("span",{className:"t",children:o.jsx("i",{style:{width:`${c.edit/u*100}%`}})}),o.jsx("span",{className:"v",children:c.edit})]})]})})]})}const ti=[{id:"brand",label:"Brand kit",title:"Brand kit",icon:o.jsx(j$,{size:14})},{id:"engines",label:"Providers",title:"Providers",icon:o.jsx(N1,{size:14})},{id:"budget",label:"Budget",title:"Budget",icon:o.jsx(A$,{size:14})},{id:"usage",label:"Usage",title:"Usage",icon:o.jsx(g$,{size:14})},{id:"library",label:"Library",title:"Library",icon:o.jsx(f$,{size:14})},{id:"appearance",label:"Appearance",title:"Appearance",icon:o.jsx(T$,{size:14})},{id:"about",label:"About",title:"About",icon:o.jsx(wp,{size:14})},{id:"danger",label:"Danger zone",title:"Danger zone",icon:o.jsx(pd,{size:14}),danger:!0}];function wI({engines:e,shots:t,onSaved:n}){const s=Ps("settings"),l=s.value!==null,[c,u]=r.useState(null);r.useEffect(()=>{if(!l||c)return;let p=!0;return ke.version().then(v=>p&&u(v)).catch(()=>{}),()=>{p=!1}},[l,c]);const f=ti.some(p=>p.id===s.value)?s.value:"brand",h=p=>s.set(p),m=r.useRef(null);return r.useEffect(()=>{const p=m.current;if(!p)return;const v=p.querySelector('[aria-current="page"]');if(!(v instanceof HTMLElement))return;const y=requestAnimationFrame(()=>{const x=v.offsetLeft-(p.clientWidth-v.offsetWidth)/2;p.scrollTo({left:Math.max(0,x)})});return()=>cancelAnimationFrame(y)},[f,l]),o.jsx(bl,{open:l,onOpenChange:p=>!p&&s.close(),children:o.jsxs(El,{className:"sc-set",maxWidth:"940px","aria-describedby":void 0,onOpenAutoFocus:ju,children:[o.jsx(Cl,{style:{display:"none"},children:"Settings"}),o.jsxs("div",{className:"sc-set-grid",children:[o.jsxs("nav",{className:"sc-set-rail","aria-label":"Settings",children:[o.jsx("p",{className:"sc-set-group",children:"This brand"}),o.jsx(z2,{p:ti[0],on:f==="brand",pick:()=>h("brand")}),o.jsx("p",{className:"sc-set-group",children:"Generation"}),ti.slice(1,4).map(p=>o.jsx(z2,{p,on:f===p.id,pick:()=>h(p.id)},p.id)),o.jsx("p",{className:"sc-set-group",children:"This machine"}),ti.slice(4).map(p=>o.jsx(z2,{p,on:f===p.id,pick:()=>h(p.id)},p.id)),o.jsx("span",{className:"sc-set-spacer"}),o.jsxs("p",{className:"sc-set-ver",children:[c?`v${c.version}`:"Scenri"," · local"]})]}),o.jsxs("div",{className:"sc-set-body",children:[o.jsxs("div",{className:"sc-set-head",children:[o.jsx("b",{children:ti.find(p=>p.id===f).title}),o.jsx("span",{className:"sc-set-sp"}),o.jsx(Cu,{children:o.jsx("button",{type:"button",className:"sc-set-close","aria-label":"Close",children:o.jsx(Mn,{size:16})})})]}),o.jsx("nav",{className:"sc-set-tabs","aria-label":"Settings",ref:m,children:ti.map(p=>o.jsx(bI,{p,on:f===p.id,pick:()=>h(p.id)},p.id))}),o.jsxs("div",{className:"sc-set-scroll",children:[f==="brand"&&o.jsx(JF,{}),f==="engines"&&o.jsx(cI,{engines:e}),f==="budget"&&o.jsx(mI,{engines:e,onSaved:n}),f==="usage"&&o.jsx(xI,{shots:t}),f==="library"&&o.jsx(yI,{}),f==="appearance"&&o.jsx(hI,{}),f==="about"&&o.jsx(fI,{version:c}),f==="danger"&&o.jsx(pI,{onDone:n})]})]})]})]})})}function z2({p:e,on:t,pick:n}){return o.jsxs("button",{type:"button",className:"sc-set-item","data-on":t?"":void 0,"data-danger":e.danger?"":void 0,"aria-current":t?"page":void 0,onClick:n,children:[e.icon,e.label]})}function bI({p:e,on:t,pick:n}){return o.jsx("button",{type:"button",className:"sc-chip","data-active":t?"true":void 0,"data-danger":e.danger?"":void 0,"aria-current":t?"page":void 0,onClick:n,children:e.label})}const EI=["January","February","March","April","May","June","July","August","September","October","November","December"];function CI(e){const t=e.match(/^(\d{4})-(\d{2})-(\d{2})$/);if(!t)return e;const n=EI[Number(t[2])-1];return n?`${Number(t[3])} ${n} ${t[1]}`:e}function SI(){const e=Ps("whatsnew"),{status:t,version:n,entry:s,changelogUrl:l,releasesUrl:c,markSeen:u}=Sd(),f=e.value!==null,h=()=>{u(),e.close()},m=t==="ready"&&!s&&!l,p=s!==null&&s.sections.length>1,v=t==="loading"?"Reading the release notes.":t==="failed"?"Scenri could not read its release notes. If you are running a development server, it may predate this feature; restart it and try again.":m?"You are running a development build. What changed in a version appears here once that version is published.":s?"Maintenance only. Nothing here changes how Scenri works for you.":"This version went out without a written summary.",y=s?o.jsxs(o.Fragment,{children:[o.jsx("span",{className:"sc-vh",children:"Version "}),o.jsx("span",{className:"sc-wn-ver",children:s.version}),o.jsx("span",{"aria-hidden":"true",children:" · "}),CI(s.date)]}):t==="failed"?"Release notes unavailable":t==="loading"?"Loading":m?"Development build":o.jsxs(o.Fragment,{children:[o.jsx("span",{className:"sc-vh",children:"Version "}),o.jsx("span",{className:"sc-wn-ver",children:n})]});return o.jsxs(Ed,{open:f,className:"sc-wn",maxWidth:"420px",described:!0,onDismiss:h,children:[o.jsxs("div",{className:"sc-newdlg-head",children:[o.jsx(Rp,{className:"sc-newdlg-title",children:"What's new"}),o.jsx(M1,{children:o.jsx("button",{type:"button",className:"sc-set-close sc-newdlg-close","aria-label":"Close",children:o.jsx(Mn,{size:16})})})]}),o.jsx(_D,{className:"sc-wn-sub",children:y}),o.jsxs("div",{className:"sc-newdlg-body",children:[(s==null?void 0:s.title)&&o.jsx("p",{className:"sc-wn-lede sc-accent",children:s.title}),s&&s.sections.length>0?s.sections.map(x=>o.jsxs("section",{className:"sc-wn-sec",children:[p&&o.jsx("h3",{className:"sc-wn-head",children:x.heading}),o.jsx("p",{className:"sc-wn-txt",children:x.body})]},x.heading)):o.jsx("p",{className:"sc-wn-txt",children:v})]}),o.jsxs("div",{className:"sc-newdlg-foot sc-wn-foot",children:[c&&o.jsxs("a",{className:"sc-wn-link",href:c,target:"_blank",rel:"noreferrer",children:["All releases",o.jsx(fd,{size:13})]}),o.jsx(M1,{children:o.jsx("button",{type:"button",className:"sc-btn sc-btn-primary",children:"Got it"})})]})]})}const jI=2e3,kI=5*6e4;function AI({engines:e,onSaved:t}){const n=Ps("setup"),s=n.close,l=n.value,c=l?P9(l):void 0,f=!!c||l==="codex-cli",h=e.find(m=>m.id===l);return o.jsx(bl,{open:f,onOpenChange:m=>!m&&s(),children:o.jsx(El,{className:"sc-setup",maxWidth:"520px","aria-describedby":void 0,onOpenAutoFocus:ju,children:c?o.jsx(NI,{provider:c,name:h?ro(h.displayName):c.engineId,connected:!!(h!=null&&h.available),onSaved:t,onDone:s}):o.jsx(MI,{engines:e,onSaved:t,onDone:s})})})}function H9({title:e}){return o.jsxs("div",{className:"sc-setup-head",children:[o.jsx(Cl,{className:"sc-setup-title",children:e}),o.jsx("span",{className:"sc-set-sp"}),o.jsx(Cu,{children:o.jsx("button",{type:"button",className:"sc-set-close","aria-label":"Close",children:o.jsx(Mn,{size:16})})})]})}function NI({provider:e,name:t,connected:n,onSaved:s,onDone:l}){var S,A;const[c,u]=r.useState(""),[f,h]=r.useState(!1),[m,p]=r.useState(null),[v,y]=r.useState(!1),x=r.useRef(null);r.useEffect(()=>{var E;(E=x.current)==null||E.focus()},[]);const b=async()=>{const E=c.trim();if(E){h(!0),p(null);try{await ke.saveSettings({[e.settingKey]:E}),u(""),s(),l()}catch(k){p(k.message)}finally{h(!1)}}},C=async()=>{h(!0),p(null);try{await ke.saveSettings({[e.settingKey]:""});const E=await ke.settings();if(s(),E[e.settingKey]){y(!0);return}l()}catch(E){p(E.message)}finally{h(!1)}};return o.jsxs(o.Fragment,{children:[o.jsx(H9,{title:n?`${t} key`:`Connect ${t}`}),o.jsxs("div",{className:"sc-setup-body",children:[o.jsxs("div",{className:"sc-setup-who",children:[o.jsx("span",{className:"sc-eng-ic","data-brand":"",style:{"--sc-plate":(S=Bh(e.engineId))==null?void 0:S.plate,"--sc-ink":(A=Bh(e.engineId))==null?void 0:A.ink},children:o.jsx(T9,{engineId:e.engineId})}),o.jsx("p",{className:"sc-setup-lead",children:n?`A key is saved for ${t}. Paste a new one to replace it, or disconnect to remove it from this computer.`:`Paste a key from ${t}. It is stored in your library folder on this computer, sent only to ${t}, and never shown again.`})]}),o.jsxs("form",{className:"sc-setup-key",onSubmit:E=>{E.preventDefault(),b()},children:[o.jsx("input",{ref:x,className:"sc-in",type:"password",placeholder:e.hint,value:c,onChange:E=>u(E.target.value),autoComplete:"off",name:e.settingKey,"aria-label":`${t} key`}),o.jsxs("div",{className:"sc-setup-acts",children:[o.jsxs("button",{type:"submit",className:"sc-btn sc-btn-primary",disabled:f||!c.trim(),children:[f?o.jsx(qt,{size:"1"}):o.jsx(vw,{size:15}),n?"Replace key":"Connect"]}),o.jsxs("a",{className:"sc-setup-alt",href:e.keysUrl,target:"_blank",rel:"noreferrer",children:["Get a key ",o.jsx(fd,{size:13})]})]})]}),n&&o.jsx("div",{className:"sc-setup-cut",children:o.jsx(Cs,{label:"Disconnect",title:`Disconnect ${t}?`,body:"The key is deleted from this computer. Nothing you have already generated changes, and you can paste a new key at any time.",busy:f,onConfirm:()=>void C()})}),v&&o.jsxs("p",{className:"sc-setup-note",children:["The stored key is gone, but ",t," is still connected through the ",e.settingKey.toUpperCase()," ","environment variable on this computer. Remove it from your shell to disconnect fully."]}),m&&o.jsx("div",{className:"sc-setup-problem",children:o.jsxs("p",{"data-detail":"",children:[o.jsx(Bw,{size:15})," ",m]})})]})]})}function MI({engines:e,onSaved:t,onDone:n}){const s=xd(),[l,c]=r.useState("checking"),[u,f]=r.useState(null),[h,m]=r.useState(!1),[p,v]=r.useState("mac"),y=r.useRef(null),x=r.useCallback(()=>{y.current!==null&&(window.clearInterval(y.current),y.current=null)},[]),b=r.useCallback(async()=>{const{state:M,platform:N}=await ke.codexStatus();return N&&v(N),c(M),M},[]);r.useEffect(()=>(f(null),c("checking"),b().catch(()=>c("unverified")),x),[b,x]);const C=r.useCallback(()=>{f(null),c("checking"),b().catch(()=>c("unverified"))},[b]);r.useEffect(()=>{l==="ready"&&t()},[l,t]);const S=async()=>{f(null),c("installing");try{const M=await ke.installCodex();if(M.ok||M.state!=="not-installed"){c(M.state);return}f({detail:M.detail,command:M.fallbackCommand,docsUrl:M.docsUrl}),c(M.state)}catch(M){f({detail:M.message,command:"npm install -g @openai/codex"}),c("not-installed")}},A=async()=>{f(null),c("signing-in");const M=Date.now();x(),y.current=window.setInterval(()=>{if(Date.now()-M>kI){x(),c("not-authenticated"),f({detail:"Sign-in did not finish. Try again, or use the command below.",command:"codex login"});return}ke.codexStatus().then(({state:N})=>{N==="ready"&&(x(),c("ready"))}).catch(()=>{})},jI);try{const N=await ke.loginCodex();if(x(),N.ok||N.state==="ready"){c(N.state);return}f({detail:N.detail,command:N.fallbackCommand}),c(N.state)}catch(N){x(),f({detail:N.message,command:"codex login --device-auth"}),c("not-authenticated")}},E=M=>{var N;(N=navigator.clipboard)==null||N.writeText(M).then(()=>{m(!0),window.setTimeout(()=>m(!1),1600)})},k=e.filter(M=>M.available&&M.id!=="codex-cli"&&!M.localOnly);return o.jsxs(o.Fragment,{children:[o.jsx(H9,{title:"Set up image generation"}),o.jsx(RI,{phase:l}),o.jsxs("div",{className:"sc-setup-body",children:[l==="checking"&&o.jsxs("p",{className:"sc-setup-lead",children:[o.jsx(qt,{size:"1"})," Checking this computer."]}),(l==="not-installed"||l==="installing")&&o.jsxs(o.Fragment,{children:[o.jsx("p",{className:"sc-setup-lead",children:"Scenri generates with Codex CLI, a small official helper from OpenAI that runs on this computer and uses your own ChatGPT plan. It needs to be installed once."}),o.jsxs("div",{className:"sc-setup-acts",children:[o.jsxs("button",{type:"button",className:"sc-btn sc-btn-primary",onClick:S,disabled:l==="installing",children:[l==="installing"?o.jsx(qt,{size:"1"}):o.jsx(sw,{size:15}),l==="installing"?"Installing":"Install Codex CLI"]}),o.jsx("button",{type:"button",className:"sc-setup-alt",onClick:()=>c("no-plan"),children:"I do not have ChatGPT"})]})]}),(l==="not-authenticated"||l==="signing-in")&&o.jsxs(o.Fragment,{children:[o.jsx("p",{className:"sc-setup-lead",children:"Codex CLI is installed. Sign in with the ChatGPT account whose plan should cover your images. This opens your browser, and Scenri never sees your password or token."}),o.jsxs("div",{className:"sc-setup-acts",children:[o.jsxs("button",{type:"button",className:"sc-btn sc-btn-primary",onClick:A,disabled:l==="signing-in",children:[l==="signing-in"?o.jsx(qt,{size:"1"}):o.jsx(R$,{size:15}),l==="signing-in"?"Waiting for your browser":"Sign in with ChatGPT"]}),o.jsx("button",{type:"button",className:"sc-setup-alt",onClick:()=>c("no-plan"),children:"I do not have ChatGPT"})]}),l==="signing-in"&&o.jsx("p",{className:"sc-setup-note",children:"Finish in the browser tab that just opened. This screen updates itself."})]}),l==="ready"&&o.jsxs(o.Fragment,{children:[o.jsxs("p",{className:"sc-setup-lead",children:[o.jsx(la,{size:15})," Codex CLI is ready. Your images run on your own ChatGPT plan, and Scenri adds nothing to the bill."]}),o.jsxs("div",{className:"sc-setup-acts",children:[o.jsx("button",{type:"button",className:"sc-btn sc-btn-primary",onClick:n,children:"Start creating"}),o.jsxs("button",{type:"button",className:"sc-btn sc-btn-ghost",onClick:C,children:[o.jsx(f1,{size:14})," Check again"]})]})]}),l==="unverified"&&o.jsxs(o.Fragment,{children:[o.jsx("p",{className:"sc-setup-lead",children:"Scenri could not verify Codex on this computer. Something answered too slowly or not at all, so nothing is assumed to work."}),o.jsxs("div",{className:"sc-setup-acts",children:[o.jsxs("button",{type:"button",className:"sc-btn sc-btn-primary",onClick:C,children:[o.jsx(f1,{size:15})," Check again"]}),o.jsx("button",{type:"button",className:"sc-setup-alt",onClick:()=>c("no-plan"),children:"I do not have ChatGPT"})]}),o.jsx("p",{className:"sc-setup-note",children:"If you just installed Codex, quit and reopen Scenri so it can see the new command."})]}),l==="update-needed"&&o.jsxs(o.Fragment,{children:[o.jsx("p",{className:"sc-setup-lead",children:"Codex CLI on this computer is too old for Scenri. Update it once, then check again."}),o.jsxs("div",{className:"sc-setup-cmd",children:[o.jsx("code",{children:"npm install -g @openai/codex@latest"}),o.jsxs("button",{type:"button",className:"sc-btn sc-btn-ghost",onClick:()=>E("npm install -g @openai/codex@latest"),children:[h?o.jsx(la,{size:14}):o.jsx($g,{size:14}),h?"Copied":"Copy"]})]}),p==="windows"&&o.jsxs("p",{className:"sc-setup-note",children:["Installed with the standalone installer instead? Update it in PowerShell:"," ",o.jsx("code",{children:"irm https://chatgpt.com/codex/install.ps1 | iex"})]}),o.jsx("div",{className:"sc-setup-acts",children:o.jsxs("button",{type:"button",className:"sc-btn sc-btn-primary",onClick:C,children:[o.jsx(f1,{size:15})," Check again"]})})]}),l==="no-plan"&&o.jsxs(o.Fragment,{children:[o.jsx("p",{className:"sc-setup-lead",children:"Codex CLI draws on a ChatGPT plan, so without one there is nothing behind it to generate your images."}),o.jsx("p",{className:"sc-setup-lead",children:"You can use your own key from an image provider instead. You pay that provider directly, per image, and the key stays in your library folder on this computer."}),o.jsxs("div",{className:"sc-setup-acts",children:[o.jsxs("button",{type:"button",className:"sc-btn sc-btn-primary",onClick:()=>s("openrouter"),children:[o.jsx(vw,{size:15})," Add a provider key"]}),o.jsx("button",{type:"button",className:"sc-setup-alt",onClick:()=>void b(),children:"Back to Codex setup"})]}),k.length>0&&o.jsxs("p",{className:"sc-setup-note",children:[k.map(M=>ro(M.displayName)).join(", ")," is already connected, so you can generate now."]})]}),u&&o.jsxs("div",{className:"sc-setup-problem",children:[o.jsxs("p",{"data-detail":"",children:[o.jsx(Bw,{size:15})," ",u.detail??"That did not work."]}),u.command&&o.jsxs(o.Fragment,{children:[o.jsxs("p",{className:"sc-setup-note",children:["Run this in ",p==="windows"?"PowerShell":"Terminal",", then reopen this window:"]}),o.jsxs("div",{className:"sc-setup-cmd",children:[o.jsx("code",{children:u.command}),o.jsxs("button",{type:"button",className:"sc-btn sc-btn-ghost",onClick:()=>E(u.command),children:[h?o.jsx(la,{size:14}):o.jsx($g,{size:14}),h?"Copied":"Copy"]})]})]}),u.docsUrl&&o.jsxs("a",{className:"sc-setup-alt",href:u.docsUrl,target:"_blank",rel:"noreferrer",children:["Installation help ",o.jsx(fd,{size:13})]})]})]})]})}function RI({phase:e}){if(e==="no-plan")return null;const t=e==="not-authenticated"||e==="signing-in"||e==="update-needed"||e==="ready",n=e==="ready";return o.jsxs("ol",{className:"sc-setup-steps",children:[o.jsxs("li",{"data-on":t?"":void 0,"data-now":e==="not-installed"||e==="installing"?"":void 0,children:[t?o.jsx(la,{size:12}):o.jsx("span",{className:"d"})," Install"]}),o.jsxs("li",{"data-on":n?"":void 0,"data-now":e==="not-authenticated"||e==="signing-in"?"":void 0,children:[n?o.jsx(la,{size:12}):o.jsx("span",{className:"d"})," Sign in"]})]})}function PI(){const{brands:e}=an(),t=$9(e);return t?o.jsx(so,{to:ho(t),replace:!0}):o.jsx(so,{to:"/setup",replace:!0})}function $9(e){const t=VT();return e.find(n=>n.id===t)??e[0]??null}const D9=r.createContext(null);function Tt(){const e=r.useContext(D9);if(!e)throw new Error("useBrand must be used inside BrandLayout");return e}const F9=r.createContext(null);function LI(){const e=r.useContext(F9);if(!e)throw new Error("useAssetsPanel must be used inside BrandLayout");return e}function TI(){const{brandSlug:e}=ns(),{pathname:t,search:n}=rn(),s=ur({path:Ye.brand,end:!1}),{brands:l,engines:c,refresh:u}=an(),[f,h]=r.useState(null),[m,p]=r.useState([]),[v,y]=r.useState([]),[x,b]=r.useState({}),[C,S]=r.useState(!1),[A,E]=Qa(fr.assetsOpen,window.innerWidth>=1280),k=r.useCallback(()=>E(Z=>!Z),[]),M=r.useMemo(()=>({open:A,toggle:k,setOpen:E}),[A,k]);vF();const N=l.find(Z=>Z.slug===e)??l.find(Z=>Z.id===e)??null,{products:P,loaded:$,reload:L}=yF(N==null?void 0:N.id),W=r.useCallback(async()=>{if(!N)return;const Z=await ke.workspace(N.id);h(Z.project),p(Z.nodes),y(Z.sets),b(Z.membership),S(!0)},[N==null?void 0:N.id]),B=r.useCallback(Z=>y(G=>G.map(re=>re.id===Z.id?Z:re)),[]),te=r.useCallback(Z=>y(G=>G.filter(re=>re.id!==Z)),[]);r.useEffect(()=>{S(!1)},[N==null?void 0:N.id]),r.useEffect(()=>{N&&zT(N.id)},[N==null?void 0:N.id]),r.useEffect(()=>{W()},[W,N==null?void 0:N.updatedAt]);const X=s?t.slice(s.pathnameBase.length):"";if(!N){const Z=$9(l);return o.jsx(so,{to:Z?ho(Z)+X+n:Ye.root,replace:!0})}return e!==N.slug?o.jsx(so,{to:ho(N)+X+n,replace:!0}):o.jsxs(D9.Provider,{value:{brand:N,workspace:f,nodes:m,sets:v,membership:x,products:P,productsLoaded:$,refreshProducts:L,loaded:C,refresh:W,applySet:B,dropSet:te},children:[o.jsx(wI,{engines:c,shots:m,onSaved:u}),o.jsx(AI,{engines:c,onSaved:u}),o.jsx(SI,{}),o.jsxs(PD,{brand:N,children:[o.jsx(FI,{}),o.jsx(aF,{children:o.jsx(F9.Provider,{value:M,children:o.jsxs("div",{className:"sc-shell",children:[o.jsx(mF,{}),o.jsx(pm,{}),o.jsx(ID,{})]})})})]})]})}function HI(e){return!e.unread||e.spent||!e.loaded||!e.visible||e.dialogOpen?!1:e.running===0&&e.builds===0}const $I=Number(window.localStorage.getItem("scenri:whatsnew-settle-ms")??2500)||2500,I9=r.createContext(null);function Sd(){const e=r.useContext(I9);if(!e)throw new Error("useWhatsNew must be used inside WhatsNewProvider");return e}function DI({children:e}){const[t,n]=r.useState(null),[s,l]=r.useState(null),[c,u]=r.useState(null),[f,h]=r.useState(null),[m,p]=r.useState(null),[v,y]=r.useState("loading"),[x,b]=r.useState(!1),C=Ps("whatsnew");r.useEffect(()=>{let N=!0;return ke.releaseNotes().then(P=>{N&&(n(P.version),l(P.entry),u(P.changelogUrl),h(P.releasesUrl??null),p(P.seen),y("ready"))}).catch(()=>{N&&y("failed")}),()=>{N=!1}},[]);const S=C.open,A=r.useCallback(()=>S(t??"latest"),[S,t]),E=r.useCallback(()=>{b(!0),A()},[A]),k=r.useCallback(()=>{!t||m===t||(p(t),ke.releaseSeen(t).catch(()=>{}))},[t,m]),M=t!==null&&m!==t&&s!==null&&s.sections.length>0;return o.jsx(I9.Provider,{value:{status:v,version:t,entry:s,changelogUrl:c,releasesUrl:f,unread:M,open:A,autoOpenSpent:x,autoOpen:E,markSeen:k},children:e})}function FI(){const e=Sd(),{running:t,builds:n}=Sl(),{loaded:s}=Tt(),[l]=Mi(),[c,u]=r.useState(()=>!document.hidden),f=r.useRef(!1);r.useEffect(()=>{const m=()=>u(!document.hidden);return document.addEventListener("visibilitychange",m),()=>document.removeEventListener("visibilitychange",m)},[]);const h=l.has("settings")||l.has("setup")||l.has("new")||l.has("whatsnew");return r.useEffect(()=>{if(!HI({unread:e.unread,spent:f.current||e.autoOpenSpent,loaded:s,visible:c,dialogOpen:h,running:t,builds:n.length}))return;const p=window.setTimeout(()=>{f.current=!0,e.autoOpen()},$I);return()=>window.clearTimeout(p)},[e,s,c,h,t,n.length]),null}const O9=r.createContext(null);function an(){const e=r.useContext(O9);if(!e)throw new Error("useAppData must be used inside AppShell");return e}function II(){const e=q$(),[t,n]=r.useState(null),[s,l]=r.useState([]),[c,u]=r.useState(null),f=Q$(),h=eD(),m=nD(),p=aD(),v=r.useCallback(x=>{n(b=>b&&b.map(C=>C.id===x.id?x:C))},[]),y=r.useCallback(async()=>{try{const[x,b]=await Promise.all([ke.brands(),ke.engines()]);n(x),l(b)}catch(x){u(String(x.message??x))}},[]);return r.useEffect(()=>{y()},[y]),c?o.jsx(pr,{align:"center",justify:"center",height:"100vh",p:"5",children:o.jsx(Sp,{failure:bo(c)})}):t===null?o.jsx(pr,{align:"center",justify:"center",height:"100vh",children:o.jsx(qt,{size:"3"})}):o.jsx(O9.Provider,{value:{brands:t,engines:s,...f,presenters:h.presenters,presenterCategories:h.categories,presenterStyles:h.styles,presentersLoaded:h.loaded,presentersError:h.error,refetchPresenters:h.refetch,demoProducts:m.demoProducts,demoProductCategories:m.categories,demoProductsLoaded:m.loaded,demoProductsError:m.error,showcase:p.showcase,showcaseCategories:p.categories,showcaseLoaded:p.loaded,showcaseError:p.error,refetchShowcase:p.refetch,refresh:y,applyBrand:v},children:o.jsx(e9.Provider,{value:e,children:o.jsx(fD,{children:o.jsxs(DI,{children:[o.jsx(P3,{}),o.jsx(pm,{})]})})})})}function Ps(e){const[t,n]=Mi(),s=t.get(e),l=r.useCallback(f=>{n(h=>{const m=new URLSearchParams(h);return m.set(e,f),m},{replace:!1})},[e,n]),c=r.useCallback(f=>{n(h=>{const m=new URLSearchParams(h);return m.set(e,f),m},{replace:!0})},[e,n]),u=r.useCallback(()=>{n(f=>{const h=new URLSearchParams(f);return h.delete(e),h},{replace:!0})},[e,n]);return{value:s,open:l,set:c,close:u}}function Xs(e,t=""){const[n,s]=Mi(),l=n.get(e)??t,c=r.useCallback(u=>{s(f=>{const h=new URLSearchParams(f);return u===null||u===t?h.delete(e):h.set(e,u),h},{replace:!0})},[e,t,s]);return[l,c]}function lv(e,t){const n=iv(t.name),s=cv(t.url);return!n&&!s?null:e.find(l=>{var c,u,f,h;return!!(s&&cv((u=(c=l.json)==null?void 0:c.meta)==null?void 0:u.website)===s||n&&iv(((h=(f=l.json)==null?void 0:f.meta)==null?void 0:h.name)??l.slug)===n)})??null}const iv=e=>String(e??"").trim().replace(/\s+/g," ").toLowerCase()||null,cv=e=>{const t=String(e??"").trim();if(!t)return null;const n=/^https?:\/\//i.test(t)?t:`https://${t}`;try{return new URL(n).hostname.toLowerCase().replace(/^www\./,"")||null}catch{return null}};function OI(){var L,W,B,te,X,Z;const{brands:e,refresh:t}=an(),n=vn(),s=e.length>0,[l,c]=r.useState(""),[u,f]=r.useState(""),[h,m]=r.useState(!1),[p,v]=r.useState(!1),[y,x]=r.useState(null),[b,C]=r.useState(null),[S,A]=r.useState(null),E=async G=>{C(G),await t(),n(ho(G),{replace:!0})},k=async(G=!1)=>{var re,de,ne;if(!G){const U=lv(e,{url:l.trim()});if(U){A(U);return}}v(!0),x(null);try{const U=/^https?:\/\//.test(l)?l:`https://${l}`,D=await ke.brandFromUrl(U),V=await ke.updateBrand(D.id,{...D.json,meta:{...(re=D.json)==null?void 0:re.meta,website:((ne=(de=D.json)==null?void 0:de.meta)==null?void 0:ne.website)||U}});ke.catalogImport(V.id,U).catch(()=>{}),await E(V)}catch(U){x(String(U.message??U)),v(!1)}},M=async(G=!1)=>{if(!G){const re=lv(e,{name:u});if(re){A(re);return}}v(!0),x(null);try{await E(await ke.createBrand({specVersion:"0.1",meta:{name:u.trim()||"Untitled brand"}}))}catch(re){x(String(re.message??re)),v(!1)}},N=()=>n("/",{replace:!0}),P=b?Na((L=b.json)==null?void 0:L.palette):[],$=b?Un((W=y9(b.json))==null?void 0:W.file):null;return o.jsxs("div",{className:"sc-wiz",children:[o.jsxs("div",{className:"sc-wiz-form",children:[o.jsxs("div",{className:"sc-wiz-head",children:[o.jsxs("button",{type:"button",className:"sc-wiz-back",onClick:N,style:s?void 0:{visibility:"hidden"},children:[o.jsx(Fi,{size:11})," Back"]}),o.jsx("span",{}),o.jsx("span",{})]}),o.jsxs("h1",{children:["Your ",o.jsx("em",{children:"brand"})]}),o.jsx("p",{className:"sc-wiz-sub",children:"Paste a website and the kit builds itself: name, logo, palette. You can also start from nothing and fill it in later from Settings."}),o.jsxs("div",{className:"sc-wiz-fields",children:[h?o.jsxs(o.Fragment,{children:[o.jsx("label",{htmlFor:"sc-wiz-name",children:"Brand name"}),o.jsx("input",{id:"sc-wiz-name",className:"sc-in",placeholder:"Brand name",value:u,onChange:G=>{f(G.target.value),A(null)},onKeyDown:G=>G.key==="Enter"&&u.trim()&&!p&&void M()}),o.jsxs("div",{style:{textAlign:"center"},children:[o.jsx("button",{type:"button",className:"sc-wiz-cta",disabled:!u.trim()||p,onClick:()=>void M(),children:p?o.jsx(qt,{size:"1"}):o.jsxs(o.Fragment,{children:["Create it ",o.jsx(Qc,{size:12})]})}),o.jsx("div",{children:o.jsx("button",{type:"button",className:"sc-wiz-skip",onClick:()=>{m(!1),A(null)},children:"Build from a website instead"})})]})]}):o.jsxs(o.Fragment,{children:[o.jsx("label",{htmlFor:"sc-wiz-url",children:"Website"}),o.jsx("input",{id:"sc-wiz-url",className:"sc-in",placeholder:"acme.com",value:l,onChange:G=>{c(G.target.value),A(null)},onKeyDown:G=>G.key==="Enter"&&l.trim()&&!p&&void k()}),o.jsx("p",{className:"sc-wiz-hint",children:"We only read public pages. Nothing leaves this machine."}),o.jsxs("div",{style:{textAlign:"center"},children:[o.jsx("button",{type:"button",className:"sc-wiz-cta",disabled:!l.trim()||p,onClick:()=>void k(),children:p?o.jsx(qt,{size:"1"}):o.jsxs(o.Fragment,{children:["Build the kit ",o.jsx(Qc,{size:12})]})}),o.jsx("div",{children:o.jsx("button",{type:"button",className:"sc-wiz-skip",onClick:()=>{m(!0),A(null)},children:"Start from scratch instead"})})]})]}),S&&o.jsxs(Lh,{color:"amber",mt:"3",size:"1",children:[o.jsxs(Th,{children:["You already have ",xs(S),". Creating another makes a second workspace with its own address."]}),o.jsxs("div",{style:{display:"flex",gap:10,marginTop:4,flexWrap:"wrap"},children:[o.jsxs("button",{type:"button",className:"sc-wiz-cta",onClick:()=>n(ho(S)),children:["Open ",xs(S)," instead"]}),o.jsx("button",{type:"button",className:"sc-wiz-skip",onClick:()=>{A(null),h?M(!0):k(!0)},children:"Create anyway"})]})]}),y&&o.jsx(Lh,{color:"red",mt:"3",size:"1",children:o.jsx(Th,{children:y})})]})]}),o.jsx("div",{className:"sc-wiz-preview",children:o.jsxs("div",{className:"sc-wiz-card",children:[o.jsx("div",{className:"sc-wiz-cap",children:p?`Reading ${l||"the site"}`:"Live kit preview"}),o.jsxs("div",{className:"sc-wiz-body",children:[p&&!b&&o.jsxs("div",{className:"sc-scrape-row",children:[o.jsx(qt,{size:"1"})," Reading the site and building the kit"]}),!p&&!b&&o.jsx("p",{style:{color:"var(--sc-fg3)",fontSize:12.5,margin:0},children:"The kit appears here as it is found."}),b&&o.jsxs(o.Fragment,{children:[o.jsxs("div",{style:{display:"flex",alignItems:"center",gap:12,marginBottom:P.length?16:0},children:[o.jsx("span",{className:"sc-kit-logo",style:{width:44,height:44,padding:7,borderRadius:12},children:$?o.jsx("img",{src:$,alt:""}):o.jsx(ha,{size:16,color:"var(--sc-fg3)"})}),o.jsxs("span",{children:[o.jsx("b",{dir:"auto",style:{fontFamily:"var(--sc-font-display)",fontSize:16},children:(te=(B=b.json)==null?void 0:B.meta)==null?void 0:te.name}),((Z=(X=b.json)==null?void 0:X.meta)==null?void 0:Z.tagline)&&o.jsx("small",{dir:"auto",style:{display:"block",color:"var(--sc-fg3)",fontSize:11.5},children:String(b.json.meta.tagline).slice(0,60)})]})]}),P.length>0&&o.jsx("div",{style:{display:"flex",gap:8},children:P.slice(0,5).map(G=>o.jsx("span",{style:{flex:1,height:44,borderRadius:9,border:"1px solid var(--sc-line)",background:G.hex}},G.hex))})]})]})]})})]})}const ii=e=>{const t=(e??"").trim();return t||null};function _I(e){const t=e;return{name:e.name,brand:ii(t.brand)??ii(t.vendor),qualifier:ii(t.format)??ii(t.subcategory)??ii(t.variant)}}function ZI(e){return!e.brand||e.name.toLowerCase().startsWith(e.brand.toLowerCase())?e.name:`${e.brand} ${e.name}`}function Ja(e,t){const n=_I(e);if(t==="chip")return n.name;const s=ZI(n);return t==="tooltip"?[s,n.qualifier].filter(Boolean).join(" · "):s}function po(e,t){return t==="tooltip"?[e.name,ii(e.lighting)].filter(Boolean).join(" · "):e.name}function P1(e){return[e.name,...e.legacyNames??[],...e.keywords??[],e.description,e.lighting,e.subject].concat(e.collections??[],e.verticals??[]).filter(Boolean).join(" ")}function Op(e){const t=e;return[e.name,...t.legacyNames??[],...t.keywords??[],t.brand,t.vendor,t.format,t.subcategory,t.variant,t.productType,...t.tags??[]].filter(Boolean).join(" ")}function L1(e){return[e.name,e.descriptor,e.presentation,e.ageRange,e.facial,e.skin,e.hair,e.build,e.wardrobeDefault,...e.suitableCategories,...e.suitableStyles].filter(Boolean).join(" ")}function VI(e,t,n){return[e.title,e.category,n,t.product?Op(t.product):null,t.presenter?L1(t.presenter):null,t.scene?P1(t.scene):null].filter(Boolean).join(" ")}function _p(){const{brand:e}=Tt(),t=vn(),n=hr(e);return r.useCallback(s=>{t(`${n}?presenter=${encodeURIComponent(s)}&compose=1`)},[n,t])}function Zp(){const{brand:e}=Tt(),t=vn(),n=hr(e);return r.useCallback(s=>{t(`${n}?scene=${encodeURIComponent(s)}&compose=1`)},[n,t])}function Uh(e){return{...e.brief,...e.variants?{variants:e.variants}:{},...e.quality?{quality:e.quality}:{},_at:Date.now()}}function zI(){const{brand:e}=Tt(),t=vn(),n=hr(e);return r.useCallback(s=>{t(`${n}?showcase=${encodeURIComponent(s)}`)},[n,t])}const m1=e=>`sc-favscenes-${e}`,BI=e=>`sc-favlooks-${e}`,UI=e=>`bt-favlooks-${e}`;function es(e){try{const t=localStorage.getItem(m1(e))??$h(BI(e),m1(e))??$h(UI(e),m1(e)),n=t?JSON.parse(t):[];return Array.isArray(n)?n.filter(s=>typeof s=="string"):[]}catch{return[]}}function WI(e,t){try{localStorage.setItem(m1(e),JSON.stringify(t))}catch{}}function _9(e,t){const n=es(e),s=n.includes(t)?n.filter(l=>l!==t):[...n,t];return WI(e,s),s}const Z9=[{key:"campaign",label:"Product campaign"},{key:"lifestyle",label:"Lifestyle"},{key:"editorial",label:"Fashion & editorial"},{key:"beauty",label:"Beauty"},{key:"food-drink",label:"Food & drink"},{key:"launch",label:"Tech launch"},{key:"social",label:"Social"},{key:"cinematic",label:"Cinematic"},{key:"catalog",label:"Catalog"},{key:"seasonal",label:"Seasonal"}],GI=new Map(Z9.map(e=>[e.key,e]));function B2(e){var t;return e?((t=GI.get(e))==null?void 0:t.label)??e:null}function KI(e){const t=new Map(Z9.map((n,s)=>[n.key,s]));return[...e].sort((n,s)=>(t.get(n)??99)-(t.get(s)??99)||n.localeCompare(s))}const U2=14,YI=768,Wh=[{px:190,label:"Compact",cells:3},{px:320,label:"Large",cells:2}],V9=320;function z9(e){const t=typeof e=="number"&&Number.isFinite(e)?e:V9;let n=Wh[0].px;for(const s of Wh)Math.abs(s.px-t)<Math.abs(n-t)&&(n=s.px);return n}const al=5;function Al(e){const t=typeof e=="number"?e:al;return t===7||t===5?t:t===6?5:al}function qI(e){const[t,n]=r.useState(0);return r.useEffect(()=>{if(!e)return;const s=()=>n(e.clientWidth);s();const l=new ResizeObserver(s);return l.observe(e),()=>l.disconnect()},[e]),t}function XI(){const[e,t]=r.useState(()=>window.innerWidth);return r.useEffect(()=>{const n=()=>t(window.innerWidth);return window.addEventListener("resize",n),()=>window.removeEventListener("resize",n)},[]),e}function QI(e,t,n){if(e<=0)return{tile:t,cols:1};const s=n?2:Math.max(1,Math.floor((e+U2)/(t+U2)));return{tile:Math.floor((e-U2*(s-1))/s),cols:s}}function JI(e){let t=0;return e.map(n=>Array.from({length:n},()=>t++))}function Nu(e){return Al(e)===5?"large":"compact"}function eO(){const[e]=Qa(fr.wallDensity,al);return Nu(e)}const tO=[{value:7,label:"Compact",hint:"More cards per row",cells:3},{value:5,label:"Large",hint:"Fewer, larger cards",cells:2}],nO=Wh.map(e=>({value:e.px,label:e.label,hint:e.label==="Compact"?"More shots per row":"Fewer, larger shots",cells:e.cells}));function jd({value:e,onChange:t}){return o.jsx(B9,{label:"Grid size",value:Al(e),options:tO,onChange:n=>t(n)})}function rO({value:e,onChange:t}){return o.jsx(B9,{label:"Shot size",value:z9(e),options:nO,onChange:t})}function B9({label:e,value:t,options:n,onChange:s}){const l=r.useRef(null);return r.useLayoutEffect(()=>{const c=l.current;if(!c)return;const u=()=>{const h=c.querySelector(":scope > button[data-on]");if(!h){c.style.setProperty("--sc-density-x","0px"),c.style.setProperty("--sc-density-w","0px");return}c.style.setProperty("--sc-density-x",`${h.offsetLeft}px`),c.style.setProperty("--sc-density-w",`${h.offsetWidth}px`)};u(),c.dataset.inkReady||requestAnimationFrame(()=>{c.dataset.inkReady=""});const f=new ResizeObserver(u);return f.observe(c),()=>f.disconnect()},[t]),o.jsxs("div",{ref:l,className:"sc-density",role:"radiogroup","aria-label":e,children:[o.jsx("span",{className:"sc-density-ink","aria-hidden":!0}),n.map(c=>{const u=t===c.value;return o.jsx("button",{type:"button",role:"radio",className:"sc-density-opt","aria-checked":u,"aria-label":c.label,title:c.hint,"data-on":u||void 0,onClick:()=>{u||s(c.value)},children:o.jsx(aO,{cells:c.cells})},c.value)})]})}function aO({cells:e}){const t=e,n=16,s=1.5,l=1.5,u=(n-s*2-l*(t-1))/t,f=Math.max(.6,u*.22),h=[];for(let m=0;m<t;m++)for(let p=0;p<t;p++)h.push({x:s+p*(u+l),y:s+m*(u+l)});return o.jsx("svg",{className:"sc-density-icon",width:n,height:n,viewBox:`0 0 ${n} ${n}`,"aria-hidden":!0,children:h.map(m=>o.jsx("rect",{x:m.x,y:m.y,width:u,height:u,rx:f,ry:f,fill:"currentColor"},`${m.x}-${m.y}`))})}function kd(e){return{"--sc-wall-cols":String(Al(e))}}function Ad(e){var n;if(e.avatarUrl)return{src:e.avatarUrl};const t=e.previewUrl??((n=e.shots)==null?void 0:n[0])??null;return t?{src:t,crop:"top"}:{src:null}}function Vp(e){const t=Un(e.avatar);if(t)return{src:t};const n=l=>{var c;return Array.isArray(l)?Un((c=l[0])==null?void 0:c.file):null},s=Un(e.preview)??n(e.shots)??n(e.sourceRefs);return s?{src:s,crop:"top"}:{src:null}}const uv=e=>e.t!=="format",vs=()=>[{t:"text",v:""}],Gh=e=>e.t==="product"?`p:${e.id}`:zp(e);function U9(e){const t=(e.tokens??[]).filter(uv),n=new Set(t.map(Gh)),s=(e.inherited??[]).filter(uv).filter(f=>{const h=Gh(f);return!h||n.has(h)?!1:(n.add(h),!0)}),l=[...t,...s],c=l.length?l:vs(),u=c.some(f=>f.t==="template");return e.templateId&&!u?[{t:"template",id:e.templateId},...c]:c}const Sa="sc-token",Nd=`.${Sa}`,zp=e=>e.t==="template"?`t:${e.id}`:e.t==="product"?`p:${e.id}${e.angle?`|${e.angle}`:""}`:e.t==="character"?`h:${e.id}`:e.t==="color"?`c:${e.hex}|${e.name??""}`:e.t==="ref"?`r:${e.imageHash}`:e.t==="mark"?`m:${e.imageHash}`:"",Ar=e=>{const t=e.slice(0,1),n=e.slice(2);if(t==="t")return n?{t:"template",id:n}:null;if(t==="p"){const[s,l]=n.split("|");return s?{t:"product",id:s,...l?{angle:l}:{}}:null}if(t==="h")return n?{t:"character",id:n}:null;if(t==="r")return n?{t:"ref",imageHash:n}:null;if(t==="m")return n?{t:"mark",imageHash:n}:null;if(t==="c"){const[s,l]=n.split("|");return s?{t:"color",hex:s,name:l||void 0}:null}return null};function Mc(e){const t=typeof window>"u"?null:window.getSelection();if(!e||!t||t.rangeCount===0)return null;const n=t.getRangeAt(0);if(!e.contains(n.startContainer))return null;if(n.startContainer===e){let l=0;for(let c=0;c<n.startOffset&&c<e.childNodes.length;c++)l+=sl(e.childNodes[c]);return l}let s=0;for(const l of Array.from(e.childNodes)){if(l===n.startContainer)return s+n.startOffset;if(l.contains(n.startContainer))return s+1;s+=sl(l)}return s}function Go(e,t){if(!e)return;let n=0;for(const s of Array.from(e.childNodes)){const l=sl(s);if(t<=n+l){if(s.nodeType===Node.TEXT_NODE){zr(e,s,t-n);return}const c=s.nextSibling;if((c==null?void 0:c.nodeType)===Node.TEXT_NODE){zr(e,c,0);return}break}n+=l}ci(e)}function ci(e){if(!e)return;if(e.focus({preventScroll:!0}),!e.firstChild){const n=window.getSelection(),s=document.createRange();s.selectNodeContents(e),s.collapse(!1),n==null||n.removeAllRanges(),n==null||n.addRange(s);return}const t=sO(e);zr(e,t,t.length)}function sO(e){const t=e.lastChild;if(t&&t.nodeType===Node.TEXT_NODE)return t;const n=document.createTextNode(" ");return e.appendChild(n),n}function oO(e){if(!e)return!1;const t=window.getSelection();if(!t||t.rangeCount===0||t.isCollapsed)return!1;const n=t.getRangeAt(0);return e.contains(n.startContainer)&&e.contains(n.endContainer)}function zr(e,t,n){const s=window.getSelection(),l=document.createRange();l.setStart(t,Math.max(0,Math.min(n,t.length))),l.collapse(!0),s==null||s.removeAllRanges(),s==null||s.addRange(l)}const sl=e=>e.nodeType===Node.TEXT_NODE?(e.textContent??"").length:1;function lO(e,t,n){if(t===e){let l=0;for(let c=0;c<n&&c<e.childNodes.length;c++)l+=sl(e.childNodes[c]);return l}let s=0;for(const l of Array.from(e.childNodes)){if(l===t)return s+n;if(l.contains(t))return s+1;s+=sl(l)}return s}function ws(e){if(!e)return;const t=Mc(e);e.normalize();for(const s of Array.from(e.childNodes))s.nodeType===Node.TEXT_NODE&&!(s.textContent??"").length&&s.remove();const n=Array.from(e.childNodes);for(let s=0;s<n.length;s++){const l=n[s];if(l.nodeType!==Node.TEXT_NODE)continue;let c=(l.textContent??"").replace(/ {2,}/g," ");const u=gs(l.previousSibling),f=gs(l.nextSibling);u?c=c.replace(/^ */," "):l.previousSibling||(c=c.replace(/^ +/,"")),f&&(c=c.replace(/ *$/," ")),l.textContent=c}for(const s of Array.from(e.childNodes))gs(s)&&gs(s.nextSibling)&&e.insertBefore(document.createTextNode(" "),s.nextSibling);gs(e.lastChild)&&e.appendChild(document.createTextNode(" ")),gs(e.firstChild)&&e.insertBefore(document.createTextNode(""),e.firstChild),!Rc(e)&&t!==null&&Go(e,t)}function iO(e){return e.querySelector(Nd)?!1:!(e.textContent??"").replace(/[\u200B\uFEFF\u00a0]/g,"").trim()}function Rc(e){if(!e)return!1;const t=iO(e);return t&&e.firstChild&&e.replaceChildren(),e.toggleAttribute("data-empty",t),t}const gs=e=>!!e&&e.nodeType===Node.ELEMENT_NODE&&e.classList.contains(Sa);function dv(e){var l;if(!e)return vs();const t=[];let n="";const s=()=>{n&&(t.push({t:"text",v:n}),n="")};for(const c of Array.from(e.childNodes)){if(c.nodeType===Node.TEXT_NODE){n+=c.textContent??"";continue}const u=c,f=(l=u.dataset)==null?void 0:l.tok;if(f){const h=Ar(f);if(h){s(),t.push(h);continue}}if(u.tagName==="BR"){n+=`
|
|
99
|
+
`)?v.value.length:0;requestAnimationFrame(()=>{try{v.setSelectionRange(y,y)}catch{}v.focus()})}},r.createElement("input",{spellCheck:"false",...h,ref:wm(n,t),className:"rt-reset rt-TextFieldInput"}),s)});xi.displayName="TextField.Root";const _T=r.forwardRef((e,t)=>{const{className:n,color:s,side:l,...c}=un(e,OT);return r.createElement("div",{"data-accent-color":s,"data-side":l,...c,ref:t,className:Je("rt-TextFieldSlot",n)})});_T.displayName="TextField.Slot";const fr={lastBrand:"scenri:last-brand",engine:"scenri:engine",quality:"scenri:quality",count:"scenri:count",format:"scenri:format",assetsOpen:"scenri:assets-open",assetsExpanded:"scenri:assets-expanded",tileSize:"scenri:tile-size",wallDensity:"scenri:wall-density",feedSort:"scenri:feed-sort"};function A5(e,t){try{const n=localStorage.getItem(e);return n===null?t:JSON.parse(n)}catch{return t}}const Hh="scenri:pref-changed";function N5(e,t){try{localStorage.setItem(e,JSON.stringify(t))}catch{}try{window.dispatchEvent(new CustomEvent(Hh,{detail:{key:e,value:t}}))}catch{}}function $h(e,t){try{const n=localStorage.getItem(e);return n===null?null:(localStorage.setItem(t,n),localStorage.removeItem(e),n)}catch{return null}}function Qa(e,t){const[n,s]=r.useState(()=>A5(e,t));return r.useEffect(()=>{N5(e,n)},[e,n]),r.useEffect(()=>{const l=c=>{const u=c.detail;(u==null?void 0:u.key)===e&&s(f=>Object.is(f,u.value)?f:u.value)};return window.addEventListener(Hh,l),()=>window.removeEventListener(Hh,l)},[e]),[n,s]}function ZT(e,t){const[n,s]=r.useState(()=>{try{const l=sessionStorage.getItem(e);return l===null?t:JSON.parse(l)}catch{return t}});return r.useEffect(()=>{try{sessionStorage.setItem(e,JSON.stringify(n))}catch{}},[e,n]),[n,s]}function $2(e,t){const[n,s]=Qa(e,t),[l,c]=r.useState(null);return[l??n,f=>{c(null),s(f)},c]}const VT=()=>A5(fr.lastBrand,null),zT=e=>N5(fr.lastBrand,e),Dh="sc-theme",BT="bt-theme",UT=()=>window.matchMedia("(prefers-color-scheme: light)").matches,M5=r.createContext({choice:"system",mode:"dark",setChoice:()=>{},toggle:()=>{}}),WT=()=>r.useContext(M5);function GT(){const e=localStorage.getItem(Dh)??$h(BT,Dh);return e==="light"||e==="dark"||e==="system"?e:"system"}function KT({children:e}){const[t,n]=r.useState(GT),[s,l]=r.useState(()=>UT()?"light":"dark");r.useEffect(()=>{const f=window.matchMedia("(prefers-color-scheme: light)"),h=()=>l(f.matches?"light":"dark");return f.addEventListener("change",h),()=>f.removeEventListener("change",h)},[]);const c=t==="system"?s:t;r.useEffect(()=>{document.documentElement.dataset.theme=c,localStorage.setItem(Dh,t)},[c,t]);const u=r.useMemo(()=>({choice:t,mode:c,setChoice:n,toggle:()=>n(c==="dark"?"light":"dark")}),[t,c]);return o.jsx(M5.Provider,{value:u,children:o.jsx(as,{appearance:c,accentColor:"gray",grayColor:"gray",radius:"large",scaling:"100%",children:e})})}const YT=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M204.41,51.63a108,108,0,1,0,0,152.74A107.38,107.38,0,0,0,204.41,51.63Zm-17,17A83.85,83.85,0,0,1,196.26,79L169,111.09l-23.3-65.21A83.52,83.52,0,0,1,187.43,68.6Zm-118.85,0a83.44,83.44,0,0,1,51.11-24.2l14.16,39.65L65.71,71.61C66.64,70.59,67.59,69.59,68.58,68.6ZM48,153.7a84.48,84.48,0,0,1,3.4-60.3L92.84,101Zm20.55,33.7A83.94,83.94,0,0,1,59.74,177L87,144.91l23.3,65.21A83.53,83.53,0,0,1,68.58,187.4Zm36.36-63.61,15.18-17.85,23.06,4.21,7.88,22.06-15.17,17.85-23.06-4.21Zm82.49,63.61a83.49,83.49,0,0,1-51.11,24.2L122.15,172l68.14,12.44C189.36,185.41,188.41,186.41,187.43,187.4ZM163.16,155,208,102.3a84.43,84.43,0,0,1-3.41,60.3Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M195.88,60.12a96,96,0,1,0,0,135.76A96,96,0,0,0,195.88,60.12Zm-55.34,103h0l-36.68-6.69h0L91.32,121.3l24.14-28.41h0l36.68,6.69,12.54,35.12Z",opacity:"0.2"}),r.createElement("path",{d:"M201.54,54.46A104,104,0,0,0,54.46,201.54,104,104,0,0,0,201.54,54.46ZM190.23,65.78a88.18,88.18,0,0,1,11,13.48L167.55,119,139.63,40.78A87.34,87.34,0,0,1,190.23,65.78ZM155.59,133l-18.16,21.37-27.59-5L100.41,123l18.16-21.37,27.59,5ZM65.77,65.78a87.34,87.34,0,0,1,56.66-25.59l17.51,49L58.3,74.32A88,88,0,0,1,65.77,65.78ZM46.65,161.54a88.41,88.41,0,0,1,2.53-72.62l51.21,9.35Zm19.12,28.68a88.18,88.18,0,0,1-11-13.48L88.45,137l27.92,78.18A87.34,87.34,0,0,1,65.77,190.22Zm124.46,0a87.34,87.34,0,0,1-56.66,25.59l-17.51-49,81.64,14.91A88,88,0,0,1,190.23,190.22Zm-34.62-32.49,53.74-63.27a88.41,88.41,0,0,1-2.53,72.62Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M232,128A104,104,0,0,0,54.46,54.46,104,104,0,0,0,128,232h.09A104,104,0,0,0,232,128ZM49.18,88.92l51.21,9.35L46.65,161.53A88.39,88.39,0,0,1,49.18,88.92Zm160.17,5.54a88.41,88.41,0,0,1-2.53,72.62l-51.21-9.35Zm-8.08-15.2L167.55,119,139.63,40.78a87.38,87.38,0,0,1,50.6,25A88.74,88.74,0,0,1,201.27,79.26ZM122.43,40.19l17.51,49L58.3,74.32a89.28,89.28,0,0,1,7.47-8.55A87.37,87.37,0,0,1,122.43,40.19ZM54.73,176.74,88.45,137l27.92,78.18a88,88,0,0,1-61.64-38.48Zm78.84,39.06-17.51-49L139.14,171h0l58.52,10.69a87.5,87.5,0,0,1-64.13,34.12Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M200.12,55.88A102,102,0,0,0,55.87,200.12,102,102,0,1,0,200.12,55.88Zm-102,66.67,19.65-23.14,29.86,5.46,10.21,28.58-19.65,23.14-29.86-5.46ZM209.93,90.69a90.24,90.24,0,0,1-2,78.63l-56.14-10.24Zm-6.16-11.28-36.94,43.48L136.66,38.42a89.31,89.31,0,0,1,55,25.94A91.33,91.33,0,0,1,203.77,79.41Zm-139.41-15A89.37,89.37,0,0,1,123.81,38.1L143,91.82,54.75,75.71A91.2,91.2,0,0,1,64.36,64.36ZM48,86.68l56.14,10.24L46.07,165.31a90.24,90.24,0,0,1,2-78.63Zm4.21,89.91,36.94-43.48,30.17,84.47a89.31,89.31,0,0,1-55-25.94A91.33,91.33,0,0,1,52.23,176.59Zm139.41,15a89.32,89.32,0,0,1-59.45,26.26L113,164.18l88.24,16.11A91.2,91.2,0,0,1,191.64,191.64Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M201.54,54.46A104,104,0,0,0,54.46,201.54,104,104,0,0,0,201.54,54.46ZM190.23,65.78a88.18,88.18,0,0,1,11,13.48L167.55,119,139.63,40.78A87.34,87.34,0,0,1,190.23,65.78ZM155.59,133l-18.16,21.37-27.59-5L100.41,123l18.16-21.37,27.59,5ZM65.77,65.78a87.34,87.34,0,0,1,56.66-25.59l17.51,49L58.3,74.32A88,88,0,0,1,65.77,65.78ZM46.65,161.54a88.41,88.41,0,0,1,2.53-72.62l51.21,9.35Zm19.12,28.68a88.18,88.18,0,0,1-11-13.48L88.45,137l27.92,78.18A87.34,87.34,0,0,1,65.77,190.22Zm124.46,0a87.34,87.34,0,0,1-56.66,25.59l-17.51-49,81.64,14.91A88,88,0,0,1,190.23,190.22Zm-34.62-32.49,53.74-63.27a88.41,88.41,0,0,1-2.53,72.62Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M198.71,57.29A100,100,0,1,0,57.29,198.71,100,100,0,1,0,198.71,57.29Zm10.37,114.27-61-11.14L210.4,87a92.26,92.26,0,0,1-1.32,84.52ZM95.87,122.13,117,97.24l32.14,5.86,11,30.77L139,158.76l-32.14-5.86ZM206.24,79.58l-40.13,47.25L133.75,36.2a92.09,92.09,0,0,1,72.49,43.38ZM63,63a91.31,91.31,0,0,1,62.26-26.88L146,94.41,51.32,77.11A92.94,92.94,0,0,1,63,63Zm-16,21.49,61,11.14L45.6,169a92.26,92.26,0,0,1,1.32-84.52Zm2.84,92,40.13-47.25,32.36,90.63a92.09,92.09,0,0,1-72.49-43.38Zm143.29,16.63a91.31,91.31,0,0,1-62.26,26.88L110,161.59l94.72,17.3A92.94,92.94,0,0,1,193.05,193.05Z"}))]]),qT=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,44H32A20,20,0,0,0,12,64V88a20,20,0,0,0,16,19.6V192a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V107.6A20,20,0,0,0,244,88V64A20,20,0,0,0,224,44ZM36,68H220V84H36ZM52,188V108H204v80Zm112-52a12,12,0,0,1-12,12H104a12,12,0,0,1,0-24h48A12,12,0,0,1,164,136Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,96v96a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V96Z",opacity:"0.2"}),r.createElement("path",{d:"M224,48H32A16,16,0,0,0,16,64V88a16,16,0,0,0,16,16v88a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V104a16,16,0,0,0,16-16V64A16,16,0,0,0,224,48ZM208,192H48V104H208ZM224,88H32V64H224V88ZM96,136a8,8,0,0,1,8-8h48a8,8,0,0,1,0,16H104A8,8,0,0,1,96,136Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,48H32A16,16,0,0,0,16,64V88a16,16,0,0,0,16,16v88a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V104a16,16,0,0,0,16-16V64A16,16,0,0,0,224,48Zm-72,96H104a8,8,0,0,1,0-16h48a8,8,0,0,1,0,16Zm72-56H32V64H224V88Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,50H32A14,14,0,0,0,18,64V88a14,14,0,0,0,14,14h2v90a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V102h2a14,14,0,0,0,14-14V64A14,14,0,0,0,224,50ZM210,192a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V102H210ZM226,88a2,2,0,0,1-2,2H32a2,2,0,0,1-2-2V64a2,2,0,0,1,2-2H224a2,2,0,0,1,2,2ZM98,136a6,6,0,0,1,6-6h48a6,6,0,0,1,0,12H104A6,6,0,0,1,98,136Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,48H32A16,16,0,0,0,16,64V88a16,16,0,0,0,16,16v88a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V104a16,16,0,0,0,16-16V64A16,16,0,0,0,224,48ZM208,192H48V104H208ZM224,88H32V64H224V88ZM96,136a8,8,0,0,1,8-8h48a8,8,0,0,1,0,16H104A8,8,0,0,1,96,136Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,52H32A12,12,0,0,0,20,64V88a12,12,0,0,0,12,12h4v92a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V100h4a12,12,0,0,0,12-12V64A12,12,0,0,0,224,52ZM212,192a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V100H212ZM228,88a4,4,0,0,1-4,4H32a4,4,0,0,1-4-4V64a4,4,0,0,1,4-4H224a4,4,0,0,1,4,4ZM100,136a4,4,0,0,1,4-4h48a4,4,0,0,1,0,8H104A4,4,0,0,1,100,136Z"}))]]),XT=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,192a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,212Zm40.49-100.49a12,12,0,0,1-17,17L140,117v51a12,12,0,0,1-24,0V117l-11.51,11.52a12,12,0,0,1-17-17l32-32a12,12,0,0,1,17,0Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),r.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm37.66-101.66a8,8,0,0,1-11.32,11.32L136,107.31V168a8,8,0,0,1-16,0V107.31l-18.34,18.35a8,8,0,0,1-11.32-11.32l32-32a8,8,0,0,1,11.32,0Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm37.66,101.66a8,8,0,0,1-11.32,0L136,107.31V168a8,8,0,0,1-16,0V107.31l-18.34,18.35a8,8,0,0,1-11.32-11.32l32-32a8,8,0,0,1,11.32,0l32,32A8,8,0,0,1,165.66,125.66Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218Zm36.24-102.24a6,6,0,1,1-8.48,8.48L134,102.49V168a6,6,0,0,1-12,0V102.49l-21.76,21.75a6,6,0,0,1-8.48-8.48l32-32a6,6,0,0,1,8.48,0Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm37.66-101.66a8,8,0,0,1-11.32,11.32L136,107.31V168a8,8,0,0,1-16,0V107.31l-18.34,18.35a8,8,0,0,1-11.32-11.32l32-32a8,8,0,0,1,11.32,0Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220Zm34.83-102.83a4,4,0,0,1-5.66,5.66L132,97.66V168a4,4,0,0,1-8,0V97.66L98.83,122.83a4,4,0,0,1-5.66-5.66l32-32a4,4,0,0,1,5.66,0Z"}))]]),QT=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M244,56v48a12,12,0,0,1-12,12H184a12,12,0,1,1,0-24H201.1l-19-17.38c-.13-.12-.26-.24-.38-.37A76,76,0,1,0,127,204h1a75.53,75.53,0,0,0,52.15-20.72,12,12,0,0,1,16.49,17.45A99.45,99.45,0,0,1,128,228h-1.37A100,100,0,1,1,198.51,57.06L220,76.72V56a12,12,0,0,1,24,0Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z",opacity:"0.2"}),r.createElement("path",{d:"M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1,0-16H211.4L184.81,71.64l-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,0,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60L224,85.8V56a8,8,0,1,1,16,0Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1-5.66-13.66l17-17-10.55-9.65-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,1,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60l10.93,10L226.34,50.3A8,8,0,0,1,240,56Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M238,56v48a6,6,0,0,1-6,6H184a6,6,0,0,1,0-12h32.55l-30.38-27.8c-.06-.06-.12-.13-.19-.19a82,82,0,1,0-1.7,117.65,6,6,0,0,1,8.24,8.73A93.46,93.46,0,0,1,128,222h-1.28A94,94,0,1,1,194.37,61.4L226,90.35V56a6,6,0,1,1,12,0Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1,0-16H211.4L184.81,71.64l-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,0,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60L224,85.8V56a8,8,0,1,1,16,0Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M236,56v48a4,4,0,0,1-4,4H184a4,4,0,0,1,0-8h37.7L187.53,68.69l-.13-.12a84,84,0,1,0-1.75,120.51,4,4,0,0,1,5.5,5.82A91.43,91.43,0,0,1,128,220h-1.26A92,92,0,1,1,193,62.84l35,32.05V56a4,4,0,1,1,8,0Z"}))]]),JT=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M228,128a100,100,0,0,1-98.66,100H128a99.39,99.39,0,0,1-68.62-27.29,12,12,0,0,1,16.48-17.45,76,76,0,1,0-1.57-109c-.13.13-.25.25-.39.37L54.89,92H72a12,12,0,0,1,0,24H24a12,12,0,0,1-12-12V56a12,12,0,0,1,24,0V76.72L57.48,57.06A100,100,0,0,1,228,128Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z",opacity:"0.2"}),r.createElement("path",{d:"M224,128a96,96,0,0,1-94.71,96H128A95.38,95.38,0,0,1,62.1,197.8a8,8,0,0,1,11-11.63A80,80,0,1,0,71.43,71.39a3.07,3.07,0,0,1-.26.25L44.59,96H72a8,8,0,0,1,0,16H24a8,8,0,0,1-8-8V56a8,8,0,0,1,16,0V85.8L60.25,60A96,96,0,0,1,224,128Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,128a96,96,0,0,1-94.71,96H128A95.38,95.38,0,0,1,62.1,197.8a8,8,0,0,1,11-11.63A80,80,0,1,0,71.43,71.39a3.07,3.07,0,0,1-.26.25L60.63,81.29l17,17A8,8,0,0,1,72,112H24a8,8,0,0,1-8-8V56A8,8,0,0,1,29.66,50.3L49.31,70,60.25,60A96,96,0,0,1,224,128Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M222,128a94,94,0,0,1-92.74,94H128a93.43,93.43,0,0,1-64.5-25.65,6,6,0,1,1,8.24-8.72A82,82,0,1,0,70,70l-.19.19L39.44,98H72a6,6,0,0,1,0,12H24a6,6,0,0,1-6-6V56a6,6,0,0,1,12,0V90.34L61.63,61.4A94,94,0,0,1,222,128Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,128a96,96,0,0,1-94.71,96H128A95.38,95.38,0,0,1,62.1,197.8a8,8,0,0,1,11-11.63A80,80,0,1,0,71.43,71.39a3.07,3.07,0,0,1-.26.25L44.59,96H72a8,8,0,0,1,0,16H24a8,8,0,0,1-8-8V56a8,8,0,0,1,16,0V85.8L60.25,60A96,96,0,0,1,224,128Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M220,128a92,92,0,0,1-90.77,92H128a91.47,91.47,0,0,1-63.13-25.1,4,4,0,1,1,5.5-5.82A84,84,0,1,0,68.6,68.57l-.13.12L34.3,100H72a4,4,0,0,1,0,8H24a4,4,0,0,1-4-4V56a4,4,0,0,1,8,0V94.89l35-32A92,92,0,0,1,220,128Z"}))]]),eH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M228,128a12,12,0,0,1-12,12H69l51.52,51.51a12,12,0,0,1-17,17l-72-72a12,12,0,0,1,0-17l72-72a12,12,0,0,1,17,17L69,116H216A12,12,0,0,1,228,128Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M112,56V200L40,128Z",opacity:"0.2"}),r.createElement("path",{d:"M216,120H120V56a8,8,0,0,0-13.66-5.66l-72,72a8,8,0,0,0,0,11.32l72,72A8,8,0,0,0,120,200V136h96a8,8,0,0,0,0-16ZM104,180.69,51.31,128,104,75.31Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H120v64a8,8,0,0,1-13.66,5.66l-72-72a8,8,0,0,1,0-11.32l72-72A8,8,0,0,1,120,56v64h96A8,8,0,0,1,224,128Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M222,128a6,6,0,0,1-6,6H54.49l61.75,61.76a6,6,0,1,1-8.48,8.48l-72-72a6,6,0,0,1,0-8.48l72-72a6,6,0,0,1,8.48,8.48L54.49,122H216A6,6,0,0,1,222,128Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H59.31l58.35,58.34a8,8,0,0,1-11.32,11.32l-72-72a8,8,0,0,1,0-11.32l72-72a8,8,0,0,1,11.32,11.32L59.31,120H216A8,8,0,0,1,224,128Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M220,128a4,4,0,0,1-4,4H49.66l65.17,65.17a4,4,0,0,1-5.66,5.66l-72-72a4,4,0,0,1,0-5.66l72-72a4,4,0,0,1,5.66,5.66L49.66,124H216A4,4,0,0,1,220,128Z"}))]]),tH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208.49,143.51a12,12,0,0,1-17,17L140,109V224a12,12,0,0,1-24,0V109L64.49,160.49a12,12,0,0,1-17-17l72-72a12,12,0,0,1,17,0ZM216,28H40a12,12,0,0,0,0,24H216a12,12,0,0,0,0-24Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M200,144H56l72-72Z",opacity:"0.2"}),r.createElement("path",{d:"M133.66,66.34a8,8,0,0,0-11.32,0l-72,72A8,8,0,0,0,56,152h64v72a8,8,0,0,0,16,0V152h64a8,8,0,0,0,5.66-13.66ZM75.31,136,128,83.31,180.69,136ZM224,40a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,40Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M205.66,138.34A8,8,0,0,1,200,152H136v72a8,8,0,0,1-16,0V152H56a8,8,0,0,1-5.66-13.66l72-72a8,8,0,0,1,11.32,0ZM216,32H40a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M204.24,139.76a6,6,0,1,1-8.48,8.48L134,86.49V224a6,6,0,0,1-12,0V86.49L60.24,148.24a6,6,0,0,1-8.48-8.48l72-72a6,6,0,0,1,8.48,0ZM216,34H40a6,6,0,0,0,0,12H216a6,6,0,0,0,0-12Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M205.66,138.34a8,8,0,0,1-11.32,11.32L136,91.31V224a8,8,0,0,1-16,0V91.31L61.66,149.66a8,8,0,0,1-11.32-11.32l72-72a8,8,0,0,1,11.32,0ZM216,32H40a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M202.83,141.17a4,4,0,0,1-5.66,5.66L132,81.66V224a4,4,0,0,1-8,0V81.66L58.83,146.83a4,4,0,0,1-5.66-5.66l72-72a4,4,0,0,1,5.66,0ZM216,36H40a4,4,0,0,0,0,8H216a4,4,0,0,0,0-8Z"}))]]),nH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224.49,136.49l-72,72a12,12,0,0,1-17-17L187,140H40a12,12,0,0,1,0-24H187L135.51,64.48a12,12,0,0,1,17-17l72,72A12,12,0,0,1,224.49,136.49Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,128l-72,72V56Z",opacity:"0.2"}),r.createElement("path",{d:"M221.66,122.34l-72-72A8,8,0,0,0,136,56v64H40a8,8,0,0,0,0,16h96v64a8,8,0,0,0,13.66,5.66l72-72A8,8,0,0,0,221.66,122.34ZM152,180.69V75.31L204.69,128Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M221.66,133.66l-72,72A8,8,0,0,1,136,200V136H40a8,8,0,0,1,0-16h96V56a8,8,0,0,1,13.66-5.66l72,72A8,8,0,0,1,221.66,133.66Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M220.24,132.24l-72,72a6,6,0,0,1-8.48-8.48L201.51,134H40a6,6,0,0,1,0-12H201.51L139.76,60.24a6,6,0,0,1,8.48-8.48l72,72A6,6,0,0,1,220.24,132.24Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M221.66,133.66l-72,72a8,8,0,0,1-11.32-11.32L196.69,136H40a8,8,0,0,1,0-16H196.69L138.34,61.66a8,8,0,0,1,11.32-11.32l72,72A8,8,0,0,1,221.66,133.66Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M218.83,130.83l-72,72a4,4,0,0,1-5.66-5.66L206.34,132H40a4,4,0,0,1,0-8H206.34L141.17,58.83a4,4,0,0,1,5.66-5.66l72,72A4,4,0,0,1,218.83,130.83Z"}))]]),rH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M228,104a12,12,0,0,1-24,0V69l-59.51,59.51a12,12,0,0,1-17-17L187,52H152a12,12,0,0,1,0-24h64a12,12,0,0,1,12,12Zm-44,24a12,12,0,0,0-12,12v64H52V84h64a12,12,0,0,0,0-24H48A20,20,0,0,0,28,80V208a20,20,0,0,0,20,20H176a20,20,0,0,0,20-20V140A12,12,0,0,0,184,128Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M184,80V208a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V80a8,8,0,0,1,8-8H176A8,8,0,0,1,184,80Z",opacity:"0.2"}),r.createElement("path",{d:"M224,104a8,8,0,0,1-16,0V59.32l-66.33,66.34a8,8,0,0,1-11.32-11.32L196.68,48H152a8,8,0,0,1,0-16h64a8,8,0,0,1,8,8Zm-40,24a8,8,0,0,0-8,8v72H48V80h72a8,8,0,0,0,0-16H48A16,16,0,0,0,32,80V208a16,16,0,0,0,16,16H176a16,16,0,0,0,16-16V136A8,8,0,0,0,184,128Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M192,136v72a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V80A16,16,0,0,1,48,64h72a8,8,0,0,1,0,16H48V208H176V136a8,8,0,0,1,16,0Zm32-96a8,8,0,0,0-8-8H152a8,8,0,0,0-5.66,13.66L172.69,72l-42.35,42.34a8,8,0,0,0,11.32,11.32L184,83.31l26.34,26.35A8,8,0,0,0,224,104Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M222,104a6,6,0,0,1-12,0V54.49l-69.75,69.75a6,6,0,0,1-8.48-8.48L201.51,46H152a6,6,0,0,1,0-12h64a6,6,0,0,1,6,6Zm-38,26a6,6,0,0,0-6,6v72a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V80a2,2,0,0,1,2-2h72a6,6,0,0,0,0-12H48A14,14,0,0,0,34,80V208a14,14,0,0,0,14,14H176a14,14,0,0,0,14-14V136A6,6,0,0,0,184,130Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,104a8,8,0,0,1-16,0V59.32l-66.33,66.34a8,8,0,0,1-11.32-11.32L196.68,48H152a8,8,0,0,1,0-16h64a8,8,0,0,1,8,8Zm-40,24a8,8,0,0,0-8,8v72H48V80h72a8,8,0,0,0,0-16H48A16,16,0,0,0,32,80V208a16,16,0,0,0,16,16H176a16,16,0,0,0,16-16V136A8,8,0,0,0,184,128Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M220,104a4,4,0,0,1-8,0V49.66l-73.16,73.17a4,4,0,0,1-5.66-5.66L206.34,44H152a4,4,0,0,1,0-8h64a4,4,0,0,1,4,4Zm-36,28a4,4,0,0,0-4,4v72a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V80a4,4,0,0,1,4-4h72a4,4,0,0,0,0-8H48A12,12,0,0,0,36,80V208a12,12,0,0,0,12,12H176a12,12,0,0,0,12-12V136A4,4,0,0,0,184,132Z"}))]]),aH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208.49,120.49a12,12,0,0,1-17,0L140,69V216a12,12,0,0,1-24,0V69L64.49,120.49a12,12,0,0,1-17-17l72-72a12,12,0,0,1,17,0l72,72A12,12,0,0,1,208.49,120.49Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M200,112H56l72-72Z",opacity:"0.2"}),r.createElement("path",{d:"M205.66,106.34l-72-72a8,8,0,0,0-11.32,0l-72,72A8,8,0,0,0,56,120h64v96a8,8,0,0,0,16,0V120h64a8,8,0,0,0,5.66-13.66ZM75.31,104,128,51.31,180.69,104Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M207.39,115.06A8,8,0,0,1,200,120H136v96a8,8,0,0,1-16,0V120H56a8,8,0,0,1-5.66-13.66l72-72a8,8,0,0,1,11.32,0l72,72A8,8,0,0,1,207.39,115.06Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M204.24,116.24a6,6,0,0,1-8.48,0L134,54.49V216a6,6,0,0,1-12,0V54.49L60.24,116.24a6,6,0,0,1-8.48-8.48l72-72a6,6,0,0,1,8.48,0l72,72A6,6,0,0,1,204.24,116.24Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M205.66,117.66a8,8,0,0,1-11.32,0L136,59.31V216a8,8,0,0,1-16,0V59.31L61.66,117.66a8,8,0,0,1-11.32-11.32l72-72a8,8,0,0,1,11.32,0l72,72A8,8,0,0,1,205.66,117.66Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M202.83,114.83a4,4,0,0,1-5.66,0L132,49.66V216a4,4,0,0,1-8,0V49.66L58.83,114.83a4,4,0,0,1-5.66-5.66l72-72a4,4,0,0,1,5.66,0l72,72A4,4,0,0,1,202.83,114.83Z"}))]]),sH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M228,48V96a12,12,0,0,1-12,12H168a12,12,0,0,1,0-24h19l-7.8-7.8a75.55,75.55,0,0,0-53.32-22.26h-.43A75.49,75.49,0,0,0,72.39,75.57,12,12,0,1,1,55.61,58.41a99.38,99.38,0,0,1,69.87-28.47H126A99.42,99.42,0,0,1,196.2,59.23L204,67V48a12,12,0,0,1,24,0ZM183.61,180.43a75.49,75.49,0,0,1-53.09,21.63h-.43A75.55,75.55,0,0,1,76.77,179.8L69,172H88a12,12,0,0,0,0-24H40a12,12,0,0,0-12,12v48a12,12,0,0,0,24,0V189l7.8,7.8A99.42,99.42,0,0,0,130,226.06h.56a99.38,99.38,0,0,0,69.87-28.47,12,12,0,0,0-16.78-17.16Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z",opacity:"0.2"}),r.createElement("path",{d:"M224,48V96a8,8,0,0,1-8,8H168a8,8,0,0,1,0-16h28.69L182.06,73.37a79.56,79.56,0,0,0-56.13-23.43h-.45A79.52,79.52,0,0,0,69.59,72.71,8,8,0,0,1,58.41,61.27a96,96,0,0,1,135,.79L208,76.69V48a8,8,0,0,1,16,0ZM186.41,183.29a80,80,0,0,1-112.47-.66L59.31,168H88a8,8,0,0,0,0-16H40a8,8,0,0,0-8,8v48a8,8,0,0,0,16,0V179.31l14.63,14.63A95.43,95.43,0,0,0,130,222.06h.53a95.36,95.36,0,0,0,67.07-27.33,8,8,0,0,0-11.18-11.44Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,48V96a8,8,0,0,1-8,8H168a8,8,0,0,1-5.66-13.66L180.65,72a79.48,79.48,0,0,0-54.72-22.09h-.45A79.52,79.52,0,0,0,69.59,72.71,8,8,0,0,1,58.41,61.27,96,96,0,0,1,192,60.7l18.36-18.36A8,8,0,0,1,224,48ZM186.41,183.29A80,80,0,0,1,75.35,184l18.31-18.31A8,8,0,0,0,88,152H40a8,8,0,0,0-8,8v48a8,8,0,0,0,13.66,5.66L64,195.3a95.42,95.42,0,0,0,66,26.76h.53a95.36,95.36,0,0,0,67.07-27.33,8,8,0,0,0-11.18-11.44Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M222,48V96a6,6,0,0,1-6,6H168a6,6,0,0,1,0-12h33.52L183.47,72a81.51,81.51,0,0,0-57.53-24h-.46A81.5,81.5,0,0,0,68.19,71.28a6,6,0,1,1-8.38-8.58,93.38,93.38,0,0,1,65.67-26.76H126a93.45,93.45,0,0,1,66,27.53l18,18V48a6,6,0,0,1,12,0ZM187.81,184.72a81.5,81.5,0,0,1-57.29,23.34h-.46a81.51,81.51,0,0,1-57.53-24L54.48,166H88a6,6,0,0,0,0-12H40a6,6,0,0,0-6,6v48a6,6,0,0,0,12,0V174.48l18,18.05a93.45,93.45,0,0,0,66,27.53h.52a93.38,93.38,0,0,0,65.67-26.76,6,6,0,1,0-8.38-8.58Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,48V96a8,8,0,0,1-8,8H168a8,8,0,0,1,0-16h28.69L182.06,73.37a79.56,79.56,0,0,0-56.13-23.43h-.45A79.52,79.52,0,0,0,69.59,72.71,8,8,0,0,1,58.41,61.27a96,96,0,0,1,135,.79L208,76.69V48a8,8,0,0,1,16,0ZM186.41,183.29a80,80,0,0,1-112.47-.66L59.31,168H88a8,8,0,0,0,0-16H40a8,8,0,0,0-8,8v48a8,8,0,0,0,16,0V179.31l14.63,14.63A95.43,95.43,0,0,0,130,222.06h.53a95.36,95.36,0,0,0,67.07-27.33,8,8,0,0,0-11.18-11.44Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M220,48V96a4,4,0,0,1-4,4H168a4,4,0,0,1,0-8h38.34L184.89,70.54A84,84,0,0,0,66.8,69.85a4,4,0,1,1-5.6-5.72,92,92,0,0,1,129.34.76L212,86.34V48a4,4,0,0,1,8,0ZM189.2,186.15a83.44,83.44,0,0,1-58.68,23.91h-.47a83.52,83.52,0,0,1-58.94-24.6L49.66,164H88a4,4,0,0,0,0-8H40a4,4,0,0,0-4,4v48a4,4,0,0,0,8,0V169.66l21.46,21.45A91.43,91.43,0,0,0,130,218.06h.51a91.45,91.45,0,0,0,64.28-26.19,4,4,0,1,0-5.6-5.72Z"}))]]),oH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M120.49,167.51a12,12,0,0,1,0,17l-32,32a12,12,0,0,1-17,0l-32-32a12,12,0,1,1,17-17L68,179V48a12,12,0,0,1,24,0V179l11.51-11.52A12,12,0,0,1,120.49,167.51Zm96-96-32-32a12,12,0,0,0-17,0l-32,32a12,12,0,0,0,17,17L164,77V208a12,12,0,0,0,24,0V77l11.51,11.52a12,12,0,0,0,17-17Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M176,48V208H80V48Z",opacity:"0.2"}),r.createElement("path",{d:"M117.66,170.34a8,8,0,0,1,0,11.32l-32,32a8,8,0,0,1-11.32,0l-32-32a8,8,0,0,1,11.32-11.32L72,188.69V48a8,8,0,0,1,16,0V188.69l18.34-18.35A8,8,0,0,1,117.66,170.34Zm96-96-32-32a8,8,0,0,0-11.32,0l-32,32a8,8,0,0,0,11.32,11.32L168,67.31V208a8,8,0,0,0,16,0V67.31l18.34,18.35a8,8,0,0,0,11.32-11.32Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M119.39,172.94a8,8,0,0,1-1.73,8.72l-32,32a8,8,0,0,1-11.32,0l-32-32A8,8,0,0,1,48,168H72V48a8,8,0,0,1,16,0V168h24A8,8,0,0,1,119.39,172.94Zm94.27-98.6-32-32a8,8,0,0,0-11.32,0l-32,32A8,8,0,0,0,144,88h24V208a8,8,0,0,0,16,0V88h24a8,8,0,0,0,5.66-13.66Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M116.24,171.76a6,6,0,0,1,0,8.48l-32,32a6,6,0,0,1-8.48,0l-32-32a6,6,0,0,1,8.48-8.48L74,193.51V48a6,6,0,0,1,12,0V193.51l21.76-21.75A6,6,0,0,1,116.24,171.76Zm96-96-32-32a6,6,0,0,0-8.48,0l-32,32a6,6,0,0,0,8.48,8.48L170,62.49V208a6,6,0,0,0,12,0V62.49l21.76,21.75a6,6,0,0,0,8.48-8.48Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M117.66,170.34a8,8,0,0,1,0,11.32l-32,32a8,8,0,0,1-11.32,0l-32-32a8,8,0,0,1,11.32-11.32L72,188.69V48a8,8,0,0,1,16,0V188.69l18.34-18.35A8,8,0,0,1,117.66,170.34Zm96-96-32-32a8,8,0,0,0-11.32,0l-32,32a8,8,0,0,0,11.32,11.32L168,67.31V208a8,8,0,0,0,16,0V67.31l18.34,18.35a8,8,0,0,0,11.32-11.32Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M114.83,173.17a4,4,0,0,1,0,5.66l-32,32a4,4,0,0,1-5.66,0l-32-32a4,4,0,0,1,5.66-5.66L76,198.34V48a4,4,0,0,1,8,0V198.34l25.17-25.17A4,4,0,0,1,114.83,173.17Zm96-96-32-32a4,4,0,0,0-5.66,0l-32,32a4,4,0,0,0,5.66,5.66L172,57.66V208a4,4,0,0,0,8,0V57.66l25.17,25.17a4,4,0,1,0,5.66-5.66Z"}))]]),lH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216.49,184.49l-32,32a12,12,0,0,1-17-17L179,188H48a12,12,0,0,1,0-24H179l-11.52-11.51a12,12,0,0,1,17-17l32,32A12,12,0,0,1,216.49,184.49Zm-145-64a12,12,0,0,0,17-17L77,92H208a12,12,0,0,0,0-24H77L88.49,56.49a12,12,0,0,0-17-17l-32,32a12,12,0,0,0,0,17Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,80v96H48V80Z",opacity:"0.2"}),r.createElement("path",{d:"M213.66,181.66l-32,32a8,8,0,0,1-11.32-11.32L188.69,184H48a8,8,0,0,1,0-16H188.69l-18.35-18.34a8,8,0,0,1,11.32-11.32l32,32A8,8,0,0,1,213.66,181.66Zm-139.32-64a8,8,0,0,0,11.32-11.32L67.31,88H208a8,8,0,0,0,0-16H67.31L85.66,53.66A8,8,0,0,0,74.34,42.34l-32,32a8,8,0,0,0,0,11.32Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M42.34,85.66a8,8,0,0,1,0-11.32l32-32A8,8,0,0,1,88,48V72H208a8,8,0,0,1,0,16H88v24a8,8,0,0,1-13.66,5.66Zm171.32,84.68-32-32A8,8,0,0,0,168,144v24H48a8,8,0,0,0,0,16H168v24a8,8,0,0,0,13.66,5.66l32-32A8,8,0,0,0,213.66,170.34Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M212.24,171.76a6,6,0,0,1,0,8.48l-32,32a6,6,0,0,1-8.48-8.48L193.51,182H48a6,6,0,0,1,0-12H193.51l-21.75-21.76a6,6,0,0,1,8.48-8.48ZM75.76,116.24a6,6,0,0,0,8.48-8.48L62.49,86H208a6,6,0,0,0,0-12H62.49L84.24,52.24a6,6,0,0,0-8.48-8.48l-32,32a6,6,0,0,0,0,8.48Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M213.66,181.66l-32,32a8,8,0,0,1-11.32-11.32L188.69,184H48a8,8,0,0,1,0-16H188.69l-18.35-18.34a8,8,0,0,1,11.32-11.32l32,32A8,8,0,0,1,213.66,181.66Zm-139.32-64a8,8,0,0,0,11.32-11.32L67.31,88H208a8,8,0,0,0,0-16H67.31L85.66,53.66A8,8,0,0,0,74.34,42.34l-32,32a8,8,0,0,0,0,11.32Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M210.83,173.17a4,4,0,0,1,0,5.66l-32,32a4,4,0,0,1-5.66-5.66L198.34,180H48a4,4,0,0,1,0-8H198.34l-25.17-25.17a4,4,0,0,1,5.66-5.66ZM77.17,114.83a4,4,0,0,0,5.66-5.66L57.66,84H208a4,4,0,0,0,0-8H57.66L82.83,50.83a4,4,0,0,0-5.66-5.66l-32,32a4,4,0,0,0,0,5.66Z"}))]]),iH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M225.29,165.93C216.61,151,212,129.57,212,104a84,84,0,0,0-168,0c0,25.58-4.59,47-13.27,61.93A20.08,20.08,0,0,0,30.66,186,19.77,19.77,0,0,0,48,196H84.18a44,44,0,0,0,87.64,0H208a19.77,19.77,0,0,0,17.31-10A20.08,20.08,0,0,0,225.29,165.93ZM128,212a20,20,0,0,1-19.6-16h39.2A20,20,0,0,1,128,212ZM54.66,172C63.51,154,68,131.14,68,104a60,60,0,0,1,120,0c0,27.13,4.48,50,13.33,68Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,192H48a8,8,0,0,1-6.88-12C47.71,168.6,56,139.81,56,104a72,72,0,0,1,144,0c0,35.82,8.3,64.6,14.9,76A8,8,0,0,1,208,192Z",opacity:"0.2"}),r.createElement("path",{d:"M221.8,175.94C216.25,166.38,208,139.33,208,104a80,80,0,1,0-160,0c0,35.34-8.26,62.38-13.81,71.94A16,16,0,0,0,48,200H88.81a40,40,0,0,0,78.38,0H208a16,16,0,0,0,13.8-24.06ZM128,216a24,24,0,0,1-22.62-16h45.24A24,24,0,0,1,128,216ZM48,184c7.7-13.24,16-43.92,16-80a64,64,0,1,1,128,0c0,36.05,8.28,66.73,16,80Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M221.8,175.94C216.25,166.38,208,139.33,208,104a80,80,0,1,0-160,0c0,35.34-8.26,62.38-13.81,71.94A16,16,0,0,0,48,200H88.81a40,40,0,0,0,78.38,0H208a16,16,0,0,0,13.8-24.06ZM128,216a24,24,0,0,1-22.62-16h45.24A24,24,0,0,1,128,216Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M220.07,176.94C214.41,167.2,206,139.73,206,104a78,78,0,1,0-156,0c0,35.74-8.42,63.2-14.08,72.94A14,14,0,0,0,48,198H90.48a38,38,0,0,0,75,0H208a14,14,0,0,0,12.06-21.06ZM128,218a26,26,0,0,1-25.29-20h50.58A26,26,0,0,1,128,218Zm81.71-33a1.9,1.9,0,0,1-1.7,1H48a1.9,1.9,0,0,1-1.7-1,2,2,0,0,1,0-2C53.87,170,62,139.69,62,104a66,66,0,1,1,132,0c0,35.68,8.14,65.95,15.71,79A2,2,0,0,1,209.71,185Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M221.8,175.94C216.25,166.38,208,139.33,208,104a80,80,0,1,0-160,0c0,35.34-8.26,62.38-13.81,71.94A16,16,0,0,0,48,200H88.81a40,40,0,0,0,78.38,0H208a16,16,0,0,0,13.8-24.06ZM128,216a24,24,0,0,1-22.62-16h45.24A24,24,0,0,1,128,216ZM48,184c7.7-13.24,16-43.92,16-80a64,64,0,1,1,128,0c0,36.05,8.28,66.73,16,80Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M218.35,178C212.58,168,204,140.13,204,104a76,76,0,1,0-152,0c0,36.13-8.59,64-14.36,73.95A12,12,0,0,0,48,196H92.23a36,36,0,0,0,71.54,0H208A12,12,0,0,0,218.35,178ZM128,220a28,28,0,0,1-27.71-24h55.42A28,28,0,0,1,128,220Zm83.45-34a3.91,3.91,0,0,1-3.44,2H48a3.91,3.91,0,0,1-3.44-2,4,4,0,0,1,0-4C52,169.17,60,139.32,60,104a68,68,0,1,1,136,0c0,35.31,8,65.17,15.44,78A4,4,0,0,1,211.45,186Z"}))]]),cH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M184,28H72A20,20,0,0,0,52,48V224a12,12,0,0,0,18.36,10.18l57.63-36,57.65,36A12,12,0,0,0,204,224V48A20,20,0,0,0,184,28Zm-4,174.35-45.65-28.53a12,12,0,0,0-12.72,0L76,202.35V52H180Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M192,48V224l-64-40L64,224V48a8,8,0,0,1,8-8H184A8,8,0,0,1,192,48Z",opacity:"0.2"}),r.createElement("path",{d:"M184,32H72A16,16,0,0,0,56,48V224a8,8,0,0,0,12.24,6.78L128,193.43l59.77,37.35A8,8,0,0,0,200,224V48A16,16,0,0,0,184,32Zm0,177.57-51.77-32.35a8,8,0,0,0-8.48,0L72,209.57V48H184Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M184,32H72A16,16,0,0,0,56,48V224a8,8,0,0,0,12.24,6.78L128,193.43l59.77,37.35A8,8,0,0,0,200,224V48A16,16,0,0,0,184,32Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M184,34H72A14,14,0,0,0,58,48V224a6,6,0,0,0,9.18,5.09l60.81-38,60.83,38A6,6,0,0,0,198,224V48A14,14,0,0,0,184,34Zm2,179.17-54.83-34.26a6,6,0,0,0-6.36,0L70,213.17V48a2,2,0,0,1,2-2H184a2,2,0,0,1,2,2Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M184,32H72A16,16,0,0,0,56,48V224a8,8,0,0,0,12.24,6.78L128,193.43l59.77,37.35A8,8,0,0,0,200,224V48A16,16,0,0,0,184,32Zm0,177.57-51.77-32.35a8,8,0,0,0-8.48,0L72,209.57V48H184Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M184,36H72A12,12,0,0,0,60,48V224a4,4,0,0,0,6.12,3.39L128,188.72l61.89,38.67A4,4,0,0,0,192,228a4.06,4.06,0,0,0,1.94-.5A4,4,0,0,0,196,224V48A12,12,0,0,0,184,36Zm4,180.78-57.89-36.17a4,4,0,0,0-4.24,0L68,216.78V48a4,4,0,0,1,4-4H184a4,4,0,0,1,4,4Z"}))]]),uH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M237.24,213.21C216.12,203,204,180.64,204,152V134.73a19.94,19.94,0,0,0-12.62-18.59l-24.86-9.81a4,4,0,0,1-2.26-5.14l21.33-53A32,32,0,0,0,167.17,6,32.13,32.13,0,0,0,126.25,24.2l-.07.18-21,53.09a3.94,3.94,0,0,1-2.14,2.2,3.89,3.89,0,0,1-3,.06L74.6,69.43A19.89,19.89,0,0,0,52.87,74C31.06,96.43,20,122.68,20,152a115.46,115.46,0,0,0,32.29,80.3A12,12,0,0,0,61,236H232a12,12,0,0,0,5.24-22.79ZM68.19,92.73,91.06,102A28,28,0,0,0,127.5,86.31l20.95-53a8.32,8.32,0,0,1,10.33-4.81,8,8,0,0,1,4.61,10.57,1.17,1.17,0,0,0,0,.11L142,92.29a28.05,28.05,0,0,0,15.68,36.33L180,137.45V152c0,1,0,2.07.05,3.1l-122.44-49A101.91,101.91,0,0,1,68.19,92.73ZM116.74,212a83.73,83.73,0,0,1-22.09-39,12,12,0,0,0-23.25,6,110.27,110.27,0,0,0,14.49,33H66.25A91.53,91.53,0,0,1,44,152a84,84,0,0,1,3.41-24.11l136.67,54.66A86.58,86.58,0,0,0,198.66,212Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M192.8,165.12,43.93,105.57A110.88,110.88,0,0,1,61.47,82.38a8,8,0,0,1,8.67-1.81L95.52,90.85a16,16,0,0,0,20.82-9l21-53.1c4.15-10,15.47-15.33,25.63-11.53a20,20,0,0,1,11.51,26.39L153.13,96.71a16,16,0,0,0,8.93,20.75L187,127.3a8,8,0,0,1,5,7.43V152A104.58,104.58,0,0,0,192.8,165.12Z",opacity:"0.2"}),r.createElement("path",{d:"M235.5,216.81c-22.56-11-35.5-34.58-35.5-64.8V134.73a15.94,15.94,0,0,0-10.09-14.87L165,110a8,8,0,0,1-4.48-10.34l21.32-53a28,28,0,0,0-16.1-37,28.14,28.14,0,0,0-35.82,16,.61.61,0,0,0,0,.12L108.9,79a8,8,0,0,1-10.37,4.49L73.11,73.14A15.89,15.89,0,0,0,55.74,76.8C34.68,98.45,24,123.75,24,152a111.45,111.45,0,0,0,31.18,77.53A8,8,0,0,0,61,232H232a8,8,0,0,0,3.5-15.19ZM67.14,88l25.41,10.3a24,24,0,0,0,31.23-13.45l21-53c2.56-6.11,9.47-9.27,15.43-7a12,12,0,0,1,6.88,15.92L145.69,93.76a24,24,0,0,0,13.43,31.14L184,134.73V152c0,.33,0,.66,0,1L55.77,101.71A108.84,108.84,0,0,1,67.14,88Zm48,128a87.53,87.53,0,0,1-24.34-42,8,8,0,0,0-15.49,4,105.16,105.16,0,0,0,18.36,38H64.44A95.54,95.54,0,0,1,40,152a85.9,85.9,0,0,1,7.73-36.29l137.8,55.12c3,18,10.56,33.48,21.89,45.16Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M235.29,216.7C212.86,205.69,200,182.12,200,152V134.69a15.94,15.94,0,0,0-10.09-14.87l-28.65-11.46A8,8,0,0,1,156.79,98l22.32-56.67C184,28.79,178,14.21,165.34,9.51a24,24,0,0,0-30.7,13.71L112.25,80.08a8,8,0,0,1-10.41,4.5L73.11,73.08a15.91,15.91,0,0,0-17.38,3.66C34.68,98.4,24,123.71,24,152a111.53,111.53,0,0,0,31.15,77.53A8.06,8.06,0,0,0,61,232H232a8,8,0,0,0,8-7.51A8.21,8.21,0,0,0,235.29,216.7ZM115.11,216a87.52,87.52,0,0,1-24.26-41.71,8.21,8.21,0,0,0-9.25-6.18A8,8,0,0,0,75.28,178a105.33,105.33,0,0,0,18.36,38H64.44A95.62,95.62,0,0,1,40,152a85.92,85.92,0,0,1,7.73-36.3l137.8,55.13c3,18.06,10.55,33.5,21.89,45.19Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M234.62,218.6C211.35,207.29,198,183,198,152V134.7a14,14,0,0,0-8.82-13l-24.89-9.83a10,10,0,0,1-5.59-13L180,45.9a26,26,0,0,0-15-34.33c-12.95-4.83-27.88,1.84-33.31,15l-21,53.11a10,10,0,0,1-13,5.61L72.37,75a13.9,13.9,0,0,0-15.2,3.19C36.49,99.42,26,124.26,26,152a109.53,109.53,0,0,0,30.62,76.16A6,6,0,0,0,61,230H232a6,6,0,0,0,2.62-11.4ZM65.77,86.52a2,2,0,0,1,2.12-.43l25.4,10.29a22,22,0,0,0,28.63-12.32l21-53c3-7.13,11-10.81,18-8.21a14,14,0,0,1,8,18.54l-21.36,53.1A22.05,22.05,0,0,0,159.86,123l24.88,9.83A2,2,0,0,1,186,134.7V152c0,1.34,0,2.65.08,4L52.74,102.61A110.07,110.07,0,0,1,65.77,86.52ZM114.33,218a89.6,89.6,0,0,1-25.5-43.5,6,6,0,1,0-11.62,3A102.87,102.87,0,0,0,97.81,218H63.56A97.56,97.56,0,0,1,38,152a87.42,87.42,0,0,1,8.71-38.86L187.35,169.4c3.15,19.92,11.77,36.66,25,48.6Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M235.5,216.81c-22.56-11-35.5-34.58-35.5-64.8V134.73a15.94,15.94,0,0,0-10.09-14.87L165,110a8,8,0,0,1-4.48-10.34l21.32-53a28,28,0,0,0-16.1-37,28.14,28.14,0,0,0-35.82,16,.61.61,0,0,0,0,.12L108.9,79a8,8,0,0,1-10.37,4.49L73.11,73.14A15.89,15.89,0,0,0,55.74,76.8C34.68,98.45,24,123.75,24,152a111.45,111.45,0,0,0,31.18,77.53A8,8,0,0,0,61,232H232a8,8,0,0,0,3.5-15.19ZM67.14,88l25.41,10.3a24,24,0,0,0,31.23-13.45l21-53c2.56-6.11,9.47-9.27,15.43-7a12,12,0,0,1,6.88,15.92L145.69,93.76a24,24,0,0,0,13.43,31.14L184,134.73V152c0,.33,0,.66,0,1L55.77,101.71A108.84,108.84,0,0,1,67.14,88Zm48,128a87.53,87.53,0,0,1-24.34-42,8,8,0,0,0-15.49,4,105.16,105.16,0,0,0,18.36,38H64.44A95.54,95.54,0,0,1,40,152a85.9,85.9,0,0,1,7.73-36.29l137.8,55.12c3,18,10.56,33.48,21.89,45.16Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M233.75,220.4C209.76,208.75,196,183.82,196,152V134.72a12,12,0,0,0-7.56-11.15l-24.89-9.83a12,12,0,0,1-6.71-15.55l21.33-53a23.88,23.88,0,0,0-31.93-31A24.72,24.72,0,0,0,133.62,27.3l-21,53.1A12,12,0,0,1,97,87.13L71.63,76.84a12,12,0,0,0-13,2.73C38.3,100.45,28,124.82,28,152a107.5,107.5,0,0,0,30.07,74.77A4,4,0,0,0,61,228H232a4,4,0,0,0,1.75-7.6ZM64.34,85.15a3.94,3.94,0,0,1,4.3-.89L94,94.55a20,20,0,0,0,26-11.2l21-53C144.39,22.19,153.61,18,161.58,21a16,16,0,0,1,9.19,21.16L149.41,95.22a20,20,0,0,0,11.18,26l24.9,9.83a4,4,0,0,1,2.51,3.72V152c0,2.36.08,4.69.22,7l-138.5-55.4A110.84,110.84,0,0,1,64.34,85.15ZM113.56,220A91.35,91.35,0,0,1,86.9,175a4,4,0,0,0-7.75,2,100.21,100.21,0,0,0,23.09,43H62.68A99.5,99.5,0,0,1,36,152a89.37,89.37,0,0,1,9.73-41.4L189.13,168c3.22,22,13.23,40.09,28.8,52Z"}))]]),dH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216.49,104.49l-80,80a12,12,0,0,1-17,0l-80-80a12,12,0,0,1,17-17L128,159l71.51-71.52a12,12,0,0,1,17,17Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,96l-80,80L48,96Z",opacity:"0.2"}),r.createElement("path",{d:"M215.39,92.94A8,8,0,0,0,208,88H48a8,8,0,0,0-5.66,13.66l80,80a8,8,0,0,0,11.32,0l80-80A8,8,0,0,0,215.39,92.94ZM128,164.69,67.31,104H188.69Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,48,88H208a8,8,0,0,1,5.66,13.66Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M212.24,100.24l-80,80a6,6,0,0,1-8.48,0l-80-80a6,6,0,0,1,8.48-8.48L128,167.51l75.76-75.75a6,6,0,0,1,8.48,8.48Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M210.83,98.83l-80,80a4,4,0,0,1-5.66,0l-80-80a4,4,0,0,1,5.66-5.66L128,170.34l77.17-77.17a4,4,0,1,1,5.66,5.66Z"}))]]),fH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M168.49,199.51a12,12,0,0,1-17,17l-80-80a12,12,0,0,1,0-17l80-80a12,12,0,0,1,17,17L97,128Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M160,48V208L80,128Z",opacity:"0.2"}),r.createElement("path",{d:"M163.06,40.61a8,8,0,0,0-8.72,1.73l-80,80a8,8,0,0,0,0,11.32l80,80A8,8,0,0,0,168,208V48A8,8,0,0,0,163.06,40.61ZM152,188.69,91.31,128,152,67.31Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M168,48V208a8,8,0,0,1-13.66,5.66l-80-80a8,8,0,0,1,0-11.32l80-80A8,8,0,0,1,168,48Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M164.24,203.76a6,6,0,1,1-8.48,8.48l-80-80a6,6,0,0,1,0-8.48l80-80a6,6,0,0,1,8.48,8.48L88.49,128Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M165.66,202.34a8,8,0,0,1-11.32,11.32l-80-80a8,8,0,0,1,0-11.32l80-80a8,8,0,0,1,11.32,11.32L91.31,128Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M162.83,205.17a4,4,0,0,1-5.66,5.66l-80-80a4,4,0,0,1,0-5.66l80-80a4,4,0,1,1,5.66,5.66L85.66,128Z"}))]]),hH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M184.49,136.49l-80,80a12,12,0,0,1-17-17L159,128,87.51,56.49a12,12,0,1,1,17-17l80,80A12,12,0,0,1,184.49,136.49Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M176,128,96,208V48Z",opacity:"0.2"}),r.createElement("path",{d:"M181.66,122.34l-80-80A8,8,0,0,0,88,48V208a8,8,0,0,0,13.66,5.66l80-80A8,8,0,0,0,181.66,122.34ZM104,188.69V67.31L164.69,128Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M181.66,133.66l-80,80A8,8,0,0,1,88,208V48a8,8,0,0,1,13.66-5.66l80,80A8,8,0,0,1,181.66,133.66Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M180.24,132.24l-80,80a6,6,0,0,1-8.48-8.48L167.51,128,91.76,52.24a6,6,0,0,1,8.48-8.48l80,80A6,6,0,0,1,180.24,132.24Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M178.83,130.83l-80,80a4,4,0,0,1-5.66-5.66L170.34,128,93.17,50.83a4,4,0,0,1,5.66-5.66l80,80A4,4,0,0,1,178.83,130.83Z"}))]]),mH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M232.49,80.49l-128,128a12,12,0,0,1-17,0l-56-56a12,12,0,1,1,17-17L96,183,215.51,63.51a12,12,0,0,1,17,17Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M232,56V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56Z",opacity:"0.2"}),r.createElement("path",{d:"M205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M228.24,76.24l-128,128a6,6,0,0,1-8.48,0l-56-56a6,6,0,0,1,8.48-8.48L96,191.51,219.76,67.76a6,6,0,0,1,8.48,8.48Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M226.83,74.83l-128,128a4,4,0,0,1-5.66,0l-56-56a4,4,0,0,1,5.66-5.66L96,194.34,221.17,69.17a4,4,0,1,1,5.66,5.66Z"}))]]),pH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M176.49,95.51a12,12,0,0,1,0,17l-56,56a12,12,0,0,1-17,0l-24-24a12,12,0,1,1,17-17L112,143l47.51-47.52A12,12,0,0,1,176.49,95.51ZM236,128A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),r.createElement("path",{d:"M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm45.66,85.66-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35a8,8,0,0,1,11.32,11.32Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M172.24,99.76a6,6,0,0,1,0,8.48l-56,56a6,6,0,0,1-8.48,0l-24-24a6,6,0,0,1,8.48-8.48L112,151.51l51.76-51.75A6,6,0,0,1,172.24,99.76ZM230,128A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M170.83,101.17a4,4,0,0,1,0,5.66l-56,56a4,4,0,0,1-5.66,0l-24-24a4,4,0,0,1,5.66-5.66L112,154.34l53.17-53.17A4,4,0,0,1,170.83,101.17ZM228,128A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"}))]]),gH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,192a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,212Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),r.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M232,128A104,104,0,1,1,128,24,104.13,104.13,0,0,1,232,128Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220Z"}))]]),vH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,28H88A12,12,0,0,0,76,40V76H40A12,12,0,0,0,28,88V216a12,12,0,0,0,12,12H168a12,12,0,0,0,12-12V180h36a12,12,0,0,0,12-12V40A12,12,0,0,0,216,28ZM156,204H52V100H156Zm48-48H180V88a12,12,0,0,0-12-12H100V52H204Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,40V168H168V88H88V40Z",opacity:"0.2"}),r.createElement("path",{d:"M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32ZM160,208H48V96H160Zm48-48H176V88a8,8,0,0,0-8-8H96V48H208Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32Zm-8,128H176V88a8,8,0,0,0-8-8H96V48H208Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,34H88a6,6,0,0,0-6,6V82H40a6,6,0,0,0-6,6V216a6,6,0,0,0,6,6H168a6,6,0,0,0,6-6V174h42a6,6,0,0,0,6-6V40A6,6,0,0,0,216,34ZM162,210H46V94H162Zm48-48H174V88a6,6,0,0,0-6-6H94V46H210Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32ZM160,208H48V96H160Zm48-48H176V88a8,8,0,0,0-8-8H96V48H208Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,36H88a4,4,0,0,0-4,4V84H40a4,4,0,0,0-4,4V216a4,4,0,0,0,4,4H168a4,4,0,0,0,4-4V172h44a4,4,0,0,0,4-4V40A4,4,0,0,0,216,36ZM164,212H44V92H164Zm48-48H172V88a4,4,0,0,0-4-4H92V44H212Z"}))]]),yH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M180,64H40A12,12,0,0,0,28,76V216a12,12,0,0,0,12,12H180a12,12,0,0,0,12-12V76A12,12,0,0,0,180,64ZM168,204H52V88H168ZM228,40V180a12,12,0,0,1-24,0V52H76a12,12,0,0,1,0-24H216A12,12,0,0,1,228,40Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M184,72V216H40V72Z",opacity:"0.2"}),r.createElement("path",{d:"M184,64H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H184a8,8,0,0,0,8-8V72A8,8,0,0,0,184,64Zm-8,144H48V80H176ZM224,40V184a8,8,0,0,1-16,0V48H72a8,8,0,0,1,0-16H216A8,8,0,0,1,224,40Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M192,72V216a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V72a8,8,0,0,1,8-8H184A8,8,0,0,1,192,72Zm24-40H72a8,8,0,0,0,0,16H208V184a8,8,0,0,0,16,0V40A8,8,0,0,0,216,32Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M184,66H40a6,6,0,0,0-6,6V216a6,6,0,0,0,6,6H184a6,6,0,0,0,6-6V72A6,6,0,0,0,184,66Zm-6,144H46V78H178ZM222,40V184a6,6,0,0,1-12,0V46H72a6,6,0,0,1,0-12H216A6,6,0,0,1,222,40Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M184,64H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H184a8,8,0,0,0,8-8V72A8,8,0,0,0,184,64Zm-8,144H48V80H176ZM224,40V184a8,8,0,0,1-16,0V48H72a8,8,0,0,1,0-16H216A8,8,0,0,1,224,40Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M184,68H40a4,4,0,0,0-4,4V216a4,4,0,0,0,4,4H184a4,4,0,0,0,4-4V72A4,4,0,0,0,184,68Zm-4,144H44V76H180ZM220,40V184a4,4,0,0,1-8,0V44H72a4,4,0,0,1,0-8H216A4,4,0,0,1,220,40Z"}))]]),xH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M196,35.52C177.62,25.51,153.48,20,128,20S78.38,25.51,60,35.52C39.37,46.79,28,62.58,28,80v96c0,17.42,11.37,33.21,32,44.48,18.35,10,42.49,15.52,68,15.52s49.62-5.51,68-15.52c20.66-11.27,32-27.06,32-44.48V80C228,62.58,216.63,46.79,196,35.52ZM204,128c0,17-31.21,36-76,36s-76-19-76-36v-8.46a88.9,88.9,0,0,0,8,4.94c18.35,10,42.49,15.52,68,15.52s49.62-5.51,68-15.52a88.9,88.9,0,0,0,8-4.94ZM128,44c44.79,0,76,19,76,36s-31.21,36-76,36S52,97,52,80,83.21,44,128,44Zm0,168c-44.79,0-76-19-76-36v-8.46a88.9,88.9,0,0,0,8,4.94c18.35,10,42.49,15.52,68,15.52s49.62-5.51,68-15.52a88.9,88.9,0,0,0,8-4.94V176C204,193,172.79,212,128,212Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,80c0,26.51-39.4,48-88,48S40,106.51,40,80s39.4-48,88-48S216,53.49,216,80Z",opacity:"0.2"}),r.createElement("path",{d:"M128,24C74.17,24,32,48.6,32,80v96c0,31.4,42.17,56,96,56s96-24.6,96-56V80C224,48.6,181.83,24,128,24Zm80,104c0,9.62-7.88,19.43-21.61,26.92C170.93,163.35,150.19,168,128,168s-42.93-4.65-58.39-13.08C55.88,147.43,48,137.62,48,128V111.36c17.06,15,46.23,24.64,80,24.64s62.94-9.68,80-24.64ZM69.61,53.08C85.07,44.65,105.81,40,128,40s42.93,4.65,58.39,13.08C200.12,60.57,208,70.38,208,80s-7.88,19.43-21.61,26.92C170.93,115.35,150.19,120,128,120s-42.93-4.65-58.39-13.08C55.88,99.43,48,89.62,48,80S55.88,60.57,69.61,53.08ZM186.39,202.92C170.93,211.35,150.19,216,128,216s-42.93-4.65-58.39-13.08C55.88,195.43,48,185.62,48,176V159.36c17.06,15,46.23,24.64,80,24.64s62.94-9.68,80-24.64V176C208,185.62,200.12,195.43,186.39,202.92Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,24C74.17,24,32,48.6,32,80v96c0,31.4,42.17,56,96,56s96-24.6,96-56V80C224,48.6,181.83,24,128,24Zm80,104c0,9.62-7.88,19.43-21.61,26.92C170.93,163.35,150.19,168,128,168s-42.93-4.65-58.39-13.08C55.88,147.43,48,137.62,48,128V111.36c17.06,15,46.23,24.64,80,24.64s62.94-9.68,80-24.64Zm-21.61,74.92C170.93,211.35,150.19,216,128,216s-42.93-4.65-58.39-13.08C55.88,195.43,48,185.62,48,176V159.36c17.06,15,46.23,24.64,80,24.64s62.94-9.68,80-24.64V176C208,185.62,200.12,195.43,186.39,202.92Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,26C75.29,26,34,49.72,34,80v96c0,30.28,41.29,54,94,54s94-23.72,94-54V80C222,49.72,180.71,26,128,26Zm0,12c44.45,0,82,19.23,82,42s-37.55,42-82,42S46,102.77,46,80,83.55,38,128,38Zm82,138c0,22.77-37.55,42-82,42s-82-19.23-82-42V154.79C62,171.16,92.37,182,128,182s66-10.84,82-27.21Zm0-48c0,22.77-37.55,42-82,42s-82-19.23-82-42V106.79C62,123.16,92.37,134,128,134s66-10.84,82-27.21Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,24C74.17,24,32,48.6,32,80v96c0,31.4,42.17,56,96,56s96-24.6,96-56V80C224,48.6,181.83,24,128,24Zm80,104c0,9.62-7.88,19.43-21.61,26.92C170.93,163.35,150.19,168,128,168s-42.93-4.65-58.39-13.08C55.88,147.43,48,137.62,48,128V111.36c17.06,15,46.23,24.64,80,24.64s62.94-9.68,80-24.64ZM69.61,53.08C85.07,44.65,105.81,40,128,40s42.93,4.65,58.39,13.08C200.12,60.57,208,70.38,208,80s-7.88,19.43-21.61,26.92C170.93,115.35,150.19,120,128,120s-42.93-4.65-58.39-13.08C55.88,99.43,48,89.62,48,80S55.88,60.57,69.61,53.08ZM186.39,202.92C170.93,211.35,150.19,216,128,216s-42.93-4.65-58.39-13.08C55.88,195.43,48,185.62,48,176V159.36c17.06,15,46.23,24.64,80,24.64s62.94-9.68,80-24.64V176C208,185.62,200.12,195.43,186.39,202.92Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M192.14,42.55C174.94,33.17,152.16,28,128,28S81.06,33.17,63.86,42.55C45.89,52.35,36,65.65,36,80v96c0,14.35,9.89,27.65,27.86,37.45,17.2,9.38,40,14.55,64.14,14.55s46.94-5.17,64.14-14.55c18-9.8,27.86-23.1,27.86-37.45V80C220,65.65,210.11,52.35,192.14,42.55ZM212,176c0,11.29-8.41,22.1-23.69,30.43C172.27,215.18,150.85,220,128,220s-44.27-4.82-60.31-13.57C52.41,198.1,44,187.29,44,176V149.48c4.69,5.93,11.37,11.34,19.86,16,17.2,9.38,40,14.55,64.14,14.55s46.94-5.17,64.14-14.55c8.49-4.63,15.17-10,19.86-16Zm0-48c0,11.29-8.41,22.1-23.69,30.43C172.27,167.18,150.85,172,128,172s-44.27-4.82-60.31-13.57C52.41,150.1,44,139.29,44,128V101.48c4.69,5.93,11.37,11.34,19.86,16,17.2,9.38,40,14.55,64.14,14.55s46.94-5.17,64.14-14.55c8.49-4.63,15.17-10,19.86-16Zm-23.69-17.57C172.27,119.18,150.85,124,128,124s-44.27-4.82-60.31-13.57C52.41,102.1,44,91.29,44,80s8.41-22.1,23.69-30.43C83.73,40.82,105.15,36,128,36s44.27,4.82,60.31,13.57C203.59,57.9,212,68.71,212,80S203.59,102.1,188.31,110.43Z"}))]]),wH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M144,128a16,16,0,1,1-16-16A16,16,0,0,1,144,128ZM60,112a16,16,0,1,0,16,16A16,16,0,0,0,60,112Zm136,0a16,16,0,1,0,16,16A16,16,0,0,0,196,112Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M240,96v64a16,16,0,0,1-16,16H32a16,16,0,0,1-16-16V96A16,16,0,0,1,32,80H224A16,16,0,0,1,240,96Z",opacity:"0.2"}),r.createElement("path",{d:"M140,128a12,12,0,1,1-12-12A12,12,0,0,1,140,128Zm56-12a12,12,0,1,0,12,12A12,12,0,0,0,196,116ZM60,116a12,12,0,1,0,12,12A12,12,0,0,0,60,116Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,80H32A16,16,0,0,0,16,96v64a16,16,0,0,0,16,16H224a16,16,0,0,0,16-16V96A16,16,0,0,0,224,80ZM60,140a12,12,0,1,1,12-12A12,12,0,0,1,60,140Zm68,0a12,12,0,1,1,12-12A12,12,0,0,1,128,140Zm68,0a12,12,0,1,1,12-12A12,12,0,0,1,196,140Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M138,128a10,10,0,1,1-10-10A10,10,0,0,1,138,128ZM60,118a10,10,0,1,0,10,10A10,10,0,0,0,60,118Zm136,0a10,10,0,1,0,10,10A10,10,0,0,0,196,118Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M140,128a12,12,0,1,1-12-12A12,12,0,0,1,140,128Zm56-12a12,12,0,1,0,12,12A12,12,0,0,0,196,116ZM60,116a12,12,0,1,0,12,12A12,12,0,0,0,60,116Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M136,128a8,8,0,1,1-8-8A8,8,0,0,1,136,128Zm-76-8a8,8,0,1,0,8,8A8,8,0,0,0,60,120Zm136,0a8,8,0,1,0,8,8A8,8,0,0,0,196,120Z"}))]]),bH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M228,144v64a12,12,0,0,1-12,12H40a12,12,0,0,1-12-12V144a12,12,0,0,1,24,0v52H204V144a12,12,0,0,1,24,0Zm-108.49,8.49a12,12,0,0,0,17,0l40-40a12,12,0,0,0-17-17L140,115V32a12,12,0,0,0-24,0v83L96.49,95.51a12,12,0,0,0-17,17Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,48V208H40V48A16,16,0,0,1,56,32H200A16,16,0,0,1,216,48Z",opacity:"0.2"}),r.createElement("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0Zm-101.66,5.66a8,8,0,0,0,11.32,0l40-40a8,8,0,0,0-11.32-11.32L136,124.69V32a8,8,0,0,0-16,0v92.69L93.66,98.34a8,8,0,0,0-11.32,11.32Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0Zm-101.66,5.66a8,8,0,0,0,11.32,0l40-40A8,8,0,0,0,168,96H136V32a8,8,0,0,0-16,0V96H88a8,8,0,0,0-5.66,13.66Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M222,144v64a6,6,0,0,1-6,6H40a6,6,0,0,1-6-6V144a6,6,0,0,1,12,0v58H210V144a6,6,0,0,1,12,0Zm-98.24,4.24a6,6,0,0,0,8.48,0l40-40a6,6,0,0,0-8.48-8.48L134,129.51V32a6,6,0,0,0-12,0v97.51L92.24,99.76a6,6,0,0,0-8.48,8.48Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0Zm-101.66,5.66a8,8,0,0,0,11.32,0l40-40a8,8,0,0,0-11.32-11.32L136,124.69V32a8,8,0,0,0-16,0v92.69L93.66,98.34a8,8,0,0,0-11.32,11.32Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M220,144v64a4,4,0,0,1-4,4H40a4,4,0,0,1-4-4V144a4,4,0,0,1,8,0v60H212V144a4,4,0,0,1,8,0Zm-94.83,2.83a4,4,0,0,0,5.66,0l40-40a4,4,0,1,0-5.66-5.66L132,134.34V32a4,4,0,0,0-8,0V134.34L90.83,101.17a4,4,0,0,0-5.66,5.66Z"}))]]),EH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M251,123.13c-.37-.81-9.13-20.26-28.48-39.61C196.63,57.67,164,44,128,44S59.37,57.67,33.51,83.52C14.16,102.87,5.4,122.32,5,123.13a12.08,12.08,0,0,0,0,9.75c.37.82,9.13,20.26,28.49,39.61C59.37,198.34,92,212,128,212s68.63-13.66,94.48-39.51c19.36-19.35,28.12-38.79,28.49-39.61A12.08,12.08,0,0,0,251,123.13Zm-46.06,33C183.47,177.27,157.59,188,128,188s-55.47-10.73-76.91-31.88A130.36,130.36,0,0,1,29.52,128,130.45,130.45,0,0,1,51.09,99.89C72.54,78.73,98.41,68,128,68s55.46,10.73,76.91,31.89A130.36,130.36,0,0,1,226.48,128,130.45,130.45,0,0,1,204.91,156.12ZM128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,64a20,20,0,1,1,20-20A20,20,0,0,1,128,148Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,56C48,56,16,128,16,128s32,72,112,72,112-72,112-72S208,56,128,56Zm0,112a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z",opacity:"0.2"}),r.createElement("path",{d:"M247.31,124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57,61.26,162.88,48,128,48S61.43,61.26,36.34,86.35C17.51,105.18,9,124,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208s66.57-13.26,91.66-38.34c18.83-18.83,27.3-37.61,27.65-38.4A8,8,0,0,0,247.31,124.76ZM128,192c-30.78,0-57.67-11.19-79.93-33.25A133.47,133.47,0,0,1,25,128,133.33,133.33,0,0,1,48.07,97.25C70.33,75.19,97.22,64,128,64s57.67,11.19,79.93,33.25A133.46,133.46,0,0,1,231.05,128C223.84,141.46,192.43,192,128,192Zm0-112a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M247.31,124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57,61.26,162.88,48,128,48S61.43,61.26,36.34,86.35C17.51,105.18,9,124,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208s66.57-13.26,91.66-38.34c18.83-18.83,27.3-37.61,27.65-38.4A8,8,0,0,0,247.31,124.76ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M245.48,125.57c-.34-.78-8.66-19.23-27.24-37.81C201,70.54,171.38,50,128,50S55,70.54,37.76,87.76c-18.58,18.58-26.9,37-27.24,37.81a6,6,0,0,0,0,4.88c.34.77,8.66,19.22,27.24,37.8C55,185.47,84.62,206,128,206s73-20.53,90.24-37.75c18.58-18.58,26.9-37,27.24-37.8A6,6,0,0,0,245.48,125.57ZM128,194c-31.38,0-58.78-11.42-81.45-33.93A134.77,134.77,0,0,1,22.69,128,134.56,134.56,0,0,1,46.55,95.94C69.22,73.42,96.62,62,128,62s58.78,11.42,81.45,33.94A134.56,134.56,0,0,1,233.31,128C226.94,140.21,195,194,128,194Zm0-112a46,46,0,1,0,46,46A46.06,46.06,0,0,0,128,82Zm0,80a34,34,0,1,1,34-34A34,34,0,0,1,128,162Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M247.31,124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57,61.26,162.88,48,128,48S61.43,61.26,36.34,86.35C17.51,105.18,9,124,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208s66.57-13.26,91.66-38.34c18.83-18.83,27.3-37.61,27.65-38.4A8,8,0,0,0,247.31,124.76ZM128,192c-30.78,0-57.67-11.19-79.93-33.25A133.47,133.47,0,0,1,25,128,133.33,133.33,0,0,1,48.07,97.25C70.33,75.19,97.22,64,128,64s57.67,11.19,79.93,33.25A133.46,133.46,0,0,1,231.05,128C223.84,141.46,192.43,192,128,192Zm0-112a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M243.66,126.38c-.34-.76-8.52-18.89-26.83-37.2C199.87,72.22,170.7,52,128,52S56.13,72.22,39.17,89.18c-18.31,18.31-26.49,36.44-26.83,37.2a4.08,4.08,0,0,0,0,3.25c.34.77,8.52,18.89,26.83,37.2,17,17,46.14,37.17,88.83,37.17s71.87-20.21,88.83-37.17c18.31-18.31,26.49-36.43,26.83-37.2A4.08,4.08,0,0,0,243.66,126.38Zm-32.7,35c-23.07,23-51,34.62-83,34.62s-59.89-11.65-83-34.62A135.71,135.71,0,0,1,20.44,128,135.69,135.69,0,0,1,45,94.62C68.11,71.65,96,60,128,60s59.89,11.65,83,34.62A135.79,135.79,0,0,1,235.56,128,135.71,135.71,0,0,1,211,161.38ZM128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,80a36,36,0,1,1,36-36A36,36,0,0,1,128,164Z"}))]]),CH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,100H132.92l78.14-20.63a12,12,0,0,0,8.52-14.75l-8.16-30a19.94,19.94,0,0,0-24.3-13.95L34.79,60.87a19.74,19.74,0,0,0-12.14,9.27,19.48,19.48,0,0,0-1.95,15L28,112v88a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V112A12,12,0,0,0,216,100ZM124.89,61.91l18.29,10.56-25.95,6.85L98.94,68.76Zm64.45-17,3.91,14.35-17.13,4.52L157.83,53.21ZM66,77.46,84.29,88l-35.4,9.35L45,83ZM204,196H52V124H204Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M67.71,64.59l47.79,27.6L40.43,112,32.27,82a7.76,7.76,0,0,1,5.58-9.52ZM199.84,37.76a7.9,7.9,0,0,0-9.66-5.49L126.61,49.05,174.4,76.64,208,67.77Z",opacity:"0.2"}),r.createElement("path",{d:"M216,104H102.09L210,75.51a8,8,0,0,0,5.68-9.84l-8.16-30a15.93,15.93,0,0,0-19.42-11.13L35.81,64.74a15.75,15.75,0,0,0-9.7,7.4,15.51,15.51,0,0,0-1.55,12L32,111.56c0,.14,0,.29,0,.44v88a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V112A8,8,0,0,0,216,104ZM192.16,40l6,22.07-22.62,6L147.42,51.83Zm-66.69,17.6,28.12,16.24-36.94,9.75L88.53,67.37Zm-79.4,44.62-6-22.08,26.5-7L94.69,89.4ZM208,200H48V120H208v80Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,104H102.09L210,75.51a8,8,0,0,0,5.68-9.84l-8.16-30a15.93,15.93,0,0,0-19.42-11.13L35.81,64.74a15.75,15.75,0,0,0-9.7,7.4,15.51,15.51,0,0,0-1.55,12L32,111.56c0,.14,0,.29,0,.44v88a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V112A8,8,0,0,0,216,104ZM192.16,40l6,22.07L164.57,71,136.44,54.72ZM77.55,70.27l28.12,16.24-59.6,15.73-6-22.08Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,106H86.68L209.53,73.57a6,6,0,0,0,4.26-7.38l-8.16-30a13.94,13.94,0,0,0-17-9.72L36.32,66.67a13.77,13.77,0,0,0-8.48,6.47,13.57,13.57,0,0,0-1.36,10.42L34,111.34c0,.22,0,.44,0,.66v88a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V112A6,6,0,0,0,216,106ZM125.75,55.48l33,19.07-42.43,11.2-33-19.07Zm66-17.41a1.92,1.92,0,0,1,2.34,1.26l6.57,24.18L175.26,70.2l-33-19.07ZM38.23,79.14a1.85,1.85,0,0,1,1.15-.87L66.86,71l33,19.08L44.66,104.68l-6.6-24.27A1.63,1.63,0,0,1,38.23,79.14ZM210,200a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V118H210Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,104H102.09L210,75.51a8,8,0,0,0,5.68-9.84l-8.16-30a15.93,15.93,0,0,0-19.42-11.13L35.81,64.74a15.75,15.75,0,0,0-9.7,7.4,15.51,15.51,0,0,0-1.55,12L32,111.56c0,.14,0,.29,0,.44v88a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V112A8,8,0,0,0,216,104ZM192.16,40l6,22.07-22.62,6L147.42,51.83Zm-66.69,17.6,28.12,16.24-36.94,9.75L88.53,67.37Zm-79.4,44.62-6-22.08,26.5-7L94.69,89.4ZM208,200H48V120H208v80Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,108H71.26L209,71.64a4,4,0,0,0,2.84-4.92l-8.16-30a11.92,11.92,0,0,0-14.54-8.31L36.83,68.61a11.78,11.78,0,0,0-7.26,5.53A11.59,11.59,0,0,0,28.41,83l7.67,28.19A3.87,3.87,0,0,0,36,112v88a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V112A4,4,0,0,0,216,108ZM126,53.33l38,21.92L116.08,87.9,78.12,66Zm65.16-17.2a4,4,0,0,1,1-.13A3.88,3.88,0,0,1,196,38.81l7.1,26.12L175,72.35,137,50.43Zm-154.7,42a3.86,3.86,0,0,1,2.37-1.8l28.27-7.46,38,21.91L43.25,107.12,36.13,80.94A3.66,3.66,0,0,1,36.5,78.14ZM212,200a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V116H212Z"}))]]),SH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,68H132L105.33,48a20.12,20.12,0,0,0-12-4H40A20,20,0,0,0,20,64V200a20,20,0,0,0,20,20H216.89A19.13,19.13,0,0,0,236,200.89V88A20,20,0,0,0,216,68Zm-4,128H44V68H92l28.8,21.6A12,12,0,0,0,128,92h84Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,88V200.89a7.11,7.11,0,0,1-7.11,7.11H40a8,8,0,0,1-8-8V64a8,8,0,0,1,8-8H93.33a8,8,0,0,1,4.8,1.6L128,80h88A8,8,0,0,1,224,88Z",opacity:"0.2"}),r.createElement("path",{d:"M216,72H130.67L102.93,51.2a16.12,16.12,0,0,0-9.6-3.2H40A16,16,0,0,0,24,64V200a16,16,0,0,0,16,16H216.89A15.13,15.13,0,0,0,232,200.89V88A16,16,0,0,0,216,72Zm0,128H40V64H93.33L123.2,86.4A8,8,0,0,0,128,88h88Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M232,88V200.89A15.13,15.13,0,0,1,216.89,216H40a16,16,0,0,1-16-16V64A16,16,0,0,1,40,48H93.33a16.12,16.12,0,0,1,9.6,3.2L130.67,72H216A16,16,0,0,1,232,88Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,74H130L101.73,52.8a14,14,0,0,0-8.4-2.8H40A14,14,0,0,0,26,64V200a14,14,0,0,0,14,14H216.89A13.12,13.12,0,0,0,230,200.89V88A14,14,0,0,0,216,74Zm2,126.89a1.11,1.11,0,0,1-1.11,1.11H40a2,2,0,0,1-2-2V64a2,2,0,0,1,2-2H93.33a2,2,0,0,1,1.2.4L124.4,84.8A6,6,0,0,0,128,86h88a2,2,0,0,1,2,2Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,72H130.67L102.93,51.2a16.12,16.12,0,0,0-9.6-3.2H40A16,16,0,0,0,24,64V200a16,16,0,0,0,16,16H216.89A15.13,15.13,0,0,0,232,200.89V88A16,16,0,0,0,216,72Zm0,128H40V64H93.33L123.2,86.4A8,8,0,0,0,128,88h88Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,76H129.33l-28.8-21.6a12.05,12.05,0,0,0-7.2-2.4H40A12,12,0,0,0,28,64V200a12,12,0,0,0,12,12H216.89A11.12,11.12,0,0,0,228,200.89V88A12,12,0,0,0,216,76Zm4,124.89a3.12,3.12,0,0,1-3.11,3.11H40a4,4,0,0,1-4-4V64a4,4,0,0,1,4-4H93.33a4,4,0,0,1,2.4.8L125.6,83.2a4,4,0,0,0,2.4.8h88a4,4,0,0,1,4,4Z"}))]]),jH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M140,88a12,12,0,0,1,12-12h32a12,12,0,0,1,12,12v32a12,12,0,0,1-24,0V100H152A12,12,0,0,1,140,88ZM72,180h32a12,12,0,0,0,0-24H84V136a12,12,0,0,0-24,0v32A12,12,0,0,0,72,180ZM236,56V200a20,20,0,0,1-20,20H40a20,20,0,0,1-20-20V56A20,20,0,0,1,40,36H216A20,20,0,0,1,236,56Zm-24,4H44V196H212Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,56V200a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V56a8,8,0,0,1,8-8H216A8,8,0,0,1,224,56Z",opacity:"0.2"}),r.createElement("path",{d:"M200,80v32a8,8,0,0,1-16,0V88H160a8,8,0,0,1,0-16h32A8,8,0,0,1,200,80ZM96,168H72V144a8,8,0,0,0-16,0v32a8,8,0,0,0,8,8H96a8,8,0,0,0,0-16ZM232,56V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56ZM216,200V56H40V200H216Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM88,192H56a8,8,0,0,1-8-8V152a8,8,0,0,1,16,0v24H88a8,8,0,0,1,0,16Zm120-88a8,8,0,0,1-16,0V80H168a8,8,0,0,1,0-16h32a8,8,0,0,1,8,8Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M198,80v32a6,6,0,0,1-12,0V86H160a6,6,0,0,1,0-12h32A6,6,0,0,1,198,80ZM96,170H70V144a6,6,0,0,0-12,0v32a6,6,0,0,0,6,6H96a6,6,0,0,0,0-12ZM230,56V200a14,14,0,0,1-14,14H40a14,14,0,0,1-14-14V56A14,14,0,0,1,40,42H216A14,14,0,0,1,230,56Zm-12,0a2,2,0,0,0-2-2H40a2,2,0,0,0-2,2V200a2,2,0,0,0,2,2H216a2,2,0,0,0,2-2Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M200,80v32a8,8,0,0,1-16,0V88H160a8,8,0,0,1,0-16h32A8,8,0,0,1,200,80ZM96,168H72V144a8,8,0,0,0-16,0v32a8,8,0,0,0,8,8H96a8,8,0,0,0,0-16ZM232,56V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56ZM216,200V56H40V200H216Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M196,80v32a4,4,0,0,1-8,0V84H160a4,4,0,0,1,0-8h32A4,4,0,0,1,196,80ZM96,172H68V144a4,4,0,0,0-8,0v32a4,4,0,0,0,4,4H96a4,4,0,0,0,0-8ZM228,56V200a12,12,0,0,1-12,12H40a12,12,0,0,1-12-12V56A12,12,0,0,1,40,44H216A12,12,0,0,1,228,56Zm-8,0a4,4,0,0,0-4-4H40a4,4,0,0,0-4,4V200a4,4,0,0,0,4,4H216a4,4,0,0,0,4-4Z"}))]]),kH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,76a52,52,0,1,0,52,52A52.06,52.06,0,0,0,128,76Zm0,80a28,28,0,1,1,28-28A28,28,0,0,1,128,156Zm113.86-49.57A12,12,0,0,0,236,98.34L208.21,82.49l-.11-31.31a12,12,0,0,0-4.25-9.12,116,116,0,0,0-38-21.41,12,12,0,0,0-9.68.89L128,37.27,99.83,21.53a12,12,0,0,0-9.7-.9,116.06,116.06,0,0,0-38,21.47,12,12,0,0,0-4.24,9.1l-.14,31.34L20,98.35a12,12,0,0,0-5.85,8.11,110.7,110.7,0,0,0,0,43.11A12,12,0,0,0,20,157.66l27.82,15.85.11,31.31a12,12,0,0,0,4.25,9.12,116,116,0,0,0,38,21.41,12,12,0,0,0,9.68-.89L128,218.73l28.14,15.74a12,12,0,0,0,9.7.9,116.06,116.06,0,0,0,38-21.47,12,12,0,0,0,4.24-9.1l.14-31.34,27.81-15.81a12,12,0,0,0,5.85-8.11A110.7,110.7,0,0,0,241.86,106.43Zm-22.63,33.18-26.88,15.28a11.94,11.94,0,0,0-4.55,4.59c-.54,1-1.11,1.93-1.7,2.88a12,12,0,0,0-1.83,6.31L184.13,199a91.83,91.83,0,0,1-21.07,11.87l-27.15-15.19a12,12,0,0,0-5.86-1.53h-.29c-1.14,0-2.3,0-3.44,0a12.08,12.08,0,0,0-6.14,1.51L93,210.82A92.27,92.27,0,0,1,71.88,199l-.11-30.24a12,12,0,0,0-1.83-6.32c-.58-.94-1.16-1.91-1.7-2.88A11.92,11.92,0,0,0,63.7,155L36.8,139.63a86.53,86.53,0,0,1,0-23.24l26.88-15.28a12,12,0,0,0,4.55-4.58c.54-1,1.11-1.94,1.7-2.89a12,12,0,0,0,1.83-6.31L71.87,57A91.83,91.83,0,0,1,92.94,45.17l27.15,15.19a11.92,11.92,0,0,0,6.15,1.52c1.14,0,2.3,0,3.44,0a12.08,12.08,0,0,0,6.14-1.51L163,45.18A92.27,92.27,0,0,1,184.12,57l.11,30.24a12,12,0,0,0,1.83,6.32c.58.94,1.16,1.91,1.7,2.88A11.92,11.92,0,0,0,192.3,101l26.9,15.33A86.53,86.53,0,0,1,219.23,139.61Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M230.1,108.76,198.25,90.62c-.64-1.16-1.31-2.29-2-3.41l-.12-36A104.61,104.61,0,0,0,162,32L130,49.89c-1.34,0-2.69,0-4,0L94,32A104.58,104.58,0,0,0,59.89,51.25l-.16,36c-.7,1.12-1.37,2.26-2,3.41l-31.84,18.1a99.15,99.15,0,0,0,0,38.46l31.85,18.14c.64,1.16,1.31,2.29,2,3.41l.12,36A104.61,104.61,0,0,0,94,224l32-17.87c1.34,0,2.69,0,4,0L162,224a104.58,104.58,0,0,0,34.08-19.25l.16-36c.7-1.12,1.37-2.26,2-3.41l31.84-18.1A99.15,99.15,0,0,0,230.1,108.76ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z",opacity:"0.2"}),r.createElement("path",{d:"M128,80a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Zm109.94-52.79a8,8,0,0,0-3.89-5.4l-29.83-17-.12-33.62a8,8,0,0,0-2.83-6.08,111.91,111.91,0,0,0-36.72-20.67,8,8,0,0,0-6.46.59L128,41.85,97.88,25a8,8,0,0,0-6.47-.6A111.92,111.92,0,0,0,54.73,45.15a8,8,0,0,0-2.83,6.07l-.15,33.65-29.83,17a8,8,0,0,0-3.89,5.4,106.47,106.47,0,0,0,0,41.56,8,8,0,0,0,3.89,5.4l29.83,17,.12,33.63a8,8,0,0,0,2.83,6.08,111.91,111.91,0,0,0,36.72,20.67,8,8,0,0,0,6.46-.59L128,214.15,158.12,231a7.91,7.91,0,0,0,3.9,1,8.09,8.09,0,0,0,2.57-.42,112.1,112.1,0,0,0,36.68-20.73,8,8,0,0,0,2.83-6.07l.15-33.65,29.83-17a8,8,0,0,0,3.89-5.4A106.47,106.47,0,0,0,237.94,107.21Zm-15,34.91-28.57,16.25a8,8,0,0,0-3,3c-.58,1-1.19,2.06-1.81,3.06a7.94,7.94,0,0,0-1.22,4.21l-.15,32.25a95.89,95.89,0,0,1-25.37,14.3L134,199.13a8,8,0,0,0-3.91-1h-.19c-1.21,0-2.43,0-3.64,0a8.1,8.1,0,0,0-4.1,1l-28.84,16.1A96,96,0,0,1,67.88,201l-.11-32.2a8,8,0,0,0-1.22-4.22c-.62-1-1.23-2-1.8-3.06a8.09,8.09,0,0,0-3-3.06l-28.6-16.29a90.49,90.49,0,0,1,0-28.26L61.67,97.63a8,8,0,0,0,3-3c.58-1,1.19-2.06,1.81-3.06a7.94,7.94,0,0,0,1.22-4.21l.15-32.25a95.89,95.89,0,0,1,25.37-14.3L122,56.87a8,8,0,0,0,4.1,1c1.21,0,2.43,0,3.64,0a8,8,0,0,0,4.1-1l28.84-16.1A96,96,0,0,1,188.12,55l.11,32.2a8,8,0,0,0,1.22,4.22c.62,1,1.23,2,1.8,3.06a8.09,8.09,0,0,0,3,3.06l28.6,16.29A90.49,90.49,0,0,1,222.9,142.12Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M237.94,107.21a8,8,0,0,0-3.89-5.4l-29.83-17-.12-33.62a8,8,0,0,0-2.83-6.08,111.91,111.91,0,0,0-36.72-20.67,8,8,0,0,0-6.46.59L128,41.85,97.88,25a8,8,0,0,0-6.47-.6A111.92,111.92,0,0,0,54.73,45.15a8,8,0,0,0-2.83,6.07l-.15,33.65-29.83,17a8,8,0,0,0-3.89,5.4,106.47,106.47,0,0,0,0,41.56,8,8,0,0,0,3.89,5.4l29.83,17,.12,33.63a8,8,0,0,0,2.83,6.08,111.91,111.91,0,0,0,36.72,20.67,8,8,0,0,0,6.46-.59L128,214.15,158.12,231a7.91,7.91,0,0,0,3.9,1,8.09,8.09,0,0,0,2.57-.42,112.1,112.1,0,0,0,36.68-20.73,8,8,0,0,0,2.83-6.07l.15-33.65,29.83-17a8,8,0,0,0,3.89-5.4A106.47,106.47,0,0,0,237.94,107.21ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,82a46,46,0,1,0,46,46A46.06,46.06,0,0,0,128,82Zm0,80a34,34,0,1,1,34-34A34,34,0,0,1,128,162Zm108-54.4a6,6,0,0,0-2.92-4L202.64,86.22l-.42-.71L202.1,51.2A6,6,0,0,0,200,46.64a110.12,110.12,0,0,0-36.07-20.31,6,6,0,0,0-4.84.45L128.46,43.86h-1L96.91,26.76a6,6,0,0,0-4.86-.44A109.92,109.92,0,0,0,56,46.68a6,6,0,0,0-2.12,4.55l-.16,34.34c-.14.23-.28.47-.41.71L22.91,103.57A6,6,0,0,0,20,107.62a104.81,104.81,0,0,0,0,40.78,6,6,0,0,0,2.92,4l30.42,17.33.42.71.12,34.31A6,6,0,0,0,56,209.36a110.12,110.12,0,0,0,36.07,20.31,6,6,0,0,0,4.84-.45l30.61-17.08h1l30.56,17.1A6.09,6.09,0,0,0,162,230a5.83,5.83,0,0,0,1.93-.32,109.92,109.92,0,0,0,36-20.36,6,6,0,0,0,2.12-4.55l.16-34.34c.14-.23.28-.47.41-.71l30.42-17.29a6,6,0,0,0,2.92-4.05A104.81,104.81,0,0,0,236,107.6Zm-11.25,35.79L195.32,160.1a6.07,6.07,0,0,0-2.28,2.3c-.59,1-1.21,2.11-1.86,3.14a6,6,0,0,0-.91,3.16l-.16,33.21a98.15,98.15,0,0,1-27.52,15.53L133,200.88a6,6,0,0,0-2.93-.77h-.14c-1.24,0-2.5,0-3.74,0a6,6,0,0,0-3.07.76L93.45,217.43a98,98,0,0,1-27.56-15.49l-.12-33.17a6,6,0,0,0-.91-3.16c-.64-1-1.27-2.08-1.86-3.14a6,6,0,0,0-2.27-2.3L31.3,143.4a93,93,0,0,1,0-30.79L60.68,95.9A6.07,6.07,0,0,0,63,93.6c.59-1,1.21-2.11,1.86-3.14a6,6,0,0,0,.91-3.16l.16-33.21A98.15,98.15,0,0,1,93.41,38.56L123,55.12a5.81,5.81,0,0,0,3.07.76c1.24,0,2.5,0,3.74,0a6,6,0,0,0,3.07-.76l29.65-16.56a98,98,0,0,1,27.56,15.49l.12,33.17a6,6,0,0,0,.91,3.16c.64,1,1.27,2.08,1.86,3.14a6,6,0,0,0,2.27,2.3L224.7,112.6A93,93,0,0,1,224.73,143.39Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,80a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Zm109.94-52.79a8,8,0,0,0-3.89-5.4l-29.83-17-.12-33.62a8,8,0,0,0-2.83-6.08,111.91,111.91,0,0,0-36.72-20.67,8,8,0,0,0-6.46.59L128,41.85,97.88,25a8,8,0,0,0-6.47-.6A112.1,112.1,0,0,0,54.73,45.15a8,8,0,0,0-2.83,6.07l-.15,33.65-29.83,17a8,8,0,0,0-3.89,5.4,106.47,106.47,0,0,0,0,41.56,8,8,0,0,0,3.89,5.4l29.83,17,.12,33.62a8,8,0,0,0,2.83,6.08,111.91,111.91,0,0,0,36.72,20.67,8,8,0,0,0,6.46-.59L128,214.15,158.12,231a7.91,7.91,0,0,0,3.9,1,8.09,8.09,0,0,0,2.57-.42,112.1,112.1,0,0,0,36.68-20.73,8,8,0,0,0,2.83-6.07l.15-33.65,29.83-17a8,8,0,0,0,3.89-5.4A106.47,106.47,0,0,0,237.94,107.21Zm-15,34.91-28.57,16.25a8,8,0,0,0-3,3c-.58,1-1.19,2.06-1.81,3.06a7.94,7.94,0,0,0-1.22,4.21l-.15,32.25a95.89,95.89,0,0,1-25.37,14.3L134,199.13a8,8,0,0,0-3.91-1h-.19c-1.21,0-2.43,0-3.64,0a8.08,8.08,0,0,0-4.1,1l-28.84,16.1A96,96,0,0,1,67.88,201l-.11-32.2a8,8,0,0,0-1.22-4.22c-.62-1-1.23-2-1.8-3.06a8.09,8.09,0,0,0-3-3.06l-28.6-16.29a90.49,90.49,0,0,1,0-28.26L61.67,97.63a8,8,0,0,0,3-3c.58-1,1.19-2.06,1.81-3.06a7.94,7.94,0,0,0,1.22-4.21l.15-32.25a95.89,95.89,0,0,1,25.37-14.3L122,56.87a8,8,0,0,0,4.1,1c1.21,0,2.43,0,3.64,0a8.08,8.08,0,0,0,4.1-1l28.84-16.1A96,96,0,0,1,188.12,55l.11,32.2a8,8,0,0,0,1.22,4.22c.62,1,1.23,2,1.8,3.06a8.09,8.09,0,0,0,3,3.06l28.6,16.29A90.49,90.49,0,0,1,222.9,142.12Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,80a36,36,0,1,1,36-36A36,36,0,0,1,128,164Zm106-56a4,4,0,0,0-2-2.7l-30.89-17.6q-.47-.82-1-1.62L200.1,51.2a3.94,3.94,0,0,0-1.42-3,107.8,107.8,0,0,0-35.41-19.94,4,4,0,0,0-3.23.29L129,45.87h-2l-31-17.36a4,4,0,0,0-3.23-.3,108.05,108.05,0,0,0-35.39,20,4,4,0,0,0-1.41,3l-.16,34.9-1,1.62L23.9,105.3A4,4,0,0,0,22,108a102.76,102.76,0,0,0,0,40,4,4,0,0,0,1.95,2.7l30.89,17.6q.47.83,1,1.62l.12,34.87a3.94,3.94,0,0,0,1.42,3,107.8,107.8,0,0,0,35.41,19.94,4,4,0,0,0,3.23-.29L127,210.13h2l31,17.36a4,4,0,0,0,3.23.3,108.05,108.05,0,0,0,35.39-20,4,4,0,0,0,1.41-3l.16-34.9,1-1.62L232.1,150.7a4,4,0,0,0,2-2.71A102.76,102.76,0,0,0,234,108Zm-7.48,36.67L196.3,161.84a4,4,0,0,0-1.51,1.53c-.61,1.09-1.25,2.17-1.91,3.24a3.92,3.92,0,0,0-.61,2.1l-.16,34.15a99.8,99.8,0,0,1-29.7,16.77l-30.4-17a4.06,4.06,0,0,0-2-.51H130c-1.28,0-2.57,0-3.84,0a4.1,4.1,0,0,0-2.05.51l-30.45,17A100.23,100.23,0,0,1,63.89,202.9l-.12-34.12a3.93,3.93,0,0,0-.61-2.11c-.66-1-1.3-2.14-1.91-3.23a4,4,0,0,0-1.51-1.53L29.49,144.68a94.78,94.78,0,0,1,0-33.34L59.7,94.16a4,4,0,0,0,1.51-1.53c.61-1.09,1.25-2.17,1.91-3.23a4,4,0,0,0,.61-2.11l.16-34.15a99.8,99.8,0,0,1,29.7-16.77l30.4,17a4.1,4.1,0,0,0,2.05.51c1.28,0,2.57,0,3.84,0a4,4,0,0,0,2.05-.51l30.45-17A100.23,100.23,0,0,1,192.11,53.1l.12,34.12a3.93,3.93,0,0,0,.61,2.11c.66,1,1.3,2.14,1.91,3.23a4,4,0,0,0,1.51,1.53l30.25,17.23A94.78,94.78,0,0,1,226.54,144.66Z"}))]]),AH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,68H190.06A33.82,33.82,0,0,0,196,49.69,36.62,36.62,0,0,0,158.31,12,33.44,33.44,0,0,0,134,23.25a54.65,54.65,0,0,0-6,8.3,54.65,54.65,0,0,0-6-8.3A33.44,33.44,0,0,0,97.69,12,36.62,36.62,0,0,0,60,49.69,33.82,33.82,0,0,0,65.94,68H40A20,20,0,0,0,20,88v32a20,20,0,0,0,16,19.6V200a20,20,0,0,0,20,20H200a20,20,0,0,0,20-20V139.6A20,20,0,0,0,236,120V88A20,20,0,0,0,216,68Zm-4,48H140V92h72ZM152,39.17A9.59,9.59,0,0,1,159,36h.35A12.62,12.62,0,0,1,172,49,9.59,9.59,0,0,1,168.83,56c-6.9,6.12-18.25,9.26-27.63,10.76C142.7,57.42,145.84,46.07,152,39.17ZM87.7,39.7A12.8,12.8,0,0,1,96.61,36H97A9.59,9.59,0,0,1,104,39.17c6.12,6.9,9.26,18.24,10.75,27.61C105.45,65.27,94,62.13,87.17,56A9.59,9.59,0,0,1,84,49,12.72,12.72,0,0,1,87.7,39.7ZM44,92h72v24H44Zm16,48h56v56H60Zm80,56V140h56v56Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,128v72a8,8,0,0,1-8,8H56a8,8,0,0,1-8-8V128Z",opacity:"0.2"}),r.createElement("path",{d:"M216,72H180.92c.39-.33.79-.65,1.17-1A29.53,29.53,0,0,0,192,49.57,32.62,32.62,0,0,0,158.44,16,29.53,29.53,0,0,0,137,25.91a54.94,54.94,0,0,0-9,14.48,54.94,54.94,0,0,0-9-14.48A29.53,29.53,0,0,0,97.56,16,32.62,32.62,0,0,0,64,49.57,29.53,29.53,0,0,0,73.91,71c.38.33.78.65,1.17,1H40A16,16,0,0,0,24,88v32a16,16,0,0,0,16,16v64a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V136a16,16,0,0,0,16-16V88A16,16,0,0,0,216,72ZM149,36.51a13.69,13.69,0,0,1,10-4.5h.49A16.62,16.62,0,0,1,176,49.08a13.69,13.69,0,0,1-4.5,10c-9.49,8.4-25.24,11.36-35,12.4C137.7,60.89,141,45.5,149,36.51Zm-64.09.36A16.63,16.63,0,0,1,96.59,32h.49a13.69,13.69,0,0,1,10,4.5c8.39,9.48,11.35,25.2,12.39,34.92-9.72-1-25.44-4-34.92-12.39a13.69,13.69,0,0,1-4.5-10A16.6,16.6,0,0,1,84.87,36.87ZM40,88h80v32H40Zm16,48h64v64H56Zm144,64H136V136h64Zm16-80H136V88h80v32Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,72H180.92c.39-.33.79-.65,1.17-1A29.53,29.53,0,0,0,192,49.57,32.62,32.62,0,0,0,158.44,16,29.53,29.53,0,0,0,137,25.91a54.94,54.94,0,0,0-9,14.48,54.94,54.94,0,0,0-9-14.48A29.53,29.53,0,0,0,97.56,16,32.62,32.62,0,0,0,64,49.57,29.53,29.53,0,0,0,73.91,71c.38.33.78.65,1.17,1H40A16,16,0,0,0,24,88v32a16,16,0,0,0,16,16v64a16,16,0,0,0,16,16h60a4,4,0,0,0,4-4V120H40V88h80v32h16V88h80v32H136v92a4,4,0,0,0,4,4h60a16,16,0,0,0,16-16V136a16,16,0,0,0,16-16V88A16,16,0,0,0,216,72ZM84.51,59a13.69,13.69,0,0,1-4.5-10A16.62,16.62,0,0,1,96.59,32h.49a13.69,13.69,0,0,1,10,4.5c8.39,9.48,11.35,25.2,12.39,34.92C109.71,70.39,94,67.43,84.51,59Zm87,0c-9.49,8.4-25.24,11.36-35,12.4C137.7,60.89,141,45.5,149,36.51a13.69,13.69,0,0,1,10-4.5h.49A16.62,16.62,0,0,1,176,49.08,13.69,13.69,0,0,1,171.49,59Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,74H174.74a46.41,46.41,0,0,0,6-4.48,27.56,27.56,0,0,0,9.22-20A30.63,30.63,0,0,0,158.5,18a27.56,27.56,0,0,0-20,9.22A57.1,57.1,0,0,0,128,45.76a57.1,57.1,0,0,0-10.48-18.53A27.56,27.56,0,0,0,97.5,18,30.63,30.63,0,0,0,66,49.51a27.56,27.56,0,0,0,9.22,20,45.74,45.74,0,0,0,6,4.48H40A14,14,0,0,0,26,88v32a14,14,0,0,0,14,14h2v66a14,14,0,0,0,14,14H200a14,14,0,0,0,14-14V134h2a14,14,0,0,0,14-14V88A14,14,0,0,0,216,74ZM135.77,63c2.25-12.12,6.29-21.75,11.69-27.85A15.68,15.68,0,0,1,158.86,30h.55A18.6,18.6,0,0,1,178,49.14a15.68,15.68,0,0,1-5.18,11.4C162.1,70,143.92,72.83,134.34,73.65,134.59,70.76,135,67.08,135.77,63ZM83.45,35.45A18.69,18.69,0,0,1,96.59,30h.55a15.68,15.68,0,0,1,11.4,5.18C118,45.9,120.83,64.08,121.65,73.66c-2.89-.25-6.57-.68-10.61-1.43C98.92,70,89.29,65.94,83.19,60.53A15.64,15.64,0,0,1,78,49.14,18.65,18.65,0,0,1,83.45,35.45ZM38,120V88a2,2,0,0,1,2-2h82v36H40A2,2,0,0,1,38,120Zm16,80V134h68v68H56A2,2,0,0,1,54,200Zm148,0a2,2,0,0,1-2,2H134V134h68Zm16-80a2,2,0,0,1-2,2H134V86h82a2,2,0,0,1,2,2Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,72H180.92c.39-.33.79-.65,1.17-1A29.53,29.53,0,0,0,192,49.57,32.62,32.62,0,0,0,158.44,16,29.53,29.53,0,0,0,137,25.91a54.94,54.94,0,0,0-9,14.48,54.94,54.94,0,0,0-9-14.48A29.53,29.53,0,0,0,97.56,16,32.62,32.62,0,0,0,64,49.57,29.53,29.53,0,0,0,73.91,71c.38.33.78.65,1.17,1H40A16,16,0,0,0,24,88v32a16,16,0,0,0,16,16v64a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V136a16,16,0,0,0,16-16V88A16,16,0,0,0,216,72ZM149,36.51a13.69,13.69,0,0,1,10-4.5h.49A16.62,16.62,0,0,1,176,49.08a13.69,13.69,0,0,1-4.5,10c-9.49,8.4-25.24,11.36-35,12.4C137.7,60.89,141,45.5,149,36.51Zm-64.09.36A16.63,16.63,0,0,1,96.59,32h.49a13.69,13.69,0,0,1,10,4.5c8.39,9.48,11.35,25.2,12.39,34.92-9.72-1-25.44-4-34.92-12.39a13.69,13.69,0,0,1-4.5-10A16.6,16.6,0,0,1,84.87,36.87ZM40,88h80v32H40Zm16,48h64v64H56Zm144,64H136V136h64Zm16-80H136V88h80v32Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,76H166.81a50.54,50.54,0,0,0,12.63-8A25.53,25.53,0,0,0,188,49.44,28.62,28.62,0,0,0,158.56,20,25.53,25.53,0,0,0,140,28.56c-5.91,6.67-9.63,15.36-12,23.69-2.35-8.33-6.07-17-12-23.69A25.53,25.53,0,0,0,97.44,20,28.62,28.62,0,0,0,68,49.44,25.53,25.53,0,0,0,76.56,68a50.54,50.54,0,0,0,12.63,8H40A12,12,0,0,0,28,88v32a12,12,0,0,0,12,12h4v68a12,12,0,0,0,12,12H200a12,12,0,0,0,12-12V132h4a12,12,0,0,0,12-12V88A12,12,0,0,0,216,76ZM146,33.86A17.59,17.59,0,0,1,158.8,28h.61A20.62,20.62,0,0,1,180,49.2,17.6,17.6,0,0,1,174.14,62c-12.09,10.7-33.07,13.21-42,13.79C132.76,66.93,135.26,46,146,33.86ZM76,49.2A20.62,20.62,0,0,1,96.59,28h.61A17.59,17.59,0,0,1,110,33.86c10.71,12.09,13.21,33.07,13.79,42-8.89-.58-29.87-3.09-42-13.79A17.6,17.6,0,0,1,76,49.2ZM36,120V88a4,4,0,0,1,4-4h84v40H40A4,4,0,0,1,36,120Zm16,80V132h72v72H56A4,4,0,0,1,52,200Zm152,0a4,4,0,0,1-4,4H132V132h72Zm16-80a4,4,0,0,1-4,4H132V84h84a4,4,0,0,1,4,4Z"}))]]),NH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M222.14,105.85l-80-80a20,20,0,0,0-28.28,0l-80,80A19.86,19.86,0,0,0,28,120v96a12,12,0,0,0,12,12h64a12,12,0,0,0,12-12V164h24v52a12,12,0,0,0,12,12h64a12,12,0,0,0,12-12V120A19.86,19.86,0,0,0,222.14,105.85ZM204,204H164V152a12,12,0,0,0-12-12H104a12,12,0,0,0-12,12v52H52V121.65l76-76,76,76Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,120v96H152V152H104v64H40V120a8,8,0,0,1,2.34-5.66l80-80a8,8,0,0,1,11.32,0l80,80A8,8,0,0,1,216,120Z",opacity:"0.2"}),r.createElement("path",{d:"M219.31,108.68l-80-80a16,16,0,0,0-22.62,0l-80,80A15.87,15.87,0,0,0,32,120v96a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V160h32v56a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V120A15.87,15.87,0,0,0,219.31,108.68ZM208,208H160V152a8,8,0,0,0-8-8H104a8,8,0,0,0-8,8v56H48V120l80-80,80,80Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,120v96a8,8,0,0,1-8,8H160a8,8,0,0,1-8-8V164a4,4,0,0,0-4-4H108a4,4,0,0,0-4,4v52a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V120a16,16,0,0,1,4.69-11.31l80-80a16,16,0,0,1,22.62,0l80,80A16,16,0,0,1,224,120Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M217.9,110.1l-80-80a14,14,0,0,0-19.8,0l-80,80A13.92,13.92,0,0,0,34,120v96a6,6,0,0,0,6,6h64a6,6,0,0,0,6-6V158h36v58a6,6,0,0,0,6,6h64a6,6,0,0,0,6-6V120A13.92,13.92,0,0,0,217.9,110.1ZM210,210H158V152a6,6,0,0,0-6-6H104a6,6,0,0,0-6,6v58H46V120a2,2,0,0,1,.58-1.42l80-80a2,2,0,0,1,2.84,0l80,80A2,2,0,0,1,210,120Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M219.31,108.68l-80-80a16,16,0,0,0-22.62,0l-80,80A15.87,15.87,0,0,0,32,120v96a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V160h32v56a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V120A15.87,15.87,0,0,0,219.31,108.68ZM208,208H160V152a8,8,0,0,0-8-8H104a8,8,0,0,0-8,8v56H48V120l80-80,80,80Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216.49,111.51l-80-80a12,12,0,0,0-17,0l-80,80A12,12,0,0,0,36,120v96a4,4,0,0,0,4,4h64a4,4,0,0,0,4-4V156h40v60a4,4,0,0,0,4,4h64a4,4,0,0,0,4-4V120A12,12,0,0,0,216.49,111.51ZM212,212H156V152a4,4,0,0,0-4-4H104a4,4,0,0,0-4,4v60H44V120a4,4,0,0,1,1.17-2.83l80-80a4,4,0,0,1,5.66,0l80,80A4,4,0,0,1,212,120Z"}))]]),MH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M200,20H56A20,20,0,0,0,36,40V216a20,20,0,0,0,20,20H200a20,20,0,0,0,20-20V40A20,20,0,0,0,200,20Zm-4,192H60V44H196ZM84,68A12,12,0,0,1,96,56h64a12,12,0,0,1,0,24H96A12,12,0,0,1,84,68Zm8.8,127.37a48,48,0,0,1,70.4,0,12,12,0,0,0,17.6-16.32,72,72,0,0,0-19.21-14.68,44,44,0,1,0-67.19,0,72.12,72.12,0,0,0-19.2,14.68,12,12,0,0,0,17.6,16.32ZM128,116a20,20,0,1,1-20,20A20,20,0,0,1,128,116Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M200,32H56a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H200a8,8,0,0,0,8-8V40A8,8,0,0,0,200,32ZM128,168a32,32,0,1,1,32-32A32,32,0,0,1,128,168Z",opacity:"0.2"}),r.createElement("path",{d:"M75.19,198.4a8,8,0,0,0,11.21-1.6,52,52,0,0,1,83.2,0,8,8,0,1,0,12.8-9.6A67.88,67.88,0,0,0,155,165.51a40,40,0,1,0-53.94,0A67.88,67.88,0,0,0,73.6,187.2,8,8,0,0,0,75.19,198.4ZM128,112a24,24,0,1,1-24,24A24,24,0,0,1,128,112Zm72-88H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V40A16,16,0,0,0,200,24Zm0,192H56V40H200ZM88,64a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H96A8,8,0,0,1,88,64Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M200,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V40A16,16,0,0,0,200,24ZM96,48h64a8,8,0,0,1,0,16H96a8,8,0,0,1,0-16Zm84.81,150.4a8,8,0,0,1-11.21-1.6,52,52,0,0,0-83.2,0,8,8,0,1,1-12.8-9.6A67.88,67.88,0,0,1,101,165.51a40,40,0,1,1,53.94,0A67.88,67.88,0,0,1,182.4,187.2,8,8,0,0,1,180.81,198.4ZM152,136a24,24,0,1,1-24-24A24,24,0,0,1,152,136Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M151.11,166.13a38,38,0,1,0-46.22,0A65.75,65.75,0,0,0,75.2,188.4a6,6,0,0,0,9.6,7.2,54,54,0,0,1,86.4,0,6,6,0,0,0,9.6-7.2A65.75,65.75,0,0,0,151.11,166.13ZM128,110a26,26,0,1,1-26,26A26,26,0,0,1,128,110Zm72-84H56A14,14,0,0,0,42,40V216a14,14,0,0,0,14,14H200a14,14,0,0,0,14-14V40A14,14,0,0,0,200,26Zm2,190a2,2,0,0,1-2,2H56a2,2,0,0,1-2-2V40a2,2,0,0,1,2-2H200a2,2,0,0,1,2,2ZM90,64a6,6,0,0,1,6-6h64a6,6,0,0,1,0,12H96A6,6,0,0,1,90,64Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M75.19,198.4a8,8,0,0,0,11.21-1.6,52,52,0,0,1,83.2,0,8,8,0,1,0,12.8-9.6A67.88,67.88,0,0,0,155,165.51a40,40,0,1,0-53.94,0A67.88,67.88,0,0,0,73.6,187.2,8,8,0,0,0,75.19,198.4ZM128,112a24,24,0,1,1-24,24A24,24,0,0,1,128,112Zm72-88H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V40A16,16,0,0,0,200,24Zm0,192H56V40H200ZM88,64a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H96A8,8,0,0,1,88,64Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M146.7,166.75a36,36,0,1,0-37.4,0A63.61,63.61,0,0,0,76.8,189.6a4,4,0,0,0,6.4,4.8,56,56,0,0,1,89.6,0,4,4,0,0,0,6.4-4.8A63.65,63.65,0,0,0,146.7,166.75ZM100,136a28,28,0,1,1,28,28A28,28,0,0,1,100,136ZM200,28H56A12,12,0,0,0,44,40V216a12,12,0,0,0,12,12H200a12,12,0,0,0,12-12V40A12,12,0,0,0,200,28Zm4,188a4,4,0,0,1-4,4H56a4,4,0,0,1-4-4V40a4,4,0,0,1,4-4H200a4,4,0,0,1,4,4ZM92,64a4,4,0,0,1,4-4h64a4,4,0,0,1,0,8H96A4,4,0,0,1,92,64Z"}))]]),RH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,28H48A20,20,0,0,0,28,48V208a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V48A20,20,0,0,0,208,28Zm-4,24v63.72L186.14,97.86a20,20,0,0,0-28.28,0L52,203.72V52ZM85.66,204,172,117.66l32,32V204ZM76,96a20,20,0,1,1,20,20A20,20,0,0,1,76,96Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,40H48a8,8,0,0,0-8,8V208a8,8,0,0,0,8,8h8.69L166.34,106.34a8,8,0,0,1,11.32,0L216,144.69V48A8,8,0,0,0,208,40ZM96,112a16,16,0,1,1,16-16A16,16,0,0,1,96,112Z",opacity:"0.2"}),r.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM48,48H208v77.38l-24.69-24.7a16,16,0,0,0-22.62,0L53.37,208H48ZM208,208H76l96-96,36,36v60ZM96,120A24,24,0,1,0,72,96,24,24,0,0,0,96,120Zm0-32a8,8,0,1,1-8,8A8,8,0,0,1,96,88Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM48,48H208v77.38l-24.69-24.7a16,16,0,0,0-22.62,0L53.37,208H48ZM80,96a16,16,0,1,1,16,16A16,16,0,0,1,80,96Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,34H48A14,14,0,0,0,34,48V208a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V48A14,14,0,0,0,208,34ZM46,208V48a2,2,0,0,1,2-2H208a2,2,0,0,1,2,2v82.2l-28.1-28.1a14,14,0,0,0-19.8,0L54.2,210H48A2,2,0,0,1,46,208Zm162,2H71.17l99.41-99.41a2,2,0,0,1,2.83,0L210,147.17V208A2,2,0,0,1,208,210ZM96,118A22,22,0,1,0,74,96,22,22,0,0,0,96,118Zm0-32A10,10,0,1,1,86,96,10,10,0,0,1,96,86Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM48,48H208v77.38l-24.69-24.7a16,16,0,0,0-22.62,0L53.37,208H48ZM208,208H76l96-96,36,36v60ZM96,120A24,24,0,1,0,72,96,24,24,0,0,0,96,120Zm0-32a8,8,0,1,1-8,8A8,8,0,0,1,96,88Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,36H48A12,12,0,0,0,36,48V208a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V48A12,12,0,0,0,208,36ZM44,208V48a4,4,0,0,1,4-4H208a4,4,0,0,1,4,4v87l-31.51-31.52a12,12,0,0,0-17,0L55,212H48A4,4,0,0,1,44,208Zm164,4H66.34L169.17,109.17a4,4,0,0,1,5.66,0L212,146.34V208A4,4,0,0,1,208,212ZM96,116A20,20,0,1,0,76,96,20,20,0,0,0,96,116Zm0-32A12,12,0,1,1,84,96,12,12,0,0,1,96,84Z"}))]]),PH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M108,84a16,16,0,1,1,16,16A16,16,0,0,1,108,84Zm128,44A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Zm-72,36.68V132a20,20,0,0,0-20-20,12,12,0,0,0-4,23.32V168a20,20,0,0,0,20,20,12,12,0,0,0,4-23.32Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),r.createElement("path",{d:"M144,176a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176Zm88-48A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128ZM124,96a12,12,0,1,0-12-12A12,12,0,0,0,124,96Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm-4,48a12,12,0,1,1-12,12A12,12,0,0,1,124,72Zm12,112a16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40a8,8,0,0,1,0,16Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M142,176a6,6,0,0,1-6,6,14,14,0,0,1-14-14V128a2,2,0,0,0-2-2,6,6,0,0,1,0-12,14,14,0,0,1,14,14v40a2,2,0,0,0,2,2A6,6,0,0,1,142,176ZM124,94a10,10,0,1,0-10-10A10,10,0,0,0,124,94Zm106,34A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm16-40a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176ZM112,84a12,12,0,1,1,12,12A12,12,0,0,1,112,84Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M140,176a4,4,0,0,1-4,4,12,12,0,0,1-12-12V128a4,4,0,0,0-4-4,4,4,0,0,1,0-8,12,12,0,0,1,12,12v40a4,4,0,0,0,4,4A4,4,0,0,1,140,176ZM124,92a8,8,0,1,0-8-8A8,8,0,0,0,124,92Zm104,36A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"}))]]),LH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M196,76a16,16,0,1,1-16-16A16,16,0,0,1,196,76Zm48,22.74A84.3,84.3,0,0,1,160.11,180H160a83.52,83.52,0,0,1-23.65-3.38l-7.86,7.87A12,12,0,0,1,120,188H108v12a12,12,0,0,1-12,12H84v12a12,12,0,0,1-12,12H40a20,20,0,0,1-20-20V187.31a19.86,19.86,0,0,1,5.86-14.14l53.52-53.52A84,84,0,1,1,244,98.74ZM202.43,53.57A59.48,59.48,0,0,0,158,36c-32,1-58,27.89-58,59.89a59.69,59.69,0,0,0,4.2,22.19,12,12,0,0,1-2.55,13.21L44,189v23H60V200a12,12,0,0,1,12-12H84V176a12,12,0,0,1,12-12h19l9.65-9.65a12,12,0,0,1,13.22-2.55A59.58,59.58,0,0,0,160,156h.08c32,0,58.87-26.07,59.89-58A59.55,59.55,0,0,0,202.43,53.57Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M232,98.36C230.73,136.92,198.67,168,160.09,168a71.68,71.68,0,0,1-26.92-5.17h0L120,176H96v24H72v24H40a8,8,0,0,1-8-8V187.31a8,8,0,0,1,2.34-5.65l58.83-58.83h0A71.68,71.68,0,0,1,88,95.91c0-38.58,31.08-70.64,69.64-71.87A72,72,0,0,1,232,98.36Z",opacity:"0.2"}),r.createElement("path",{d:"M216.57,39.43A80,80,0,0,0,83.91,120.78L28.69,176A15.86,15.86,0,0,0,24,187.31V216a16,16,0,0,0,16,16H72a8,8,0,0,0,8-8V208H96a8,8,0,0,0,8-8V184h16a8,8,0,0,0,5.66-2.34l9.56-9.57A79.73,79.73,0,0,0,160,176h.1A80,80,0,0,0,216.57,39.43ZM224,98.1c-1.09,34.09-29.75,61.86-63.89,61.9H160a63.7,63.7,0,0,1-23.65-4.51,8,8,0,0,0-8.84,1.68L116.69,168H96a8,8,0,0,0-8,8v16H72a8,8,0,0,0-8,8v16H40V187.31l58.83-58.82a8,8,0,0,0,1.68-8.84A63.72,63.72,0,0,1,96,95.92c0-34.14,27.81-62.8,61.9-63.89A64,64,0,0,1,224,98.1ZM192,76a12,12,0,1,1-12-12A12,12,0,0,1,192,76Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216.57,39.43A80,80,0,0,0,83.91,120.78L28.69,176A15.86,15.86,0,0,0,24,187.31V216a16,16,0,0,0,16,16H72a8,8,0,0,0,8-8V208H96a8,8,0,0,0,8-8V184h16a8,8,0,0,0,5.66-2.34l9.56-9.57A79.73,79.73,0,0,0,160,176h.1A80,80,0,0,0,216.57,39.43ZM180,92a16,16,0,1,1,16-16A16,16,0,0,1,180,92Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M215.15,40.85A78,78,0,0,0,86.2,121.31l-56.1,56.1a13.94,13.94,0,0,0-4.1,9.9V216a14,14,0,0,0,14,14H72a6,6,0,0,0,6-6V206H96a6,6,0,0,0,6-6V182h18a6,6,0,0,0,4.24-1.76l10.45-10.44A77.59,77.59,0,0,0,160,174h.1A78,78,0,0,0,215.15,40.85ZM226,98.16c-1.12,35.16-30.67,63.8-65.88,63.84a65.93,65.93,0,0,1-24.51-4.67,6,6,0,0,0-6.64,1.26L117.51,170H96a6,6,0,0,0-6,6v18H72a6,6,0,0,0-6,6v18H40a2,2,0,0,1-2-2V187.31a2,2,0,0,1,.58-1.41l58.83-58.83a6,6,0,0,0,1.26-6.64A65.61,65.61,0,0,1,94,95.92C94,60.71,122.68,31.16,157.83,30A66,66,0,0,1,226,98.16ZM190,76a10,10,0,1,1-10-10A10,10,0,0,1,190,76Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216.57,39.43A80,80,0,0,0,83.91,120.78L28.69,176A15.86,15.86,0,0,0,24,187.31V216a16,16,0,0,0,16,16H72a8,8,0,0,0,8-8V208H96a8,8,0,0,0,8-8V184h16a8,8,0,0,0,5.66-2.34l9.56-9.57A79.73,79.73,0,0,0,160,176h.1A80,80,0,0,0,216.57,39.43ZM224,98.1c-1.09,34.09-29.75,61.86-63.89,61.9H160a63.7,63.7,0,0,1-23.65-4.51,8,8,0,0,0-8.84,1.68L116.69,168H96a8,8,0,0,0-8,8v16H72a8,8,0,0,0-8,8v16H40V187.31l58.83-58.82a8,8,0,0,0,1.68-8.84A63.72,63.72,0,0,1,96,95.92c0-34.14,27.81-62.8,61.9-63.89A64,64,0,0,1,224,98.1ZM192,76a12,12,0,1,1-12-12A12,12,0,0,1,192,76Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M213.74,42.26A76,76,0,0,0,88.51,121.84l-57,57A11.93,11.93,0,0,0,28,187.31V216a12,12,0,0,0,12,12H72a4,4,0,0,0,4-4V204H96a4,4,0,0,0,4-4V180h20a4,4,0,0,0,2.83-1.17l11.33-11.34A75.72,75.72,0,0,0,160,172h.1A76,76,0,0,0,213.74,42.26Zm14.22,56c-1.15,36.22-31.6,65.72-67.87,65.77H160a67.52,67.52,0,0,1-25.21-4.83,4,4,0,0,0-4.45.83l-12,12H96a4,4,0,0,0-4,4v20H72a4,4,0,0,0-4,4v20H40a4,4,0,0,1-4-4V187.31a4.06,4.06,0,0,1,1.17-2.83L96,125.66a4,4,0,0,0,.83-4.45A67.51,67.51,0,0,1,92,95.91C92,59.64,121.55,29.19,157.77,28A68,68,0,0,1,228,98.23ZM188,76a8,8,0,1,1-8-8A8,8,0,0,1,188,76Z"}))]]),TH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M219.71,117.38a12,12,0,0,0-7.25-8.52L161.28,88.39l10.59-70.61a12,12,0,0,0-20.64-10l-112,120a12,12,0,0,0,4.31,19.33l51.18,20.47L84.13,238.22a12,12,0,0,0,20.64,10l112-120A12,12,0,0,0,219.71,117.38ZM113.6,203.55l6.27-41.77a12,12,0,0,0-7.41-12.92L68.74,131.37,142.4,52.45l-6.27,41.77a12,12,0,0,0,7.41,12.92l43.72,17.49Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M96,240l16-80L48,136,160,16,144,96l64,24Z",opacity:"0.2"}),r.createElement("path",{d:"M215.79,118.17a8,8,0,0,0-5-5.66L153.18,90.9l14.66-73.33a8,8,0,0,0-13.69-7l-112,120a8,8,0,0,0,3,13l57.63,21.61L88.16,238.43a8,8,0,0,0,13.69,7l112-120A8,8,0,0,0,215.79,118.17ZM109.37,214l10.47-52.38a8,8,0,0,0-5-9.06L62,132.71l84.62-90.66L136.16,94.43a8,8,0,0,0,5,9.06l52.8,19.8Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M213.85,125.46l-112,120a8,8,0,0,1-13.69-7l14.66-73.33L45.19,143.49a8,8,0,0,1-3-13l112-120a8,8,0,0,1,13.69,7L153.18,90.9l57.63,21.61a8,8,0,0,1,3,12.95Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M213.84,118.63a6,6,0,0,0-3.73-4.25L150.88,92.17l15-75a6,6,0,0,0-10.27-5.27l-112,120a6,6,0,0,0,2.28,9.71l59.23,22.21-15,75a6,6,0,0,0,3.14,6.52A6.07,6.07,0,0,0,96,246a6,6,0,0,0,4.39-1.91l112-120A6,6,0,0,0,213.84,118.63ZM106,220.46l11.85-59.28a6,6,0,0,0-3.77-6.8l-55.6-20.85,91.46-98L138.12,94.82a6,6,0,0,0,3.77,6.8l55.6,20.85Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M215.79,118.17a8,8,0,0,0-5-5.66L153.18,90.9l14.66-73.33a8,8,0,0,0-13.69-7l-112,120a8,8,0,0,0,3,13l57.63,21.61L88.16,238.43a8,8,0,0,0,13.69,7l112-120A8,8,0,0,0,215.79,118.17ZM109.37,214l10.47-52.38a8,8,0,0,0-5-9.06L62,132.71l84.62-90.66L136.16,94.43a8,8,0,0,0,5,9.06l52.8,19.8Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M211.89,119.09a4,4,0,0,0-2.49-2.84l-60.81-22.8,15.33-76.67a4,4,0,0,0-6.84-3.51l-112,120a4,4,0,0,0-1,3.64,4,4,0,0,0,2.49,2.84l60.81,22.8L92.08,239.22a4,4,0,0,0,6.84,3.51l112-120A4,4,0,0,0,211.89,119.09ZM102.68,227l13.24-66.2a4,4,0,0,0-2.52-4.53L55,134.36,153.32,29l-13.24,66.2a4,4,0,0,0,2.52,4.53L201,121.64Z"}))]]),HH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M232.49,215.51,185,168a92.12,92.12,0,1,0-17,17l47.53,47.54a12,12,0,0,0,17-17ZM44,112a68,68,0,1,1,68,68A68.07,68.07,0,0,1,44,112Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M192,112a80,80,0,1,1-80-80A80,80,0,0,1,192,112Z",opacity:"0.2"}),r.createElement("path",{d:"M229.66,218.34,179.6,168.28a88.21,88.21,0,1,0-11.32,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M168,112a56,56,0,1,1-56-56A56,56,0,0,1,168,112Zm61.66,117.66a8,8,0,0,1-11.32,0l-50.06-50.07a88,88,0,1,1,11.32-11.31l50.06,50.06A8,8,0,0,1,229.66,229.66ZM112,184a72,72,0,1,0-72-72A72.08,72.08,0,0,0,112,184Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M228.24,219.76l-51.38-51.38a86.15,86.15,0,1,0-8.48,8.48l51.38,51.38a6,6,0,0,0,8.48-8.48ZM38,112a74,74,0,1,1,74,74A74.09,74.09,0,0,1,38,112Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M229.66,218.34l-50.07-50.06a88.11,88.11,0,1,0-11.31,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M226.83,221.17l-52.7-52.7a84.1,84.1,0,1,0-5.66,5.66l52.7,52.7a4,4,0,0,0,5.66-5.66ZM36,112a76,76,0,1,1,76,76A76.08,76.08,0,0,1,36,112Z"}))]]),$H=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M160,80a32,32,0,1,0-32-32A32,32,0,0,0,160,80Zm0-40a8,8,0,1,1-8,8A8,8,0,0,1,160,40Zm94.32,153.88L199.76,101.8A19.85,19.85,0,0,0,182.55,92h0a19.83,19.83,0,0,0-17.2,9.8l-18.7,31.55-37.42-63.5a20,20,0,0,0-34.46,0L1.66,193.91A12,12,0,0,0,12,212H244a12,12,0,0,0,10.32-18.12ZM92,87.87,108.57,116H75.43ZM33,188l28.28-48h61.44L151,188Zm145.86,0L160.56,157l22-37.1L222.94,188Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M144,52a20,20,0,1,1,20,20A20,20,0,0,1,144,52Zm49.44,55.92a8,8,0,0,0-13.77,0l-33,55.75-21-35.67H50.35L8,200H248Z",opacity:"0.2"}),r.createElement("path",{d:"M164,80a28,28,0,1,0-28-28A28,28,0,0,0,164,80Zm0-40a12,12,0,1,1-12,12A12,12,0,0,1,164,40Zm90.88,155.92-54.56-92.08A15.87,15.87,0,0,0,186.55,96h0a15.85,15.85,0,0,0-13.76,7.84L146.63,148l-44.84-76.1a16,16,0,0,0-27.58,0L1.11,195.94A8,8,0,0,0,8,208H248a8,8,0,0,0,6.88-12.08ZM88,80l23.57,40H64.43ZM22,192l33-56h66l33,56Zm150.57,0-16.66-28.28L186.55,112,234,192Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M254.88,195.92l-54.56-92.08A15.87,15.87,0,0,0,186.55,96h0a15.85,15.85,0,0,0-13.76,7.84l-15.64,26.39a4,4,0,0,0,0,4.07l26.8,45.47a8.13,8.13,0,0,1-1.89,10.55,8,8,0,0,1-11.8-2.26L101.79,71.88a16,16,0,0,0-27.58,0L1.11,195.94a8,8,0,0,0,1,9.52A8.23,8.23,0,0,0,8.23,208H247.77a8.29,8.29,0,0,0,6.09-2.55A8,8,0,0,0,254.88,195.92ZM64.43,120,88,80l23.57,40ZM140,52a24,24,0,1,1,24,24A24,24,0,0,1,140,52Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M164,78a26,26,0,1,0-26-26A26,26,0,0,0,164,78Zm0-40a14,14,0,1,1-14,14A14,14,0,0,1,164,38Zm89.16,158.94L198.6,104.86a13.9,13.9,0,0,0-12-6.86h0a13.88,13.88,0,0,0-12,6.86l-27.88,47.05-46.56-79a14,14,0,0,0-24.13,0L2.83,197A6,6,0,0,0,8,206H248a6,6,0,0,0,5.16-9.06ZM86.27,79a2,2,0,0,1,3.46,0l25.34,43H60.93ZM18.5,194l35.36-60h68.29l19.3,32.77,0,0,16,27.2Zm152.93,0-17.85-30.29L184.83,111a2,2,0,0,1,1.72-1,1.93,1.93,0,0,1,1.72,1l49.2,83Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M164,80a28,28,0,1,0-28-28A28,28,0,0,0,164,80Zm0-40a12,12,0,1,1-12,12A12,12,0,0,1,164,40Zm90.88,155.92-54.56-92.08A15.87,15.87,0,0,0,186.55,96h0a15.85,15.85,0,0,0-13.76,7.84L146.63,148l-44.84-76.1a16,16,0,0,0-27.58,0L1.11,195.94A8,8,0,0,0,8,208H248a8,8,0,0,0,6.88-12.08ZM88,80l23.57,40H64.43ZM22,192l33-56h66l18.74,31.8,0,0L154,192Zm150.57,0-16.66-28.28L186.55,112,234,192Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M164,76a24,24,0,1,0-24-24A24,24,0,0,0,164,76Zm0-40a16,16,0,1,1-16,16A16,16,0,0,1,164,36Zm87.44,162-54.56-92.08A11.91,11.91,0,0,0,186.55,100h0a11.89,11.89,0,0,0-10.32,5.88l-29.61,50L98.34,73.91a12,12,0,0,0-20.68,0L4.55,198A4,4,0,0,0,8,204H248a4,4,0,0,0,3.44-6ZM84.55,78a4,4,0,0,1,6.9,0l27.12,46H57.43ZM15,196l37.71-64h70.58L161,196Zm155.29,0-19-32.29L183.11,110a4,4,0,0,1,6.88,0l51,86Z"}))]]),DH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M225.6,62.64l-88-48.17a19.91,19.91,0,0,0-19.2,0l-88,48.17A20,20,0,0,0,20,80.19v95.62a20,20,0,0,0,10.4,17.55l88,48.17a19.89,19.89,0,0,0,19.2,0l88-48.17A20,20,0,0,0,236,175.81V80.19A20,20,0,0,0,225.6,62.64ZM128,36.57,200,76,178.57,87.73l-72-39.42Zm0,78.83L56,76,81.56,62l72,39.41ZM44,96.79l72,39.4v76.67L44,173.44Zm96,116.07V136.19l24-13.13V152a12,12,0,0,0,24,0V109.92l24-13.13v76.65Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,129.09V232a8,8,0,0,1-3.84-1l-88-48.18a8,8,0,0,1-4.16-7V80.18a8,8,0,0,1,.7-3.25Z",opacity:"0.2"}),r.createElement("path",{d:"M223.68,66.15,135.68,18a15.88,15.88,0,0,0-15.36,0l-88,48.17a16,16,0,0,0-8.32,14v95.64a16,16,0,0,0,8.32,14l88,48.17a15.88,15.88,0,0,0,15.36,0l88-48.17a16,16,0,0,0,8.32-14V80.18A16,16,0,0,0,223.68,66.15ZM128,32l80.34,44-29.77,16.3-80.35-44ZM128,120,47.66,76l33.9-18.56,80.34,44ZM40,90l80,43.78v85.79L40,175.82Zm176,85.78h0l-80,43.79V133.82l32-17.51V152a8,8,0,0,0,16,0V107.55L216,90v85.77Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M223.68,66.15,135.68,18a15.88,15.88,0,0,0-15.36,0l-88,48.17a16,16,0,0,0-8.32,14v95.64a16,16,0,0,0,8.32,14l88,48.17a15.88,15.88,0,0,0,15.36,0l88-48.17a16,16,0,0,0,8.32-14V80.18A16,16,0,0,0,223.68,66.15ZM128,32l80.35,44L178.57,92.29l-80.35-44Zm0,88L47.65,76,81.56,57.43l80.35,44Zm88,55.85h0l-80,43.79V133.83l32-17.51V152a8,8,0,0,0,16,0V107.56l32-17.51v85.76Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M222.72,67.91l-88-48.18a13.9,13.9,0,0,0-13.44,0l-88,48.18A14,14,0,0,0,26,80.18v95.64a14,14,0,0,0,7.28,12.27l88,48.18a13.92,13.92,0,0,0,13.44,0l88-48.18A14,14,0,0,0,230,175.82V80.18A14,14,0,0,0,222.72,67.91ZM127,30.25a2,2,0,0,1,1.92,0L212.51,76,178.57,94.57,94.05,48.31ZM122,223,39,177.57a2,2,0,0,1-1-1.75V86.66l84,46ZM43.49,76,81.56,55.15l84.51,46.26L128,122.24ZM218,175.82a2,2,0,0,1-1,1.75h0L134,223V132.64l36-19.71V152a6,6,0,0,0,12,0V106.37l36-19.71Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M223.68,66.15,135.68,18a15.88,15.88,0,0,0-15.36,0l-88,48.17a16,16,0,0,0-8.32,14v95.64a16,16,0,0,0,8.32,14l88,48.17a15.88,15.88,0,0,0,15.36,0l88-48.17a16,16,0,0,0,8.32-14V80.18A16,16,0,0,0,223.68,66.15ZM128,32l80.34,44-29.77,16.3-80.35-44ZM128,120,47.66,76l33.9-18.56,80.34,44ZM40,90l80,43.78v85.79L40,175.82Zm176,85.78h0l-80,43.79V133.82l32-17.51V152a8,8,0,0,0,16,0V107.55L216,90v85.77Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M221.76,69.66l-88-48.18a12,12,0,0,0-11.52,0l-88,48.18A12,12,0,0,0,28,80.18v95.64a12,12,0,0,0,6.24,10.52l88,48.18a11.95,11.95,0,0,0,11.52,0l88-48.18A12,12,0,0,0,228,175.82V80.18A12,12,0,0,0,221.76,69.66ZM126.08,28.5a3.94,3.94,0,0,1,3.84,0L216.67,76,178.5,96.89a4,4,0,0,0-.58-.4l-88-48.18Zm1.92,96L39.33,76,81.56,52.87l88.67,48.54Zm-89.92,54.8a4,4,0,0,1-2.08-3.5V83.29l88,48.16v94.91Zm179.84,0h0l-85.92,47V131.45l40-21.89V152a4,4,0,0,0,8,0V105.18l40-21.89v92.53A4,4,0,0,1,217.92,179.32Z"}))]]),FH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,20H72A44.05,44.05,0,0,0,28,64v72a28,28,0,0,0,28,28H95.64L92,207c0,.33,0,.67,0,1a36,36,0,0,0,72,0c0-.33,0-.67,0-1l-3.6-43H200a28,28,0,0,0,28-28V32A12,12,0,0,0,216,20ZM72,44h88V68a12,12,0,0,0,24,0V44h20V96H52V64A20,20,0,0,1,72,44Zm128,96H156a20,20,0,0,0-19.85,22.4l3.84,46a12,12,0,0,1-24,0l3.84-46A20,20,0,0,0,100,140H56a4,4,0,0,1-4-4V120H204v16A4,4,0,0,1,200,140Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,112v24a16,16,0,0,1-16,16H152a8,8,0,0,0-7.92,9.13L152,208a24,24,0,0,1-48,0l7.92-46.87A8,8,0,0,0,104,152H56a16,16,0,0,1-16-16V112Z",opacity:"0.2"}),r.createElement("path",{d:"M216,24H72A40,40,0,0,0,32,64v72a24,24,0,0,0,24,24h48l-7.89,46.67A8.42,8.42,0,0,0,96,208a32,32,0,0,0,64,0,8.42,8.42,0,0,0-.11-1.33L152,160h48a24,24,0,0,0,24-24V32A8,8,0,0,0,216,24ZM72,40H176V80a8,8,0,0,0,16,0V40h16v64H48V64A24,24,0,0,1,72,40ZM200,144H152a16,16,0,0,0-15.84,18.26l0,.2L144,208.6a16,16,0,0,1-32,0l7.8-46.14,0-.2A16,16,0,0,0,104,144H56a8,8,0,0,1-8-8V120H208v16A8,8,0,0,1,200,144Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,24H72A40,40,0,0,0,32,64v72a24,24,0,0,0,24,24h48l-7.89,46.67A8.42,8.42,0,0,0,96,208a32,32,0,0,0,64,0,8.42,8.42,0,0,0-.11-1.33L152,160h48a24,24,0,0,0,24-24V32A8,8,0,0,0,216,24ZM72,40H176V80a8,8,0,0,0,16,0V40h16v72H48V64A24,24,0,0,1,72,40Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,26H72A38,38,0,0,0,34,64v72a22,22,0,0,0,22,22h48a2,2,0,0,1,2,2.23L98.08,207a6.74,6.74,0,0,0-.08,1,30,30,0,0,0,60,0,6.74,6.74,0,0,0-.08-1L150,160.23a2,2,0,0,1,2-2.23h48a22,22,0,0,0,22-22V32A6,6,0,0,0,216,26ZM72,38H178V80a6,6,0,0,0,12,0V38h20v68H46V64A26,26,0,0,1,72,38ZM200,146H152a14,14,0,0,0-13.86,16l0,.15L146,208.47a18,18,0,0,1-36,0l7.82-46.34,0-.15A14,14,0,0,0,104,146H56a10,10,0,0,1-10-10V118H210v18A10,10,0,0,1,200,146Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,24H72A40,40,0,0,0,32,64v72a24,24,0,0,0,24,24h48l-7.89,46.67A8.42,8.42,0,0,0,96,208a32,32,0,0,0,64,0,8.42,8.42,0,0,0-.11-1.33L152,160h48a24,24,0,0,0,24-24V32A8,8,0,0,0,216,24ZM72,40H176V80a8,8,0,0,0,16,0V40h16v64H48V64A24,24,0,0,1,72,40ZM200,144H152a16,16,0,0,0-15.84,18.26l0,.2L144,208.6a16,16,0,0,1-32,0l7.8-46.14,0-.2A16,16,0,0,0,104,144H56a8,8,0,0,1-8-8V120H208v16A8,8,0,0,1,200,144Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,28H72A36,36,0,0,0,36,64v72a20,20,0,0,0,20,20h48a4,4,0,0,1,4,4.52l-7.9,46.81a3.79,3.79,0,0,0-.06.67,28,28,0,0,0,56,0,3.79,3.79,0,0,0-.06-.67L148,160.52a4,4,0,0,1,4-4.52h48a20,20,0,0,0,20-20V32A4,4,0,0,0,216,28ZM72,36H180V80a4,4,0,0,0,8,0V36h24v72H44V64A28,28,0,0,1,72,36ZM200,148H152a12,12,0,0,0-11.88,13.7s0,.06,0,.1L148,208.32a20,20,0,0,1-40,0l7.86-46.52s0-.07,0-.1A12,12,0,0,0,104,148H56a12,12,0,0,1-12-12V116H212v20A12,12,0,0,1,200,148Z"}))]]),IH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M203.57,51A107.9,107.9,0,0,0,20,128c0,44.72,27.6,82.25,72,97.94A36,36,0,0,0,140,192a12,12,0,0,1,12-12h46.21a35.79,35.79,0,0,0,35.1-28A108.6,108.6,0,0,0,236,127.09,107.23,107.23,0,0,0,203.57,51Zm6.34,95.67a11.91,11.91,0,0,1-11.7,9.3H152a36,36,0,0,0-36,36,12,12,0,0,1-16,11.3c-16.65-5.88-30.65-15.76-40.48-28.56A76,76,0,0,1,44,128a84,84,0,0,1,83.13-84H128a84.35,84.35,0,0,1,84,83.29A84.72,84.72,0,0,1,209.91,146.71ZM144,76a16,16,0,1,1-16-16A16,16,0,0,1,144,76Zm-44,24A16,16,0,1,1,84,84,16,16,0,0,1,100,100Zm0,56a16,16,0,1,1-16-16A16,16,0,0,1,100,156Zm88-56a16,16,0,1,1-16-16A16,16,0,0,1,188,100Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,127.17a96.48,96.48,0,0,1-2.39,22.18A24,24,0,0,1,198.21,168H152a24,24,0,0,0-24,24,24,24,0,0,1-32,22.61C58.73,201.44,32,169.81,32,128a96,96,0,0,1,95-96C179.84,31.47,223.55,74.35,224,127.17Z",opacity:"0.2"}),r.createElement("path",{d:"M200.77,53.89A103.27,103.27,0,0,0,128,24h-1.07A104,104,0,0,0,24,128c0,43,26.58,79.06,69.36,94.17A32,32,0,0,0,136,192a16,16,0,0,1,16-16h46.21a31.81,31.81,0,0,0,31.2-24.88,104.43,104.43,0,0,0,2.59-24A103.28,103.28,0,0,0,200.77,53.89Zm13,93.71A15.89,15.89,0,0,1,198.21,160H152a32,32,0,0,0-32,32,16,16,0,0,1-21.31,15.07C62.49,194.3,40,164,40,128a88,88,0,0,1,87.09-88h.9a88.35,88.35,0,0,1,88,87.25A88.86,88.86,0,0,1,213.81,147.6ZM140,76a12,12,0,1,1-12-12A12,12,0,0,1,140,76ZM96,100A12,12,0,1,1,84,88,12,12,0,0,1,96,100Zm0,56a12,12,0,1,1-12-12A12,12,0,0,1,96,156Zm88-56a12,12,0,1,1-12-12A12,12,0,0,1,184,100Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M200.77,53.89A103.27,103.27,0,0,0,128,24h-1.07A104,104,0,0,0,24,128c0,43,26.58,79.06,69.36,94.17A32,32,0,0,0,136,192a16,16,0,0,1,16-16h46.21a31.81,31.81,0,0,0,31.2-24.88,104.43,104.43,0,0,0,2.59-24A103.28,103.28,0,0,0,200.77,53.89ZM84,168a12,12,0,1,1,12-12A12,12,0,0,1,84,168Zm0-56a12,12,0,1,1,12-12A12,12,0,0,1,84,112Zm44-24a12,12,0,1,1,12-12A12,12,0,0,1,128,88Zm44,24a12,12,0,1,1,12-12A12,12,0,0,1,172,112Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M199.37,55.31A101.32,101.32,0,0,0,128,26h-1A102,102,0,0,0,26,128c0,42.09,26.07,77.44,68,92.26A30.21,30.21,0,0,0,104.11,222,30.06,30.06,0,0,0,134,192a18,18,0,0,1,18-18h46.21a29.82,29.82,0,0,0,29.25-23.31A102.71,102.71,0,0,0,230,127.11,101.25,101.25,0,0,0,199.37,55.31ZM215.76,148a17.89,17.89,0,0,1-17.55,14H152a30,30,0,0,0-30,30,18,18,0,0,1-24,17C61,195.86,38,164.85,38,128a90,90,0,0,1,89.07-90H128a90.34,90.34,0,0,1,90,89.22A90.46,90.46,0,0,1,215.76,148ZM138,76a10,10,0,1,1-10-10A10,10,0,0,1,138,76ZM94,100A10,10,0,1,1,84,90,10,10,0,0,1,94,100Zm0,56a10,10,0,1,1-10-10A10,10,0,0,1,94,156Zm88-56a10,10,0,1,1-10-10A10,10,0,0,1,182,100Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M200.77,53.89A103.27,103.27,0,0,0,128,24h-1.07A104,104,0,0,0,24,128c0,43,26.58,79.06,69.36,94.17A32,32,0,0,0,136,192a16,16,0,0,1,16-16h46.21a31.81,31.81,0,0,0,31.2-24.88,104.43,104.43,0,0,0,2.59-24A103.28,103.28,0,0,0,200.77,53.89Zm13,93.71A15.89,15.89,0,0,1,198.21,160H152a32,32,0,0,0-32,32,16,16,0,0,1-21.31,15.07C62.49,194.3,40,164,40,128a88,88,0,0,1,87.09-88h.9a88.35,88.35,0,0,1,88,87.25A88.86,88.86,0,0,1,213.81,147.6ZM140,76a12,12,0,1,1-12-12A12,12,0,0,1,140,76ZM96,100A12,12,0,1,1,84,88,12,12,0,0,1,96,100Zm0,56a12,12,0,1,1-12-12A12,12,0,0,1,96,156Zm88-56a12,12,0,1,1-12-12A12,12,0,0,1,184,100Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M198,56.74A99.31,99.31,0,0,0,128,28h-1A100,100,0,0,0,28,128c0,41.22,25.55,75.85,66.69,90.38a28.34,28.34,0,0,0,9.42,1.63A28,28,0,0,0,132,192a20,20,0,0,1,20-20h46.21a27.84,27.84,0,0,0,27.3-21.76,100.37,100.37,0,0,0,2.49-23.1A99.26,99.26,0,0,0,198,56.74Zm19.74,91.72A19.89,19.89,0,0,1,198.21,164H152a28,28,0,0,0-28,28,20,20,0,0,1-26.64,18.83C59.51,197.46,36,165.72,36,128a92,92,0,0,1,91.05-92H128a92,92,0,0,1,89.72,112.46ZM136,76a8,8,0,1,1-8-8A8,8,0,0,1,136,76ZM92,100a8,8,0,1,1-8-8A8,8,0,0,1,92,100Zm0,56a8,8,0,1,1-8-8A8,8,0,0,1,92,156Zm88-56a8,8,0,1,1-8-8A8,8,0,0,1,180,100Z"}))]]),OH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M230.15,70.54,185.46,25.86a20,20,0,0,0-28.28,0L33.86,149.17A19.86,19.86,0,0,0,28,163.31V208a20,20,0,0,0,20,20H216a12,12,0,0,0,0-24H125L230.15,98.83A20,20,0,0,0,230.15,70.54ZM136,81l11,11L76,163,65,152ZM52,204V173l15.52,15.51h0L83,204Zm52-13L93,180l71-71,11,11Zm88-88L153,64l18.34-18.34,39,39Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M221.66,90.34,192,120,136,64l29.66-29.66a8,8,0,0,1,11.31,0L221.66,79A8,8,0,0,1,221.66,90.34Z",opacity:"0.2"}),r.createElement("path",{d:"M227.32,73.37,182.63,28.69a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H216a8,8,0,0,0,0-16H115.32l112-112A16,16,0,0,0,227.32,73.37ZM79.32,188,164,103.31,180.69,120,96,204.69ZM68,176.69,51.31,160,136,75.31,152.69,92Zm-20,2.62L76.69,208H48Zm144-70.62L147.32,64l24-24L216,84.69Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M227.32,73.37,182.63,28.69a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H216a8,8,0,0,0,0-16H115.32l112-112A16,16,0,0,0,227.32,73.37ZM79.32,188l90.34-90.34,16.69,16.68L96,204.69Zm79-101.66h0L68,176.69,51.31,160l90.35-90.34ZM48,179.31,76.69,208H48Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M225.91,74.79,181.22,30.1a14,14,0,0,0-19.8,0L38.1,153.41a13.94,13.94,0,0,0-4.1,9.9V208a14,14,0,0,0,14,14H216a6,6,0,0,0,0-12H110.49L225.91,94.59A14,14,0,0,0,225.91,74.79ZM76.49,188,164,100.48,183.52,120,96,207.51ZM68,179.52,48.49,160,136,72.49,155.52,92ZM46,208V174.48L81.52,210H48A2,2,0,0,1,46,208ZM217.42,86.1,192,111.52,144.49,64,169.9,38.59a2,2,0,0,1,2.83,0l44.69,44.68A2,2,0,0,1,217.42,86.1Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M227.32,73.37,182.63,28.69a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H216a8,8,0,0,0,0-16H115.32l112-112A16,16,0,0,0,227.32,73.37ZM136,75.31,152.69,92,68,176.69,51.31,160ZM48,208V179.31L76.69,208Zm48-3.31L79.32,188,164,103.31,180.69,120Zm96-96L147.32,64l24-24L216,84.69Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224.49,76.2,179.8,31.51a12,12,0,0,0-17,0L39.51,154.83A12,12,0,0,0,36,163.31V208a12,12,0,0,0,12,12H216a4,4,0,0,0,0-8H105.66L224.49,93.17A12,12,0,0,0,224.49,76.2ZM73.66,188,164,97.66,186.35,120,96,210.34ZM68,182.34,45.66,160,136,69.66,158.35,92ZM44,208V169.66l21.17,21.17h0L86.34,212H48A4,4,0,0,1,44,208ZM218.83,87.51,192,114.34,141.66,64l26.83-26.83a4,4,0,0,1,5.66,0l44.68,44.69A4,4,0,0,1,218.83,87.51Z"}))]]),_H=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M200,120a16,16,0,1,1-16-16A16,16,0,0,1,200,120ZM156,64H116a12,12,0,0,0,0,24h40a12,12,0,0,0,0-24Zm100,48v32a28,28,0,0,1-27.54,28L213.2,214.73A20,20,0,0,1,194.36,228H181.64a20,20,0,0,1-18.84-13.27l-1-2.73H110.17l-1,2.73A20,20,0,0,1,90.36,228H77.64A20,20,0,0,1,58.8,214.73L46.5,180.28A91.63,91.63,0,0,1,25.75,137.8,11.91,11.91,0,0,0,24,144a12,12,0,0,1-24,0,36.07,36.07,0,0,1,24.56-34.13A92.13,92.13,0,0,1,116,28H220a12,12,0,0,1,0,24H210a92,92,0,0,1,22.48,31.45l.42,1A28.05,28.05,0,0,1,256,112Zm-24,0a4,4,0,0,0-4-4h-3.66a12,12,0,0,1-11.45-8.41A68,68,0,0,0,148,52H116A68,68,0,0,0,65.86,165.94,11.85,11.85,0,0,1,68.31,170l12.15,34h7.08l2.87-8a12,12,0,0,1,11.3-8h68.58a12,12,0,0,1,11.3,8l2.87,8h7.08l17.16-48a12,12,0,0,1,11.3-8h8a4,4,0,0,0,4-4Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M240,112v32a16,16,0,0,1-16,16h-8l-18.1,50.69a8,8,0,0,1-7.54,5.31H177.64a8,8,0,0,1-7.54-5.31L166.29,200H97.71L93.9,210.69A8,8,0,0,1,86.36,216H73.64a8,8,0,0,1-7.54-5.31L53,174a79.7,79.7,0,0,1-21-54h0a80,80,0,0,1,80-80h32a80,80,0,0,1,73.44,48.22,82.22,82.22,0,0,1,2.9,7.78H224A16,16,0,0,1,240,112Z",opacity:"0.2"}),r.createElement("path",{d:"M192,116a12,12,0,1,1-12-12A12,12,0,0,1,192,116ZM152,64H112a8,8,0,0,0,0,16h40a8,8,0,0,0,0-16Zm96,48v32a24,24,0,0,1-24,24h-2.36l-16.21,45.38A16,16,0,0,1,190.36,224H177.64a16,16,0,0,1-15.07-10.62L160.65,208h-57.3l-1.92,5.38A16,16,0,0,1,86.36,224H73.64a16,16,0,0,1-15.07-10.62L46,178.22a87.69,87.69,0,0,1-21.44-48.38A16,16,0,0,0,16,144a8,8,0,0,1-16,0,32,32,0,0,1,24.28-31A88.12,88.12,0,0,1,112,32H216a8,8,0,0,1,0,16H194.61a87.93,87.93,0,0,1,30.17,37c.43,1,.85,2,1.25,3A24,24,0,0,1,248,112Zm-16,0a8,8,0,0,0-8-8h-3.66a8,8,0,0,1-7.64-5.6A71.9,71.9,0,0,0,144,48H112A72,72,0,0,0,58.91,168.64a8,8,0,0,1,1.64,2.71L73.64,208H86.36l3.82-10.69A8,8,0,0,1,97.71,192h68.58a8,8,0,0,1,7.53,5.31L177.64,208h12.72l18.11-50.69A8,8,0,0,1,216,152h8a8,8,0,0,0,8-8Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M226,88.08c-.4-1-.82-2-1.25-3a87.93,87.93,0,0,0-30.17-37H216a8,8,0,0,0,0-16H112a88.12,88.12,0,0,0-87.72,81A32,32,0,0,0,0,144a8,8,0,0,0,16,0,16,16,0,0,1,8.57-14.16A87.69,87.69,0,0,0,46,178.22l12.56,35.16A16,16,0,0,0,73.64,224H86.36a16,16,0,0,0,15.07-10.62l1.92-5.38h57.3l1.92,5.38A16,16,0,0,0,177.64,224h12.72a16,16,0,0,0,15.07-10.62L221.64,168H224a24,24,0,0,0,24-24V112A24,24,0,0,0,226,88.08ZM152,72H112a8,8,0,0,1,0-16h40a8,8,0,0,1,0,16Zm28,56a12,12,0,1,1,12-12A12,12,0,0,1,180,128Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M190,116a10,10,0,1,1-10-10A10,10,0,0,1,190,116ZM152,66H112a6,6,0,0,0,0,12h40a6,6,0,0,0,0-12Zm94,46v32a22,22,0,0,1-22,22h-3.77l-16.68,46.71A14,14,0,0,1,190.36,222H177.64a14,14,0,0,1-13.19-9.29L162.06,206H101.94l-2.39,6.71A14,14,0,0,1,86.36,222H73.64a14,14,0,0,1-13.19-9.29L47.76,177.18a85.72,85.72,0,0,1-21.47-50.24A18,18,0,0,0,14,144a6,6,0,0,1-12,0,30,30,0,0,1,24.19-29.43A86.1,86.1,0,0,1,112,34H216a6,6,0,0,1,0,12H187.82a85.92,85.92,0,0,1,35.12,39.83c.6,1.38,1.16,2.77,1.68,4.18A22,22,0,0,1,246,112Zm-12,0a10,10,0,0,0-10-10h-3.66a6,6,0,0,1-5.73-4.2,71.4,71.4,0,0,0-2.68-7.19A74,74,0,0,0,144,46H112A74,74,0,0,0,57.44,170a5.81,5.81,0,0,1,1.22,2l13.09,36.64A2,2,0,0,0,73.64,210H86.36a2,2,0,0,0,1.89-1.33L92.06,198a6,6,0,0,1,5.65-4h68.58a6,6,0,0,1,5.65,4l3.81,10.69a2,2,0,0,0,1.89,1.33h12.72a2,2,0,0,0,1.89-1.33L210.35,158a6,6,0,0,1,5.65-4h8a10,10,0,0,0,10-10Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M192,116a12,12,0,1,1-12-12A12,12,0,0,1,192,116ZM152,64H112a8,8,0,0,0,0,16h40a8,8,0,0,0,0-16Zm96,48v32a24,24,0,0,1-24,24h-2.36l-16.21,45.38A16,16,0,0,1,190.36,224H177.64a16,16,0,0,1-15.07-10.62L160.65,208h-57.3l-1.92,5.38A16,16,0,0,1,86.36,224H73.64a16,16,0,0,1-15.07-10.62L46,178.22a87.69,87.69,0,0,1-21.44-48.38A16,16,0,0,0,16,144a8,8,0,0,1-16,0,32,32,0,0,1,24.28-31A88.12,88.12,0,0,1,112,32H216a8,8,0,0,1,0,16H194.61a87.93,87.93,0,0,1,30.17,37c.43,1,.85,2,1.25,3A24,24,0,0,1,248,112Zm-16,0a8,8,0,0,0-8-8h-3.66a8,8,0,0,1-7.64-5.6A71.9,71.9,0,0,0,144,48H112A72,72,0,0,0,58.91,168.64a8,8,0,0,1,1.64,2.71L73.64,208H86.36l3.82-10.69A8,8,0,0,1,97.71,192h68.58a8,8,0,0,1,7.53,5.31L177.64,208h12.72l18.11-50.69A8,8,0,0,1,216,152h8a8,8,0,0,0,8-8Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M188,116a8,8,0,1,1-8-8A8,8,0,0,1,188,116ZM152,68H112a4,4,0,0,0,0,8h40a4,4,0,0,0,0-8Zm92,44v32a20,20,0,0,1-20,20h-5.18l-17.16,48a12,12,0,0,1-11.3,8H177.64a12,12,0,0,1-11.3-8l-2.87-8H100.53l-2.87,8a12,12,0,0,1-11.3,8H73.64a12,12,0,0,1-11.3-8l-12.82-35.9a83.73,83.73,0,0,1-21.4-51.76A20,20,0,0,0,12,144a4,4,0,0,1-8,0,28,28,0,0,1,24.09-27.72A84.1,84.1,0,0,1,112,36H216a4,4,0,0,1,0,8H179.8a84,84,0,0,1,41.31,42.63c.76,1.76,1.47,3.55,2.11,5.37H224A20,20,0,0,1,244,112Zm-8,0a12,12,0,0,0-12-12h-3.66a4,4,0,0,1-3.82-2.8,74.45,74.45,0,0,0-2.75-7.39A76,76,0,0,0,144,44H112A76,76,0,0,0,56,171.34a4,4,0,0,1,.82,1.36l13.09,36.65A4,4,0,0,0,73.64,212H86.36a4,4,0,0,0,3.77-2.65L94,198.65A4,4,0,0,1,97.71,196h68.58a4,4,0,0,1,3.76,2.65l3.82,10.7a4,4,0,0,0,3.77,2.65h12.72a4,4,0,0,0,3.77-2.65l18.1-50.7A4,4,0,0,1,216,156h8a12,12,0,0,0,12-12Z"}))]]),ZH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M228,128a12,12,0,0,1-12,12H140v76a12,12,0,0,1-24,0V140H40a12,12,0,0,1,0-24h76V40a12,12,0,0,1,24,0v76h76A12,12,0,0,1,228,128Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z",opacity:"0.2"}),r.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H136v80a8,8,0,0,1-16,0V136H40a8,8,0,0,1,0-16h80V40a8,8,0,0,1,16,0v80h80A8,8,0,0,1,224,128Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM184,136H136v48a8,8,0,0,1-16,0V136H72a8,8,0,0,1,0-16h48V72a8,8,0,0,1,16,0v48h48a8,8,0,0,1,0,16Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M222,128a6,6,0,0,1-6,6H134v82a6,6,0,0,1-12,0V134H40a6,6,0,0,1,0-12h82V40a6,6,0,0,1,12,0v82h82A6,6,0,0,1,222,128Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H136v80a8,8,0,0,1-16,0V136H40a8,8,0,0,1,0-16h80V40a8,8,0,0,1,16,0v80h80A8,8,0,0,1,224,128Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M220,128a4,4,0,0,1-4,4H132v84a4,4,0,0,1-8,0V132H40a4,4,0,0,1,0-8h84V40a4,4,0,0,1,8,0v84h84A4,4,0,0,1,220,128Z"}))]]),VH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,192a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,212Zm52-84a12,12,0,0,1-12,12H140v28a12,12,0,0,1-24,0V140H88a12,12,0,0,1,0-24h28V88a12,12,0,0,1,24,0v28h28A12,12,0,0,1,180,128Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),r.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm48-88a8,8,0,0,1-8,8H136v32a8,8,0,0,1-16,0V136H88a8,8,0,0,1,0-16h32V88a8,8,0,0,1,16,0v32h32A8,8,0,0,1,176,128Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.13,104.13,0,0,0,128,24Zm40,112H136v32a8,8,0,0,1-16,0V136H88a8,8,0,0,1,0-16h32V88a8,8,0,0,1,16,0v32h32a8,8,0,0,1,0,16Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218Zm46-90a6,6,0,0,1-6,6H134v34a6,6,0,0,1-12,0V134H88a6,6,0,0,1,0-12h34V88a6,6,0,0,1,12,0v34h34A6,6,0,0,1,174,128Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm48-88a8,8,0,0,1-8,8H136v32a8,8,0,0,1-16,0V136H88a8,8,0,0,1,0-16h32V88a8,8,0,0,1,16,0v32h32A8,8,0,0,1,176,128Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220Zm44-92a4,4,0,0,1-4,4H132v36a4,4,0,0,1-8,0V132H88a4,4,0,0,1,0-8h36V88a4,4,0,0,1,8,0v36h36A4,4,0,0,1,172,128Z"}))]]),zH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,36H40A20,20,0,0,0,20,56V200a20,20,0,0,0,20,20H216a20,20,0,0,0,20-20V56A20,20,0,0,0,216,36ZM44,60H76V196H44ZM212,196H100V60H212Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M88,48V208H40a8,8,0,0,1-8-8V56a8,8,0,0,1,8-8Z",opacity:"0.2"}),r.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM40,56H80V200H40ZM216,200H96V56H216V200Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40Zm0,160H88V56H216V200Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,42H40A14,14,0,0,0,26,56V200a14,14,0,0,0,14,14H216a14,14,0,0,0,14-14V56A14,14,0,0,0,216,42ZM38,200V56a2,2,0,0,1,2-2H82V202H40A2,2,0,0,1,38,200Zm180,0a2,2,0,0,1-2,2H94V54H216a2,2,0,0,1,2,2Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM40,56H80V200H40ZM216,200H96V56H216V200Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,44H40A12,12,0,0,0,28,56V200a12,12,0,0,0,12,12H216a12,12,0,0,0,12-12V56A12,12,0,0,0,216,44ZM36,200V56a4,4,0,0,1,4-4H84V204H40A4,4,0,0,1,36,200Zm184,0a4,4,0,0,1-4,4H92V52H216a4,4,0,0,1,4,4Z"}))]]),BH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M144.49,136.49l-40,40a12,12,0,0,1-17-17L107,140H24a12,12,0,0,1,0-24h83L87.51,96.49a12,12,0,0,1,17-17l40,40A12,12,0,0,1,144.49,136.49ZM200,28H136a12,12,0,0,0,0,24h52V204H136a12,12,0,0,0,0,24h64a12,12,0,0,0,12-12V40A12,12,0,0,0,200,28Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M200,40V216H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40Z",opacity:"0.2"}),r.createElement("path",{d:"M141.66,133.66l-40,40a8,8,0,0,1-11.32-11.32L116.69,136H24a8,8,0,0,1,0-16h92.69L90.34,93.66a8,8,0,0,1,11.32-11.32l40,40A8,8,0,0,1,141.66,133.66ZM200,32H136a8,8,0,0,0,0,16h56V208H136a8,8,0,0,0,0,16h64a8,8,0,0,0,8-8V40A8,8,0,0,0,200,32Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M141.66,133.66l-40,40A8,8,0,0,1,88,168V136H24a8,8,0,0,1,0-16H88V88a8,8,0,0,1,13.66-5.66l40,40A8,8,0,0,1,141.66,133.66ZM200,32H136a8,8,0,0,0,0,16h56V208H136a8,8,0,0,0,0,16h64a8,8,0,0,0,8-8V40A8,8,0,0,0,200,32Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M140.24,132.24l-40,40a6,6,0,0,1-8.48-8.48L121.51,134H24a6,6,0,0,1,0-12h97.51L91.76,92.24a6,6,0,0,1,8.48-8.48l40,40A6,6,0,0,1,140.24,132.24ZM200,34H136a6,6,0,0,0,0,12h58V210H136a6,6,0,0,0,0,12h64a6,6,0,0,0,6-6V40A6,6,0,0,0,200,34Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M141.66,133.66l-40,40a8,8,0,0,1-11.32-11.32L116.69,136H24a8,8,0,0,1,0-16h92.69L90.34,93.66a8,8,0,0,1,11.32-11.32l40,40A8,8,0,0,1,141.66,133.66ZM200,32H136a8,8,0,0,0,0,16h56V208H136a8,8,0,0,0,0,16h64a8,8,0,0,0,8-8V40A8,8,0,0,0,200,32Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M138.83,130.83l-40,40a4,4,0,0,1-5.66-5.66L126.34,132H24a4,4,0,0,1,0-8H126.34L93.17,90.83a4,4,0,0,1,5.66-5.66l40,40A4,4,0,0,1,138.83,130.83ZM200,36H136a4,4,0,0,0,0,8h60V212H136a4,4,0,0,0,0,8h64a4,4,0,0,0,4-4V40A4,4,0,0,0,200,36Z"}))]]),UH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M40,92H70.06a36,36,0,0,0,67.88,0H216a12,12,0,0,0,0-24H137.94a36,36,0,0,0-67.88,0H40a12,12,0,0,0,0,24Zm64-24A12,12,0,1,1,92,80,12,12,0,0,1,104,68Zm112,96H201.94a36,36,0,0,0-67.88,0H40a12,12,0,0,0,0,24h94.06a36,36,0,0,0,67.88,0H216a12,12,0,0,0,0-24Zm-48,24a12,12,0,1,1,12-12A12,12,0,0,1,168,188Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,80a24,24,0,1,1-24-24A24,24,0,0,1,128,80Zm40,72a24,24,0,1,0,24,24A24,24,0,0,0,168,152Z",opacity:"0.2"}),r.createElement("path",{d:"M40,88H73a32,32,0,0,0,62,0h81a8,8,0,0,0,0-16H135a32,32,0,0,0-62,0H40a8,8,0,0,0,0,16Zm64-24A16,16,0,1,1,88,80,16,16,0,0,1,104,64ZM216,168H199a32,32,0,0,0-62,0H40a8,8,0,0,0,0,16h97a32,32,0,0,0,62,0h17a8,8,0,0,0,0-16Zm-48,24a16,16,0,1,1,16-16A16,16,0,0,1,168,192Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M32,80a8,8,0,0,1,8-8H77.17a28,28,0,0,1,53.66,0H216a8,8,0,0,1,0,16H130.83a28,28,0,0,1-53.66,0H40A8,8,0,0,1,32,80Zm184,88H194.83a28,28,0,0,0-53.66,0H40a8,8,0,0,0,0,16H141.17a28,28,0,0,0,53.66,0H216a8,8,0,0,0,0-16Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M40,86H74.6a30,30,0,0,0,58.8,0H216a6,6,0,0,0,0-12H133.4a30,30,0,0,0-58.8,0H40a6,6,0,0,0,0,12Zm64-24A18,18,0,1,1,86,80,18,18,0,0,1,104,62ZM216,170H197.4a30,30,0,0,0-58.8,0H40a6,6,0,0,0,0,12h98.6a30,30,0,0,0,58.8,0H216a6,6,0,0,0,0-12Zm-48,24a18,18,0,1,1,18-18A18,18,0,0,1,168,194Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M40,88H73a32,32,0,0,0,62,0h81a8,8,0,0,0,0-16H135a32,32,0,0,0-62,0H40a8,8,0,0,0,0,16Zm64-24A16,16,0,1,1,88,80,16,16,0,0,1,104,64ZM216,168H199a32,32,0,0,0-62,0H40a8,8,0,0,0,0,16h97a32,32,0,0,0,62,0h17a8,8,0,0,0,0-16Zm-48,24a16,16,0,1,1,16-16A16,16,0,0,1,168,192Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M40,84H76.29a28,28,0,0,0,55.42,0H216a4,4,0,0,0,0-8H131.71a28,28,0,0,0-55.42,0H40a4,4,0,0,0,0,8Zm64-24A20,20,0,1,1,84,80,20,20,0,0,1,104,60ZM216,172H195.71a28,28,0,0,0-55.42,0H40a4,4,0,0,0,0,8H140.29a28,28,0,0,0,55.42,0H216a4,4,0,0,0,0-8Zm-48,24a20,20,0,1,1,20-20A20,20,0,0,1,168,196Z"}))]]),WH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M199,125.31l-49.88-18.39L130.69,57a19.92,19.92,0,0,0-37.38,0L74.92,106.92,25,125.31a19.92,19.92,0,0,0,0,37.38l49.88,18.39L93.31,231a19.92,19.92,0,0,0,37.38,0l18.39-49.88L199,162.69a19.92,19.92,0,0,0,0-37.38Zm-63.38,35.16a12,12,0,0,0-7.11,7.11L112,212.28l-16.47-44.7a12,12,0,0,0-7.11-7.11L43.72,144l44.7-16.47a12,12,0,0,0,7.11-7.11L112,75.72l16.47,44.7a12,12,0,0,0,7.11,7.11L180.28,144ZM140,40a12,12,0,0,1,12-12h12V16a12,12,0,0,1,24,0V28h12a12,12,0,0,1,0,24H188V64a12,12,0,0,1-24,0V52H152A12,12,0,0,1,140,40ZM252,88a12,12,0,0,1-12,12h-4v4a12,12,0,0,1-24,0v-4h-4a12,12,0,0,1,0-24h4V72a12,12,0,0,1,24,0v4h4A12,12,0,0,1,252,88Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M194.82,151.43l-55.09,20.3-20.3,55.09a7.92,7.92,0,0,1-14.86,0l-20.3-55.09-55.09-20.3a7.92,7.92,0,0,1,0-14.86l55.09-20.3,20.3-55.09a7.92,7.92,0,0,1,14.86,0l20.3,55.09,55.09,20.3A7.92,7.92,0,0,1,194.82,151.43Z",opacity:"0.2"}),r.createElement("path",{d:"M197.58,129.06,146,110l-19-51.62a15.92,15.92,0,0,0-29.88,0L78,110l-51.62,19a15.92,15.92,0,0,0,0,29.88L78,178l19,51.62a15.92,15.92,0,0,0,29.88,0L146,178l51.62-19a15.92,15.92,0,0,0,0-29.88ZM137,164.22a8,8,0,0,0-4.74,4.74L112,223.85,91.78,169A8,8,0,0,0,87,164.22L32.15,144,87,123.78A8,8,0,0,0,91.78,119L112,64.15,132.22,119a8,8,0,0,0,4.74,4.74L191.85,144ZM144,40a8,8,0,0,1,8-8h16V16a8,8,0,0,1,16,0V32h16a8,8,0,0,1,0,16H184V64a8,8,0,0,1-16,0V48H152A8,8,0,0,1,144,40ZM248,88a8,8,0,0,1-8,8h-8v8a8,8,0,0,1-16,0V96h-8a8,8,0,0,1,0-16h8V72a8,8,0,0,1,16,0v8h8A8,8,0,0,1,248,88Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,144a15.78,15.78,0,0,1-10.42,14.94L146,178l-19,51.62a15.92,15.92,0,0,1-29.88,0L78,178l-51.62-19a15.92,15.92,0,0,1,0-29.88L78,110l19-51.62a15.92,15.92,0,0,1,29.88,0L146,110l51.62,19A15.78,15.78,0,0,1,208,144ZM152,48h16V64a8,8,0,0,0,16,0V48h16a8,8,0,0,0,0-16H184V16a8,8,0,0,0-16,0V32H152a8,8,0,0,0,0,16Zm88,32h-8V72a8,8,0,0,0-16,0v8h-8a8,8,0,0,0,0,16h8v8a8,8,0,0,0,16,0V96h8a8,8,0,0,0,0-16Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M196.89,130.94,144.4,111.6,125.06,59.11a13.92,13.92,0,0,0-26.12,0L79.6,111.6,27.11,130.94a13.92,13.92,0,0,0,0,26.12L79.6,176.4l19.34,52.49a13.92,13.92,0,0,0,26.12,0L144.4,176.4l52.49-19.34a13.92,13.92,0,0,0,0-26.12Zm-4.15,14.86-55.08,20.3a6,6,0,0,0-3.56,3.56l-20.3,55.08a1.92,1.92,0,0,1-3.6,0L89.9,169.66a6,6,0,0,0-3.56-3.56L31.26,145.8a1.92,1.92,0,0,1,0-3.6l55.08-20.3a6,6,0,0,0,3.56-3.56l20.3-55.08a1.92,1.92,0,0,1,3.6,0l20.3,55.08a6,6,0,0,0,3.56,3.56l55.08,20.3a1.92,1.92,0,0,1,0,3.6ZM146,40a6,6,0,0,1,6-6h18V16a6,6,0,0,1,12,0V34h18a6,6,0,0,1,0,12H182V64a6,6,0,0,1-12,0V46H152A6,6,0,0,1,146,40ZM246,88a6,6,0,0,1-6,6H230v10a6,6,0,0,1-12,0V94H208a6,6,0,0,1,0-12h10V72a6,6,0,0,1,12,0V82h10A6,6,0,0,1,246,88Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M197.58,129.06,146,110l-19-51.62a15.92,15.92,0,0,0-29.88,0L78,110l-51.62,19a15.92,15.92,0,0,0,0,29.88L78,178l19,51.62a15.92,15.92,0,0,0,29.88,0L146,178l51.62-19a15.92,15.92,0,0,0,0-29.88ZM137,164.22a8,8,0,0,0-4.74,4.74L112,223.85,91.78,169A8,8,0,0,0,87,164.22L32.15,144,87,123.78A8,8,0,0,0,91.78,119L112,64.15,132.22,119a8,8,0,0,0,4.74,4.74L191.85,144ZM144,40a8,8,0,0,1,8-8h16V16a8,8,0,0,1,16,0V32h16a8,8,0,0,1,0,16H184V64a8,8,0,0,1-16,0V48H152A8,8,0,0,1,144,40ZM248,88a8,8,0,0,1-8,8h-8v8a8,8,0,0,1-16,0V96h-8a8,8,0,0,1,0-16h8V72a8,8,0,0,1,16,0v8h8A8,8,0,0,1,248,88Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M196.2,132.81l-53.36-19.65L123.19,59.8a11.93,11.93,0,0,0-22.38,0L81.16,113.16,27.8,132.81a11.93,11.93,0,0,0,0,22.38l53.36,19.65,19.65,53.36a11.93,11.93,0,0,0,22.38,0l19.65-53.36,53.36-19.65a11.93,11.93,0,0,0,0-22.38Zm-2.77,14.87L138.35,168a4,4,0,0,0-2.37,2.37l-20.3,55.08a3.92,3.92,0,0,1-7.36,0L88,170.35A4,4,0,0,0,85.65,168l-55.08-20.3a3.92,3.92,0,0,1,0-7.36L85.65,120A4,4,0,0,0,88,117.65l20.3-55.08a3.92,3.92,0,0,1,7.36,0L136,117.65a4,4,0,0,0,2.37,2.37l55.08,20.3a3.92,3.92,0,0,1,0,7.36ZM148,40a4,4,0,0,1,4-4h20V16a4,4,0,0,1,8,0V36h20a4,4,0,0,1,0,8H180V64a4,4,0,0,1-8,0V44H152A4,4,0,0,1,148,40Zm96,48a4,4,0,0,1-4,4H228v12a4,4,0,0,1-8,0V92H208a4,4,0,0,1,0-8h12V72a4,4,0,0,1,8,0V84h12A4,4,0,0,1,244,88Z"}))]]),GH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M234.36,170A12,12,0,0,1,230,186.37l-96,56a12,12,0,0,1-12.1,0l-96-56a12,12,0,0,1,12.09-20.74l90,52.48L218,165.63A12,12,0,0,1,234.36,170ZM218,117.63,128,170.11,38.05,117.63A12,12,0,0,0,26,138.37l96,56a12,12,0,0,0,12.1,0l96-56A12,12,0,0,0,218,117.63ZM20,80a12,12,0,0,1,6-10.37l96-56a12.06,12.06,0,0,1,12.1,0l96,56a12,12,0,0,1,0,20.74l-96,56a12,12,0,0,1-12.1,0l-96-56A12,12,0,0,1,20,80Zm35.82,0L128,122.11,200.18,80,128,37.89Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,80l-96,56L32,80l96-56Z",opacity:"0.2"}),r.createElement("path",{d:"M230.91,172A8,8,0,0,1,228,182.91l-96,56a8,8,0,0,1-8.06,0l-96-56A8,8,0,0,1,36,169.09l92,53.65,92-53.65A8,8,0,0,1,230.91,172ZM220,121.09l-92,53.65L36,121.09A8,8,0,0,0,28,134.91l96,56a8,8,0,0,0,8.06,0l96-56A8,8,0,1,0,220,121.09ZM24,80a8,8,0,0,1,4-6.91l96-56a8,8,0,0,1,8.06,0l96,56a8,8,0,0,1,0,13.82l-96,56a8,8,0,0,1-8.06,0l-96-56A8,8,0,0,1,24,80Zm23.88,0L128,126.74,208.12,80,128,33.26Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M220,169.09l-92,53.65L36,169.09A8,8,0,0,0,28,182.91l96,56a8,8,0,0,0,8.06,0l96-56A8,8,0,1,0,220,169.09Z"}),r.createElement("path",{d:"M220,121.09l-92,53.65L36,121.09A8,8,0,0,0,28,134.91l96,56a8,8,0,0,0,8.06,0l96-56A8,8,0,1,0,220,121.09Z"}),r.createElement("path",{d:"M28,86.91l96,56a8,8,0,0,0,8.06,0l96-56a8,8,0,0,0,0-13.82l-96-56a8,8,0,0,0-8.06,0l-96,56a8,8,0,0,0,0,13.82Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M229.18,173a6,6,0,0,1-2.16,8.2l-96,56a6,6,0,0,1-6,0l-96-56a6,6,0,0,1,6-10.36l93,54.23,93-54.23A6,6,0,0,1,229.18,173ZM221,122.82l-93,54.23L35,122.82a6,6,0,0,0-6,10.36l96,56a6,6,0,0,0,6,0l96-56a6,6,0,0,0-6-10.36ZM26,80a6,6,0,0,1,3-5.18l96-56a6,6,0,0,1,6,0l96,56a6,6,0,0,1,0,10.36l-96,56a6,6,0,0,1-6,0l-96-56A6,6,0,0,1,26,80Zm17.91,0L128,129.05,212.09,80,128,31Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M230.91,172A8,8,0,0,1,228,182.91l-96,56a8,8,0,0,1-8.06,0l-96-56A8,8,0,0,1,36,169.09l92,53.65,92-53.65A8,8,0,0,1,230.91,172ZM220,121.09l-92,53.65L36,121.09A8,8,0,0,0,28,134.91l96,56a8,8,0,0,0,8.06,0l96-56A8,8,0,1,0,220,121.09ZM24,80a8,8,0,0,1,4-6.91l96-56a8,8,0,0,1,8.06,0l96,56a8,8,0,0,1,0,13.82l-96,56a8,8,0,0,1-8.06,0l-96-56A8,8,0,0,1,24,80Zm23.88,0L128,126.74,208.12,80,128,33.26Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M227.45,174a4,4,0,0,1-1.44,5.48l-96,56a4,4,0,0,1-4,0l-96-56a4,4,0,0,1,4-6.92l94,54.83,94-54.83A4,4,0,0,1,227.45,174ZM222,124.54l-94,54.83L34,124.54a4,4,0,0,0-4,6.92l96,56a4,4,0,0,0,4,0l96-56a4,4,0,0,0-4-6.92ZM28,80a4,4,0,0,1,2-3.46l96-56a4,4,0,0,1,4,0l96,56a4,4,0,0,1,0,6.92l-96,56a4,4,0,0,1-4,0l-96-56A4,4,0,0,1,28,80Zm11.94,0L128,131.37,216.06,80,128,28.63Z"}))]]),KH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M243,96a20.33,20.33,0,0,0-17.74-14l-56.59-4.57L146.83,24.62a20.36,20.36,0,0,0-37.66,0L87.35,77.44,30.76,82A20.45,20.45,0,0,0,19.1,117.88l43.18,37.24-13.2,55.7A20.37,20.37,0,0,0,79.57,233L128,203.19,176.43,233a20.39,20.39,0,0,0,30.49-22.15l-13.2-55.7,43.18-37.24A20.43,20.43,0,0,0,243,96ZM172.53,141.7a12,12,0,0,0-3.84,11.86L181.58,208l-47.29-29.08a12,12,0,0,0-12.58,0L74.42,208l12.89-54.4a12,12,0,0,0-3.84-11.86L41.2,105.24l55.4-4.47a12,12,0,0,0,10.13-7.38L128,41.89l21.27,51.5a12,12,0,0,0,10.13,7.38l55.4,4.47Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M229.06,108.79l-48.7,42,14.88,62.79a8.4,8.4,0,0,1-12.52,9.17L128,189.09,73.28,222.74a8.4,8.4,0,0,1-12.52-9.17l14.88-62.79-48.7-42A8.46,8.46,0,0,1,31.73,94L95.64,88.8l24.62-59.6a8.36,8.36,0,0,1,15.48,0l24.62,59.6L224.27,94A8.46,8.46,0,0,1,229.06,108.79Z",opacity:"0.2"}),r.createElement("path",{d:"M239.18,97.26A16.38,16.38,0,0,0,224.92,86l-59-4.76L143.14,26.15a16.36,16.36,0,0,0-30.27,0L90.11,81.23,31.08,86a16.46,16.46,0,0,0-9.37,28.86l45,38.83L53,211.75a16.38,16.38,0,0,0,24.5,17.82L128,198.49l50.53,31.08A16.4,16.4,0,0,0,203,211.75l-13.76-58.07,45-38.83A16.43,16.43,0,0,0,239.18,97.26Zm-15.34,5.47-48.7,42a8,8,0,0,0-2.56,7.91l14.88,62.8a.37.37,0,0,1-.17.48c-.18.14-.23.11-.38,0l-54.72-33.65a8,8,0,0,0-8.38,0L69.09,215.94c-.15.09-.19.12-.38,0a.37.37,0,0,1-.17-.48l14.88-62.8a8,8,0,0,0-2.56-7.91l-48.7-42c-.12-.1-.23-.19-.13-.5s.18-.27.33-.29l63.92-5.16A8,8,0,0,0,103,91.86l24.62-59.61c.08-.17.11-.25.35-.25s.27.08.35.25L153,91.86a8,8,0,0,0,6.75,4.92l63.92,5.16c.15,0,.24,0,.33.29S224,102.63,223.84,102.73Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M234.29,114.85l-45,38.83L203,211.75a16.4,16.4,0,0,1-24.5,17.82L128,198.49,77.47,229.57A16.4,16.4,0,0,1,53,211.75l13.76-58.07-45-38.83A16.46,16.46,0,0,1,31.08,86l59-4.76,22.76-55.08a16.36,16.36,0,0,1,30.27,0l22.75,55.08,59,4.76a16.46,16.46,0,0,1,9.37,28.86Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M237.28,97.87A14.18,14.18,0,0,0,224.76,88l-60.25-4.87-23.22-56.2a14.37,14.37,0,0,0-26.58,0L91.49,83.11,31.24,88a14.18,14.18,0,0,0-12.52,9.89A14.43,14.43,0,0,0,23,113.32L69,152.93l-14,59.25a14.4,14.4,0,0,0,5.59,15,14.1,14.1,0,0,0,15.91.6L128,196.12l51.58,31.71a14.1,14.1,0,0,0,15.91-.6,14.4,14.4,0,0,0,5.59-15l-14-59.25L233,113.32A14.43,14.43,0,0,0,237.28,97.87Zm-12.14,6.37-48.69,42a6,6,0,0,0-1.92,5.92l14.88,62.79a2.35,2.35,0,0,1-.95,2.57,2.24,2.24,0,0,1-2.6.1L131.14,184a6,6,0,0,0-6.28,0L70.14,217.61a2.24,2.24,0,0,1-2.6-.1,2.35,2.35,0,0,1-1-2.57l14.88-62.79a6,6,0,0,0-1.92-5.92l-48.69-42a2.37,2.37,0,0,1-.73-2.65,2.28,2.28,0,0,1,2.07-1.65l63.92-5.16a6,6,0,0,0,5.06-3.69l24.63-59.6a2.35,2.35,0,0,1,4.38,0l24.63,59.6a6,6,0,0,0,5.06,3.69l63.92,5.16a2.28,2.28,0,0,1,2.07,1.65A2.37,2.37,0,0,1,225.14,104.24Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M239.18,97.26A16.38,16.38,0,0,0,224.92,86l-59-4.76L143.14,26.15a16.36,16.36,0,0,0-30.27,0L90.11,81.23,31.08,86a16.46,16.46,0,0,0-9.37,28.86l45,38.83L53,211.75a16.38,16.38,0,0,0,24.5,17.82L128,198.49l50.53,31.08A16.4,16.4,0,0,0,203,211.75l-13.76-58.07,45-38.83A16.43,16.43,0,0,0,239.18,97.26Zm-15.34,5.47-48.7,42a8,8,0,0,0-2.56,7.91l14.88,62.8a.37.37,0,0,1-.17.48c-.18.14-.23.11-.38,0l-54.72-33.65a8,8,0,0,0-8.38,0L69.09,215.94c-.15.09-.19.12-.38,0a.37.37,0,0,1-.17-.48l14.88-62.8a8,8,0,0,0-2.56-7.91l-48.7-42c-.12-.1-.23-.19-.13-.5s.18-.27.33-.29l63.92-5.16A8,8,0,0,0,103,91.86l24.62-59.61c.08-.17.11-.25.35-.25s.27.08.35.25L153,91.86a8,8,0,0,0,6.75,4.92l63.92,5.16c.15,0,.24,0,.33.29S224,102.63,223.84,102.73Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M235.36,98.49A12.21,12.21,0,0,0,224.59,90l-61.47-5L139.44,27.67a12.37,12.37,0,0,0-22.88,0L92.88,85,31.41,90a12.45,12.45,0,0,0-7.07,21.84l46.85,40.41L56.87,212.64a12.35,12.35,0,0,0,18.51,13.49L128,193.77l52.62,32.36a12.12,12.12,0,0,0,13.69-.51,12.28,12.28,0,0,0,4.82-13l-14.32-60.42,46.85-40.41A12.29,12.29,0,0,0,235.36,98.49Zm-8.93,7.26-48.68,42a4,4,0,0,0-1.28,3.95l14.87,62.79a4.37,4.37,0,0,1-1.72,4.65,4.24,4.24,0,0,1-4.81.18L130.1,185.67a4,4,0,0,0-4.2,0L71.19,219.32a4.24,4.24,0,0,1-4.81-.18,4.37,4.37,0,0,1-1.72-4.65L79.53,151.7a4,4,0,0,0-1.28-3.95l-48.68-42A4.37,4.37,0,0,1,28.25,101a4.31,4.31,0,0,1,3.81-3L96,92.79a4,4,0,0,0,3.38-2.46L124,30.73a4.35,4.35,0,0,1,8.08,0l24.62,59.6A4,4,0,0,0,160,92.79l63.9,5.15a4.31,4.31,0,0,1,3.81,3A4.37,4.37,0,0,1,226.43,105.75Z"}))]]),YH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M236,96a12,12,0,0,0-.44-3.3L221.2,42.51A20.08,20.08,0,0,0,202,28H54A20.08,20.08,0,0,0,34.8,42.51L20.46,92.7A12,12,0,0,0,20,96h0v16a43.94,43.94,0,0,0,16,33.92V216a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V145.92A43.94,43.94,0,0,0,236,112V96ZM57.05,52H199l9.14,32H47.91Zm91,56v4a20,20,0,0,1-40,0v-4ZM53,128.71A20,20,0,0,1,44,112v-4H84v4a20,20,0,0,1-20,20,19.76,19.76,0,0,1-9.07-2.2A11.54,11.54,0,0,0,53,128.71ZM196,204H60V155.81c1.32.12,2.65.19,4,.19a43.86,43.86,0,0,0,32-13.85,43.89,43.89,0,0,0,64,0A43.86,43.86,0,0,0,192,156c1.35,0,2.68-.07,4-.19Zm16-92a20,20,0,0,1-9,16.71,11.66,11.66,0,0,0-1.88,1.09A20,20,0,0,1,172,112v-4h40Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,96v16a32,32,0,0,1-64,0V96H96v16a32,32,0,0,1-64,0V96L46.34,45.8A8,8,0,0,1,54,40H202a8,8,0,0,1,7.69,5.8Z",opacity:"0.2"}),r.createElement("path",{d:"M231.69,93.81,217.35,43.6A16.07,16.07,0,0,0,202,32H54A16.07,16.07,0,0,0,38.65,43.6L24.31,93.81A7.94,7.94,0,0,0,24,96v16a40,40,0,0,0,16,32v72a8,8,0,0,0,8,8H208a8,8,0,0,0,8-8V144a40,40,0,0,0,16-32V96A7.94,7.94,0,0,0,231.69,93.81ZM54,48H202l11.42,40H42.61Zm98,56v8a24,24,0,0,1-48,0v-8ZM51.06,132.2A24,24,0,0,1,40,112v-8H88v8a24,24,0,0,1-35.12,21.26A7.88,7.88,0,0,0,51.06,132.2ZM200,208H56V151.2a40.57,40.57,0,0,0,8,.8,40,40,0,0,0,32-16,40,40,0,0,0,64,0,40,40,0,0,0,32,16,40.57,40.57,0,0,0,8-.8Zm16-96a24,24,0,0,1-11.07,20.2,8.08,8.08,0,0,0-1.8,1.05A24,24,0,0,1,168,112v-8h48Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M231.69,93.81,217.35,43.6A16.07,16.07,0,0,0,202,32H54A16.07,16.07,0,0,0,38.65,43.6L24.31,93.81A7.94,7.94,0,0,0,24,96v16a40,40,0,0,0,16,32v72a8,8,0,0,0,8,8H208a8,8,0,0,0,8-8V144a40,40,0,0,0,16-32V96A7.94,7.94,0,0,0,231.69,93.81ZM88,112a24,24,0,0,1-35.12,21.26,7.88,7.88,0,0,0-1.82-1.06A24,24,0,0,1,40,112v-8H88Zm64,0a24,24,0,0,1-48,0v-8h48Zm64,0a24,24,0,0,1-11.07,20.2,8.08,8.08,0,0,0-1.8,1.05A24,24,0,0,1,168,112v-8h48Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M26.22,94.41A6,6,0,0,0,26,96v16A38,38,0,0,0,42,143V216a6,6,0,0,0,6,6H208a6,6,0,0,0,6-6V143A38,38,0,0,0,230,112V96a5.91,5.91,0,0,0-.23-1.64L215.43,44.15A14.07,14.07,0,0,0,202,34H54A14.07,14.07,0,0,0,40.57,44.15Zm25.89-47A2,2,0,0,1,54,46H202a2,2,0,0,1,1.92,1.45L216.05,90H40ZM102,102h52v10a26,26,0,0,1-52,0Zm-64,0H90v10a26,26,0,0,1-38.18,23,6,6,0,0,0-1.65-1A26,26,0,0,1,38,112ZM202,210H54V148.66a38,38,0,0,0,42-16.21,37.95,37.95,0,0,0,64,0,38,38,0,0,0,42,16.21Zm3.83-76a6,6,0,0,0-1.65,1A26,26,0,0,1,166,112V102h52v10A26,26,0,0,1,205.83,134Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M232,96a7.89,7.89,0,0,0-.3-2.2L217.35,43.6A16.07,16.07,0,0,0,202,32H54A16.07,16.07,0,0,0,38.65,43.6L24.31,93.8A7.89,7.89,0,0,0,24,96h0v16a40,40,0,0,0,16,32v72a8,8,0,0,0,8,8H208a8,8,0,0,0,8-8V144a40,40,0,0,0,16-32V96ZM54,48H202l11.42,40H42.61Zm50,56h48v8a24,24,0,0,1-48,0Zm-16,0v8a24,24,0,0,1-35.12,21.26,7.88,7.88,0,0,0-1.82-1.06A24,24,0,0,1,40,112v-8ZM200,208H56V151.2a40.57,40.57,0,0,0,8,.8,40,40,0,0,0,32-16,40,40,0,0,0,64,0,40,40,0,0,0,32,16,40.57,40.57,0,0,0,8-.8Zm4.93-75.8a8.08,8.08,0,0,0-1.8,1.05A24,24,0,0,1,168,112v-8h48v8A24,24,0,0,1,204.93,132.2Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M28.15,95A3.81,3.81,0,0,0,28,96v16a36,36,0,0,0,16,29.92V216a4,4,0,0,0,4,4H208a4,4,0,0,0,4-4V141.92A36,36,0,0,0,228,112V96a3.81,3.81,0,0,0-.17-1.08L213.5,44.7A12,12,0,0,0,202,36H54A12,12,0,0,0,42.5,44.7Zm22-48.08A4,4,0,0,1,54,44H202a4,4,0,0,1,3.84,2.9L218.7,92H37.3ZM100,100h56v12a28,28,0,0,1-56,0ZM36,112V100H92v12a28,28,0,0,1-41.37,24.59,4,4,0,0,0-1.31-.76A28,28,0,0,1,36,112ZM204,212H52V145.94a36,36,0,0,0,44-17.48,36,36,0,0,0,64,0,36,36,0,0,0,44,17.48Zm2.68-76.17a3.94,3.94,0,0,0-1.3.76A28,28,0,0,1,164,112V100h56v12A28,28,0,0,1,206.68,135.83Z"}))]]),qH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M116,36V20a12,12,0,0,1,24,0V36a12,12,0,0,1-24,0Zm80,92a68,68,0,1,1-68-68A68.07,68.07,0,0,1,196,128Zm-24,0a44,44,0,1,0-44,44A44.05,44.05,0,0,0,172,128ZM51.51,68.49a12,12,0,1,0,17-17l-12-12a12,12,0,0,0-17,17Zm0,119-12,12a12,12,0,0,0,17,17l12-12a12,12,0,1,0-17-17ZM196,72a12,12,0,0,0,8.49-3.51l12-12a12,12,0,0,0-17-17l-12,12A12,12,0,0,0,196,72Zm8.49,115.51a12,12,0,0,0-17,17l12,12a12,12,0,0,0,17-17ZM48,128a12,12,0,0,0-12-12H20a12,12,0,0,0,0,24H36A12,12,0,0,0,48,128Zm80,80a12,12,0,0,0-12,12v16a12,12,0,0,0,24,0V220A12,12,0,0,0,128,208Zm108-92H220a12,12,0,0,0,0,24h16a12,12,0,0,0,0-24Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M184,128a56,56,0,1,1-56-56A56,56,0,0,1,184,128Z",opacity:"0.2"}),r.createElement("path",{d:"M120,40V16a8,8,0,0,1,16,0V40a8,8,0,0,1-16,0Zm72,88a64,64,0,1,1-64-64A64.07,64.07,0,0,1,192,128Zm-16,0a48,48,0,1,0-48,48A48.05,48.05,0,0,0,176,128ZM58.34,69.66A8,8,0,0,0,69.66,58.34l-16-16A8,8,0,0,0,42.34,53.66Zm0,116.68-16,16a8,8,0,0,0,11.32,11.32l16-16a8,8,0,0,0-11.32-11.32ZM192,72a8,8,0,0,0,5.66-2.34l16-16a8,8,0,0,0-11.32-11.32l-16,16A8,8,0,0,0,192,72Zm5.66,114.34a8,8,0,0,0-11.32,11.32l16,16a8,8,0,0,0,11.32-11.32ZM48,128a8,8,0,0,0-8-8H16a8,8,0,0,0,0,16H40A8,8,0,0,0,48,128Zm80,80a8,8,0,0,0-8,8v24a8,8,0,0,0,16,0V216A8,8,0,0,0,128,208Zm112-88H216a8,8,0,0,0,0,16h24a8,8,0,0,0,0-16Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M120,40V16a8,8,0,0,1,16,0V40a8,8,0,0,1-16,0Zm8,24a64,64,0,1,0,64,64A64.07,64.07,0,0,0,128,64ZM58.34,69.66A8,8,0,0,0,69.66,58.34l-16-16A8,8,0,0,0,42.34,53.66Zm0,116.68-16,16a8,8,0,0,0,11.32,11.32l16-16a8,8,0,0,0-11.32-11.32ZM192,72a8,8,0,0,0,5.66-2.34l16-16a8,8,0,0,0-11.32-11.32l-16,16A8,8,0,0,0,192,72Zm5.66,114.34a8,8,0,0,0-11.32,11.32l16,16a8,8,0,0,0,11.32-11.32ZM48,128a8,8,0,0,0-8-8H16a8,8,0,0,0,0,16H40A8,8,0,0,0,48,128Zm80,80a8,8,0,0,0-8,8v24a8,8,0,0,0,16,0V216A8,8,0,0,0,128,208Zm112-88H216a8,8,0,0,0,0,16h24a8,8,0,0,0,0-16Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M122,40V16a6,6,0,0,1,12,0V40a6,6,0,0,1-12,0Zm68,88a62,62,0,1,1-62-62A62.07,62.07,0,0,1,190,128Zm-12,0a50,50,0,1,0-50,50A50.06,50.06,0,0,0,178,128ZM59.76,68.24a6,6,0,1,0,8.48-8.48l-16-16a6,6,0,0,0-8.48,8.48Zm0,119.52-16,16a6,6,0,1,0,8.48,8.48l16-16a6,6,0,1,0-8.48-8.48ZM192,70a6,6,0,0,0,4.24-1.76l16-16a6,6,0,0,0-8.48-8.48l-16,16A6,6,0,0,0,192,70Zm4.24,117.76a6,6,0,0,0-8.48,8.48l16,16a6,6,0,0,0,8.48-8.48ZM46,128a6,6,0,0,0-6-6H16a6,6,0,0,0,0,12H40A6,6,0,0,0,46,128Zm82,82a6,6,0,0,0-6,6v24a6,6,0,0,0,12,0V216A6,6,0,0,0,128,210Zm112-88H216a6,6,0,0,0,0,12h24a6,6,0,0,0,0-12Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M120,40V16a8,8,0,0,1,16,0V40a8,8,0,0,1-16,0Zm72,88a64,64,0,1,1-64-64A64.07,64.07,0,0,1,192,128Zm-16,0a48,48,0,1,0-48,48A48.05,48.05,0,0,0,176,128ZM58.34,69.66A8,8,0,0,0,69.66,58.34l-16-16A8,8,0,0,0,42.34,53.66Zm0,116.68-16,16a8,8,0,0,0,11.32,11.32l16-16a8,8,0,0,0-11.32-11.32ZM192,72a8,8,0,0,0,5.66-2.34l16-16a8,8,0,0,0-11.32-11.32l-16,16A8,8,0,0,0,192,72Zm5.66,114.34a8,8,0,0,0-11.32,11.32l16,16a8,8,0,0,0,11.32-11.32ZM48,128a8,8,0,0,0-8-8H16a8,8,0,0,0,0,16H40A8,8,0,0,0,48,128Zm80,80a8,8,0,0,0-8,8v24a8,8,0,0,0,16,0V216A8,8,0,0,0,128,208Zm112-88H216a8,8,0,0,0,0,16h24a8,8,0,0,0,0-16Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M124,40V16a4,4,0,0,1,8,0V40a4,4,0,0,1-8,0Zm64,88a60,60,0,1,1-60-60A60.07,60.07,0,0,1,188,128Zm-8,0a52,52,0,1,0-52,52A52.06,52.06,0,0,0,180,128ZM61.17,66.83a4,4,0,0,0,5.66-5.66l-16-16a4,4,0,0,0-5.66,5.66Zm0,122.34-16,16a4,4,0,0,0,5.66,5.66l16-16a4,4,0,0,0-5.66-5.66ZM192,68a4,4,0,0,0,2.83-1.17l16-16a4,4,0,1,0-5.66-5.66l-16,16A4,4,0,0,0,192,68Zm2.83,121.17a4,4,0,0,0-5.66,5.66l16,16a4,4,0,0,0,5.66-5.66ZM40,124H16a4,4,0,0,0,0,8H40a4,4,0,0,0,0-8Zm88,88a4,4,0,0,0-4,4v24a4,4,0,0,0,8,0V216A4,4,0,0,0,128,212Zm112-88H216a4,4,0,0,0,0,8h24a4,4,0,0,0,0-8Z"}))]]),XH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,48H180V36A28,28,0,0,0,152,8H104A28,28,0,0,0,76,36V48H40a12,12,0,0,0,0,24h4V208a20,20,0,0,0,20,20H192a20,20,0,0,0,20-20V72h4a12,12,0,0,0,0-24ZM100,36a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4V48H100Zm88,168H68V72H188ZM116,104v64a12,12,0,0,1-24,0V104a12,12,0,0,1,24,0Zm48,0v64a12,12,0,0,1-24,0V104a12,12,0,0,1,24,0Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M200,56V208a8,8,0,0,1-8,8H64a8,8,0,0,1-8-8V56Z",opacity:"0.2"}),r.createElement("path",{d:"M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM96,40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8v8H96Zm96,168H64V64H192ZM112,104v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM112,168a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm0-120H96V40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,50H174V40a22,22,0,0,0-22-22H104A22,22,0,0,0,82,40V50H40a6,6,0,0,0,0,12H50V208a14,14,0,0,0,14,14H192a14,14,0,0,0,14-14V62h10a6,6,0,0,0,0-12ZM94,40a10,10,0,0,1,10-10h48a10,10,0,0,1,10,10V50H94ZM194,208a2,2,0,0,1-2,2H64a2,2,0,0,1-2-2V62H194ZM110,104v64a6,6,0,0,1-12,0V104a6,6,0,0,1,12,0Zm48,0v64a6,6,0,0,1-12,0V104a6,6,0,0,1,12,0Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM96,40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8v8H96Zm96,168H64V64H192ZM112,104v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,52H172V40a20,20,0,0,0-20-20H104A20,20,0,0,0,84,40V52H40a4,4,0,0,0,0,8H52V208a12,12,0,0,0,12,12H192a12,12,0,0,0,12-12V60h12a4,4,0,0,0,0-8ZM92,40a12,12,0,0,1,12-12h48a12,12,0,0,1,12,12V52H92ZM196,208a4,4,0,0,1-4,4H64a4,4,0,0,1-4-4V60H196ZM108,104v64a4,4,0,0,1-8,0V104a4,4,0,0,1,8,0Zm48,0v64a4,4,0,0,1-8,0V104a4,4,0,0,1,8,0Z"}))]]),QH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,48H40a12,12,0,0,0,0,24h4V208a20,20,0,0,0,20,20H192a20,20,0,0,0,20-20V72h4a12,12,0,0,0,0-24ZM188,204H68V72H188ZM76,20A12,12,0,0,1,88,8h80a12,12,0,0,1,0,24H88A12,12,0,0,1,76,20Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M200,56V208a8,8,0,0,1-8,8H64a8,8,0,0,1-8-8V56Z",opacity:"0.2"}),r.createElement("path",{d:"M216,48H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM192,208H64V64H192ZM80,24a8,8,0,0,1,8-8h80a8,8,0,0,1,0,16H88A8,8,0,0,1,80,24Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,56a8,8,0,0,1-8,8h-8V208a16,16,0,0,1-16,16H64a16,16,0,0,1-16-16V64H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,56ZM88,32h80a8,8,0,0,0,0-16H88a8,8,0,0,0,0,16Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,50H40a6,6,0,0,0,0,12H50V208a14,14,0,0,0,14,14H192a14,14,0,0,0,14-14V62h10a6,6,0,0,0,0-12ZM194,208a2,2,0,0,1-2,2H64a2,2,0,0,1-2-2V62H194ZM82,24a6,6,0,0,1,6-6h80a6,6,0,0,1,0,12H88A6,6,0,0,1,82,24Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,48H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM192,208H64V64H192ZM80,24a8,8,0,0,1,8-8h80a8,8,0,0,1,0,16H88A8,8,0,0,1,80,24Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,52H40a4,4,0,0,0,0,8H52V208a12,12,0,0,0,12,12H192a12,12,0,0,0,12-12V60h12a4,4,0,0,0,0-8ZM196,208a4,4,0,0,1-4,4H64a4,4,0,0,1-4-4V60H196ZM84,24a4,4,0,0,1,4-4h80a4,4,0,0,1,0,8H88A4,4,0,0,1,84,24Z"}))]]),JH=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M228,144v64a12,12,0,0,1-12,12H40a12,12,0,0,1-12-12V144a12,12,0,0,1,24,0v52H204V144a12,12,0,0,1,24,0ZM96.49,80.49,116,61v83a12,12,0,0,0,24,0V61l19.51,19.52a12,12,0,1,0,17-17l-40-40a12,12,0,0,0-17,0l-40,40a12,12,0,1,0,17,17Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,48V208H40V48A16,16,0,0,1,56,32H200A16,16,0,0,1,216,48Z",opacity:"0.2"}),r.createElement("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0ZM93.66,77.66,120,51.31V144a8,8,0,0,0,16,0V51.31l26.34,26.35a8,8,0,0,0,11.32-11.32l-40-40a8,8,0,0,0-11.32,0l-40,40A8,8,0,0,0,93.66,77.66Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0ZM88,80h32v64a8,8,0,0,0,16,0V80h32a8,8,0,0,0,5.66-13.66l-40-40a8,8,0,0,0-11.32,0l-40,40A8,8,0,0,0,88,80Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M222,144v64a6,6,0,0,1-6,6H40a6,6,0,0,1-6-6V144a6,6,0,0,1,12,0v58H210V144a6,6,0,0,1,12,0ZM92.24,76.24,122,46.49V144a6,6,0,0,0,12,0V46.49l29.76,29.75a6,6,0,0,0,8.48-8.48l-40-40a6,6,0,0,0-8.48,0l-40,40a6,6,0,0,0,8.48,8.48Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0ZM93.66,77.66,120,51.31V144a8,8,0,0,0,16,0V51.31l26.34,26.35a8,8,0,0,0,11.32-11.32l-40-40a8,8,0,0,0-11.32,0l-40,40A8,8,0,0,0,93.66,77.66Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M220,144v64a4,4,0,0,1-4,4H40a4,4,0,0,1-4-4V144a4,4,0,0,1,8,0v60H212V144a4,4,0,0,1,8,0ZM90.83,74.83,124,41.66V144a4,4,0,0,0,8,0V41.66l33.17,33.17a4,4,0,1,0,5.66-5.66l-40-40a4,4,0,0,0-5.66,0l-40,40a4,4,0,0,0,5.66,5.66Z"}))]]),e$=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M234.38,210a123.36,123.36,0,0,0-60.78-53.23,76,76,0,1,0-91.2,0A123.36,123.36,0,0,0,21.62,210a12,12,0,1,0,20.77,12c18.12-31.32,50.12-50,85.61-50s67.49,18.69,85.61,50a12,12,0,0,0,20.77-12ZM76,96a52,52,0,1,1,52,52A52.06,52.06,0,0,1,76,96Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M192,96a64,64,0,1,1-64-64A64,64,0,0,1,192,96Z",opacity:"0.2"}),r.createElement("path",{d:"M230.92,212c-15.23-26.33-38.7-45.21-66.09-54.16a72,72,0,1,0-73.66,0C63.78,166.78,40.31,185.66,25.08,212a8,8,0,1,0,13.85,8c18.84-32.56,52.14-52,89.07-52s70.23,19.44,89.07,52a8,8,0,1,0,13.85-8ZM72,96a56,56,0,1,1,56,56A56.06,56.06,0,0,1,72,96Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M230.93,220a8,8,0,0,1-6.93,4H32a8,8,0,0,1-6.92-12c15.23-26.33,38.7-45.21,66.09-54.16a72,72,0,1,1,73.66,0c27.39,8.95,50.86,27.83,66.09,54.16A8,8,0,0,1,230.93,220Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M229.19,213c-15.81-27.32-40.63-46.49-69.47-54.62a70,70,0,1,0-63.44,0C67.44,166.5,42.62,185.67,26.81,213a6,6,0,1,0,10.38,6C56.4,185.81,90.34,166,128,166s71.6,19.81,90.81,53a6,6,0,1,0,10.38-6ZM70,96a58,58,0,1,1,58,58A58.07,58.07,0,0,1,70,96Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M230.92,212c-15.23-26.33-38.7-45.21-66.09-54.16a72,72,0,1,0-73.66,0C63.78,166.78,40.31,185.66,25.08,212a8,8,0,1,0,13.85,8c18.84-32.56,52.14-52,89.07-52s70.23,19.44,89.07,52a8,8,0,1,0,13.85-8ZM72,96a56,56,0,1,1,56,56A56.06,56.06,0,0,1,72,96Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M227.46,214c-16.52-28.56-43-48.06-73.68-55.09a68,68,0,1,0-51.56,0c-30.64,7-57.16,26.53-73.68,55.09a4,4,0,0,0,6.92,4C55,184.19,89.62,164,128,164s73,20.19,92.54,54a4,4,0,0,0,3.46,2,3.93,3.93,0,0,0,2-.54A4,4,0,0,0,227.46,214ZM68,96a60,60,0,1,1,60,60A60.07,60.07,0,0,1,68,96Z"}))]]),t$=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M240.26,186.1,152.81,34.23h0a28.74,28.74,0,0,0-49.62,0L15.74,186.1a27.45,27.45,0,0,0,0,27.71A28.31,28.31,0,0,0,40.55,228h174.9a28.31,28.31,0,0,0,24.79-14.19A27.45,27.45,0,0,0,240.26,186.1Zm-20.8,15.7a4.46,4.46,0,0,1-4,2.2H40.55a4.46,4.46,0,0,1-4-2.2,3.56,3.56,0,0,1,0-3.73L124,46.2a4.77,4.77,0,0,1,8,0l87.44,151.87A3.56,3.56,0,0,1,219.46,201.8ZM116,136V104a12,12,0,0,1,24,0v32a12,12,0,0,1-24,0Zm28,40a16,16,0,1,1-16-16A16,16,0,0,1,144,176Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M215.46,216H40.54C27.92,216,20,202.79,26.13,192.09L113.59,40.22c6.3-11,22.52-11,28.82,0l87.46,151.87C236,202.79,228.08,216,215.46,216Z",opacity:"0.2"}),r.createElement("path",{d:"M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM222.93,203.8a8.5,8.5,0,0,1-7.48,4.2H40.55a8.5,8.5,0,0,1-7.48-4.2,7.59,7.59,0,0,1,0-7.72L120.52,44.21a8.75,8.75,0,0,1,15,0l87.45,151.87A7.59,7.59,0,0,1,222.93,203.8ZM120,144V104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,180Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM120,104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm8,88a12,12,0,1,1,12-12A12,12,0,0,1,128,192Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M235.07,189.09,147.61,37.22h0a22.75,22.75,0,0,0-39.22,0L20.93,189.09a21.53,21.53,0,0,0,0,21.72A22.35,22.35,0,0,0,40.55,222h174.9a22.35,22.35,0,0,0,19.6-11.19A21.53,21.53,0,0,0,235.07,189.09ZM224.66,204.8a10.46,10.46,0,0,1-9.21,5.2H40.55a10.46,10.46,0,0,1-9.21-5.2,9.51,9.51,0,0,1,0-9.72L118.79,43.21a10.75,10.75,0,0,1,18.42,0l87.46,151.87A9.51,9.51,0,0,1,224.66,204.8ZM122,144V104a6,6,0,0,1,12,0v40a6,6,0,0,1-12,0Zm16,36a10,10,0,1,1-10-10A10,10,0,0,1,138,180Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM222.93,203.8a8.5,8.5,0,0,1-7.48,4.2H40.55a8.5,8.5,0,0,1-7.48-4.2,7.59,7.59,0,0,1,0-7.72L120.52,44.21a8.75,8.75,0,0,1,15,0l87.45,151.87A7.59,7.59,0,0,1,222.93,203.8ZM120,144V104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,180Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M233.34,190.09,145.88,38.22h0a20.75,20.75,0,0,0-35.76,0L22.66,190.09a19.52,19.52,0,0,0,0,19.71A20.36,20.36,0,0,0,40.54,220H215.46a20.36,20.36,0,0,0,17.86-10.2A19.52,19.52,0,0,0,233.34,190.09ZM226.4,205.8a12.47,12.47,0,0,1-10.94,6.2H40.54a12.47,12.47,0,0,1-10.94-6.2,11.45,11.45,0,0,1,0-11.72L117.05,42.21a12.76,12.76,0,0,1,21.9,0L226.4,194.08A11.45,11.45,0,0,1,226.4,205.8ZM124,144V104a4,4,0,0,1,8,0v40a4,4,0,0,1-8,0Zm12,36a8,8,0,1,1-8-8A8,8,0,0,1,136,180Z"}))]]),n$=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,192a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,212Zm-12-80V80a12,12,0,0,1,24,0v52a12,12,0,0,1-24,0Zm28,40a16,16,0,1,1-16-16A16,16,0,0,1,144,172Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),r.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm-8-80V80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,172Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm-8,56a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm8,104a12,12,0,1,1,12-12A12,12,0,0,1,128,184Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218Zm-6-82V80a6,6,0,0,1,12,0v56a6,6,0,0,1-12,0Zm16,36a10,10,0,1,1-10-10A10,10,0,0,1,138,172Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm-8-80V80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,172Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220Zm-4-84V80a4,4,0,0,1,8,0v56a4,4,0,0,1-8,0Zm12,36a8,8,0,1,1-8-8A8,8,0,0,1,136,172Z"}))]]),r$=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208.49,191.51a12,12,0,0,1-17,17L128,145,64.49,208.49a12,12,0,0,1-17-17L111,128,47.51,64.49a12,12,0,0,1,17-17L128,111l63.51-63.52a12,12,0,0,1,17,17L145,128Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z",opacity:"0.2"}),r.createElement("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM181.66,170.34a8,8,0,0,1-11.32,11.32L128,139.31,85.66,181.66a8,8,0,0,1-11.32-11.32L116.69,128,74.34,85.66A8,8,0,0,1,85.66,74.34L128,116.69l42.34-42.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M204.24,195.76a6,6,0,1,1-8.48,8.48L128,136.49,60.24,204.24a6,6,0,0,1-8.48-8.48L119.51,128,51.76,60.24a6,6,0,0,1,8.48-8.48L128,119.51l67.76-67.75a6,6,0,0,1,8.48,8.48L136.49,128Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M202.83,197.17a4,4,0,0,1-5.66,5.66L128,133.66,58.83,202.83a4,4,0,0,1-5.66-5.66L122.34,128,53.17,58.83a4,4,0,0,1,5.66-5.66L128,122.34l69.17-69.17a4,4,0,1,1,5.66,5.66L133.66,128Z"}))]]),a$=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M168.49,104.49,145,128l23.52,23.51a12,12,0,0,1-17,17L128,145l-23.51,23.52a12,12,0,0,1-17-17L111,128,87.51,104.49a12,12,0,0,1,17-17L128,111l23.51-23.52a12,12,0,0,1,17,17ZM236,128A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),r.createElement("path",{d:"M165.66,101.66,139.31,128l26.35,26.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm37.66,130.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M164.24,100.24,136.48,128l27.76,27.76a6,6,0,1,1-8.48,8.48L128,136.48l-27.76,27.76a6,6,0,0,1-8.48-8.48L119.52,128,91.76,100.24a6,6,0,0,1,8.48-8.48L128,119.52l27.76-27.76a6,6,0,0,1,8.48,8.48ZM230,128A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M165.66,101.66,139.31,128l26.35,26.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M162.83,98.83,133.66,128l29.17,29.17a4,4,0,0,1-5.66,5.66L128,133.66,98.83,162.83a4,4,0,0,1-5.66-5.66L122.34,128,93.17,98.83a4,4,0,0,1,5.66-5.66L128,122.34l29.17-29.17a4,4,0,1,1,5.66,5.66ZM228,128A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"}))]]),s$=r.createContext({color:"currentColor",size:"1em",weight:"regular",mirrored:!1}),ze=r.forwardRef((e,t)=>{const{alt:n,color:s,size:l,weight:c,mirrored:u,children:f,weights:h,...m}=e,{color:p="currentColor",size:v,weight:y="regular",mirrored:x=!1,...b}=r.useContext(s$);return r.createElement("svg",{ref:t,xmlns:"http://www.w3.org/2000/svg",width:l??v,height:l??v,fill:s??p,viewBox:"0 0 256 256",transform:u||x?"scale(-1, 1)":void 0,...b,...m},!!n&&r.createElement("title",null,n),f,h.get(c??y))});ze.displayName="IconBase";const R5=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:YT}));R5.displayName="ApertureIcon";const o$=R5,P5=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:qT}));P5.displayName="ArchiveIcon";const l$=P5,L5=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:XT}));L5.displayName="ArrowCircleUpIcon";const T5=L5,H5=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:QT}));H5.displayName="ArrowClockwiseIcon";const gp=H5,$5=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:JT}));$5.displayName="ArrowCounterClockwiseIcon";const Fh=$5,D5=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:eH}));D5.displayName="ArrowLeftIcon";const vp=D5,F5=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:tH}));F5.displayName="ArrowLineUpIcon";const i$=F5,I5=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:nH}));I5.displayName="ArrowRightIcon";const Qc=I5,O5=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:rH}));O5.displayName="ArrowSquareOutIcon";const fd=O5,_5=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:aH}));_5.displayName="ArrowUpIcon";const c$=_5,Z5=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:sH}));Z5.displayName="ArrowsClockwiseIcon";const f1=Z5,V5=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:oH}));V5.displayName="ArrowsDownUpIcon";const u$=V5,z5=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:lH}));z5.displayName="ArrowsLeftRightIcon";const d$=z5,B5=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:iH}));B5.displayName="BellIcon";const Hg=B5,U5=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:cH}));U5.displayName="BookmarkSimpleIcon";const hd=U5,W5=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:uH}));W5.displayName="BroomIcon";const f$=W5,G5=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:dH}));G5.displayName="CaretDownIcon";const ki=G5,K5=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:fH}));K5.displayName="CaretLeftIcon";const Fi=K5,Y5=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:hH}));Y5.displayName="CaretRightIcon";const md=Y5,q5=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:mH}));q5.displayName="CheckIcon";const la=q5,X5=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:pH}));X5.displayName="CheckCircleIcon";const h$=X5,Q5=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:gH}));Q5.displayName="CircleIcon";const m$=Q5,J5=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:vH}));J5.displayName="CopyIcon";const $g=J5,ew=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:yH}));ew.displayName="CopySimpleIcon";const p$=ew,tw=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:xH}));tw.displayName="DatabaseIcon";const g$=tw,nw=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:wH}));nw.displayName="DotsThreeIcon";const rw=nw,aw=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:bH}));aw.displayName="DownloadSimpleIcon";const sw=aw,ow=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:EH}));ow.displayName="EyeIcon";const v$=ow,lw=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:CH}));lw.displayName="FilmSlateIcon";const yp=lw,iw=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:SH}));iw.displayName="FolderSimpleIcon";const y$=iw,cw=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:jH}));cw.displayName="FrameCornersIcon";const x$=cw,uw=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:kH}));uw.displayName="GearSixIcon";const w$=uw,dw=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:AH}));dw.displayName="GiftIcon";const b$=dw,fw=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:NH}));fw.displayName="HouseIcon";const E$=fw,hw=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:MH}));hw.displayName="IdentificationBadgeIcon";const xp=hw,mw=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:RH}));mw.displayName="ImageSquareIcon";const ha=mw,pw=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:PH}));pw.displayName="InfoIcon";const wp=pw,gw=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:LH}));gw.displayName="KeyIcon";const vw=gw,yw=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:TH}));yw.displayName="LightningIcon";const N1=yw,xw=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:HH}));xw.displayName="MagnifyingGlassIcon";const Jc=xw,ww=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:$H}));ww.displayName="MountainsIcon";const C$=ww,bw=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:DH}));bw.displayName="PackageIcon";const bp=bw,Ew=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:FH}));Ew.displayName="PaintBrushBroadIcon";const S$=Ew,Cw=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:IH}));Cw.displayName="PaletteIcon";const j$=Cw,Sw=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:OH}));Sw.displayName="PencilLineIcon";const k$=Sw,jw=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:_H}));jw.displayName="PiggyBankIcon";const A$=jw,kw=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:ZH}));kw.displayName="PlusIcon";const Wn=kw,Aw=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:VH}));Aw.displayName="PlusCircleIcon";const N$=Aw,Nw=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:zH}));Nw.displayName="SidebarSimpleIcon";const M$=Nw,Mw=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:BH}));Mw.displayName="SignInIcon";const R$=Mw,Rw=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:UH}));Rw.displayName="SlidersHorizontalIcon";const Pw=Rw,Lw=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:WH}));Lw.displayName="SparkleIcon";const P$=Lw,Tw=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:GH}));Tw.displayName="StackIcon";const Hw=Tw,$w=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:KH}));$w.displayName="StarIcon";const Ih=$w,Dw=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:YH}));Dw.displayName="StorefrontIcon";const L$=Dw,Fw=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:qH}));Fw.displayName="SunIcon";const T$=Fw,Iw=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:XH}));Iw.displayName="TrashIcon";const Ep=Iw,Ow=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:QH}));Ow.displayName="TrashSimpleIcon";const pd=Ow,_w=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:JH}));_w.displayName="UploadSimpleIcon";const Zw=_w,Vw=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:e$}));Vw.displayName="UserIcon";const H$=Vw,zw=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:t$}));zw.displayName="WarningIcon";const Bw=zw,Uw=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:n$}));Uw.displayName="WarningCircleIcon";const Su=Uw,Ww=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:r$}));Ww.displayName="XIcon";const Mn=Ww,Gw=r.forwardRef((e,t)=>r.createElement(ze,{ref:t,...e,weights:a$}));Gw.displayName="XCircleIcon";const Kw=Gw,Yw=r.createContext({push:()=>{}}),rr=()=>r.useContext(Yw),Dg=4;function $$({children:e}){const[t,n]=r.useState([]),s=r.useRef(1),l=r.useCallback(u=>n(f=>f.filter(h=>h.id!==u)),[]),c=r.useCallback(u=>{const f=s.current++;n(h=>{const m=[...h,{...u,id:f}];if(m.length<=Dg)return m;const p=[...m];for(;p.length>Dg;){const v=p.findIndex(y=>{var x;return y.kind!=="error"&&!y.action&&!((x=y.actions)!=null&&x.length)});p.splice(v===-1?0:v,1)}return p}),window.setTimeout(()=>l(f),u.kind==="error"?9e3:5e3)},[l]);return o.jsxs(Yw.Provider,{value:{push:c},children:[e,o.jsx("div",{className:"sc-toasts",role:"status","aria-live":"polite",children:t.map(u=>{var f;return o.jsxs("div",{className:"sc-toast",children:[u.kind==="success"?o.jsx(h$,{className:"sc-toast-ok",size:17,weight:"fill"}):o.jsx(Su,{className:"sc-toast-err",size:17,weight:"fill"}),o.jsxs("div",{style:{minWidth:0,flex:1},children:[o.jsx("b",{children:u.title}),u.detail&&o.jsx("small",{children:u.detail.slice(0,140)}),((f=u.actions)!=null&&f.length?u.actions:u.action?[u.action]:[]).slice(0,2).map(h=>o.jsx("button",{type:"button",className:"sc-toast-act",onClick:()=>{h.onClick(),l(u.id)},children:h.label},h.label))]}),o.jsx("button",{type:"button",className:"sc-toast-x",onClick:()=>l(u.id),"aria-label":"Dismiss",children:o.jsx(Mn,{size:13})})]},u.id)})})]})}async function $e(e,t,n){const s=await fetch(t,{method:e,headers:n!==void 0?{"content-type":"application/json"}:void 0,body:n!==void 0?JSON.stringify(n):void 0});if(!s.ok){let l=`HTTP ${s.status}`;try{const c=await s.json();l=c.error??l,c.details&&(l+=`: ${c.details.join("; ")}`)}catch{}throw Object.assign(new Error(l),{status:s.status,method:e,url:t})}return s.json()}const D$=(e,t,n)=>$e("DELETE",`/api/brands/${e}/${t}/${n}`),F$=(e,t)=>D$(e,"products",t);async function qw(e,t,n={}){const s=new FormData;n.role&&s.append("role",n.role),n.background&&s.append("background",n.background),s.append("file",t);const l=await fetch(`/api/brands/${e}/logos`,{method:"POST",body:s});if(!l.ok)throw new Error((await l.json().catch(()=>({}))).error??`HTTP ${l.status}`);return l.json()}const I$=e=>`/api/brands/${e}/export`;async function O$(e,t,n,s){const l=new FormData;l.append("file",n);const c=await fetch(`/api/brands/${e}/products/${t}/shots`,{method:"POST",body:l});if(!c.ok)throw new Error((await c.json().catch(()=>({}))).error??`HTTP ${c.status}`);return c.json()}async function Xw(e){const t=new FormData;t.append("file",e);const n=await fetch("/api/images",{method:"POST",body:t});if(!n.ok)throw new Error((await n.json().catch(()=>({}))).error??`HTTP ${n.status}`);return(await n.json()).hash}function _$(e,t){try{fetch(`/api/brands/${e}`,{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify({brand:t}),keepalive:!0})}catch{}}const Pt=e=>`/api/images/${e}`,Un=e=>e!=null&&e.startsWith("asset:")?Pt(e.slice(6)):null;async function Z$(e,t,n){const s=await fetch("/api/export",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({imageHash:e,presets:t,baseName:n})});if(!s.ok)throw new Error(`export failed: HTTP ${s.status}`);const l=await s.blob(),c=document.createElement("a");c.href=URL.createObjectURL(l),c.download=`${n||"scenri-export"}.zip`,c.click(),URL.revokeObjectURL(c.href)}function Qw(e){return e.every(t=>t.kind==="root")}let Jw=new Map;function V$(e){const t=new Map;for(const n of e)for(const s of n.legacyNames??[])s!==n.name&&t.set(s,n.name);Jw=t}function nn(e){var s;const t=(s=/^\[([^\]]+)\]/.exec(e.prompt))==null?void 0:s[1];return t?Jw.get(t)??t:e.prompt.startsWith("Remove all overlaid marketing text")||e.prompt.startsWith("Remove ALL text")?"Text lift":e.prompt.trim().split(/\s+/).slice(0,6).join(" ")||(e.kind==="edit"?"Edit":"Generation")}const ke={brands:()=>$e("GET","/api/brands"),createBrand:e=>$e("POST","/api/brands",{brand:e}),brandFromUrl:e=>$e("POST","/api/brands/from-url",{url:e}),updateBrand:(e,t)=>$e("PUT",`/api/brands/${e}`,{brand:t}),deleteBrand:e=>$e("DELETE",`/api/brands/${e}`),brandRules:e=>$e("GET",`/api/brands/${e}/directives`),refreshBrandFromUrl:(e,t)=>$e("POST",`/api/brands/${e}/refresh-from-url`,t?{url:t}:{}),updateLogo:(e,t,n)=>$e("PATCH",`/api/brands/${e}/logos/${t}`,n),deleteLogo:(e,t)=>$e("DELETE",`/api/brands/${e}/logos/${t}`),projects:e=>$e("GET",`/api/projects?brandId=${encodeURIComponent(e)}`),createProject:(e,t)=>$e("POST","/api/projects",{brandId:e,name:t}),tree:e=>$e("GET",`/api/projects/${e}/tree`),activity:e=>$e("GET",`/api/brands/${e}/activity`),workspace:e=>$e("GET",`/api/brands/${e}/workspace`),sets:e=>$e("GET",`/api/brands/${e}/sets`),createSet:(e,t)=>$e("POST",`/api/brands/${e}/sets`,{name:t}),renameSet:(e,t)=>$e("PATCH",`/api/sets/${e}`,{name:t}),deleteSet:e=>$e("DELETE",`/api/sets/${e}`),addToSet:(e,t)=>$e("POST",`/api/sets/${e}/nodes`,{nodeIds:t}),removeFromSet:(e,t)=>$e("DELETE",`/api/sets/${e}/nodes/${t}`),engines:()=>$e("GET","/api/engines"),codexStatus:()=>$e("GET","/api/engines/codex/status"),installCodex:()=>$e("POST","/api/engines/codex/install"),loginCodex:()=>$e("POST","/api/engines/codex/login"),setCap:(e,t)=>$e("PUT","/api/caps",{engineId:e,capUsd:t}),addNode:e=>$e("POST","/api/nodes",e),cancelNode:e=>$e("POST",`/api/nodes/${e}/cancel`),scenes:()=>$e("GET","/api/scenes"),presenters:()=>$e("GET","/api/presenters"),presenterFrames:e=>$e("GET",`/api/presenter-previews/${e}`),demoProducts:()=>$e("GET","/api/demo-products"),demoProductFrames:e=>$e("GET",`/api/demo-product-previews/${e}`),showcase:()=>$e("GET","/api/showcase"),exportPresets:()=>$e("GET","/api/export/presets"),previewBrief:(e,t,n,s)=>$e("POST","/api/brief/preview",{brief:e,engineId:t,brandId:n,...s?{parentId:s}:{}}),keep:(e,t)=>$e("POST",`/api/nodes/${e}/keep`,{kept:t}),archiveNode:(e,t)=>$e("POST",`/api/nodes/${e}/archive`,{archived:t}),deleteNode:e=>$e("DELETE",`/api/nodes/${e}`),deleteNodesBatch:e=>$e("POST","/api/nodes/delete-batch",{nodeIds:e}),diff:(e,t)=>$e("POST","/api/diff",{imageA:e,imageB:t}),settings:()=>$e("GET","/api/settings"),saveSettings:e=>$e("PUT","/api/settings",e),costs:()=>$e("GET","/api/costs/summary"),home:()=>$e("GET","/api/home"),reveal:()=>$e("POST","/api/system/reveal"),version:()=>$e("GET","/api/version"),updateStatus:()=>$e("GET","/api/update/status"),updateCheck:()=>$e("POST","/api/update/check"),updateApply:()=>$e("POST","/api/update/apply"),updateRestart:()=>$e("POST","/api/update/restart"),releaseNotes:()=>$e("GET","/api/release/notes"),releaseSeen:e=>$e("POST","/api/release/seen",{version:e}),sceneFrames:e=>$e("GET",`/api/scene-previews/${e}`),deleteData:e=>$e("DELETE",`/api/data?scope=${e}`),productsLibrary:e=>$e("GET",`/api/brands/${e}/products-library`),catalogImport:(e,t)=>$e("POST",`/api/brands/${e}/catalog/import`,{url:t}),catalogJob:(e,t)=>$e("GET",`/api/brands/${e}/catalog/jobs/${t}`),catalogJobs:e=>$e("GET",`/api/brands/${e}/catalog/jobs`),cancelCatalogJob:(e,t)=>$e("POST",`/api/brands/${e}/catalog/jobs/${t}/cancel`),deleteCatalogProduct:(e,t)=>$e("DELETE",`/api/brands/${e}/catalog/products/${t}`),updateProduct:(e,t,n)=>$e("PATCH",`/api/brands/${e}/products/${t}`,n),updateCatalogProduct:(e,t,n)=>$e("PATCH",`/api/brands/${e}/catalog/products/${t}`,n),setProductShots:(e,t,n)=>$e("PUT",`/api/brands/${e}/products/${t}/shots`,{files:n}),assetBuildCapabilities:()=>$e("GET","/api/asset-builds/capabilities"),startAssetBuild:(e,t)=>$e("POST",`/api/brands/${e}/asset-builds`,t),assetBuild:(e,t)=>$e("GET",`/api/brands/${e}/asset-builds/${t}`),assetBuilds:e=>$e("GET",`/api/brands/${e}/asset-builds`),cancelAssetBuild:(e,t)=>$e("POST",`/api/brands/${e}/asset-builds/${t}/cancel`),deleteAssetBuild:(e,t)=>$e("DELETE",`/api/brands/${e}/asset-builds/${t}`),createProduct:(e,t)=>$e("POST",`/api/brands/${e}/products`,t),createPresenter:(e,t)=>$e("POST",`/api/brands/${e}/presenters`,t),updatePresenter:(e,t,n)=>$e("PATCH",`/api/brands/${e}/presenters/${t}`,n),deletePresenter:(e,t)=>$e("DELETE",`/api/brands/${e}/presenters/${t}`),createScene:(e,t)=>$e("POST",`/api/brands/${e}/scenes`,t),updateScene:(e,t,n)=>$e("PATCH",`/api/brands/${e}/scenes/${t}`,n),deleteScene:(e,t)=>$e("DELETE",`/api/brands/${e}/scenes/${t}`),generateScenePreview:(e,t)=>$e("POST",`/api/brands/${e}/scenes/${t}/preview`),rereadScene:(e,t,n)=>$e("POST",`/api/brands/${e}/scenes/${t}/reread`,{correction:n})},Ye={root:"/",setup:"/setup",brand:"/:brandSlug",kit:"/:brandSlug/kit",products:"/:brandSlug/products",product:"/:brandSlug/products/:productId",scenes:"/:brandSlug/scenes",scene:"/:brandSlug/scenes/:sceneId",presenters:"/:brandSlug/presenters",presenter:"/:brandSlug/presenters/:presenterId",hub:"/:brandSlug/create",hubShot:"/:brandSlug/create/shots/:shotId",set:"/:brandSlug/sets/:setSlug",setShot:"/:brandSlug/sets/:setSlug/shots/:shotId",legacy:"/b/*",notFound:"*"},ho=e=>ca(Ye.brand,{brandSlug:e.slug}),z$=e=>ca(Ye.kit,{brandSlug:e.slug}),h1=e=>ca(Ye.products,{brandSlug:e.slug}),sa=(e,t)=>ca(Ye.product,{brandSlug:e.slug,productId:t}),Hc=e=>ca(Ye.scenes,{brandSlug:e.slug}),ia=(e,t)=>ca(Ye.scene,{brandSlug:e.slug,sceneId:t}),$c=e=>ca(Ye.presenters,{brandSlug:e.slug}),Ka=(e,t)=>ca(Ye.presenter,{brandSlug:e.slug,presenterId:t}),hr=e=>ca(Ye.hub,{brandSlug:e.slug}),kc=(e,t)=>ca(Ye.set,{brandSlug:e.slug,setSlug:t.slug}),gd=(e,t,n)=>t?ca(Ye.setShot,{brandSlug:e.slug,setSlug:t.slug,shotId:n}):ca(Ye.hubShot,{brandSlug:e.slug,shotId:n});function B$(e,t=""){const[,,n,...s]=e.split("/");if(!n)return Ye.root;const l=`/${n}${U$(s)}`;return t?l+t:l}function U$(e){const[t,n,s,l]=e;return t==="create"?s&&n==="n"?`/create/shots/${s}`:"/create":t==="s"&&n?l&&s==="n"?`/sets/${n}/shots/${l}`:`/sets/${n}`:t==="brand"?"/kit":t==="p"?"/create":t==="n"&&n?`/create/shots/${n}`:e.length?`/${e.join("/")}`:""}const D2="Scenri",Fg=" - ",Ig=40,W$=[["whatsnew","What's new"],["setup","Providers"],["settings","Settings"]],G$=[[Ye.setup,"Set up",!1],[Ye.hubShot,"Shot",!1],[Ye.setShot,"Shot",!1],[Ye.hub,"Create",!1],[Ye.set,"Create",!0],[Ye.kit,"Brand kit",!1],[Ye.product,"Products",!0],[Ye.products,"Products",!1],[Ye.scene,"Scenes",!0],[Ye.scenes,"Scenes",!1],[Ye.presenter,"Presenters",!0],[Ye.presenters,"Presenters",!1],[Ye.brand,"Home",!1]];function K$(e){if(!e)return null;const t=e.replace(/[\u0000-\u001F\u007F-\u009F]/g," ").replace(/\s+/g," ").trim();return t?t.length>Ig?`${t.slice(0,Ig-1).trimEnd()}…`:t:null}function Y$(e,t="",n=null){const s=new URLSearchParams(t);for(const[l,c]of W$)if(s.has(l))return c+Fg+D2;for(const[l,c,u]of G$)if(wi(l,e))return((u?K$(n):null)??c)+Fg+D2;return D2}const e9=r.createContext(null);function q$(){const{pathname:e,search:t}=rn(),[n,s]=r.useState(null);return r.useEffect(()=>{document.title=Y$(e,t,n)},[e,t,n]),s}function vd(e){const t=r.useContext(e9);r.useEffect(()=>{if(t)return t(e??null),()=>t(null)},[t,e])}const X$={scenes:[],collections:[],verticals:[],loaded:!1,error:!1};function Q$(){const[e,t]=r.useState(X$),[n,s]=r.useState(0);r.useEffect(()=>{let c=!0;return ke.scenes().then(u=>{V$(u.scenes),c&&t({scenes:u.scenes,collections:u.collections,verticals:u.verticals,loaded:!0,error:!1})}).catch(()=>{c&&t(u=>({...u,loaded:!0,error:!0}))}),()=>{c=!1}},[n]);const l=r.useCallback(()=>{t(c=>({...c,loaded:!1,error:!1})),s(c=>c+1)},[]);return{...e,refetch:l}}const J$={presenters:[],categories:[],styles:[],loaded:!1,error:!1};function eD(){const[e,t]=r.useState(J$),[n,s]=r.useState(0);r.useEffect(()=>{let c=!0;return ke.presenters().then(u=>{c&&t({presenters:u.presenters,categories:u.categories,styles:u.styles,loaded:!0,error:!1})}).catch(()=>{c&&t(u=>({...u,loaded:!0,error:!0}))}),()=>{c=!1}},[n]);const l=r.useCallback(()=>{t(c=>({...c,loaded:!1,error:!1})),s(c=>c+1)},[]);return{...e,refetch:l}}const tD={demoProducts:[],categories:[],loaded:!1,error:!1};function nD(){const[e,t]=r.useState(tD),[n,s]=r.useState(0);r.useEffect(()=>{let c=!0;return ke.demoProducts().then(u=>{c&&t({demoProducts:u.demoProducts,categories:u.categories,loaded:!0,error:!1})}).catch(()=>{c&&t(u=>({...u,loaded:!0,error:!0}))}),()=>{c=!1}},[n]);const l=r.useCallback(()=>{t(c=>({...c,loaded:!1,error:!1})),s(c=>c+1)},[]);return{...e,refetch:l}}const rD={showcase:[],categories:[],loaded:!1,error:!1};function aD(){const[e,t]=r.useState(rD),[n,s]=r.useState(0);r.useEffect(()=>{let c=!0;return ke.showcase().then(u=>{c&&t({showcase:u.showcase,categories:u.categories,loaded:!0,error:!1})}).catch(()=>{c&&t(u=>({...u,loaded:!0,error:!0}))}),()=>{c=!1}},[n]);const l=r.useCallback(()=>{t(c=>({...c,loaded:!1,error:!1})),s(c=>c+1)},[]);return{...e,refetch:l}}function yd(){const{open:e}=Ps("settings");return r.useCallback((t="brand")=>e(t),[e])}const Og="codex-cli";function xd(){const{open:e}=Ps("setup");return r.useCallback((t=Og)=>{e(typeof t=="string"?t:Og)},[e])}function ju(e){var t;e.preventDefault(),(t=e.currentTarget)==null||t.focus({preventScroll:!0})}function Cp({failure:e,density:t,onRetry:n,dismiss:s}){const l=yd(),c=xd(),{remedy:u}=e,f=t==="tile",h=()=>{u&&(u.opens==="setup"?c("codex-cli"):l(u.opens))},m=n&&e.retryable,p=x=>f?`sc-s${x?" sc-s-primary":""}`:`sc-btn ${x?"sc-btn-primary":"sc-btn-ghost"}`,v=!f&&!!e.fix,y=!f&&!!e.raw;return o.jsxs("div",{className:"sc-fail","data-density":t,"data-kind":e.kind,"data-long":e.title.length>90||void 0,role:"alert",children:[o.jsx("span",{className:"sc-fail-ic","aria-hidden":!0,children:o.jsx(Su,{size:f?15:21,weight:"fill"})}),o.jsxs("div",{className:"sc-fail-txt",children:[o.jsx("b",{children:e.title}),v&&o.jsx("small",{children:e.fix})]}),(u||m||s)&&o.jsxs("div",{className:"sc-fail-acts",children:[u&&o.jsx("button",{type:"button",className:p(!0),onClick:h,children:u.label}),m&&o.jsxs("button",{type:"button",className:p(!u),onClick:n,children:[o.jsx(Fh,{size:f?12:14})," Try again"]}),s&&o.jsx("button",{type:"button",className:"sc-fail-alt",onClick:s.onClick,children:s.label})]}),y&&o.jsxs("details",{className:"sc-fail-raw",children:[o.jsx("summary",{children:"Details"}),o.jsx("pre",{children:e.raw})]})]})}function Sp({failure:e,action:t,tone:n="error"}){return o.jsx("div",{className:"sc-failrow","data-tone":n,role:n==="error"?"alert":"status",children:o.jsxs("div",{className:"sc-banner","data-tone":n==="error"?"error":void 0,children:[o.jsx("span",{className:"sc-banner-ic",children:n==="error"?o.jsx(Su,{size:16,weight:"fill"}):o.jsx(wp,{size:16,weight:"fill"})}),o.jsxs("span",{className:"sc-banner-txt",children:[o.jsx("b",{children:e.title}),e.fix&&o.jsx("small",{children:e.fix})]}),t]})})}const t9="the engine",sD=[{re:/codex.*(not logged in|login required|\b401\b|unauthorized|token.*expired)/i,kind:"auth",title:()=>"Codex is signed out on this machine.",fix:"Sign in with your ChatGPT account, then run this again.",remedy:{label:"Sign in",opens:"setup"},retryable:!1},{re:/HTTP 401\b|missing authentication|no auth credentials|invalid api key|unauthorized/i,kind:"auth",title:e=>`${za(e)} did not accept your API key.`,fix:"Add or replace the key, then run this again.",remedy:{label:"Add key",opens:"engines"},retryable:!1},{re:/HTTP 403\b|forbidden/i,kind:"auth",title:e=>`${za(e)} refused this key.`,fix:"It may not cover the model this shot asked for.",remedy:{label:"Check key",opens:"engines"},retryable:!1},{re:/spend cap for .*would exceed it|spend cap for/i,kind:"budget",title:e=>`This would go past your monthly cap for ${e}.`,fix:"Raise the cap, or wait for the month to roll over.",remedy:{label:"Open budget",opens:"budget"},retryable:!1},{re:/HTTP 402\b|insufficient (credit|funds|balance)|out of credit|billing|payment required/i,kind:"credit",title:e=>`${za(e)} is out of credit.`,fix:"Top up with the provider, then run this again.",remedy:{label:"Open engines",opens:"engines"},retryable:!1},{re:/HTTP 429\b|rate.?limit|too many requests/i,kind:"rate",title:e=>`${za(e)} is rate limiting this key.`,fix:"Give it a minute, then try again.",retryable:!0},{re:/moderation|content policy|safety system|flagged|violat(es|ion)|blocked by/i,kind:"policy",title:e=>`${za(e)} declined this brief.`,fix:"Reword what you asked for and run it again.",retryable:!1},{re:/cannot carry enough reference images/i,kind:"references",title:()=>"",remedy:{label:"Choose engine",opens:"engines"},retryable:!1},{re:/cannot produce the requested aspect ratio|engine returned \d+x\d+ for a \d+x\d+ request/i,kind:"format",title:e=>`${za(e)} cannot make this shape.`,fix:"Pick another format, or an engine that can.",remedy:{label:"Choose engine",opens:"engines"},retryable:!1},{re:/HTTP 404\b|model not found|no endpoints found|no allowed providers/i,kind:"model",title:e=>`${za(e)} has no model for this shot.`,fix:"Pick another engine in Settings.",remedy:{label:"Choose engine",opens:"engines"},retryable:!1},{re:/failed to spawn codex|codex.*enoent|command not found/i,kind:"setup",title:()=>"Codex is not installed on this machine.",fix:"Run setup once and this works from then on.",remedy:{label:"Set up Codex",opens:"setup"},retryable:!1},{re:/code-mode host/i,kind:"setup",title:()=>"Codex could not start its tool host.",fix:"A Windows setting is blocking it. Set SafeDllSearchMode to 1 and restart Windows.",retryable:!1},{re:/could not verify codex/i,kind:"setup",title:()=>"Scenri could not verify Codex.",fix:"Open setup and check again. If Codex was just installed, restart Scenri.",remedy:{label:"Check Codex",opens:"setup"},retryable:!0},{re:/codex cli .* is too old|Scenri needs \d+\.\d+\.\d+ or newer/i,kind:"setup",title:()=>"Codex CLI needs an update.",fix:"Update Codex, then run this again.",remedy:{label:"Update Codex",opens:"setup"},retryable:!1},{re:/\brun aborted\b/i,kind:"cancelled",title:()=>"You stopped this shot.",fix:"The brief is kept. Run it again whenever.",retryable:!0},{re:/produced no output for \d+s/i,kind:"timeout",title:()=>"Codex never started answering.",fix:"Try again. If it keeps happening, run Codex once in a terminal to check it still works.",retryable:!0},{re:/Codex CLI timed out after/i,kind:"timeout",title:()=>"Codex ran out of time on this shot.",fix:"Try again. Fewer variants or fewer reference photos finish faster.",retryable:!0},{re:/generation timed out after \d+ minutes?/i,kind:"timeout",title:()=>"This run hit the overall time limit.",fix:"Try again, with fewer variants if it repeats.",retryable:!0},{re:/timed out|ETIMEDOUT/i,kind:"timeout",title:e=>`${za(e)} took too long to answer.`,fix:"Try again.",retryable:!0},{re:/ENOTFOUND|ECONNREFUSED|ECONNRESET|EAI_AGAIN|fetch failed|network error/i,kind:"network",title:e=>`Could not reach ${e}.`,fix:"Check your connection, then try again.",retryable:!0},{re:/interrupted\W+server restarted/i,kind:"restarted",title:()=>"Scenri restarted while this was rendering.",fix:"The shot was lost, not the brief. Run it again.",retryable:!0},{re:/HTTP 5\d\d\b|internal server error|bad gateway|service unavailable|overloaded|upstream/i,kind:"server",title:e=>`${za(e)} had a problem on its end.`,fix:"Nothing wrong with your brief. Try again shortly.",retryable:!0},{re:/produced no images|returned no image|no images returned|finished but produced no/i,kind:"empty",title:e=>`${za(e)} finished without making a picture.`,fix:"Run it again. This usually clears on a second try.",retryable:!0}];function za(e){return e===t9?"The engine":e}function bo(e,t){const n=(e??"").trim(),s=(t??"").replace(/\s*\(BYOK\)\s*$/i,"").trim()||t9;if(!n)return{kind:"unknown",title:"This shot did not finish.",raw:"",retryable:!0};for(const l of sD){if(!l.re.test(n))continue;const c=l.title(s)||oD(n);return{kind:l.kind,title:c,fix:l.fix,raw:n,remedy:l.remedy,retryable:l.retryable}}return{kind:"unknown",title:"This shot did not finish.",raw:n,retryable:!0}}function n9(){return{kind:"cancelled",title:"You stopped this shot.",fix:"The brief is kept. Run it again whenever.",raw:"",retryable:!0}}function tn(e,t,n){const s=e instanceof Error?e.message:typeof e=="string"?e:String((e==null?void 0:e.message)??e),l=bo(s,n),c=l.kind==="unknown"?l.raw||void 0:[l.title,l.fix].filter(Boolean).join(" ");return{kind:"error",title:t,detail:c}}function oD(e){const t=e.trim();if(!t)return t;const n=t[0].toUpperCase()+t.slice(1);return/[.!?]$/.test(n)?n:`${n}.`}function r9(e){return{get(t){try{return e().getItem(t)}catch{return null}},set(t,n){try{e().setItem(t,n)}catch{}},del(t){try{e().removeItem(t)}catch{}}}}const Ii=r9(()=>localStorage),ku=r9(()=>sessionStorage),a9=720*60*60*1e3;function s9(e){return e?e.phase==="ready"?e.blockReason!=="dev"&&e.blockReason!=="unsupervised"&&e.blockReason!=="launcher-too-old":e.canApply:!1}function lD(e){return!!(e!=null&&e.available)&&e.blockReason!=="dev"}function iD(e){return e.phase==="staging"?{kind:"downloading"}:e.phase==="ready"?{kind:"ready",version:e.stagedVersion??e.latest??e.current}:e.phase==="error"&&e.available?{kind:"stage-error"}:{kind:"announce",oneClick:s9(e)}}const cD=1800*1e3,_g=300*1e3,F2=e=>new Promise(t=>setTimeout(t,e)),o9="scenri:update-dismissed",uD=()=>ku.get(o9),dD=e=>ku.set(o9,e),l9=r.createContext(null);function jp(){const e=r.useContext(l9);if(!e)throw new Error("useUpdateCenter must be used inside UpdateCenterProvider");return e}function fD({children:e}){const[t,n]=r.useState(null),[s,l]=r.useState(!1),[c,u]=r.useState(uD),f=r.useRef(void 0);r.useEffect(()=>{let P=!0;const $=async()=>{if(P){if(!document.hidden)try{const W=await ke.updateStatus();P&&n(W)}catch{}P&&(f.current=window.setTimeout($,cD))}};$();const L=()=>{document.hidden||!P||(window.clearTimeout(f.current),$())};return document.addEventListener("visibilitychange",L),window.addEventListener("focus",L),()=>{P=!1,window.clearTimeout(f.current),document.removeEventListener("visibilitychange",L),window.removeEventListener("focus",L)}},[]);const[h,m]=r.useState(null),p=r.useCallback(async()=>{l(!0);try{n(await ke.updateCheck()),m(null)}catch(P){m(String((P==null?void 0:P.message)??P))}finally{l(!1)}},[]),v=r.useCallback(()=>{const P=t==null?void 0:t.latest;P&&(dD(P),u(P))},[t]),y=(t==null?void 0:t.latest)!=null&&t.latest===c,[x,b]=r.useState("idle"),[C,S]=r.useState(null),A=r.useCallback(async P=>{b("restarting");try{await ke.updateRestart()}catch(L){if(typeof L.status=="number"){b("idle"),S(String((L==null?void 0:L.message)??L));return}}const $=Date.now()+3e4;for(;Date.now()<$;){await F2(800);try{if((await ke.version()).version!==P){location.reload();return}}catch{}}b("idle"),S("The restart did not complete. Check the terminal Scenri runs in.")},[]),E=r.useCallback(async()=>{if(x!=="idle")return;S(null);const P=t==null?void 0:t.current;try{if((t==null?void 0:t.phase)!=="ready"){b("applying"),await ke.updateApply();const $=Date.now()+_g;let L=!1;for(;Date.now()<$;){await F2(1500);const W=await ke.updateStatus();if(n(W),W.phase==="ready"){L=!0;break}if(W.phase==="error"){S(W.error??"The update could not be staged."),b("idle");return}}if(!L){S("Couldn't download the update. Try again."),b("idle");return}}await A(P)}catch($){S(String(($==null?void 0:$.message)??$)),b("idle")}},[x,t,A]),k=r.useRef(!1);r.useEffect(()=>{if((t==null?void 0:t.phase)!=="staging"||x!=="idle"||k.current)return;k.current=!0;let P=!0;const $=Date.now()+_g;return(async()=>{for(;P&&Date.now()<$;){if(await F2(1500),!P)return;try{const W=await ke.updateStatus();if(!P||(n(W),W.phase!=="staging"))return}catch{}}})().finally(()=>{k.current=!1}),()=>{P=!1}},[t==null?void 0:t.phase,x]);const{pathname:M}=rn(),N=M===Ye.setup;return o.jsxs(l9.Provider,{value:{status:t,checking:s,checkNow:p,checkError:h,dismissed:y,dismiss:v,apply:E,busy:x,applyError:C},children:[e,x!=="restarting"&&lD(t)&&!y&&!N&&o.jsx(mD,{}),x==="restarting"&&o.jsx(hD,{version:(t==null?void 0:t.stagedVersion)??(t==null?void 0:t.latest)??null})]})}function hD({version:e}){return o.jsx("div",{className:"sc-upd-overlay",role:"status","aria-live":"polite",children:o.jsxs("div",{className:"sc-upd-overlay-card",children:[o.jsx(T5,{size:22}),o.jsx("b",{children:e?`Updating to Scenri ${e}`:"Updating Scenri"}),o.jsx("small",{children:"Restarting. This page reconnects by itself."})]})})}function mD(){const{status:e,dismiss:t,apply:n,busy:s,applyError:l}=jp(),c=yd();if(!e)return null;const u=iD(e),f=u.kind==="downloading"?"Downloading update…":u.kind==="ready"?`Scenri ${u.version} is ready`:u.kind==="stage-error"?"Couldn't download the update":"A new update is available",h=s==="applying"?"Updating…":u.kind==="stage-error"?"Try again":"Update",m=u.kind!=="announce"||u.oneClick;return o.jsxs("div",{className:"sc-upd-float",role:"status",children:[o.jsx(b$,{className:"sc-upd-float-dot",size:16,weight:"fill","aria-hidden":"true"}),o.jsxs("span",{className:"sc-upd-float-txt",children:[f,l&&u.kind!=="downloading"&&o.jsx("small",{children:l})]}),o.jsx("button",{type:"button",className:"sc-upd-float-later",onClick:t,children:u.kind==="ready"?"Later":"Not now"}),u.kind!=="downloading"&&o.jsx("button",{type:"button",className:"sc-btn sc-btn-primary",disabled:s!=="idle",onClick:()=>m?void n():c("about"),children:h})]})}const kp=(e,t)=>`scenri:new-${e}-${t}`,pD=e=>ku.get(e),gD=(e,t)=>ku.set(e,t);function Ac(e){ku.del(e),Ii.del(e)}function I2(e){var t,n,s;return!!((t=e.name)!=null&&t.trim())||!!((n=e.instruction)!=null&&n.trim())||!!((s=e.importUrl)!=null&&s.trim())||(e.facets??[]).length>0||(e.imageHashes??[]).length>0}const Zg=e=>Array.isArray(e)?e.filter(t=>typeof t=="string"):[];function i9(e,t){const n=kp(e,t),s=pD(n);if(!s)return null;let l;try{l=JSON.parse(s)}catch{return Ac(n),null}if(typeof l!="object"||l===null)return Ac(n),null;const c=l;if(c.v!==1||c.brandId!==e||c.kind!==t)return Ac(n),null;const u=Date.now()-Date.parse(c.updatedAt??"");return!Number.isFinite(u)||u>a9?(Ac(n),null):{v:1,brandId:e,kind:t,updatedAt:c.updatedAt,name:typeof c.name=="string"?c.name:"",instruction:typeof c.instruction=="string"?c.instruction:"",facets:Zg(c.facets),imageHashes:Zg(c.imageHashes),importUrl:typeof c.importUrl=="string"?c.importUrl:"",pending:typeof c.pending=="string"?c.pending:null}}function O2(e,t,n){const s={v:1,brandId:e,kind:t,updatedAt:new Date().toISOString(),name:n.name??"",instruction:n.instruction??"",facets:n.facets??[],imageHashes:n.imageHashes??[],importUrl:n.importUrl??"",pending:n.pending??null};gD(kp(e,t),JSON.stringify(s))}function li(e,t){Ac(kp(e,t))}function vD(e,t,n){const s=i9(e,t);(s==null?void 0:s.pending)===n&&li(e,t)}function yD(e,t){if(!e)return!1;if(e.pending===null)return!0;const n=t??"unknown";return n==="failed"||n==="cancelled"||n==="unknown"}const c9=50;function ys(e){return Date.parse(e.includes("T")?e:`${e.replace(" ","T")}Z`)}function mo(e,t=Date.now()){const n=ys(e);return Number.isNaN(n)?0:Math.max(0,Math.round((t-n)/1e3))}function Ap(e,t=Date.now()){const n=mo(e,t);return n<20?"generating":n<60?"still generating":"taking longer than usual"}function xD(e,t=Date.now()){const n=mo(e,t);if(n<60)return`${n}s`;const s=Math.floor(n/60);return s<60?`${s}m`:`${Math.floor(s/60)}h ${s%60}m`}function u9(e,t=Date.now()){const n=mo(e,t);if(n<45)return"just now";if(n<3600)return`${Math.round(n/60)}m ago`;if(n<86400)return`${Math.floor(n/3600)}h ago`;const s=Math.floor(n/86400);return s===1?"Yesterday":`${s}d ago`}function wD(e){if(!e)return 0;if(e.stage==="discovering")return e.discovered?15:8;if(e.stage==="fetching_products"){const t=Math.max(e.discovered,e.fetched,1);return 15+Math.min(45,Math.round(e.fetched/t*45))}if(e.stage==="processing_assets"){const t=Math.max(e.imagesTotal,1);return 60+Math.min(35,Math.round(e.imagesDone/t*35))}return e.stage==="completed"?100:e.stage==="partial"?95:5}function bD(e,t,n=Date.now()){const s=e.setNames.length>0?`${e.setNames.join(", ")} · `:"",l=e.status==="running"?`${s}${Ap(e.createdAt,n)}`:e.status==="error"?`${s}${e.error??"failed"}`:e.status==="cancelled"?`${s}cancelled`:`${s}${e.images.length} image${e.images.length===1?"":"s"}`;return{id:`node:${e.id}`,kind:e.kind==="edit"?"edit":"generation",state:e.status,title:e.kind==="edit"?`Edit · ${nn(e)}`:nn(e),subtitle:l,thumb:e.images[0]??null,percent:null,startedAt:e.createdAt,href:gd(t,null,e.id)}}function ED(e,t){const n=e.stage==="completed"?"done":e.stage==="partial"?"partial":e.stage==="failed"?"error":"running";let s=e.url;try{s=new URL(e.url).hostname.replace(/^www\./,"")}catch{}const l=e.discovered?`${e.upserted} of ${e.discovered} products`:`${e.upserted} products`;return{id:`catalog:${e.id}`,kind:"catalog",state:n,title:s,subtitle:n==="error"?`Catalog import · ${e.message??"failed"}`:`Catalog import · ${l}`,thumb:null,percent:wD(e),startedAt:e.createdAt,href:z$(t)}}function CD(e,t){const n=e.stage==="done"?"done":e.stage==="failed"?"error":e.stage==="cancelled"?"cancelled":"running",s=n==="error"?e.error??"failed":n==="cancelled"?"stopped":n==="done"?e.warnings[0]??e.coverage[0]??(e.kind==="presenter"?"Ready to cast":"Ready to use"):e.message??(e.kind==="presenter"?"Building the studio views":"Reading the references");return{id:`build:${e.id}`,kind:e.kind,state:n,title:e.name,subtitle:s,thumb:e.previewHash,percent:e.steps>0?Math.min(100,Math.round(e.step/e.steps*100)):null,startedAt:e.startedAt,href:e.assetId?e.kind==="presenter"?Ka(t,e.assetId):ia(t,e.assetId):null}}function SD(e,t=12){const n=e.filter(l=>l.state==="running"),s=e.filter(l=>l.state!=="running").sort((l,c)=>ys(c.startedAt)-ys(l.startedAt)).slice(0,t);return n.sort((l,c)=>ys(l.startedAt)-ys(c.startedAt)),[...n,...s]}function jD(e,t,n=new Date){if(!e)return[];const s=[];for(const l of t){if(l.state==="running")continue;const c=e.get(l.id);c&&c.state!=="running"||s.push({id:l.id,kind:l.kind,state:l.state,title:l.title,subtitle:l.subtitle,thumb:l.thumb,at:n.toISOString(),href:l.href})}return s}function kD(e,t,n=c9){if(t.length===0)return e;const s=new Set(t.map(l=>l.id));return[...t,...e.filter(l=>!s.has(l.id))].sort((l,c)=>ys(c.at)-ys(l.at)).slice(0,n)}function AD(e,t){const n=e.filter(l=>!l.watched);if(!t)return n.length;const s=ys(t);return n.filter(l=>ys(l.at)>s).length}const d9=e=>`scenri:notifications-${e}`,f9=e=>`scenri:notifications-seen-${e}`,h9=e=>Ii.get(e),m9=(e,t)=>Ii.set(e,t);function Vg(e){const t=h9(d9(e));if(!t)return[];try{const n=JSON.parse(t);return Array.isArray(n)?n:[]}catch{return[]}}const zg=(e,t)=>m9(d9(e),JSON.stringify(t.slice(0,c9))),Bg=e=>h9(f9(e)),ND=(e,t)=>m9(f9(e),t),MD=1500,RD=5e3,p9=r.createContext(null);function Sl(){const e=r.useContext(p9);if(!e)throw new Error("useTaskCenter must be used inside TaskCenterProvider");return e}function PD({brand:e,children:t}){const n=vn(),{push:s}=rr(),{refresh:l}=an(),c=e.id,[u,f]=r.useState([]),[h,m]=r.useState([]),p=r.useRef([]);p.current=h;const[v,y]=r.useState(()=>Vg(c)),[x,b]=r.useState(()=>Bg(c)),[C,S]=r.useState(!1),A=r.useRef(null),E=r.useRef(new Set),k=r.useRef(0),M=r.useRef(new Set),N=r.useRef(l);N.current=l;const P=r.useRef(null),$=r.useRef(C);$.current=C;const L=r.useRef(n);L.current=n;const{pathname:W}=rn(),B=r.useRef(!1);B.current=/\/(create|sets)(\/|$)/.test(W);const te=r.useRef(s);te.current=s,r.useEffect(()=>{A.current=null,E.current=new Set,k.current=0,M.current=new Set,f([]),m([]),y(Vg(c)),b(Bg(c))},[c]);const X=r.useCallback(async()=>{var ae;let ne,U;try{const[{nodes:q,jobs:ge},{builds:ce}]=await Promise.all([ke.activity(c),ke.assetBuilds(c)]);U=ce,ne=[...q.map(he=>bD(he,e)),...ge.map(he=>ED(he,e)),...ce.map(he=>CD(he,e))]}catch{return}const D=U.filter(q=>q.finished&&q.assetId&&!M.current.has(q.id)),V=new Set(U.map(q=>q.id)),F=p.current.some(q=>!q.finished&&!V.has(q.id));if(D.length||F){for(const q of D)M.current.add(q.id),vD(c,q.kind,q.id);await N.current()}m(U);const Q=jD(A.current,ne);if(A.current=new Map(ne.map(q=>[q.id,q])),k.current=ne.filter(q=>q.state==="running").length,f(SD(ne)),Q.length!==0&&(y(q=>{const ge=B.current?Q.map(he=>he.state==="error"?he:{...he,watched:!0}):Q,ce=kD(q,ge);return zg(c,ce),ce}),!$.current))for(const q of Q){if(E.current.has(q.id)||(E.current.add(q.id),q.state==="cancelled")||q.state!=="error"&&B.current)continue;const ge=q.href,ce=ge?{label:"View",onClick:()=>L.current(ge)}:void 0;if(q.state==="error"){te.current({kind:"error",title:`${q.title} failed`,detail:q.subtitle,action:ce});continue}if(q.kind==="presenter"||q.kind==="scene"){const he=q.id.startsWith("build:")?((ae=U.find(me=>`build:${me.id}`===q.id))==null?void 0:ae.assetId)??null:null;te.current({kind:"success",title:`${q.title} is ready`,detail:q.subtitle,actions:ge?[{label:q.kind==="presenter"?"View presenter":"View scene",onClick:()=>L.current(ge)},{label:"Use in a shot",onClick:()=>L.current(`${hr(e)}?${q.kind==="presenter"?"presenter":"scene"}=${he}&compose=1`)}]:void 0});continue}te.current({kind:"success",title:q.kind==="catalog"?"Catalog import finished":"Generation finished",detail:q.title,action:ce})}},[c,e]);r.useEffect(()=>{let ne=null,U=!0;const D=async()=>{if(!U||(document.hidden||await X(),!U))return;const F=!document.hidden&&k.current>0;ne=setTimeout(D,F?MD:RD)},V=()=>{ne&&clearTimeout(ne),ne=null,document.hidden||D()};return P.current=V,D(),document.addEventListener("visibilitychange",V),window.addEventListener("focus",V),()=>{U=!1,P.current=null,ne&&clearTimeout(ne),document.removeEventListener("visibilitychange",V),window.removeEventListener("focus",V)}},[X]);const Z=r.useCallback(()=>{var ne;return(ne=P.current)==null?void 0:ne.call(P)},[]),G=r.useCallback(()=>{const ne=new Date().toISOString();b(ne),ND(c,ne)},[c]),re=r.useCallback(()=>{y([]),zg(c,[]),G()},[c,G]),de=r.useMemo(()=>({tasks:u,running:u.filter(ne=>ne.state==="running").length,builds:h,feed:v,unread:AD(v,x),markSeen:G,clearFeed:re,panelOpen:C,setPanelOpen:S,poke:Z}),[u,h,v,x,G,re,C,Z]);return o.jsx(p9.Provider,{value:de,children:t})}const g9=["primary","mark","wordmark","monochrome","alternate"],Np=["light","dark","any"],G0={primary:"Primary logo",mark:"Mark",wordmark:"Wordmark",monochrome:"Monochrome",alternate:"Alternate"},LD=/^[a-f0-9]{32}$/,TD=e=>{const t=String(e??"");if(!t.startsWith("asset:"))return null;const n=t.slice(6);return LD.test(n)?n:null},HD=e=>g9.includes(e)?e:"primary",$D=e=>Np.includes(e)?e:"any";function Mp(e){return(Array.isArray(e==null?void 0:e.logos)?e.logos:[]).filter(n=>n&&String(n.file??"").trim()).map(n=>{const s=TD(n.file),l=String(n.clearSpace??"").trim();return{hash:s,file:String(n.file),role:HD(n.role),background:$D(n.background),...l?{clearSpace:l}:{},attachable:s!==null}})}function wd(e){return Mp(e).filter(t=>t.attachable)}function v9(e){return e.find(t=>t.role==="primary")??e[0]??null}function y9(e){return v9(Mp(e))}function bd(e,t){var l;const n={primary:"logo",mark:"mark",wordmark:"wordmark",monochrome:"monochrome logo",alternate:"alternate logo"},s=String(((l=e==null?void 0:e.meta)==null?void 0:l.name)??"").trim();return s?`${s} ${n[t.role]}`:`Brand ${n[t.role]}`}function x9(e){const{brand:t}=Tt(),{pathname:n}=rn(),s=!!ur(Ye.brand),l=!!ur({path:Ye.hub,end:!1}),c=!!ur({path:Ye.set,end:!1}),u=l||c,f=!!ur({path:Ye.products,end:!1}),h=!!ur({path:Ye.scenes,end:!1}),m=!!ur({path:Ye.presenters,end:!1}),p=v=>v?"fill":"regular";return[{key:"home",label:"Home",icon:o.jsx(E$,{size:e,weight:p(s)}),active:s,to:ho(t)},{key:"create",label:"Create",icon:o.jsx(N$,{size:e,weight:p(u)}),active:u,to:u?`${n}?compose=1`:`${hr(t)}?compose=1`},{key:"products",label:"Products",icon:o.jsx(bp,{size:e,weight:p(f)}),active:f,to:h1(t)},{key:"presenters",label:"Presenters",icon:o.jsx(xp,{size:e,weight:p(m)}),active:m,to:$c(t)},{key:"scenes",label:"Scenes",icon:o.jsx(yp,{size:e,weight:p(h)}),active:h,to:Hc(t)}]}const xs=e=>{var t,n;return((n=(t=e.json)==null?void 0:t.meta)==null?void 0:n.name)??e.slug};function DD(e){return([...e.trim()].find(n=>new RegExp("\\p{L}|\\p{N}","u").test(n))??"?").toUpperCase()}function FD(e){const t=/^#?([0-9a-f]{6})$/i.exec(e.trim());if(!t)return"#ffffff";const[n,s,l]=[0,2,4].map(u=>Number.parseInt(t[1].slice(u,u+2),16)/255),c=u=>u<=.03928?u/12.92:((u+.055)/1.055)**2.4;return .2126*c(n)+.7152*c(s)+.0722*c(l)>.42?"#0a0a0a":"#ffffff"}function Ug({brand:e,size:t=20}){var l,c,u,f;const n=Un((l=y9(e.json))==null?void 0:l.file),s=((f=(u=(c=e.json)==null?void 0:c.palette)==null?void 0:u.primary)==null?void 0:f.hex)??"#6b6b6b";return o.jsx("span",{className:"sc-brand-av","data-logo":n?"":void 0,style:{width:t,height:t,fontSize:Math.round(t*.5),...n?{}:{background:s,color:FD(s)}},"aria-hidden":!0,children:n?o.jsx("img",{src:n,alt:""}):DD(xs(e))})}function ID(){const e=x9(22);return o.jsx("nav",{className:"sc-tabbar","aria-label":"Main",children:o.jsx("ul",{children:e.map(t=>o.jsx("li",{children:o.jsxs(Ut,{to:t.to,"data-on":t.active||void 0,"aria-current":t.active?"page":void 0,children:[o.jsx("span",{className:"sc-tab-ic",children:t.icon}),o.jsx("span",{className:"sc-tab-lb",children:t.label})]})},t.key))})})}function OD(){var p,v;const{brands:e}=an(),{brand:t}=Tt(),n=vn(),s=yd(),l=jp(),c=Sd(),u=y=>xs(y).trim().toLowerCase(),f=new Map;for(const y of e)f.set(u(y),(f.get(u(y))??0)+1);const h=!!((p=l.status)!=null&&p.available),m=h&&!l.dismissed||c.unread;return o.jsxs(co,{children:[o.jsx(uo,{children:o.jsxs("button",{type:"button",className:"sc-org-btn","aria-label":`${xs(t)}, brand and settings`,children:[o.jsx(Ug,{brand:t,size:22}),o.jsx("span",{dir:"auto",className:"sc-org-name",children:xs(t)}),o.jsx(ki,{size:11,className:"sc-caret"}),m&&o.jsx("span",{className:"sc-upd-dot","aria-hidden":"true"})]})}),o.jsxs(fo,{align:"end",sideOffset:8,className:"sc-menu",children:[e.map(y=>{const x=y.id===t.id,b=(f.get(u(y))??0)>1;return o.jsxs(Zr,{className:"sc-menu-item","data-current":x||void 0,"data-two-line":b||void 0,onSelect:x?void 0:()=>n(ho(y)),children:[o.jsx(Ug,{brand:y,size:20}),o.jsxs("span",{className:"sc-menu-brand-lb",children:[o.jsx("span",{dir:"auto",children:xs(y)}),b&&o.jsxs("span",{className:"sc-menu-brand-sub",children:["/",y.slug]})]}),x&&o.jsxs(o.Fragment,{children:[o.jsx(la,{size:14,className:"sc-menu-check","aria-hidden":"true"}),o.jsx("span",{className:"sc-vh",children:", current brand"})]})]},y.id)}),o.jsx("div",{className:"sc-menu-sep"}),o.jsxs(Zr,{className:"sc-menu-item",onSelect:()=>n("/setup"),children:[o.jsx(Wn,{size:18,className:"sc-menu-ic"}),o.jsx("span",{className:"sc-menu-lb",children:"Set up a brand"})]}),o.jsx("div",{className:"sc-menu-sep"}),h&&o.jsxs(Zr,{className:"sc-menu-item","data-update":"",onSelect:()=>s("about"),children:[o.jsx(T5,{size:18,className:"sc-menu-ic"}),o.jsxs("span",{className:"sc-menu-lb",children:["Update available · ",(v=l.status)==null?void 0:v.latest]})]}),o.jsxs(Zr,{className:"sc-menu-item",onSelect:()=>c.open(),children:[o.jsx(P$,{size:18,className:"sc-menu-ic"}),o.jsx("span",{className:"sc-menu-lb",children:"What's new"}),c.unread&&o.jsxs(o.Fragment,{children:[o.jsx("span",{className:"sc-menu-new","aria-hidden":"true"}),o.jsx("span",{className:"sc-vh",children:", not read yet"})]})]}),o.jsxs(Zr,{className:"sc-menu-item",onSelect:()=>s(),children:[o.jsx(w$,{size:18,className:"sc-menu-ic"}),o.jsx("span",{className:"sc-menu-lb",children:"Settings"})]})]})]})}function Oi(e){const t=r.useRef(null),n=r.useRef(null),s=r.useRef(0),l=f=>{f.pointerType==="mouse"&&f.button!==0||(n.current={y:f.clientY,t:f.timeStamp},s.current=0,t.current&&(t.current.style.transition="none"),f.currentTarget.setPointerCapture(f.pointerId))},c=f=>{!n.current||!t.current||(s.current=Math.max(0,f.clientY-n.current.y),t.current.style.transform=`translateY(${s.current}px)`)},u=f=>{const h=n.current;if(n.current=null,!h||!t.current)return;t.current.style.transition="";const m=s.current/Math.max(1,f.timeStamp-h.t);if(s.current>96||m>.45){e();return}t.current.style.transform=""};return{sheet:t,grip:{onPointerDown:l,onPointerMove:c,onPointerUp:u,onPointerCancel:u}}}function Ed({open:e=!0,className:t,maxWidth:n,described:s,children:l,onDismiss:c,onOpenAutoFocus:u,onCloseAutoFocus:f,onPaste:h}){const{sheet:m,grip:p}=Oi(c),v=u??ju,y=f;return o.jsx(ul,{open:e,onOpenChange:x=>!x&&c(),children:o.jsxs(dl,{children:[o.jsx(fl,{className:"sc-newdlg-scrim"}),o.jsx(hl,{className:"sc-newdlg-layer",...s?{}:{"aria-describedby":void 0},onOpenAutoFocus:v,onCloseAutoFocus:y,onPaste:h,onPointerDown:x=>{x.target===x.currentTarget&&c()},children:o.jsxs("div",{ref:m,className:["sc-newdlg",t].filter(Boolean).join(" "),style:n?{"--sc-newdlg-max":n}:void 0,children:[o.jsx("div",{className:"sc-shotsheet-grip",...p,children:o.jsx("span",{className:"sc-shotsheet-bar","aria-hidden":!0})}),l]})})]})})}function Rp({className:e,children:t}){return o.jsx(ml,{className:e,children:t})}function M1({children:e}){return o.jsx(q1,{asChild:!0,children:e})}function _D({className:e,children:t}){return o.jsx(Nm,{className:e,children:t})}const Oh=e=>Array.isArray(e)?e.map(t=>Un(t==null?void 0:t.file)).filter(t=>!!t):[];function Au(e){var n;return(((n=e==null?void 0:e.json)==null?void 0:n.characters)??[]).filter(s=>(s==null?void 0:s.origin)==="custom").map(VD)}function ZD(e,t){return Au(e).find(n=>n.id===t)}function VD(e){const t=Oh(e.shots),n=Oh(e.sourceRefs),s=Un(e.preview)??t[0]??n[0]??null;return{id:String(e.id),name:String(e.name??""),promptName:e.promptName,presentation:e.presentation==="man"?"man":"woman",descriptor:String(e.descriptor??""),ageRange:String(e.ageRange??""),hair:String(e.hair??""),identityNotes:String(e.identityNotes??""),negativeConstraints:Array.isArray(e.negativeConstraints)?e.negativeConstraints.map(String):[],facial:"",skin:"",build:"",wardrobeDefault:"",suitableCategories:Array.isArray(e.suitableCategories)?e.suitableCategories.map(String):[],suitableStyles:[],width:1024,height:1280,previewUrl:s,avatarUrl:Un(e.avatar),custom:!0,shots:t,sourceRefs:n}}function jl(e){var n;return(((n=e==null?void 0:e.json)==null?void 0:n.scenes)??[]).map(BD)}function zD(e,t){return jl(e).find(n=>n.id===t)}function BD(e){const t=Oh(e.refs);return{id:String(e.id),name:String(e.name??""),promptName:e.promptName,description:String(e.description??""),lighting:String(e.lighting??""),subject:e.subject==="product"||e.subject==="person"?e.subject:"either",collections:Array.isArray(e.collections)?e.collections.map(String):[],verticals:Array.isArray(e.verticals)?e.verticals.map(String):[],keywords:Array.isArray(e.keywords)?e.keywords.map(String):void 0,prompt:String(e.prompt??""),width:Number(e.width)||1024,height:Number(e.height)||1280,previewUrl:Un(e.preview)??t[0]??null,previewColor:null,custom:!0,refs:t,instruction:e.instruction?String(e.instruction):void 0,figure:e.figure?String(e.figure):void 0,figureTreatment:e.figureTreatment?String(e.figureTreatment):void 0}}function _h(e,t){const n=new Set(e.map(s=>s.id));return[...e,...t.filter(s=>!n.has(s.id))]}function UD(){const{brand:e,products:t}=Tt(),{scenes:n,presenters:s,demoProducts:l,showcase:c}=an();return r.useMemo(()=>{const u={presenters:Au(e),scenes:jl(e)},f=new Set,h=b=>!b||f.has(b)?null:(f.add(b),b),m=(b,C)=>{for(const S of b){const A=h(C(S));if(A)return A}return null},p=b=>m(c.filter(C=>{var S;return(((S=C.brief)==null?void 0:S.tokens)??[]).some(A=>(A==null?void 0:A.t)===b)}),C=>C.previewUrl),v=m([...t].reverse(),b=>{var C,S;return Un((S=(C=b==null?void 0:b.shots)==null?void 0:C[0])==null?void 0:S.file)}),y=m(u.presenters,b=>b.previewUrl),x=m(u.scenes,b=>b.previewUrl);return{product:{url:v??p("product")??m(l,b=>b.previewUrl)??null,count:t.length,own:!!v},presenter:{url:y??p("character")??m(s,b=>b.previewUrl??b.avatarUrl)??null,count:u.presenters.length,own:!!y},scene:{url:x??m(n,b=>b.previewUrl)??p("template")??null,count:u.scenes.length,own:!!x}}},[e,t,n,s,l,c])}const WD=[{kind:"product",label:"Product",line:"What you are photographing",noun:"product",icon:bp},{kind:"presenter",label:"Presenter",line:"Who appears in the shot",noun:"presenter",icon:xp},{kind:"scene",label:"Scene",line:"Where it takes place",noun:"scene",icon:yp}],Wg=(e,t)=>e===0?"None yet":`${e} ${t}${e===1?"":"s"}`;function GD({suggest:e,onPick:t}){const n=r.useRef(null),{close:s}=Ps("new"),l=UD(),c=()=>{var u,f;(f=(u=n.current)==null?void 0:u.querySelector(e?`[data-kind="${e}"]`:"[data-kind]"))==null||f.focus()};return r.useEffect(c,[e]),o.jsxs(Ed,{className:"sc-newpick",maxWidth:"620px",onDismiss:s,onOpenAutoFocus:u=>{u.preventDefault(),c()},children:[o.jsxs("div",{className:"sc-newdlg-head",children:[o.jsx(Rp,{className:"sc-newdlg-title",children:"Add to this brand"}),o.jsx(M1,{children:o.jsx("button",{type:"button",className:"sc-set-close sc-newdlg-close","aria-label":"Close",children:o.jsx(Mn,{size:16})})})]}),o.jsx("p",{className:"sc-newdlg-sub",children:"The three things every shot is made from."}),o.jsx("div",{className:"sc-newdlg-body",children:o.jsx("div",{className:"sc-pickgrid",ref:n,children:WD.map(({kind:u,label:f,line:h,noun:m,icon:p})=>{const{url:v,count:y,own:x}=l[u];return o.jsxs("button",{type:"button",className:"sc-pick","data-kind":u,onClick:()=>t(u),"aria-label":`${f}. ${h}. ${Wg(y,m)}.`,children:[o.jsxs("span",{className:"sc-pick-media",children:[v?o.jsx("img",{src:v,alt:"",loading:"lazy"}):o.jsx("span",{className:"sc-pick-blank",children:o.jsx(p,{size:22})}),x&&o.jsx("span",{className:"sc-pick-mine",children:"Yours"})]}),o.jsxs("span",{className:"sc-pick-cap",children:[o.jsx("b",{children:f}),o.jsx("small",{children:h})]}),o.jsx("span",{className:"sc-pick-count",children:Wg(y,m)})]},u)})})})]})}function Pp({title:e,sub:t,error:n,footnote:s,primaryLabel:l,ready:c,blocked:u,busy:f,width:h="440px",onBack:m,onPrimary:p,onPasteFiles:v,children:y}){const{close:x}=Ps("new");return o.jsxs(Ed,{maxWidth:h,onDismiss:x,onPaste:b=>{var S;if(!v)return;const C=Array.from(((S=b.clipboardData)==null?void 0:S.files)??[]).filter(A=>A.type.startsWith("image/"));C.length&&(b.preventDefault(),v(C))},children:[o.jsxs("div",{className:"sc-newdlg-head",children:[m&&o.jsx("button",{type:"button",className:"sc-newdlg-back",onClick:m,"aria-label":"Back",children:o.jsx(Fi,{size:15})}),o.jsx(Rp,{className:"sc-newdlg-title",children:e}),o.jsx(M1,{children:o.jsx("button",{type:"button",className:"sc-set-close sc-newdlg-close","aria-label":"Close",children:o.jsx(Mn,{size:16})})})]}),t&&o.jsx("p",{className:"sc-newdlg-sub",children:t}),o.jsx("div",{className:"sc-newdlg-body",children:y}),o.jsxs("div",{className:"sc-newdlg-foot",children:[n&&o.jsx("p",{className:"sc-newdlg-err",role:"alert",children:n}),o.jsxs("button",{type:"button",className:"sc-btn sc-btn-primary sc-dlg-go","aria-disabled":!c||f||void 0,title:u,onClick:()=>{c&&!f&&p()},children:[f?o.jsx(qt,{size:"1"}):null,l]}),s&&o.jsx("p",{className:"sc-dlg-foot",children:s})]})]})}function w9({onFiles:e,onReject:t,disabled:n}){const s=r.useRef(0),[l,c]=r.useState(!1),u=r.useCallback(()=>{s.current=0,c(!1)},[]);return{dragOver:l,dropProps:{"data-drag-over":l||void 0,onDragEnter:h=>{n||!Array.from(h.dataTransfer.types).includes("Files")||(h.preventDefault(),s.current++,c(!0))},onDragOver:h=>{n||h.preventDefault()},onDragLeave:()=>{s.current=Math.max(0,s.current-1),s.current===0&&c(!1)},onDrop:h=>{if(n)return;h.preventDefault(),u();const m=Array.from(h.dataTransfer.files).filter(p=>p.type.startsWith("image/"));m.length?e(m):t==null||t()}}}}function Gg({label:e,hint:t,busy:n,disabled:s,multiple:l=!0,accept:c="image/*",onFiles:u,onReject:f,children:h}){const m=r.useRef(null),{dropProps:p}=w9({onFiles:u,onReject:f,disabled:s||n});return o.jsxs("button",{type:"button",className:"sc-dropzone",disabled:s||n,onClick:()=>{var v;return(v=m.current)==null?void 0:v.click()},...p,children:[o.jsx("input",{ref:m,type:"file",accept:c,multiple:l,hidden:!0,onChange:v=>{const y=Array.from(v.target.files??[]);v.target.value="",y.length&&u(y)}}),n?o.jsx(qt,{}):h,o.jsx("span",{className:"sc-dropzone-label",children:e}),t&&o.jsx("small",{children:t})]})}function Lp({hashes:e,max:t,label:n,hint:s,busy:l,onAdd:c,onRemove:u,onReject:f}){if(e.length===0)return o.jsx("div",{className:"sc-assetwell",children:o.jsx(Gg,{label:n,hint:s,busy:l,onFiles:c,onReject:f,children:o.jsx(Wn,{size:18})})});const h=t-e.length;return o.jsxs("div",{className:"sc-assetform-refs",children:[e.map((m,p)=>o.jsxs("span",{className:"sc-assetform-ref",children:[o.jsx("img",{src:Pt(m),alt:`Reference ${p+1}`}),o.jsx("button",{type:"button",className:"sc-assetform-drop","aria-label":`Remove reference ${p+1}`,onClick:()=>u(m),children:o.jsx(Mn,{size:11,weight:"bold"})})]},m)),h>0&&o.jsx(Gg,{label:`${h} more`,busy:l,onFiles:c,onReject:f,children:o.jsx(Wn,{size:15})})]})}let Nc=null;const b9=(e,t)=>`${e}:${t}`;function KD(e,t,n){Nc={key:b9(e,t),fields:n}}function YD(e,t){if(!Nc||Nc.key!==b9(e,t))return null;const{fields:n}=Nc;return Nc=null,n}const Kg={name:"",instruction:"",facets:[],imageHashes:[],importUrl:""};function Tp(e,t,n){const s=n.restore??!1,[l,c]=r.useState(Kg),[u,f]=r.useState(!1),[h,m]=r.useState(null),p=r.useRef(null),v=r.useRef(null),y=r.useRef(n.pendingState);y.current=n.pendingState;const x=r.useRef(n.exists);x.current=n.exists;const b=r.useRef(n.onDiscarded);b.current=n.onDiscarded;const C=r.useRef(l);C.current=l,r.useEffect(()=>{var W;if(s){const B=YD(e,t);if(B){c(B);return}}const $=i9(e,t),L=$!=null&&$.pending?y.current($.pending):null;if($!=null&&$.pending&&L==="unknown"&&((W=x.current)!=null&&W.call(x,$.name))){li(e,t);return}if($&&!$.pending){li(e,t);return}$&&yD($,L)&&(v.current=$.pending,c({name:$.name,instruction:$.instruction,facets:$.facets,imageHashes:$.imageHashes,importUrl:$.importUrl}))},[e,t,s]);const S=r.useCallback($=>{p.current&&clearTimeout(p.current),p.current=setTimeout(()=>{v.current&&I2($)?O2(e,t,{...$,pending:v.current}):li(e,t)},400)},[e,t]),A=r.useCallback($=>{c(L=>{const W={...L,...typeof $=="function"?$(L):$};return S(W),W})},[S]),E=r.useCallback(()=>{var L;p.current&&clearTimeout(p.current);const $=C.current;if(v.current&&I2($)){O2(e,t,{...$,pending:v.current});return}li(e,t),I2($)&&(KD(e,t,$),(L=b.current)==null||L.call(b))},[e,t]);r.useEffect(()=>(window.addEventListener("beforeunload",E),()=>{window.removeEventListener("beforeunload",E),E()}),[E]);const k=r.useCallback(async $=>{f(!0),m(null);try{const L=n.max-C.current.imageHashes.length,W=[];for(const B of $.slice(0,L))W.push(await Xw(B));A(B=>({imageHashes:[...new Set([...B.imageHashes,...W])].slice(0,n.max)}))}catch(L){m(String(L.message??L))}finally{f(!1)}},[n.max,A]),M=r.useCallback($=>A(L=>({imageHashes:L.imageHashes.filter(W=>W!==$)})),[A]),N=r.useCallback($=>A(L=>({facets:L.facets.includes($)?L.facets.filter(W=>W!==$):[...L.facets,$]})),[A]),P=r.useCallback($=>{if(p.current&&clearTimeout(p.current),!$){li(e,t),v.current=null,c(Kg);return}v.current=$,c(L=>(O2(e,t,{...L,pending:$}),L))},[e,t]);return{fields:l,set:A,uploading:u,err:h,setErr:m,addFiles:k,removeHash:M,toggleFacet:N,submitted:P}}const E9=(e,t)=>{const n=t.trim().toLowerCase();return n.length>0&&e.some(s=>s.name.trim().toLowerCase()===n)},Yg=4;function qD({onBack:e,onStarted:t,caps:n,capsNote:s,pendingState:l,restore:c,onDiscarded:u}){const{brand:f}=Tt(),{presenterCategories:h}=an(),[m,p]=r.useState(!1),v=r.useCallback(A=>E9(Au(f),A),[f]),y=Tp(f.id,"presenter",{max:Yg,pendingState:l,exists:v,restore:c,onDiscarded:u}),x=!!y.fields.name.trim()&&y.fields.imageHashes.length>0,b=x?void 0:"Add a name and at least one photo",C=async()=>{p(!0),y.setErr(null);try{const{jobId:A}=await ke.startAssetBuild(f.id,{kind:"presenter",name:y.fields.name.trim(),instruction:y.fields.instruction.trim()||void 0,imageHashes:y.fields.imageHashes,facets:y.fields.facets});y.submitted(A),t({kind:"presenter",jobId:A,name:y.fields.name.trim()})}catch(A){y.setErr(String(A.message??A))}finally{p(!1)}},S=A=>{A.key!=="Enter"||A.shiftKey||(A.preventDefault(),x&&!m&&C())};return o.jsx(Pp,{title:"New presenter",error:y.err,footnote:s(n!=null&&n.canGenerate?"Four studio views. A few minutes.":"Saved from the photos you add."),primaryLabel:"Create presenter",ready:x,blocked:b,busy:m,onBack:e,onPrimary:()=>void C(),onPasteFiles:A=>void y.addFiles(A),children:o.jsxs("div",{className:"sc-assetform",children:[o.jsx(Lp,{hashes:y.fields.imageHashes,max:Yg,label:"Add photos",hint:"One works. Two to four, from different angles, hold the likeness far better.",busy:y.uploading,onAdd:A=>void y.addFiles(A),onRemove:y.removeHash,onReject:()=>y.setErr("Drop an image file.")}),o.jsxs("div",{className:"sc-assetform-fields",children:[o.jsxs("div",{className:"sc-assetform-field",children:[o.jsx("label",{className:"sc-newdlg-seclabel",htmlFor:"sc-presenter-name",children:"Name"}),o.jsx("input",{id:"sc-presenter-name",className:"sc-in",type:"text",placeholder:"Their name",value:y.fields.name,onChange:A=>y.set({name:A.target.value}),onKeyDown:S})]}),o.jsxs("div",{className:"sc-assetform-field",children:[o.jsx("label",{className:"sc-newdlg-seclabel",htmlFor:"sc-presenter-notes",children:"Notes"}),o.jsx("textarea",{id:"sc-presenter-notes",className:"sc-in",placeholder:"Anything worth knowing about them (optional)",rows:2,value:y.fields.instruction,onChange:A=>y.set({instruction:A.target.value})})]})]}),h.length>0&&o.jsxs("fieldset",{className:"sc-assetform-facets",children:[o.jsx("legend",{children:"Categories"}),o.jsx("div",{className:"sc-assetform-facets-chips",children:h.map(A=>o.jsx("button",{type:"button",className:"sc-chip","data-on":y.fields.facets.includes(A)||void 0,"aria-pressed":y.fields.facets.includes(A),onClick:()=>y.toggleFacet(A),children:A},A))})]})]})})}const eu=[{key:"fragrance",label:"Fragrance",angles:[{key:"three-quarter",label:"Three-quarter"},{key:"front",label:"Front"},{key:"side",label:"Side"}]},{key:"footwear",label:"Footwear",angles:[{key:"three-quarter",label:"Three-quarter"},{key:"lateral-side",label:"Lateral side"},{key:"medial-side",label:"Medial side"}]},{key:"apparel",label:"Apparel",angles:[{key:"front",label:"Front"},{key:"back",label:"Back"},{key:"detail-fabric",label:"Detail / fabric"}]},{key:"furniture",label:"Furniture",angles:[{key:"three-quarter",label:"Three-quarter"},{key:"front",label:"Front"},{key:"side",label:"Side"}]},{key:"beauty",label:"Beauty / skincare",angles:[{key:"three-quarter",label:"Three-quarter"},{key:"front",label:"Front"},{key:"label",label:"Label"}]},{key:"electronics",label:"Electronics",angles:[{key:"three-quarter",label:"Three-quarter"},{key:"front",label:"Front"},{key:"back",label:"Back"}]},{key:"jewelry",label:"Jewelry",angles:[{key:"three-quarter",label:"Three-quarter"},{key:"front",label:"Front"},{key:"clasp-detail",label:"Clasp detail"}]},{key:"accessories",label:"Accessories",angles:[{key:"three-quarter",label:"Three-quarter"},{key:"front",label:"Front"},{key:"detail",label:"Detail"}]},{key:"beverage",label:"Beverage",angles:[{key:"three-quarter",label:"Three-quarter"},{key:"front",label:"Front"},{key:"label",label:"Label"}]},{key:"food",label:"Food",angles:[{key:"three-quarter",label:"Three-quarter"},{key:"front",label:"Front"},{key:"packaging-label",label:"Packaging label"}]},{key:"other",label:"Other",angles:[{key:"three-quarter",label:"Three-quarter"},{key:"front",label:"Front"},{key:"side",label:"Side"}]}],Hp=new Map(eu.map(e=>[e.key,e]));Hp.get("other");function Ai(e){var t;return e?((t=Hp.get(e))==null?void 0:t.label)??e:null}function XD(e,t){const n=[e??"",...t??[]].join(" ").toLowerCase();if(!n.trim())return;const s=[["fragrance",["fragrance","perfume","eau de","cologne"]],["footwear",["shoe","sneaker","boot","sandal","footwear"]],["apparel",["shirt","dress","jacket","pant","apparel","clothing","hoodie"]],["furniture",["chair","table","sofa","furniture","shelf","desk"]],["beauty",["skincare","serum","cream","lotion","cosmetic","makeup","beauty"]],["electronics",["electronic","headphone","speaker","charger","device","gadget"]],["jewelry",["jewelry","jewellery","necklace","bracelet","earring","ring"]],["accessories",["bag","handbag","wallet","watch","accessory","accessories"]],["beverage",["drink","beverage","soda","juice","coffee","tea"]],["food",["food","snack","grocery","sauce","spice","pantry"]]];for(const[l,c]of s)if(c.some(u=>n.includes(u)))return l}function $p(e){return e.category&&Hp.has(e.category)?e.category:XD(e.productType,e.tags)??null}const qg=6,QD=3;function JD({onBack:e,onStarted:t,restore:n,onDiscarded:s}){var A,E;const{brand:l}=Tt(),[c,u]=r.useState(!1),[f,h]=r.useState(!1),[m,p]=r.useState(!1),v=Tp(l.id,"product",{max:qg,pendingState:()=>"unknown",restore:n,onDiscarded:s}),y=v.fields.imageHashes.length>0,x=y?void 0:"Add at least one photo",b=async()=>{u(!0),v.setErr(null);try{const k=await ke.createProduct(l.id,{name:v.fields.name.trim(),imageHashes:v.fields.imageHashes,category:v.fields.facets[0]}),M=v.fields.name.trim()||"Product";v.submitted(null),t({kind:"product",id:k.productId,name:M})}catch(k){v.setErr(String(k.message??k))}finally{u(!1)}},C=async()=>{var M,N;const k=v.fields.importUrl.trim()||(((N=(M=l.json)==null?void 0:M.meta)==null?void 0:N.website)??"");if(k){h(!0),v.setErr(null);try{await ke.catalogImport(l.id,k),v.set({importUrl:""}),t({kind:"product",id:"",name:k})}catch(P){v.setErr(String(P.message??P))}finally{h(!1)}}},S=k=>{k.key==="Enter"&&(k.preventDefault(),y&&!c&&b())};return o.jsxs(Pp,{title:"New product",error:v.err,footnote:"Added to this brand. No preview.",primaryLabel:"Add product",ready:y,blocked:x,busy:c,onBack:e,onPrimary:()=>void b(),onPasteFiles:k=>void v.addFiles(k),children:[o.jsxs("div",{className:"sc-assetform",children:[o.jsx(Lp,{hashes:v.fields.imageHashes,max:qg,label:"Add packshots",hint:`Straight, well-lit packshots. The first ${QD} are the ones a shot attaches.`,busy:v.uploading,onAdd:k=>void v.addFiles(k),onRemove:v.removeHash,onReject:()=>v.setErr("Drop an image file.")}),o.jsx("div",{className:"sc-assetform-fields",children:o.jsxs("div",{className:"sc-assetform-field",children:[o.jsx("label",{className:"sc-newdlg-seclabel",htmlFor:"sc-product-name",children:"Name"}),o.jsx("input",{id:"sc-product-name",className:"sc-in",type:"text",placeholder:"Name this product",value:v.fields.name,onChange:k=>v.set({name:k.target.value}),onKeyDown:S})]})}),o.jsxs("fieldset",{className:"sc-assetform-facets",children:[o.jsx("legend",{children:"Category"}),o.jsx("div",{className:"sc-assetform-facets-chips",children:eu.map(k=>o.jsx("button",{type:"button",className:"sc-chip","data-on":v.fields.facets[0]===k.key||void 0,"aria-pressed":v.fields.facets[0]===k.key,onClick:()=>v.set({facets:v.fields.facets[0]===k.key?[]:[k.key]}),children:k.label},k.key))})]})]}),o.jsx("div",{className:"sc-newdlg-secondary",children:m?o.jsxs(o.Fragment,{children:[o.jsx("label",{className:"sc-newdlg-seclabel",htmlFor:"sc-import-url",children:"Your store's address"}),o.jsxs("div",{className:"sc-newdlg-secrow",children:[o.jsx("input",{id:"sc-import-url",className:"sc-in",type:"url",placeholder:((E=(A=l.json)==null?void 0:A.meta)==null?void 0:E.website)??"https://yourstore.com",value:v.fields.importUrl,onChange:k=>v.set({importUrl:k.target.value}),onKeyDown:k=>{k.key==="Enter"&&C()}}),o.jsx("button",{type:"button",className:"sc-btn sc-btn-ghost",disabled:f,onClick:()=>void C(),children:f?"Starting…":"Import"})]})]}):o.jsx("button",{type:"button",className:"sc-newdlg-secmore",onClick:()=>p(!0),children:"Import a catalog from a store URL"})})]})}const _2=4;function eF({onBack:e,onStarted:t,caps:n,capsNote:s,pendingState:l,restore:c,onDiscarded:u}){const{brand:f}=Tt(),{verticals:h}=an(),[m,p]=r.useState(!1),v=r.useCallback(E=>E9(jl(f),E),[f]),y=Tp(f.id,"scene",{max:_2,pendingState:l,exists:v,restore:c,onDiscarded:u}),x=!!y.fields.name.trim()&&(y.fields.imageHashes.length>0||!!y.fields.instruction.trim()),b=x?void 0:"Add a name, and a photo or a line of direction",C=async()=>{p(!0),y.setErr(null);try{const{jobId:E}=await ke.startAssetBuild(f.id,{kind:"scene",name:y.fields.name.trim(),instruction:y.fields.instruction.trim()||void 0,imageHashes:y.fields.imageHashes,facets:y.fields.facets});y.submitted(E),t({kind:"scene",jobId:E,name:y.fields.name.trim()})}catch(E){y.setErr(String(E.message??E))}finally{p(!1)}},S=E=>{E.key==="Enter"&&(E.preventDefault(),x&&!m&&C())},A=E=>{E.key!=="Enter"||!(E.metaKey||E.ctrlKey)||(E.preventDefault(),x&&!m&&C())};return o.jsx(Pp,{title:"New scene",error:y.err,footnote:s(n!=null&&n.canGenerate?"One preview. A few minutes.":"Saved without a preview."),primaryLabel:"Create scene",ready:x,blocked:b,busy:m,onBack:e,onPrimary:()=>void C(),onPasteFiles:E=>void y.addFiles(E),children:o.jsxs("div",{className:"sc-assetform",children:[o.jsx(Lp,{hashes:y.fields.imageHashes,max:_2,label:"Add a place",hint:`Screenshots, photography, anything showing the world you want. Up to ${_2}.`,busy:y.uploading,onAdd:E=>void y.addFiles(E),onRemove:y.removeHash,onReject:()=>y.setErr("Drop an image file.")}),o.jsxs("div",{className:"sc-assetform-fields",children:[o.jsxs("div",{className:"sc-assetform-field",children:[o.jsx("label",{className:"sc-newdlg-seclabel",htmlFor:"sc-scene-name",children:"Name"}),o.jsx("input",{id:"sc-scene-name",className:"sc-in",type:"text",placeholder:"Name this place",value:y.fields.name,onChange:E=>y.set({name:E.target.value}),onKeyDown:S})]}),o.jsxs("div",{className:"sc-assetform-field",children:[o.jsx("label",{className:"sc-newdlg-seclabel",htmlFor:"sc-scene-direction",children:"Direction"}),o.jsx("textarea",{id:"sc-scene-direction",className:"sc-in",placeholder:"What matters in these references, and what to ignore",rows:3,maxLength:400,value:y.fields.instruction,onChange:E=>y.set({instruction:E.target.value}),onKeyDown:A})]})]}),h.length>0&&o.jsxs("fieldset",{className:"sc-assetform-facets",children:[o.jsx("legend",{children:"Categories"}),o.jsx("div",{className:"sc-assetform-facets-chips",children:h.map(E=>o.jsx("button",{type:"button",className:"sc-chip","data-on":y.fields.facets.includes(E)||void 0,"aria-pressed":y.fields.facets.includes(E),onClick:()=>y.toggleFacet(E),children:E},E))})]})]})})}const Z2="1",tF={product:"Product",presenter:"Presenter",scene:"Scene"},nF=["product","presenter","scene"],rF=e=>!!e&&nF.includes(e),C9=r.createContext(null);function kl(){const e=r.useContext(C9);if(!e)throw new Error("useCreateAsset must be used inside AssetCreateHost");return e.open}function aF({children:e}){const{brand:t}=Tt(),n=vn(),{push:s}=rr(),{refresh:l}=an(),{builds:c,poke:u}=Sl(),f=Ps("new"),h=f.value,m=!!ur({path:Ye.products,end:!1}),p=!!ur({path:Ye.presenters,end:!1}),v=!!ur({path:Ye.scenes,end:!1}),y=m?"product":p?"presenter":v?"scene":null,[x,b]=r.useState(null),[C,S]=r.useState(!1),[A,E]=r.useState(!1),[k,M]=r.useState(!1),N=r.useRef(null),P=r.useRef(null),$=f.open,L=f.set,W=f.close,B=r.useCallback((D,V)=>{N.current=D==="choose"||!(V!=null&&V.onCreated)?null:{kind:D,fn:V.onCreated},P.current=document.activeElement instanceof HTMLElement?document.activeElement:null,E(D==="choose"),M(!1),$(D==="choose"?Z2:D)},[$]),te=r.useCallback(()=>{N.current=null,E(!1),W()},[W]),X=r.useCallback(D=>{s({kind:"success",title:`${tF[D]} discarded`,detail:"Nothing was saved.",action:{label:"Undo",onClick:()=>{M(!0),E(!1),$(D)}}})},[$,s]);r.useEffect(()=>{h===null&&M(!1)},[h]),r.useEffect(()=>{if(h!==null)return;const D=P.current;P.current=null,D!=null&&D.isConnected&&D.focus()},[h]),r.useEffect(()=>{if(h===null)return;let D=!0;S(!1);const V=F=>ke.assetBuildCapabilities().then(Q=>D&&b(Q)).catch(()=>{D&&(F?setTimeout(()=>V(!1),600):S(!0))});return V(!0),()=>{D=!1}},[h]);const Z=r.useCallback(D=>x?D:C?"Could not reach the engine. You can still try.":"Checking the engine…",[x,C]),G=r.useCallback(D=>{const V=c.find(F=>F.id===D);return V?V.stage==="failed"?"failed":V.stage==="cancelled"?"cancelled":V.stage==="done"?"done":"running":"unknown"},[c]),re=r.useCallback(D=>{const V=N.current;if(te(),u(),D.kind==="product"){if(!D.id){s({kind:"success",title:"Importing your catalog",detail:D.name});return}l(),(V==null?void 0:V.kind)==="product"&&V.fn(D),s({kind:"success",title:`${D.name} added`,actions:[{label:"Add details",onClick:()=>n(sa(t,D.id))},{label:"Use in a shot",onClick:()=>n(`${hr(t)}?product=${D.id}&compose=1`)}]});return}(V==null?void 0:V.kind)===D.kind&&V.fn(D),s({kind:"success",title:`Building ${D.name}`,detail:D.kind==="presenter"?"Four studio views. The bell will say when.":"The bell will say when."})},[t,te,n,u,s,l]),de=r.useMemo(()=>({open:B}),[B]),ne=rF(h)?h:null,U={onBack:A?()=>L(Z2):void 0,onStarted:re,caps:x,capsNote:Z,pendingState:G,restore:k,onDiscarded:()=>ne&&X(ne)};return o.jsxs(C9.Provider,{value:de,children:[e,h===Z2&&o.jsx(GD,{suggest:y,onPick:D=>{E(!0),L(D)}}),ne==="product"&&o.jsx(JD,{...U},"product"),ne==="presenter"&&o.jsx(qD,{...U},"presenter"),ne==="scene"&&o.jsx(eF,{...U},"scene")]})}function sF(){const e=kl();return o.jsx("button",{type:"button",className:"sc-icon-btn","aria-label":"Add to this brand",title:"Add to this brand",onClick:()=>e("choose"),children:o.jsx(Wn,{size:17,weight:"bold"})})}const _i="(max-width: 767px)";function Eo(e){const[t,n]=r.useState(()=>window.matchMedia(e).matches);return r.useEffect(()=>{const s=window.matchMedia(e),l=()=>n(s.matches);return l(),s.addEventListener("change",l),()=>s.removeEventListener("change",l)},[e]),t}function oF(){const{running:e,unread:t,panelOpen:n,setPanelOpen:s,markSeen:l}=Sl(),{pathname:c}=rn(),u=Eo(_i);r.useEffect(()=>s(!1),[c,s]);const f="Notifications"+(t?`, ${t} unread`:"")+(e?`, ${e} task${e===1?"":"s"} running`:""),h=t>0?o.jsx("span",{className:"sc-bell-dot","data-count":t,"aria-hidden":!0,children:t>9?"9+":t}):e>0?o.jsx("span",{className:"sc-bell-dot","data-running":"","aria-hidden":!0}):null;return u?o.jsxs(o.Fragment,{children:[o.jsxs("button",{type:"button",className:"sc-icon-btn sc-notif-btn","data-on":n||void 0,"aria-label":f,"aria-expanded":n,title:"Notifications",onClick:()=>s(!n),children:[o.jsx(Hg,{size:16,weight:e?"fill":"regular"}),h]}),n?o.jsx(lF,{onClose:()=>s(!1),onSeen:l}):null]}):o.jsxs(Ci,{open:n,onOpenChange:s,children:[o.jsx(Si,{children:o.jsxs("button",{type:"button",className:"sc-icon-btn sc-notif-btn","aria-label":f,title:"Notifications",children:[o.jsx(Hg,{size:16,weight:e?"fill":"regular"}),h]})}),o.jsx(ji,{align:"end",className:"sc-notif-pop",children:o.jsx(S9,{onClose:()=>s(!1),onSeen:l})})]})}function lF({onClose:e,onSeen:t}){const{sheet:n,grip:s}=Oi(e);return r.useEffect(()=>{const l=c=>{c.key==="Escape"&&e()};return document.addEventListener("keydown",l),()=>document.removeEventListener("keydown",l)},[e]),Ur.createPortal(o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"sc-notif-scrim",onClick:e,"aria-hidden":!0}),o.jsxs("div",{ref:n,className:"sc-notif-sheet",role:"dialog","aria-modal":"true","aria-label":"Notifications",children:[o.jsx("div",{className:"sc-shotsheet-grip",...s,children:o.jsx("span",{className:"sc-shotsheet-bar","aria-hidden":!0})}),o.jsx(S9,{onClose:e,onSeen:t})]})]}),document.body)}function S9({onClose:e,onSeen:t}){const{tasks:n,feed:s,unread:l,clearFeed:c}=Sl(),{brand:u}=Tt(),{push:f}=rr(),[h,m]=r.useState("tasks"),p=r.useRef(null),v=uF(1e3),y=b=>{if(b.startsWith("node:")){ke.cancelNode(b.slice(5)).catch(C=>f(tn(C,"Could not cancel this shot")));return}b.startsWith("build:")&&ke.cancelAssetBuild(u.id,b.slice(6)).catch(C=>f(tn(C,"Could not stop this build")))};r.useEffect(()=>{h==="feed"&&t()},[h,t]);const x=b=>{var E,k;const C=["tasks","feed"],S=C.indexOf(h);let A=null;b.key==="ArrowRight"?A=C[(S+1)%C.length]:b.key==="ArrowLeft"?A=C[(S-1+C.length)%C.length]:b.key==="Home"?A=C[0]:b.key==="End"&&(A=C[C.length-1]),A&&(b.preventDefault(),m(A),(k=(E=p.current)==null?void 0:E.querySelector(`#sc-notif-tab-${A}`))==null||k.focus())};return o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"sc-notif-tabs",role:"tablist","aria-label":"Notifications",ref:p,onKeyDown:x,children:[o.jsx(Xg,{id:"tasks",tab:h,onSelect:m,count:n.length,children:"Tasks"}),o.jsx(Xg,{id:"feed",tab:h,onSelect:m,count:l||void 0,children:"Notifications"})]}),o.jsx("div",{className:"sc-notif-scroll",role:"tabpanel",id:`sc-notif-panel-${h}`,"aria-labelledby":`sc-notif-tab-${h}`,tabIndex:0,children:h==="tasks"?n.length===0?o.jsx("p",{className:"sc-notif-empty",children:"Nothing running. Generations show up here as they go."}):n.map(b=>o.jsx(iF,{task:b,now:v,onNavigate:e,onCancel:y},b.id)):s.length===0?o.jsx("p",{className:"sc-notif-empty",children:"You have no notifications yet."}):s.map(b=>o.jsx(cF,{item:b,now:v,onNavigate:e},b.id))}),h==="feed"&&s.length>0?o.jsx("div",{className:"sc-notif-foot",children:o.jsx("button",{type:"button",className:"sc-notif-clear",onClick:c,children:"Clear all"})}):null]})}function Xg({id:e,tab:t,onSelect:n,count:s,children:l}){const c=t===e;return o.jsxs("button",{type:"button",role:"tab",id:`sc-notif-tab-${e}`,className:"sc-notif-tab","aria-selected":c,"aria-controls":`sc-notif-panel-${e}`,tabIndex:c?0:-1,onClick:()=>n(e),children:[l,s?o.jsx("span",{className:"sc-notif-n",children:s}):null]})}function j9({task:e}){return e.thumb?o.jsx("img",{src:Pt(e.thumb),alt:""}):e.state==="running"?o.jsx("span",{className:"sc-shimmer"}):e.state==="error"?o.jsx(Su,{size:17,weight:"fill"}):e.state==="cancelled"?o.jsx(Kw,{size:17,color:"var(--sc-fg3)"}):e.kind==="catalog"?o.jsx(L$,{size:17}):e.kind==="presenter"?o.jsx(xp,{size:17}):e.kind==="scene"?o.jsx(yp,{size:17}):o.jsx(ha,{size:17})}function iF({task:e,now:t,onNavigate:n,onCancel:s}){const l=e.state==="running",c=e.id.startsWith("node:")||e.id.startsWith("build:"),u=l&&mo(e.startedAt,t)>=60,f=o.jsxs(o.Fragment,{children:[o.jsx("span",{className:"sc-notif-thumb",children:o.jsx(j9,{task:e})}),o.jsxs("span",{className:"sc-notif-txt",children:[o.jsx("b",{dir:"auto",children:e.title}),o.jsx("small",{dir:"auto",children:e.subtitle}),l&&e.percent!==null?o.jsx("span",{className:"sc-notif-meter",children:o.jsx("div",{style:{width:`${e.percent}%`}})}):null]}),o.jsx("span",{className:"sc-notif-time",children:l?xD(e.startedAt,t):u9(e.startedAt,t)})]});return o.jsxs("div",{className:"sc-notif-row-wrap",children:[e.href?o.jsx(Ut,{className:"sc-notif-row","data-state":e.state,"data-running":l||void 0,to:e.href,onClick:n,children:f}):o.jsx("button",{type:"button",className:"sc-notif-row","data-state":e.state,"data-running":l||void 0,disabled:!0,children:f}),l&&c&&o.jsx("button",{type:"button",className:"sc-notif-row-cancel","data-urgent":u||void 0,onClick:h=>{h.stopPropagation(),s(e.id)},children:"Cancel"})]})}function cF({item:e,now:t,onNavigate:n}){const s=o.jsxs(o.Fragment,{children:[o.jsx("span",{className:"sc-notif-thumb",children:o.jsx(j9,{task:e})}),o.jsxs("span",{className:"sc-notif-txt",children:[o.jsx("b",{dir:"auto",children:e.title}),o.jsx("small",{dir:"auto",children:e.subtitle})]}),o.jsx("span",{className:"sc-notif-time",children:u9(e.at,t)})]});return e.href?o.jsx(Ut,{className:"sc-notif-row","data-state":e.state,to:e.href,onClick:n,children:s}):o.jsx("button",{type:"button",className:"sc-notif-row","data-state":e.state,disabled:!0,children:s})}function uF(e){const[t,n]=r.useState(()=>Date.now());return r.useEffect(()=>{const s=setInterval(()=>n(Date.now()),e);return()=>clearInterval(s)},[e]),t}const dF=["M64 18.71V38.8L51.38 51.39V12.62H57.9C61.27 12.62 64 15.35 64 18.72V18.71Z","M12.62 12.62V51.39H6.1C2.73 51.39 0 48.66 0 45.29V25.2L12.62 12.61V12.62Z","M51.38 51.38L38.79 64H18.7C15.33 64 12.6 61.27 12.6 57.9V51.38H51.37H51.38Z","M12.62 12.62L25.2 0H45.29C48.66 0 51.39 2.73 51.39 6.1V12.62H12.62Z"],fF=["M100.99 28.93L91.76 27.8C88.5 27.41 87.19 26.58 87.19 25.1C87.19 23.45 89.98 22.49 94.29 22.49C99.38 22.49 102.43 23.36 104.17 26.58L111.61 24.27C108.65 17.87 102.08 16 94.98 16C85.1 16 78.7 19.31 78.7 25.97C78.7 31.02 82.49 33.81 90.28 34.76L98.68 35.8C102.29 36.24 103.3 37.19 103.3 38.5C103.3 40.24 100.64 41.46 95.59 41.46C89.41 41.46 87.01 40.2 85.31 37.02L77.52 39.33C80.31 45.77 86.92 47.95 95.07 47.95C105.17 47.95 111.88 44.55 111.88 37.72C111.88 32.84 108.53 29.84 101 28.93H100.99Z","M132.73 22.66C137 22.66 140.87 24.01 142.7 28.54L150.49 26.67C148.79 20.66 142.3 16.05 132.6 16.05C121.41 16.05 113.44 22.23 113.44 31.98C113.44 41.73 121.41 48 132.6 48C142.31 48 148.8 43.3 150.49 37.29L142.7 35.42C140.87 39.95 137 41.3 132.73 41.3C126.94 41.3 122.24 38.38 122.24 32.42V31.55C122.24 25.59 126.94 22.67 132.73 22.67V22.66Z","M161.51 34.89H179.58V28.71H161.51V22.97H181.54V16.52H152.8V47.43H181.84V40.99H161.51V34.89Z","M208.71 33.85H208.67L193.86 16.52H184.94V47.43H193.04V27.49H193.08L210.15 47.43H216.81V16.52H208.71V33.85Z","M252.25 26.8C252.25 20.14 248.07 16.52 239.84 16.52H220.77V47.43H229.48V37.5H236.62L242.63 47.43H252.56L245.55 36.37C249.9 34.8 252.25 31.62 252.25 26.79V26.8ZM243.54 27.32C243.54 29.98 242.06 31.28 239.06 31.28H229.48V22.96H239.06C242.06 22.96 243.54 24.27 243.54 26.88V27.32Z","M263.79 16.52H255.08V47.43H263.79V16.52Z"];function hF(e){return o.jsx("svg",{viewBox:"0 0 263.79 64",fill:"currentColor","aria-hidden":"true",focusable:"false",...e,children:[...dF,...fF].map(t=>o.jsx("path",{d:t},t))})}function mF(){const{brand:e}=Tt(),t=ur({path:Ye.set,end:!1}),s=!!ur({path:Ye.hub,end:!1})||!!t;return o.jsxs("header",{className:"sc-topbar","data-project":s?"":void 0,children:[o.jsx("a",{className:"sc-skip",href:"#main",children:"Skip to content"}),o.jsx("div",{className:"sc-topbar-lead",children:o.jsx(Ut,{className:"sc-wordmark","aria-label":"Scenri home",to:ho(e),children:o.jsx(hF,{})})}),o.jsx(pF,{}),o.jsxs("div",{className:"sc-topbar-end",children:[o.jsx(sF,{}),o.jsx(oF,{}),o.jsx(OD,{})]})]})}function pF(){const e=x9(16);return o.jsx("nav",{className:"sc-nav sc-desktop-only","aria-label":"Main",children:o.jsx("ul",{children:e.map(t=>o.jsx("li",{children:o.jsx(Ut,{to:t.to,"data-active":t.active||void 0,"aria-current":t.active?"page":void 0,children:t.label})},t.key))})})}const gF=60;function vF(){r.useEffect(()=>{const e=window.visualViewport;if(!e)return;const t=document.documentElement,n=()=>{const s=window.innerHeight-e.height-e.offsetTop;t.style.setProperty("--sc-kb",s>gF?`${Math.round(s)}px`:"0px")};return n(),e.addEventListener("resize",n),e.addEventListener("scroll",n),()=>{e.removeEventListener("resize",n),e.removeEventListener("scroll",n),t.style.removeProperty("--sc-kb")}},[])}function yF(e){const[t,n]=r.useState({products:[],loaded:!1}),s=r.useCallback(async()=>{if(e)try{const l=await ke.productsLibrary(e);n({products:l.products,loaded:!0})}catch{n(l=>({products:l.products,loaded:!0}))}},[e]);return r.useEffect(()=>{if(!e){n({products:[],loaded:!0});return}let l=!0;n({products:[],loaded:!1});const c=()=>{ke.productsLibrary(e).then(f=>{l&&n({products:f.products,loaded:!0})}).catch(()=>{l&&n(f=>({products:f.products,loaded:!0}))})};c();const u=setInterval(c,4e3);return()=>{l=!1,clearInterval(u)}},[e]),{...t,reload:s}}function Vr({title:e,sub:t,children:n}){return o.jsxs("section",{className:"sc-set-sec",children:[(e||t)&&o.jsxs("div",{className:"sc-set-sech",children:[e&&o.jsx("h3",{children:e}),t&&o.jsx("p",{children:t})]}),o.jsx("div",{className:"sc-set-card",children:n})]})}function xF({value:e,onChange:t,placeholder:n,label:s,suggestions:l,max:c=24,maxLength:u=200}){const[f,h]=r.useState(""),m=e.length>=c,p=y=>{const x=y.trim().slice(0,u);h(""),!(!x||m)&&(e.some(b=>b.toLowerCase()===x.toLowerCase())||t([...e,x]))},v=!m&&l&&l.length>0?o.jsx("div",{className:"sc-chips-sugg",children:l.map(y=>o.jsx("button",{type:"button",className:"sc-chip",onClick:()=>p(y),"aria-label":`Never show ${y}`,children:y},y))}):null;return o.jsxs(o.Fragment,{children:[e.length===0&&v,o.jsxs("div",{className:"sc-chips",children:[e.map((y,x)=>o.jsxs("span",{className:"sc-chips-item",children:[o.jsx("span",{dir:"auto",children:y}),o.jsx("button",{type:"button",onClick:()=>t(e.filter((b,C)=>C!==x)),"aria-label":`Remove ${y}`,children:o.jsx(Mn,{size:10,weight:"bold"})})]},y)),o.jsx("input",{className:"sc-chips-in",value:f,"aria-label":s,placeholder:m?void 0:e.length?"Add another…":n??"Add one…",disabled:m,dir:"auto",onChange:y=>{const x=y.target.value;if(x.includes(",")){const b=x.split(",");for(const C of b.slice(0,-1))p(C);h(b[b.length-1]);return}h(x.slice(0,u))},onKeyDown:y=>{y.key==="Enter"?(y.preventDefault(),p(f)):y.key==="Backspace"&&!f&&e.length&&t(e.slice(0,-1))},onBlur:()=>p(f)})]}),e.length>0&&v]})}const wF=["competitor logos in frame","visible text or wordmarks on clothing","alcohol","children","visible clutter or mess","heavy skin retouching","neon or harsh colour","pure white studio backgrounds"],Qg=e=>e.trim().toLowerCase();function bF(e){const t=new Set((e??[]).map(Qg));return wF.filter(n=>!t.has(Qg(n)))}function EF({doc:e}){var l;const t=((l=e.json)==null?void 0:l.rules)??{},n=t.never??[],s=c=>{const u={...t};c.length?u.never=c:delete u.never,e.patch({rules:u})};return o.jsx("div",{className:"sc-nv",children:o.jsx(xF,{label:"Things this brand never shows",value:n,placeholder:"Or type your own",suggestions:bF(n),max:24,onChange:s})})}function CF({brand:e,doc:t}){const{push:n}=rr(),[s,l]=r.useState(!1),c=t.json??{},u=c.meta??{},f=u.name??e.slug,h=Mp(c),m=v9(h)??void 0,p=h.filter(C=>C!==m),v=C=>{const S={...u};for(const[A,E]of Object.entries(C)){const k=E.trim();k?S[A]=k:delete S[A]}S.name||(S.name=u.name),t.patch({meta:S})},y=async(C,S)=>{l(!0);try{await t.flush(),t.applyRow(await S())}catch(A){n(tn(A,C))}finally{l(!1)}},x=C=>void y("Could not upload that mark",async()=>{const S=await qw(e.id,C[0]),A=S.logoEdge;return A&&A<512&&n({kind:"success",title:"Logo added, but it is small",detail:`Only ${A}px across. Fine lettering may not survive generation. Export it larger, or as SVG.`}),S}),{dropProps:b}=w9({onFiles:x,onReject:()=>n({kind:"error",title:"That is not an image",detail:"Drop a PNG, SVG or JPG."}),disabled:s});return o.jsxs("div",{className:"sc-ident",...b,children:[o.jsxs("div",{className:"sc-set-row",children:[o.jsxs("span",{className:"txt",children:[o.jsx("b",{children:"Logo"}),o.jsx("small",{children:"Drop an image, or tap to add."})]}),o.jsxs("div",{className:"sc-set-controls",children:[o.jsx(SF,{mark:m,name:f,busy:s,onUpload:x}),(m==null?void 0:m.attachable)&&o.jsx("button",{type:"button",className:"sc-btn sc-btn-ghost",disabled:s,onClick:()=>void y("Could not remove that mark",()=>ke.deleteLogo(e.id,m.hash??"")),children:"Remove"})]})]}),m&&o.jsxs("div",{className:"sc-set-row",children:[o.jsxs("span",{className:"txt",children:[o.jsx("b",{children:"Sits on"}),o.jsx("small",{children:"So a dark mark is not shown on a dark ground."})]}),o.jsx("select",{className:"sc-in",value:m.background,disabled:s||!m.attachable,onChange:C=>void y("Could not update that mark",()=>ke.updateLogo(e.id,m.hash??"",{background:C.target.value})),"aria-label":"Sits on",children:Np.map(C=>o.jsx("option",{value:C,children:C==="any"?"Any background":`On ${C}`},C))})]}),o.jsx(Jg,{label:"Name",value:u.name??"",placeholder:e.slug,maxLength:120,onCommit:C=>v({name:C})}),o.jsx(Jg,{label:"Tagline",value:u.tagline??"",placeholder:"Add a tagline",maxLength:200,onCommit:C=>v({tagline:C})}),p.map(C=>o.jsx(jF,{mark:C,busy:s,onRole:S=>void y("Could not retag that mark",()=>ke.updateLogo(e.id,C.hash??"",{role:S})),onBackground:S=>void y("Could not update that mark",()=>ke.updateLogo(e.id,C.hash??"",{background:S})),onRemove:()=>void y("Could not remove that mark",()=>ke.deleteLogo(e.id,C.hash??""))},C.hash??C.file)),m&&o.jsxs("div",{className:"sc-set-row",children:[o.jsxs("span",{className:"txt",children:[o.jsx("b",{children:"Variant"}),o.jsx("small",{children:"A second mark for dark or light grounds."})]}),o.jsxs("label",{className:"sc-btn sc-btn-ghost",children:[o.jsx(Wn,{size:12}),"Add",o.jsx("input",{type:"file",accept:"image/*",hidden:!0,disabled:s,onChange:C=>{const S=Array.from(C.target.files??[]);C.target.value="",S.length&&x(S)}})]})]})]})}function Jg({label:e,value:t,placeholder:n,maxLength:s,onCommit:l}){const[c,u]=r.useState(t);return r.useEffect(()=>u(t),[t]),o.jsxs("div",{className:"sc-set-row",children:[o.jsx("span",{className:"txt",children:o.jsx("b",{children:e})}),o.jsx("input",{className:"sc-in",value:c,placeholder:n,"aria-label":e,maxLength:s,dir:"auto",onChange:f=>u(f.target.value),onBlur:()=>{const f=c.trim();f!==t&&l(f),u(f)},onKeyDown:f=>{f.key==="Enter"&&f.currentTarget.blur(),f.key==="Escape"&&(u(t),f.currentTarget.blur())}})]})}function SF({mark:e,name:t,busy:n,onUpload:s}){const[l,c]=r.useState(null);if(e){const u=e.hash?Pt(e.hash):e.file;return o.jsxs(o.Fragment,{children:[o.jsx("span",{className:"sc-well","data-bg":e.background,children:o.jsx("img",{src:u,alt:`${t} logo`,onLoad:f=>{const h=f.currentTarget,m=Math.max(h.naturalWidth,h.naturalHeight);c(m>0&&m<512?m:null)}})}),l!==null&&o.jsxs("small",{className:"sc-mark-small",children:["Only ",l,"px across. Fine lettering may not survive generation."]})]})}return o.jsxs("label",{className:"sc-well","data-empty":"","aria-label":"Add logo",children:[o.jsx(Zw,{size:16}),o.jsx("input",{type:"file",accept:"image/*",hidden:!0,disabled:n,onChange:u=>{const f=Array.from(u.target.files??[]);u.target.value="",f.length&&s(f)}})]})}function jF({mark:e,busy:t,onRole:n,onBackground:s,onRemove:l}){const c=e.hash?Pt(e.hash):e.file;return o.jsxs("div",{className:"sc-set-row",children:[o.jsx("span",{className:"txt",children:o.jsx("b",{children:G0[e.role]})}),o.jsxs("div",{className:"sc-set-controls",children:[o.jsx("span",{className:"sc-well","data-bg":e.background,children:o.jsx("img",{src:c,alt:G0[e.role]})}),o.jsx("select",{className:"sc-in",value:e.role,disabled:t||!e.attachable,onChange:u=>n(u.target.value),"aria-label":"Mark role",children:g9.map(u=>o.jsx("option",{value:u,children:G0[u]},u))}),o.jsx("select",{className:"sc-in",value:e.background,disabled:t||!e.attachable,onChange:u=>s(u.target.value),"aria-label":"Sits on",children:Np.map(u=>o.jsx("option",{value:u,children:u==="any"?"Any background":`On ${u}`},u))}),e.attachable&&o.jsx("button",{type:"button",disabled:t,onClick:l,"aria-label":`Remove ${G0[e.role]}`,children:o.jsx(pd,{size:13})})]})]})}const ev={primary:"Primary",secondary:"Secondary",accent:"Accent",neutral:"Neutral"},kF=(e,t)=>t<=1?ev[e]:`${ev[e]} ${t}`;function AF(e){return/^(Primary|Secondary|Accent|Neutral)( [2-9]\d*)?$/.test(String(e??"").trim())}const NF=/^#[0-9A-F]{6}$/;function cn(e){const t=String(e??"").trim(),n=(t.startsWith("#")?t.slice(1):t).toUpperCase();if(/^[0-9A-F]{3}$/.test(n)){const[l,c,u]=n;return`#${l}${l}${c}${c}${u}${u}`}const s=`#${n}`;return NF.test(s)?s:null}const MF=/^#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6})$/;function RF(e){const t=String(e??"").trim();return MF.test(t)?cn(t):null}function Na(e){const t=[],n={primary:0,secondary:0,accent:0,neutral:0},s=(l,c)=>{const u=cn(String((l==null?void 0:l.hex)??""));if(!u)return;n[c]+=1;const f=String((l==null?void 0:l.name)??"").trim();t.push({hex:u,name:f||kF(c,n[c]),slot:c})};s(e==null?void 0:e.primary,"primary"),s(e==null?void 0:e.secondary,"secondary");for(const l of Array.isArray(e==null?void 0:e.accent)?e.accent:[])s(l,"accent");for(const l of Array.isArray(e==null?void 0:e.neutrals)?e.neutrals:[])s(l,"neutral");return t}function Dp(e,t){const n={},s=[],l=[],c=p=>{const v=p.name.trim();return v&&!AF(v)?{hex:p.hex,name:v}:{hex:p.hex}};for(const p of e){const v=cn(p.hex);if(!v)continue;const y=c({...p,hex:v});p.slot==="neutral"?l.push(y):s.push(y)}const[u,f,...h]=s;u&&(n.primary=u),f&&(n.secondary=f),h.length&&(n.accent=h),l.length&&(n.neutrals=l);const m=String((t==null?void 0:t.usage)??"").trim();return m&&(n.usage=m),n}const tv=e=>e.slot!=="neutral";function Fp(e){var u;const t=(u=e[e.length-1])==null?void 0:u.hex;if(!t)return"#808080";const n=Number.parseInt(t.slice(1),16),[s,l,c]=[n>>16&255,n>>8&255,n&255];return`#${[c,s,l].map(f=>f.toString(16).padStart(2,"0")).join("").toUpperCase()}`}function PF(e,t){const n=cn(t);if(!n)return{palette:e,added:!1,swatch:null};const s=Na(e),l=s.find(h=>h.hex===n);if(l)return{palette:e,added:!1,swatch:l};const c=[...s,{hex:n,name:"",slot:s.length?"accent":"primary"}],u=Dp(c,e),f=Na(u).find(h=>h.hex===n)??null;return{palette:u,added:!0,swatch:f}}function LF(e,t){const n=cn(t);if(!n)return{palette:e,removed:!1};const s=Na(e),l=s.filter(c=>c.hex!==n);return l.length===s.length?{palette:e,removed:!1}:{palette:Dp(l,e),removed:!0}}function Cd(){return(Cd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e}).apply(this,arguments)}function k9(e,t){if(e==null)return{};var n,s,l={},c=Object.keys(e);for(s=0;s<c.length;s++)t.indexOf(n=c[s])>=0||(l[n]=e[n]);return l}function Dc(e){var t=r.useRef(e),n=r.useRef(function(s){t.current&&t.current(s)});return t.current=e,n.current}var tu=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e<t?t:e},Fc=function(e){return"touches"in e},Zh=function(e){return e&&e.ownerDocument.defaultView||self},nv=function(e,t,n){var s=e.getBoundingClientRect(),l=Fc(t)?(function(c,u){for(var f=0;f<c.length;f++)if(c[f].identifier===u)return c[f];return c[0]})(t.touches,n):t;return{left:tu((l.pageX-(s.left+Zh(e).pageXOffset))/s.width),top:tu((l.pageY-(s.top+Zh(e).pageYOffset))/s.height)}},rv=function(e){!Fc(e)&&e.preventDefault()},A9=Rt.memo(function(e){var t=e.onMove,n=e.onKey,s=e.onEnd,l=k9(e,["onMove","onKey","onEnd"]),c=r.useRef(null),u=Dc(t),f=Dc(n),h=Dc(s),m=r.useRef(null),p=r.useRef(!1),v=r.useMemo(function(){var S=function(k){rv(k),(Fc(k)?k.touches.length>0:k.buttons>0)&&c.current?u(nv(c.current,k,m.current)):(E(!1),h())},A=function(){E(!1),h()};function E(k){var M=p.current,N=Zh(c.current),P=k?N.addEventListener:N.removeEventListener;P(M?"touchmove":"mousemove",S),P(M?"touchend":"mouseup",A)}return[function(k){var M=k.nativeEvent,N=c.current;if(N&&(rv(M),!(function($,L){return L&&!Fc($)})(M,p.current)&&N)){if(Fc(M)){p.current=!0;var P=M.changedTouches||[];P.length&&(m.current=P[0].identifier)}N.focus(),u(nv(N,M,m.current)),E(!0)}},function(k){var M=k.which||k.keyCode;M<37||M>40||(k.preventDefault(),f({left:M===39?.05:M===37?-.05:0,top:M===40?.05:M===38?-.05:0}))},function(k){var M=k.which||k.keyCode;M>=37&&M<=40&&h()},E]},[f,u,h]),y=v[0],x=v[1],b=v[2],C=v[3];return r.useEffect(function(){return C},[C]),Rt.createElement("div",Cd({},l,{onTouchStart:y,onMouseDown:y,className:"react-colorful__interactive",ref:c,onKeyDown:x,onKeyUp:b,tabIndex:0,role:"slider"}))}),Ip=function(e){return e.filter(Boolean).join(" ")},N9=function(e){var t=e.color,n=e.left,s=e.top,l=s===void 0?.5:s,c=Ip(["react-colorful__pointer",e.className]);return Rt.createElement("div",{className:c,style:{top:100*l+"%",left:100*n+"%"}},Rt.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},zn=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n},TF=function(e){return IF(Vh(e))},Vh=function(e){return e[0]==="#"&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?zn(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:e.length===8?zn(parseInt(e.substring(6,8),16)/255,2):1}},HF=function(e){return FF(DF(e))},$F=function(e){var t=e.s,n=e.v,s=e.a,l=(200-t)*n/100;return{h:zn(e.h),s:zn(l>0&&l<200?t*n/100/(l<=100?l:200-l)*100:0),l:zn(l/2),a:zn(s,2)}},zh=function(e){var t=$F(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},DF=function(e){var t=e.h,n=e.s,s=e.v,l=e.a;t=t/360*6,n/=100,s/=100;var c=Math.floor(t),u=s*(1-n),f=s*(1-(t-c)*n),h=s*(1-(1-t+c)*n),m=c%6;return{r:zn(255*[s,f,u,u,h,s][m]),g:zn(255*[h,s,s,f,u,u][m]),b:zn(255*[u,u,h,s,s,f][m]),a:zn(l,2)}},K0=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},FF=function(e){var t=e.r,n=e.g,s=e.b,l=e.a,c=l<1?K0(zn(255*l)):"";return"#"+K0(t)+K0(n)+K0(s)+c},IF=function(e){var t=e.r,n=e.g,s=e.b,l=e.a,c=Math.max(t,n,s),u=c-Math.min(t,n,s),f=u?c===t?(n-s)/u:c===n?2+(s-t)/u:4+(t-n)/u:0;return{h:zn(60*(f<0?f+6:f)),s:zn(c?u/c*100:0),v:zn(c/255*100),a:l}},OF=Rt.memo(function(e){var t=e.hue,n=e.onChange,s=e.onChangeEnd,l=Ip(["react-colorful__hue",e.className]);return Rt.createElement("div",{className:l},Rt.createElement(A9,{onMove:function(c){n({h:360*c.left})},onKey:function(c){n({h:tu(t+360*c.left,0,360)})},onEnd:s,"aria-label":"Hue","aria-valuenow":zn(t),"aria-valuemax":"360","aria-valuemin":"0"},Rt.createElement(N9,{className:"react-colorful__hue-pointer",left:t/360,color:zh({h:t,s:100,v:100,a:1})})))}),_F=Rt.memo(function(e){var t=e.hsva,n=e.onChange,s=e.onChangeEnd,l={backgroundColor:zh({h:t.h,s:100,v:100,a:1})};return Rt.createElement("div",{className:"react-colorful__saturation",style:l},Rt.createElement(A9,{onMove:function(c){n({s:100*c.left,v:100-100*c.top})},onKey:function(c){n({s:tu(t.s+100*c.left,0,100),v:tu(t.v-100*c.top,0,100)})},onEnd:s,"aria-label":"Color","aria-valuetext":"Saturation "+zn(t.s)+"%, Brightness "+zn(t.v)+"%"},Rt.createElement(N9,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:zh(t)})))}),M9=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0},ZF=function(e,t){return e.toLowerCase()===t.toLowerCase()||M9(Vh(e),Vh(t))};function VF(e,t,n,s){var l=Dc(n),c=Dc(s),u=r.useState(function(){return e.toHsva(t)}),f=u[0],h=u[1],m=r.useRef({color:t,hsva:f}),p=r.useRef(!1);r.useEffect(function(){if(!e.equal(t,m.current.color)){var x=e.toHsva(t);m.current={hsva:x,color:t},h(x),p.current=!1}},[t,e]),r.useEffect(function(){var x;M9(f,m.current.hsva)||e.equal(x=e.fromHsva(f),m.current.color)||(m.current={hsva:f,color:x},l(x),p.current=!0)},[f,e,l]);var v=r.useCallback(function(x){h(function(b){return Object.assign({},b,x)})},[]),y=r.useCallback(function(){p.current&&(p.current=!1,c(m.current.color))},[c]);return[f,v,y]}var zF=typeof window<"u"?r.useLayoutEffect:r.useEffect,BF=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},av=new WeakMap,UF=function(e){zF(function(){var t=e.current;if(typeof document<"u"&&t){var n=t.getRootNode?t.getRootNode():t.ownerDocument,s=n&&("head"in n||"host"in n)?n:t.ownerDocument;if(!av.has(s)){var l="head"in s?s.head:s,c=(l.ownerDocument||document).createElement("style");c.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`;var u=BF();u&&c.setAttribute("nonce",u),av.set(s,c),l.appendChild(c)}}},[])},WF=function(e){var t=e.className,n=e.colorModel,s=e.color,l=s===void 0?n.defaultColor:s,c=e.onChange,u=e.onChangeEnd,f=k9(e,["className","colorModel","color","onChange","onChangeEnd"]),h=r.useRef(null);UF(h);var m=VF(n,l,c,u),p=m[0],v=m[1],y=m[2],x=Ip(["react-colorful",t]);return Rt.createElement("div",Cd({},f,{ref:h,className:x}),Rt.createElement(_F,{hsva:p,onChange:v,onChangeEnd:y}),Rt.createElement(OF,{hue:p.h,onChange:v,onChangeEnd:y,className:"react-colorful__last-control"}))},GF={defaultColor:"000",toHsva:TF,fromHsva:function(e){return HF({h:e.h,s:e.s,v:e.v,a:1})},equal:ZF},KF=function(e){return Rt.createElement(WF,Cd({},e,{colorModel:GF}))};function R1({value:e,onChange:t,label:n,presets:s,className:l,triggerStyle:c,triggerProps:u,commitMode:f="live",align:h="start",children:m}){const p=cn(e)??"#000000",[v,y]=r.useState(p),[x,b]=r.useState(!1);r.useEffect(()=>{x||y(p)},[p,x]);const C=k=>{const M=cn(k);M&&(y(M),f==="live"&&t(M))},S=k=>{const M=cn(k);M&&(y(M),t(M),f==="close"&&b(!1))},A=k=>{if(b(k),k||f!=="close")return;const M=cn(v);M&&M!==p&&t(M)},E=[...new Set((s??[]).map(k=>cn(k)).filter(k=>!!k))];return o.jsxs(Ci,{open:x,onOpenChange:A,children:[o.jsx(Si,{children:o.jsx("button",{type:"button",className:l??"sc-cp-trigger",style:{background:p,...c},"aria-label":n,...u,children:m})}),o.jsxs(ji,{className:"sc-cp",align:h,sideOffset:6,width:"232px",children:[o.jsx(KF,{color:v,onChange:C}),o.jsxs("div",{className:"sc-cp-foot",children:[o.jsx("span",{className:"sc-cp-preview",style:{background:v},"aria-hidden":!0}),o.jsx("input",{className:"sc-cp-hex",value:v,spellCheck:!1,maxLength:7,"aria-label":"Hex value",onChange:k=>{y(k.target.value);const M=cn(k.target.value);M&&f==="live"&&t(M)},onBlur:()=>y(cn(v)??p),onKeyDown:k=>{k.key==="Enter"&&(k.preventDefault(),f==="close"?S(v):b(!1))}})]}),E.length>0&&o.jsx("div",{className:"sc-cp-presets",children:E.map(k=>o.jsx("button",{type:"button",style:{background:k},"data-on":k===v||void 0,title:k,"aria-label":k,onClick:()=>f==="close"?S(k):C(k)},k))})]})]})}function YF({doc:e,suggestions:t}){var x;const n=(x=e.json)==null?void 0:x.palette,[s,l]=r.useState(()=>Na(n)),c=JSON.stringify(n??{});r.useEffect(()=>{l(Na(n))},[c]);const u=(b,C=0)=>{l(b),e.patch({palette:Dp(b,n)},{debounce:C})},f=(b,C,S=0)=>u(s.map((A,E)=>E===b?{...A,...C}:A),S),h=()=>u([...s,{hex:Fp(s),name:"",slot:s.length?"accent":"primary"}]),m=(t??[]).filter(b=>{const C=cn(b.hex);return C&&!s.some(S=>S.hex===C)}),p=(b,C)=>o.jsx(qF,{swatch:b,presets:s.map(S=>S.hex),onHex:S=>f(C,{hex:S},300),onRemove:()=>u(s.filter((S,A)=>A!==C))},`${b.slot}-${C}`),v=s.map((b,C)=>[b,C]),y=v.filter(([b])=>!tv(b));return o.jsxs("div",{className:"sc-pal",children:[s.length===0&&o.jsx("p",{className:"sc-pal-empty",children:"No colours yet. Add one and it becomes a chip you can drop into any shot."}),v.filter(([b])=>tv(b)).map(([b,C])=>p(b,C)),y.length>0&&o.jsxs(o.Fragment,{children:[o.jsx("p",{className:"sc-pal-group",children:"Neutrals"}),y.map(([b,C])=>p(b,C))]}),o.jsxs("div",{className:"sc-pal-foot",children:[o.jsxs("button",{type:"button",className:"sc-btn sc-btn-ghost",onClick:h,children:[o.jsx(Wn,{size:12}),"Add colour"]}),m.length>0&&o.jsxs("span",{className:"sc-pal-sugg",children:[o.jsx("small",{children:"From the website"}),m.map(b=>{const C=cn(b.hex);return o.jsx("button",{type:"button",className:"sc-pal-sugg-chip",style:{background:C},title:`Add ${C}`,"aria-label":`Add ${C}`,onClick:()=>u([...s,{hex:C,name:"",slot:"accent"}])},C)})]})]})]})}function qF({swatch:e,presets:t,onHex:n,onRemove:s}){const[l,c]=r.useState(e.hex);r.useEffect(()=>c(e.hex),[e.hex]);const u=()=>{const f=cn(l);f&&n(f),c(f??e.hex)};return o.jsxs("div",{className:"sc-pal-row",children:[o.jsx(R1,{value:e.hex,onChange:n,label:`${e.name} color`,presets:t,className:"sc-pal-chip"}),o.jsx("span",{className:"sc-pal-name",children:e.name}),o.jsx("input",{className:"sc-in sc-pal-hex",value:l,spellCheck:!1,maxLength:7,"aria-label":`${e.name} hex`,onChange:f=>c(f.target.value),onBlur:u,onKeyDown:f=>{f.key==="Enter"&&f.currentTarget.blur()}}),o.jsx("button",{type:"button",className:"sc-pal-act","data-danger":"",onClick:s,"aria-label":`Remove ${e.name}`,title:"Remove",children:o.jsx(pd,{size:13})})]})}function XF(){const{brand:e}=Tt(),{applyBrand:t}=an(),{push:n}=rr(),[s,l]=r.useState({}),[c,u]=r.useState("idle"),f=r.useRef(s);f.current=s;const h=r.useRef(e);h.current=e;const m=r.useRef(null),p=r.useRef(!1),v=r.useRef(!1),y=r.useCallback(()=>({...h.current.json??{},...f.current}),[]),x=r.useCallback(async()=>{if(!Object.keys(f.current).length)return;if(p.current){v.current=!0;return}p.current=!0,u("saving");const E=f.current;try{const k=await ke.updateBrand(h.current.id,y());t(k),l(M=>{const N={...M};for(const P of Object.keys(E))M[P]===E[P]&&delete N[P];return N}),u(v.current?"pending":"idle")}catch(k){u("error"),n({kind:"error",title:"Could not save the brand",detail:String((k==null?void 0:k.message)??k),action:{label:"Retry",onClick:()=>void x()}})}finally{p.current=!1,v.current&&(v.current=!1,x())}},[t,y,n]),b=r.useCallback((E,k)=>{m.current&&(clearTimeout(m.current),m.current=null);const M={...f.current,...E};f.current=M,l(M),u("pending");const N=(k==null?void 0:k.debounce)??0;N>0?m.current=setTimeout(()=>void x(),N):x()},[x]),C=r.useCallback(async()=>{m.current&&(clearTimeout(m.current),m.current=null),await x()},[x]),S=r.useCallback(E=>{l({}),f.current={},t(E),u("idle")},[t]),A=e.id;return r.useEffect(()=>{l({}),f.current={},u("idle")},[A]),r.useEffect(()=>{const E=()=>{Object.keys(f.current).length&&_$(h.current.id,y())};return window.addEventListener("beforeunload",E),()=>{window.removeEventListener("beforeunload",E),m.current&&clearTimeout(m.current),E()}},[y]),{json:y(),state:c,patch:b,flush:C,applyRow:S}}function QF(e){return e==="saving"?"Saving…":e==="pending"?"Unsaved changes":e==="error"?"Not saved":"Saved"}function JF(){var y,x;const{brand:e}=Tt(),{push:t}=rr(),n=XF(),[s,l]=r.useState(!1),[c,u]=r.useState([]),f=((x=(y=n.json)==null?void 0:y.meta)==null?void 0:x.website)??"",[h,m]=r.useState(f);r.useEffect(()=>m(f),[f]);const p=()=>{var A;const b=h.trim(),C=b&&!/^https?:\/\//i.test(b)?`https://${b}`:b;m(C);const S={...((A=n.json)==null?void 0:A.meta)??{}};C?S.website=C:delete S.website,n.patch({meta:S})},v=async()=>{var b,C;l(!0);try{await n.flush();const S=await ke.refreshBrandFromUrl(e.id);n.applyRow(S),u(((b=S.suggestions)==null?void 0:b.palette)??[]),t({kind:"success",title:"Read the website again",detail:(C=S.warnings)!=null&&C.length?S.warnings.join(" "):"Your edits were kept."})}catch(S){t(tn(S,"Could not read that website"))}finally{l(!1)}};return o.jsxs(o.Fragment,{children:[o.jsx(Vr,{title:"Identity",sub:"The name and the mark.",children:o.jsx(CF,{brand:e,doc:n})}),o.jsx(Vr,{title:"Palette",sub:"Favoured on a shot that asks for the kit.",children:o.jsx("div",{className:"sc-set-block",children:o.jsx(YF,{doc:n,suggestions:c})})}),o.jsx(Vr,{title:"We never",sub:"Held on every shot, whether the kit is asked for or not.",children:o.jsx("div",{className:"sc-set-block",children:o.jsx(EF,{doc:n})})}),o.jsxs(Vr,{title:"Portable",sub:"The kit is a file, not a lock-in.",children:[o.jsxs("div",{className:"sc-set-row","data-stack":"",children:[o.jsxs("span",{className:"txt",children:[o.jsx("b",{children:"Website"}),o.jsx("small",{children:"Reads colours and marks from the site again. Edits are kept; new colours are offered, not applied."})]}),o.jsxs("div",{className:"sc-set-controls",children:[o.jsx("input",{className:"sc-in",value:h,type:"url",inputMode:"url",placeholder:"acme.coffee","aria-label":"Brand website",onChange:b=>m(b.target.value),onBlur:p,onKeyDown:b=>{b.key==="Enter"&&b.currentTarget.blur()}}),o.jsxs("button",{type:"button",className:"sc-btn sc-btn-ghost",disabled:!f||s,onClick:()=>void v(),children:[s?o.jsx(qt,{size:"1"}):o.jsx(gp,{size:13})," Refresh"]})]})]}),o.jsxs("div",{className:"sc-set-row",children:[o.jsxs("span",{className:"txt",children:[o.jsx("b",{children:"Export .brand"}),o.jsx("small",{"data-prose":"",children:"A zip holding brand.json and every image it references: the form any tool can read."})]}),o.jsx("a",{className:"sc-btn sc-btn-ghost",href:I$(e.id),download:!0,onClick:()=>void n.flush(),children:"Export"})]}),o.jsxs("div",{className:"sc-set-row",children:[o.jsxs("span",{className:"txt",children:[o.jsx("b",{children:"Changes"}),o.jsx("small",{"data-prose":"",children:"Written as you make them. There is no save button to forget."})]}),o.jsx("span",{className:"sc-tag","data-state":n.state,children:QF(n.state)})]})]})]})}const ro=e=>e.replace(/\s*\(BYOK\)\s*$/i,""),nu="codex-cli";function eI(e,t){var n;return e.some(s=>s.id===t)?t:((n=e[0])==null?void 0:n.id)??nu}const tI=e=>e.toFixed(3).replace(/0+$/,"").replace(/\.$/,"");function nI(e){return e.free?e.localOnly?"Runs on your ChatGPT plan":"No cost per image":`$${tI(e.perGeneration)} / image`}function rI(e,t){if(t)return e.available?"Manage":"Connect";if(e.available)return e.id===nu?"Manage":null;switch(e.code){case"update-needed":return"Update";case"not-installed":case"not-authenticated":case"unverified":return"Set up";default:return null}}function R9(e){return o.jsx("svg",{viewBox:"0 0 24 24",width:"20",height:"20",fill:"currentColor","aria-hidden":"true",focusable:"false",...e,children:o.jsx("path",{d:"M22.282 9.821a6 6 0 0 0-.516-4.91a6.05 6.05 0 0 0-6.51-2.9A6.065 6.065 0 0 0 4.981 4.18a6 6 0 0 0-3.998 2.9a6.05 6.05 0 0 0 .743 7.097a5.98 5.98 0 0 0 .51 4.911a6.05 6.05 0 0 0 6.515 2.9A6 6 0 0 0 13.26 24a6.06 6.06 0 0 0 5.772-4.206a6 6 0 0 0 3.997-2.9a6.06 6.06 0 0 0-.747-7.073M13.26 22.43a4.48 4.48 0 0 1-2.876-1.04l.141-.081l4.779-2.758a.8.8 0 0 0 .392-.681v-6.737l2.02 1.168a.07.07 0 0 1 .038.052v5.583a4.504 4.504 0 0 1-4.494 4.494M3.6 18.304a4.47 4.47 0 0 1-.535-3.014l.142.085l4.783 2.759a.77.77 0 0 0 .78 0l5.843-3.369v2.332a.08.08 0 0 1-.033.062L9.74 19.95a4.5 4.5 0 0 1-6.14-1.646M2.34 7.896a4.5 4.5 0 0 1 2.366-1.973V11.6a.77.77 0 0 0 .388.677l5.815 3.354l-2.02 1.168a.08.08 0 0 1-.071 0l-4.83-2.786A4.504 4.504 0 0 1 2.34 7.872zm16.597 3.855l-5.833-3.387L15.119 7.2a.08.08 0 0 1 .071 0l4.83 2.791a4.494 4.494 0 0 1-.676 8.105v-5.678a.79.79 0 0 0-.407-.667m2.01-3.023l-.141-.085l-4.774-2.782a.78.78 0 0 0-.785 0L9.409 9.23V6.897a.07.07 0 0 1 .028-.061l4.83-2.787a4.5 4.5 0 0 1 6.68 4.66zm-12.64 4.135l-2.02-1.164a.08.08 0 0 1-.038-.057V6.075a4.5 4.5 0 0 1 7.375-3.453l-.142.08L8.704 5.46a.8.8 0 0 0-.393.681zm1.097-2.365l2.602-1.5l2.607 1.5v2.999l-2.597 1.5l-2.607-1.5Z"})})}function aI(e){return o.jsx("svg",{viewBox:"0 0 24 24",width:"20",height:"20",fill:"currentColor","aria-hidden":"true",focusable:"false",...e,children:o.jsx("path",{d:"M16.778 1.844v1.919q-.569-.026-1.138-.032-.708-.008-1.415.037c-1.93.126-4.023.728-6.149 2.237-2.911 2.066-2.731 1.95-4.14 2.75-.396.223-1.342.574-2.185.798-.841.225-1.753.333-1.751.333v4.229s.768.108 1.61.333c.842.224 1.789.575 2.185.799 1.41.798 1.228.683 4.14 2.75 2.126 1.509 4.22 2.11 6.148 2.236.88.058 1.716.041 2.555.005v1.918l7.222-4.168-7.222-4.17v2.176c-.86.038-1.611.065-2.278.021-1.364-.09-2.417-.357-3.979-1.465-2.244-1.593-2.866-2.027-3.68-2.508.889-.518 1.449-.906 3.822-2.59 1.56-1.109 2.614-1.377 3.978-1.466.667-.044 1.418-.017 2.278.02v2.176L24 6.014Z"})})}function sI(e){return o.jsx("svg",{viewBox:"0 0 24 24",width:"20",height:"20",fill:"currentColor","aria-hidden":"true",focusable:"false",...e,children:o.jsx("path",{d:"M24 10.262v2.712h-9.518V24h-3.034V10.262zm0-5.131v2.717H8.755V24H5.722V5.131zM24 0v2.717H3.034V24H0V0z"})})}const oI=[{engineId:"openrouter",settingKey:"openrouter_api_key",hint:"sk-or-...",keysUrl:"https://openrouter.ai/keys"},{engineId:"replicate",settingKey:"replicate_api_token",hint:"r8_...",keysUrl:"https://replicate.com/account/api-tokens"},{engineId:"fal",settingKey:"fal_key",hint:"fal_...",keysUrl:"https://fal.ai/dashboard/keys"}],P9=e=>oI.find(t=>t.engineId===e),L9={"codex-cli":{Mark:R9,size:16,plate:"#FFFFFF",ink:"#000000"},openrouter:{Mark:aI,size:18,plate:"#FFFFFF",ink:"#7624F4"},replicate:{Mark:sI,size:15,plate:"#E42022",ink:"#FFFFFF"}},Bh=e=>{const t=L9[e];return t?{plate:t.plate,ink:t.ink}:void 0},lI={demo:m$};function T9({engineId:e,scale:t=1}){const n=L9[e];if(n){const l=Math.round(n.size*t);return o.jsx(n.Mark,{width:l,height:l})}const s=lI[e]??N1;return o.jsx(s,{size:Math.round(15*t)})}const iI=e=>[...e].sort((t,n)=>+(n.id===nu)-+(t.id===nu));function cI({engines:e}){const t=xd(),s=e.filter(l=>l.available).length===0;return o.jsx(Vr,{sub:"Where your images are generated. Connect as many as you like, then pick one in the composer.",children:iI(e).map(l=>{const c=P9(l.id),u=ro(l.displayName),f=rI(l,!!c),h=l.available?"Connected":null,m=!h&&l.reason&&(!f||l.code==="unverified"),p=Bh(l.id);return o.jsxs("div",{className:"sc-eng","data-connected":l.available?"":void 0,children:[o.jsx("span",{className:"sc-eng-ic","data-brand":p?"":void 0,style:p?{"--sc-plate":p.plate,"--sc-ink":p.ink}:void 0,children:o.jsx(T9,{engineId:l.id})}),o.jsxs("span",{className:"sc-eng-name",children:[o.jsx("b",{children:u}),o.jsx("small",{children:nI(l)})]}),h&&o.jsxs("span",{className:"sc-stat",children:[o.jsx("span",{className:"d"}),h]}),m&&o.jsx("span",{className:"sc-stat sc-stat-why",children:l.reason}),f&&o.jsx("button",{type:"button",className:`sc-btn ${s&&!c?"sc-btn-primary":"sc-btn-ghost"} sc-eng-act`,onClick:()=>t(l.id),"aria-label":`${f} ${u}`,children:f})]},l.id)})})}const uI={npx:"run with npx",global:"installed with npm",managed:"managed install",dev:"running from source",unknown:"local studio"};function dI(e){switch(e){case"npx":return"npx scenri update";case"global":case"managed":return"scenri update";default:return"npx scenri@latest"}}function fI({version:e}){var b;const t=jp(),n=Sd(),s=t.status,[l,c]=r.useState(null),[u,f]=r.useState(!1);r.useEffect(()=>{ke.settings().then(C=>c(!!C.updateCheck)).catch(()=>{})},[]);const h=async()=>{if(l===null)return;const C=!l;c(C);try{await ke.saveSettings({updateCheck:C})}catch{c(!C)}},m=dI(e==null?void 0:e.installKind),p=async()=>{try{await navigator.clipboard.writeText(m),f(!0),setTimeout(()=>f(!1),1600)}catch{}},v=t.checking?o.jsx("span",{className:"sc-tag",children:"checking…"}):s!=null&&s.available?o.jsxs("span",{className:"sc-tag sc-tag-gold",children:[s.latest," available"]}):t.checkError||s!=null&&s.error?o.jsx("span",{className:"sc-tag",children:"couldn't check for updates"}):s!=null&&s.checkedAt?o.jsx("span",{className:"sc-tag",children:"up to date"}):null;let y,x;return s!=null&&s.available?(e==null?void 0:e.installKind)==="dev"?(y="Running from source. Pull and rebuild when you're ready; nothing here touches your checkout.",x=null):s9(s)?s.phase==="ready"?(y=t.applyError??`${s.stagedVersion} is downloaded and verified. Restarting finishes it.`,x="restart"):s.phase==="staging"?(y="Downloading in the background. Nothing interrupts your work.",x="downloading"):s.phase==="error"?(y=t.applyError??s.error??"Couldn't download the update. Try again.",x="update"):(y=`You are on ${s.current}.`,x="update"):(y=o.jsxs(o.Fragment,{children:["Run ",o.jsx("code",{children:m})," in a terminal, then start Scenri again. Your library is not part of the app and stays put."]}),x="copy"):(y=s&&!s.enabled?"Automatic checks are off. Checking here still works.":"New versions announce themselves here.",x="check"),o.jsxs(Vr,{children:[o.jsx("div",{className:"sc-set-row",children:o.jsxs("span",{className:"txt",children:[o.jsx("b",{children:"Scenri"}),o.jsxs("small",{children:[e?`v${e.version}`:""," · ",uI[(e==null?void 0:e.installKind)??"unknown"]]})]})}),o.jsxs("div",{className:"sc-set-row",children:[o.jsxs("span",{className:"txt",children:[o.jsx("b",{children:"Updates"}),o.jsxs("small",{"data-prose":"",children:[y,(s==null?void 0:s.available)&&s.phase!=="ready"&&s.notesUrl&&o.jsxs(o.Fragment,{children:[" ",o.jsxs("a",{href:s.notesUrl,target:"_blank",rel:"noreferrer",children:["See what's in ",s.latest]})]})]})]}),v,x==="check"&&o.jsx("button",{type:"button",className:"sc-btn sc-btn-ghost",disabled:t.checking,onClick:()=>void t.checkNow(),children:"Check for updates"}),(x==="update"||x==="restart")&&o.jsx("button",{type:"button",className:"sc-btn sc-btn-primary",disabled:t.busy!=="idle",onClick:()=>void t.apply(),children:t.busy!=="idle"?"Updating…":(s==null?void 0:s.phase)==="error"?"Try again":"Update"}),x==="downloading"&&o.jsx("button",{type:"button",className:"sc-btn sc-btn-primary",disabled:!0,children:"Downloading…"}),x==="copy"&&o.jsx("button",{type:"button",className:"sc-btn sc-btn-ghost",onClick:()=>void p(),children:u?"Copied":"Copy command"})]}),o.jsxs("div",{className:"sc-set-row",children:[o.jsxs("span",{className:"txt",children:[o.jsx("b",{children:"What's new"}),o.jsx("small",{children:((b=n.entry)==null?void 0:b.title)??`What changed in ${n.version?`v${n.version}`:"this version"}.`})]}),o.jsx("button",{type:"button",className:"sc-btn sc-btn-ghost",onClick:()=>n.open(),children:"Show"})]}),o.jsxs("div",{className:"sc-set-row",children:[o.jsxs("span",{className:"txt",children:[o.jsx("b",{children:"Automatic updates"}),o.jsx("small",{"data-prose":"",children:"A version check every six hours; new versions download in the background, and restarting is always your call. Off means Scenri never calls anywhere by itself."})]}),o.jsx("button",{type:"button",className:"sc-btn sc-btn-ghost",disabled:l===null,onClick:()=>void h(),children:l===null?"…":l?"Turn off":"Turn on"})]}),o.jsx("div",{className:"sc-set-row",children:o.jsxs("span",{className:"txt",children:[o.jsx("b",{children:"License"}),o.jsx("small",{children:"AGPL-3.0 for the app · Apache-2.0 for the .brand format"})]})}),o.jsx("div",{className:"sc-set-row",children:o.jsxs("span",{className:"txt",children:[o.jsx("b",{children:"Open source"}),o.jsxs("small",{children:["Built by Tony Gorb ·"," ",o.jsx("a",{href:"https://github.com/tonygorb/scenri",target:"_blank",rel:"noreferrer",children:"GitHub"})]})]})})]})}function hI(){const{choice:e,setChoice:t}=WT(),n=[{id:"light",label:"Light",swatch:"linear-gradient(140deg,#ffffff 55%,#f1f1f1)"},{id:"dark",label:"Dark",swatch:"linear-gradient(140deg,#0d0d0d 55%,#1c1c1c)"},{id:"system",label:"System",swatch:"linear-gradient(110deg,#ffffff 50%,#0d0d0d 50%)"}];return o.jsx(Vr,{sub:"Follows your system unless you pick a side.",children:o.jsx("div",{className:"sc-themes",children:n.map(s=>o.jsxs("button",{type:"button",className:"sc-tp","data-on":e===s.id?"":void 0,onClick:()=>t(s.id),children:[o.jsx("span",{className:"swl",style:{background:s.swatch}}),o.jsxs("span",{className:"lbl",children:[o.jsx("span",{className:"dot"}),s.label]})]},s.id))})})}function mI({engines:e,onSaved:t}){const n=e.filter(u=>!u.free),[s,l]=r.useState({});r.useEffect(()=>{l(Object.fromEntries(n.map(u=>[u.id,u.cap===null?"":String(u.cap)])))},[e]);const c=async u=>{const f=(s[u]??"").trim(),h=f===""?null:Number(f);h!==null&&(Number.isNaN(h)||h<0)||(await ke.setCap(u,h),t())};return n.length?o.jsx(Vr,{sub:"Your own API budget. Generation stops before a cap is crossed, so a runaway loop cannot spend your month.",children:n.map(u=>{const f=u.generationsLeft,h=u.generationsTotal,m=h&&h>0?Math.min(100,Math.round((h-(f??0))/h*100)):0,p=`$${u.monthlySpend.toFixed(2)} this month`;return o.jsxs("div",{className:"sc-cap",children:[o.jsxs("div",{className:"sc-cap-top",children:[o.jsxs("span",{className:"txt",children:[o.jsx("b",{children:ro(u.displayName)}),o.jsx("small",{children:f===null?p:`${p} · ${f} left`})]}),o.jsxs("div",{className:"sc-cap-in",children:[o.jsx("span",{className:"sc-cap-dollar",children:"$"}),o.jsx("input",{className:"sc-in",inputMode:"decimal",placeholder:"None",value:s[u.id]??"",onChange:v=>l(y=>({...y,[u.id]:v.target.value})),onBlur:()=>void c(u.id),"aria-label":`${ro(u.displayName)} monthly cap in dollars`})]})]}),h!==null&&o.jsx("div",{className:"sc-meter",children:o.jsx("i",{style:{width:`${m}%`}})})]},u.id)})}):o.jsx(Vr,{sub:"Nothing to cap yet. Caps apply to engines you pay for per image. Codex usage counts against your ChatGPT plan, which OpenAI meters, not Scenri.",children:o.jsx("p",{className:"sc-set-empty",children:"Add a paid engine key and its cap appears here."})})}function Cs({label:e,title:t,body:n,busy:s,onConfirm:l,fullWidth:c}){return o.jsxs(vu,{children:[o.jsx(i5,{children:o.jsx("button",{type:"button",className:"sc-btn sc-btn-ghost sc-btn-red",disabled:s,style:c?{width:"100%"}:void 0,children:e})}),o.jsxs(yu,{maxWidth:"420px",children:[o.jsx(xu,{children:t}),o.jsx(wu,{size:"2",children:n}),o.jsxs(pr,{gap:"3",mt:"4",justify:"end",children:[o.jsx(Eu,{children:o.jsx(ja,{variant:"soft",color:"gray",children:"Cancel"})}),o.jsx(bu,{children:o.jsx(ja,{color:"red",onClick:l,children:e})})]})]})]})}function pI({onDone:e}){const{brand:t}=Tt(),n=vn(),[s,l]=r.useState(!1),c=r.useCallback(async u=>{l(!0);try{await ke.deleteData(u),e(),u==="all"&&window.location.replace("/")}finally{l(!1)}},[e]);return o.jsxs(Vr,{sub:"These do not come back. Export from Library first if you are not certain.",children:[o.jsxs("div",{className:"sc-set-row",children:[o.jsxs("span",{className:"txt",children:[o.jsx("b",{children:"Delete this brand"}),o.jsxs("small",{"data-prose":"",children:["Removes ",xs(t),", its sets and every shot. Other brands stay."]})]}),o.jsx(Cs,{label:"Delete brand",title:`Delete ${xs(t)}?`,body:"The kit, its sets and every shot go with it. Exports you already downloaded stay yours.",busy:s,onConfirm:()=>{l(!0),ke.deleteBrand(t.id).then(e).then(()=>n("/",{replace:!0})).finally(()=>l(!1))}})]}),o.jsxs("div",{className:"sc-set-row",children:[o.jsxs("span",{className:"txt",children:[o.jsx("b",{children:"Delete generated shots"}),o.jsx("small",{"data-prose":"",children:"Keeps brands, cast and scenes. Removes every set and every generated shot."})]}),o.jsx(Cs,{label:"Delete shots",title:"Delete every generated shot?",body:"Brands, cast and scenes stay. Every set and every generated shot goes.",busy:s,onConfirm:()=>void c("shots")})]}),o.jsxs("div",{className:"sc-set-row",children:[o.jsxs("span",{className:"txt",children:[o.jsx("b",{children:"Delete all local data"}),o.jsx("small",{"data-prose":"",children:"Brands, cast, sets, shots and saved keys, in one go."})]}),o.jsx(Cs,{label:"Delete everything",title:"Delete everything on this machine?",body:"The whole library folder is removed: brands, cast, sets, shots and your saved keys. There is no undo.",busy:s,onConfirm:()=>void c("all")})]})]})}const gI=e=>e>1e9?`${(e/1e9).toFixed(1)} GB`:e>1e6?`${Math.round(e/1e6)} MB`:`${Math.round(e/1e3)} KB`,V2=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function vI(e){return e===0?0:e<3?1:e<6?2:e<12?3:4}function sv(e,t){const n=t*7,s=new Date,l=new Date(s);l.setDate(s.getDate()-(n-1)-s.getDay());const c=[],u=[];let f=-1,h=0;for(let m=0;m<n;m++){const p=new Date(l);p.setDate(l.getDate()+m);const v=p.toISOString().slice(0,10),y=e.get(v)??0;if(h+=y,c.push({key:v,level:vI(y),title:y?`${y} run${y===1?"":"s"} on ${p.getDate()} ${V2[p.getMonth()]}`:`nothing on ${p.getDate()} ${V2[p.getMonth()]}`}),p.getDay()===0){const x=p.getMonth()!==f&&p.getDate()<=7;x&&(f=p.getMonth()),u.push({key:v,label:x?V2[p.getMonth()]:""})}}return{cells:c,months:u,sum:h}}function yI(){const[e,t]=r.useState(null);return r.useEffect(()=>{ke.home().then(t).catch(()=>{})},[]),o.jsxs(Vr,{sub:"Plain files on this machine. Open them yourself, back them up like anything else.",children:[o.jsxs("div",{className:"sc-set-row",children:[o.jsxs("span",{className:"txt",children:[o.jsx("b",{children:"Library folder"}),o.jsx("small",{children:e?`${e.dir} · ${gI(e.bytes)} across ${e.images} images`:"…"})]}),o.jsx("button",{type:"button",className:"sc-btn sc-btn-ghost",onClick:()=>void ke.reveal(),children:"Reveal"})]}),o.jsxs("div",{className:"sc-set-row",children:[o.jsxs("span",{className:"txt",children:[o.jsx("b",{children:"Export everything"}),o.jsx("small",{children:"One zip: brands, cast, briefs, shots. Never keys."})]}),o.jsx("a",{className:"sc-btn sc-btn-ghost",href:"/api/export/all",download:!0,children:"Export"})]}),o.jsxs("div",{className:"sc-set-row",children:[o.jsxs("span",{className:"txt",children:[o.jsx("b",{children:"Telemetry"}),o.jsx("small",{children:"There is none. This row exists to say so."})]}),o.jsx("span",{className:"sc-tag",children:"off, permanently"})]})]})}function ov({weeks:e,months:t,cells:n}){return o.jsxs("div",{className:"sc-heat-range","data-weeks":e,children:[o.jsx("div",{className:"sc-heat-months",children:t.map(s=>o.jsx("span",{children:s.label},s.key))}),o.jsx("div",{className:"sc-heat-grid",children:n.map(s=>o.jsx("i",{"data-l":s.level||void 0,title:s.title},s.key))})]})}function xI({shots:e}){const t=r.useMemo(()=>e.filter(f=>f.kind!=="root"),[e]),{year:n,quarter:s,total:l,byKind:c}=r.useMemo(()=>{const f=new Map,h={generation:0,edit:0};for(const v of t??[]){const y=String(v.createdAt).slice(0,10);f.set(y,(f.get(y)??0)+1),v.kind==="edit"?h.edit++:h.generation++}const m=sv(f,53),p=sv(f,13);return{year:m,quarter:p,total:m.sum,byKind:h}},[t]);if(t===null)return o.jsx("p",{className:"sc-set-empty",children:"Reading your library…"});const u=Math.max(c.generation,c.edit,1);return o.jsxs(o.Fragment,{children:[o.jsx(Vr,{title:"The last year",sub:"One square per day, counted from your own runs.",children:o.jsxs("div",{className:"sc-heat",children:[o.jsx("div",{className:"sc-heat-h",children:o.jsxs("b",{children:[l.toLocaleString()," runs in the last year"]})}),o.jsx(ov,{weeks:53,months:n.months,cells:n.cells}),o.jsx(ov,{weeks:13,months:s.months,cells:s.cells})]})}),o.jsx(Vr,{title:"By activity",children:o.jsxs("div",{className:"sc-bars",children:[o.jsxs("div",{className:"sc-bar",children:[o.jsx("span",{className:"k",children:"Generations"}),o.jsx("span",{className:"t",children:o.jsx("i",{style:{width:`${c.generation/u*100}%`}})}),o.jsx("span",{className:"v",children:c.generation})]}),o.jsxs("div",{className:"sc-bar",children:[o.jsx("span",{className:"k",children:"Edits"}),o.jsx("span",{className:"t",children:o.jsx("i",{style:{width:`${c.edit/u*100}%`}})}),o.jsx("span",{className:"v",children:c.edit})]})]})})]})}const ti=[{id:"brand",label:"Brand kit",title:"Brand kit",icon:o.jsx(j$,{size:14})},{id:"engines",label:"Providers",title:"Providers",icon:o.jsx(N1,{size:14})},{id:"budget",label:"Budget",title:"Budget",icon:o.jsx(A$,{size:14})},{id:"usage",label:"Usage",title:"Usage",icon:o.jsx(g$,{size:14})},{id:"library",label:"Library",title:"Library",icon:o.jsx(f$,{size:14})},{id:"appearance",label:"Appearance",title:"Appearance",icon:o.jsx(T$,{size:14})},{id:"about",label:"About",title:"About",icon:o.jsx(wp,{size:14})},{id:"danger",label:"Danger zone",title:"Danger zone",icon:o.jsx(pd,{size:14}),danger:!0}];function wI({engines:e,shots:t,onSaved:n}){const s=Ps("settings"),l=s.value!==null,[c,u]=r.useState(null);r.useEffect(()=>{if(!l||c)return;let p=!0;return ke.version().then(v=>p&&u(v)).catch(()=>{}),()=>{p=!1}},[l,c]);const f=ti.some(p=>p.id===s.value)?s.value:"brand",h=p=>s.set(p),m=r.useRef(null);return r.useEffect(()=>{const p=m.current;if(!p)return;const v=p.querySelector('[aria-current="page"]');if(!(v instanceof HTMLElement))return;const y=requestAnimationFrame(()=>{const x=v.offsetLeft-(p.clientWidth-v.offsetWidth)/2;p.scrollTo({left:Math.max(0,x)})});return()=>cancelAnimationFrame(y)},[f,l]),o.jsx(bl,{open:l,onOpenChange:p=>!p&&s.close(),children:o.jsxs(El,{className:"sc-set",maxWidth:"940px","aria-describedby":void 0,onOpenAutoFocus:ju,children:[o.jsx(Cl,{style:{display:"none"},children:"Settings"}),o.jsxs("div",{className:"sc-set-grid",children:[o.jsxs("nav",{className:"sc-set-rail","aria-label":"Settings",children:[o.jsx("p",{className:"sc-set-group",children:"This brand"}),o.jsx(z2,{p:ti[0],on:f==="brand",pick:()=>h("brand")}),o.jsx("p",{className:"sc-set-group",children:"Generation"}),ti.slice(1,4).map(p=>o.jsx(z2,{p,on:f===p.id,pick:()=>h(p.id)},p.id)),o.jsx("p",{className:"sc-set-group",children:"This machine"}),ti.slice(4).map(p=>o.jsx(z2,{p,on:f===p.id,pick:()=>h(p.id)},p.id)),o.jsx("span",{className:"sc-set-spacer"}),o.jsxs("p",{className:"sc-set-ver",children:[c?`v${c.version}`:"Scenri"," · local"]})]}),o.jsxs("div",{className:"sc-set-body",children:[o.jsxs("div",{className:"sc-set-head",children:[o.jsx("b",{children:ti.find(p=>p.id===f).title}),o.jsx("span",{className:"sc-set-sp"}),o.jsx(Cu,{children:o.jsx("button",{type:"button",className:"sc-set-close","aria-label":"Close",children:o.jsx(Mn,{size:16})})})]}),o.jsx("nav",{className:"sc-set-tabs","aria-label":"Settings",ref:m,children:ti.map(p=>o.jsx(bI,{p,on:f===p.id,pick:()=>h(p.id)},p.id))}),o.jsxs("div",{className:"sc-set-scroll",children:[f==="brand"&&o.jsx(JF,{}),f==="engines"&&o.jsx(cI,{engines:e}),f==="budget"&&o.jsx(mI,{engines:e,onSaved:n}),f==="usage"&&o.jsx(xI,{shots:t}),f==="library"&&o.jsx(yI,{}),f==="appearance"&&o.jsx(hI,{}),f==="about"&&o.jsx(fI,{version:c}),f==="danger"&&o.jsx(pI,{onDone:n})]})]})]})]})})}function z2({p:e,on:t,pick:n}){return o.jsxs("button",{type:"button",className:"sc-set-item","data-on":t?"":void 0,"data-danger":e.danger?"":void 0,"aria-current":t?"page":void 0,onClick:n,children:[e.icon,e.label]})}function bI({p:e,on:t,pick:n}){return o.jsx("button",{type:"button",className:"sc-chip","data-active":t?"true":void 0,"data-danger":e.danger?"":void 0,"aria-current":t?"page":void 0,onClick:n,children:e.label})}const EI=["January","February","March","April","May","June","July","August","September","October","November","December"];function CI(e){const t=e.match(/^(\d{4})-(\d{2})-(\d{2})$/);if(!t)return e;const n=EI[Number(t[2])-1];return n?`${Number(t[3])} ${n} ${t[1]}`:e}function SI(){const e=Ps("whatsnew"),{status:t,version:n,entry:s,changelogUrl:l,releasesUrl:c,markSeen:u}=Sd(),f=e.value!==null,h=()=>{u(),e.close()},m=t==="ready"&&!s&&!l,p=s!==null&&s.sections.length>1,v=t==="loading"?"Reading the release notes.":t==="failed"?"Scenri could not read its release notes. If you are running a development server, it may predate this feature; restart it and try again.":m?"You are running a development build. What changed in a version appears here once that version is published.":s?"Maintenance only. Nothing here changes how Scenri works for you.":"This version went out without a written summary.",y=s?o.jsxs(o.Fragment,{children:[o.jsx("span",{className:"sc-vh",children:"Version "}),o.jsx("span",{className:"sc-wn-ver",children:s.version}),o.jsx("span",{"aria-hidden":"true",children:" · "}),CI(s.date)]}):t==="failed"?"Release notes unavailable":t==="loading"?"Loading":m?"Development build":o.jsxs(o.Fragment,{children:[o.jsx("span",{className:"sc-vh",children:"Version "}),o.jsx("span",{className:"sc-wn-ver",children:n})]});return o.jsxs(Ed,{open:f,className:"sc-wn",maxWidth:"420px",described:!0,onDismiss:h,children:[o.jsxs("div",{className:"sc-newdlg-head",children:[o.jsx(Rp,{className:"sc-newdlg-title",children:"What's new"}),o.jsx(M1,{children:o.jsx("button",{type:"button",className:"sc-set-close sc-newdlg-close","aria-label":"Close",children:o.jsx(Mn,{size:16})})})]}),o.jsx(_D,{className:"sc-wn-sub",children:y}),o.jsxs("div",{className:"sc-newdlg-body",children:[(s==null?void 0:s.title)&&o.jsx("p",{className:"sc-wn-lede sc-accent",children:s.title}),s&&s.sections.length>0?s.sections.map(x=>o.jsxs("section",{className:"sc-wn-sec",children:[p&&o.jsx("h3",{className:"sc-wn-head",children:x.heading}),o.jsx("p",{className:"sc-wn-txt",children:x.body})]},x.heading)):o.jsx("p",{className:"sc-wn-txt",children:v})]}),o.jsxs("div",{className:"sc-newdlg-foot sc-wn-foot",children:[c&&o.jsxs("a",{className:"sc-wn-link",href:c,target:"_blank",rel:"noreferrer",children:["All releases",o.jsx(fd,{size:13})]}),o.jsx(M1,{children:o.jsx("button",{type:"button",className:"sc-btn sc-btn-primary",children:"Got it"})})]})]})}const jI=2e3,kI=5*6e4;function AI({engines:e,onSaved:t}){const n=Ps("setup"),s=n.close,l=n.value,c=l?P9(l):void 0,f=!!c||l==="codex-cli",h=e.find(m=>m.id===l);return o.jsx(bl,{open:f,onOpenChange:m=>!m&&s(),children:o.jsx(El,{className:"sc-setup",maxWidth:"520px","aria-describedby":void 0,onOpenAutoFocus:ju,children:c?o.jsx(NI,{provider:c,name:h?ro(h.displayName):c.engineId,connected:!!(h!=null&&h.available),onSaved:t,onDone:s}):o.jsx(MI,{engines:e,onSaved:t,onDone:s})})})}function H9({title:e}){return o.jsxs("div",{className:"sc-setup-head",children:[o.jsx(Cl,{className:"sc-setup-title",children:e}),o.jsx("span",{className:"sc-set-sp"}),o.jsx(Cu,{children:o.jsx("button",{type:"button",className:"sc-set-close","aria-label":"Close",children:o.jsx(Mn,{size:16})})})]})}function NI({provider:e,name:t,connected:n,onSaved:s,onDone:l}){var S,A;const[c,u]=r.useState(""),[f,h]=r.useState(!1),[m,p]=r.useState(null),[v,y]=r.useState(!1),x=r.useRef(null);r.useEffect(()=>{var E;(E=x.current)==null||E.focus()},[]);const b=async()=>{const E=c.trim();if(E){h(!0),p(null);try{await ke.saveSettings({[e.settingKey]:E}),u(""),s(),l()}catch(k){p(k.message)}finally{h(!1)}}},C=async()=>{h(!0),p(null);try{await ke.saveSettings({[e.settingKey]:""});const E=await ke.settings();if(s(),E[e.settingKey]){y(!0);return}l()}catch(E){p(E.message)}finally{h(!1)}};return o.jsxs(o.Fragment,{children:[o.jsx(H9,{title:n?`${t} key`:`Connect ${t}`}),o.jsxs("div",{className:"sc-setup-body",children:[o.jsxs("div",{className:"sc-setup-who",children:[o.jsx("span",{className:"sc-eng-ic","data-brand":"",style:{"--sc-plate":(S=Bh(e.engineId))==null?void 0:S.plate,"--sc-ink":(A=Bh(e.engineId))==null?void 0:A.ink},children:o.jsx(T9,{engineId:e.engineId})}),o.jsx("p",{className:"sc-setup-lead",children:n?`A key is saved for ${t}. Paste a new one to replace it, or disconnect to remove it from this computer.`:`Paste a key from ${t}. It is stored in your library folder on this computer, sent only to ${t}, and never shown again.`})]}),o.jsxs("form",{className:"sc-setup-key",onSubmit:E=>{E.preventDefault(),b()},children:[o.jsx("input",{ref:x,className:"sc-in",type:"password",placeholder:e.hint,value:c,onChange:E=>u(E.target.value),autoComplete:"off",name:e.settingKey,"aria-label":`${t} key`}),o.jsxs("div",{className:"sc-setup-acts",children:[o.jsxs("button",{type:"submit",className:"sc-btn sc-btn-primary",disabled:f||!c.trim(),children:[f?o.jsx(qt,{size:"1"}):o.jsx(vw,{size:15}),n?"Replace key":"Connect"]}),o.jsxs("a",{className:"sc-setup-alt",href:e.keysUrl,target:"_blank",rel:"noreferrer",children:["Get a key ",o.jsx(fd,{size:13})]})]})]}),n&&o.jsx("div",{className:"sc-setup-cut",children:o.jsx(Cs,{label:"Disconnect",title:`Disconnect ${t}?`,body:"The key is deleted from this computer. Nothing you have already generated changes, and you can paste a new key at any time.",busy:f,onConfirm:()=>void C()})}),v&&o.jsxs("p",{className:"sc-setup-note",children:["The stored key is gone, but ",t," is still connected through the ",e.settingKey.toUpperCase()," ","environment variable on this computer. Remove it from your shell to disconnect fully."]}),m&&o.jsx("div",{className:"sc-setup-problem",children:o.jsxs("p",{"data-detail":"",children:[o.jsx(Bw,{size:15})," ",m]})})]})]})}function MI({engines:e,onSaved:t,onDone:n}){const s=xd(),[l,c]=r.useState("checking"),[u,f]=r.useState(null),[h,m]=r.useState(!1),[p,v]=r.useState("mac"),y=r.useRef(null),x=r.useCallback(()=>{y.current!==null&&(window.clearInterval(y.current),y.current=null)},[]),b=r.useCallback(async()=>{const{state:M,platform:N}=await ke.codexStatus();return N&&v(N),c(M),M},[]);r.useEffect(()=>(f(null),c("checking"),b().catch(()=>c("unverified")),x),[b,x]);const C=r.useCallback(()=>{f(null),c("checking"),b().catch(()=>c("unverified"))},[b]);r.useEffect(()=>{l==="ready"&&t()},[l,t]);const S=async()=>{f(null),c("installing");try{const M=await ke.installCodex();if(M.ok||M.state!=="not-installed"){c(M.state);return}f({detail:M.detail,command:M.fallbackCommand,docsUrl:M.docsUrl}),c(M.state)}catch(M){f({detail:M.message,command:"npm install -g @openai/codex"}),c("not-installed")}},A=async()=>{f(null),c("signing-in");const M=Date.now();x(),y.current=window.setInterval(()=>{if(Date.now()-M>kI){x(),c("not-authenticated"),f({detail:"Sign-in did not finish. Try again, or use the command below.",command:"codex login"});return}ke.codexStatus().then(({state:N})=>{N==="ready"&&(x(),c("ready"))}).catch(()=>{})},jI);try{const N=await ke.loginCodex();if(x(),N.ok||N.state==="ready"){c(N.state);return}f({detail:N.detail,command:N.fallbackCommand}),c(N.state)}catch(N){x(),f({detail:N.message,command:"codex login --device-auth"}),c("not-authenticated")}},E=M=>{var N;(N=navigator.clipboard)==null||N.writeText(M).then(()=>{m(!0),window.setTimeout(()=>m(!1),1600)})},k=e.filter(M=>M.available&&M.id!=="codex-cli"&&!M.localOnly);return o.jsxs(o.Fragment,{children:[o.jsx(H9,{title:"Set up image generation"}),o.jsx(RI,{phase:l}),o.jsxs("div",{className:"sc-setup-body",children:[l==="checking"&&o.jsxs("p",{className:"sc-setup-lead",children:[o.jsx(qt,{size:"1"})," Checking this computer."]}),(l==="not-installed"||l==="installing")&&o.jsxs(o.Fragment,{children:[o.jsx("p",{className:"sc-setup-lead",children:"Scenri generates with Codex CLI, a small official helper from OpenAI that runs on this computer and uses your own ChatGPT plan. It needs to be installed once."}),o.jsxs("div",{className:"sc-setup-acts",children:[o.jsxs("button",{type:"button",className:"sc-btn sc-btn-primary",onClick:S,disabled:l==="installing",children:[l==="installing"?o.jsx(qt,{size:"1"}):o.jsx(sw,{size:15}),l==="installing"?"Installing":"Install Codex CLI"]}),o.jsx("button",{type:"button",className:"sc-setup-alt",onClick:()=>c("no-plan"),children:"I do not have ChatGPT"})]})]}),(l==="not-authenticated"||l==="signing-in")&&o.jsxs(o.Fragment,{children:[o.jsx("p",{className:"sc-setup-lead",children:"Codex CLI is installed. Sign in with the ChatGPT account whose plan should cover your images. This opens your browser, and Scenri never sees your password or token."}),o.jsxs("div",{className:"sc-setup-acts",children:[o.jsxs("button",{type:"button",className:"sc-btn sc-btn-primary",onClick:A,disabled:l==="signing-in",children:[l==="signing-in"?o.jsx(qt,{size:"1"}):o.jsx(R$,{size:15}),l==="signing-in"?"Waiting for your browser":"Sign in with ChatGPT"]}),o.jsx("button",{type:"button",className:"sc-setup-alt",onClick:()=>c("no-plan"),children:"I do not have ChatGPT"})]}),l==="signing-in"&&o.jsx("p",{className:"sc-setup-note",children:"Finish in the browser tab that just opened. This screen updates itself."})]}),l==="ready"&&o.jsxs(o.Fragment,{children:[o.jsxs("p",{className:"sc-setup-lead",children:[o.jsx(la,{size:15})," Codex CLI is ready. Your images run on your own ChatGPT plan, and Scenri adds nothing to the bill."]}),o.jsxs("div",{className:"sc-setup-acts",children:[o.jsx("button",{type:"button",className:"sc-btn sc-btn-primary",onClick:n,children:"Start creating"}),o.jsxs("button",{type:"button",className:"sc-btn sc-btn-ghost",onClick:C,children:[o.jsx(f1,{size:14})," Check again"]})]})]}),l==="unverified"&&o.jsxs(o.Fragment,{children:[o.jsx("p",{className:"sc-setup-lead",children:"Scenri could not verify Codex on this computer. Something answered too slowly or not at all, so nothing is assumed to work."}),o.jsxs("div",{className:"sc-setup-acts",children:[o.jsxs("button",{type:"button",className:"sc-btn sc-btn-primary",onClick:C,children:[o.jsx(f1,{size:15})," Check again"]}),o.jsx("button",{type:"button",className:"sc-setup-alt",onClick:()=>c("no-plan"),children:"I do not have ChatGPT"})]}),o.jsx("p",{className:"sc-setup-note",children:"If you just installed Codex, quit and reopen Scenri so it can see the new command."})]}),l==="update-needed"&&o.jsxs(o.Fragment,{children:[o.jsx("p",{className:"sc-setup-lead",children:"Codex CLI on this computer is too old for Scenri. Update it once, then check again."}),o.jsxs("div",{className:"sc-setup-cmd",children:[o.jsx("code",{children:"npm install -g @openai/codex@latest"}),o.jsxs("button",{type:"button",className:"sc-btn sc-btn-ghost",onClick:()=>E("npm install -g @openai/codex@latest"),children:[h?o.jsx(la,{size:14}):o.jsx($g,{size:14}),h?"Copied":"Copy"]})]}),p==="windows"&&o.jsxs("p",{className:"sc-setup-note",children:["Installed with the standalone installer instead? Update it in PowerShell:"," ",o.jsx("code",{children:"irm https://chatgpt.com/codex/install.ps1 | iex"})]}),o.jsx("div",{className:"sc-setup-acts",children:o.jsxs("button",{type:"button",className:"sc-btn sc-btn-primary",onClick:C,children:[o.jsx(f1,{size:15})," Check again"]})})]}),l==="no-plan"&&o.jsxs(o.Fragment,{children:[o.jsx("p",{className:"sc-setup-lead",children:"Codex CLI draws on a ChatGPT plan, so without one there is nothing behind it to generate your images."}),o.jsx("p",{className:"sc-setup-lead",children:"You can use your own key from an image provider instead. You pay that provider directly, per image, and the key stays in your library folder on this computer."}),o.jsxs("div",{className:"sc-setup-acts",children:[o.jsxs("button",{type:"button",className:"sc-btn sc-btn-primary",onClick:()=>s("openrouter"),children:[o.jsx(vw,{size:15})," Add a provider key"]}),o.jsx("button",{type:"button",className:"sc-setup-alt",onClick:()=>void b(),children:"Back to Codex setup"})]}),k.length>0&&o.jsxs("p",{className:"sc-setup-note",children:[k.map(M=>ro(M.displayName)).join(", ")," is already connected, so you can generate now."]})]}),u&&o.jsxs("div",{className:"sc-setup-problem",children:[o.jsxs("p",{"data-detail":"",children:[o.jsx(Bw,{size:15})," ",u.detail??"That did not work."]}),u.command&&o.jsxs(o.Fragment,{children:[o.jsxs("p",{className:"sc-setup-note",children:["Run this in ",p==="windows"?"PowerShell":"Terminal",", then reopen this window:"]}),o.jsxs("div",{className:"sc-setup-cmd",children:[o.jsx("code",{children:u.command}),o.jsxs("button",{type:"button",className:"sc-btn sc-btn-ghost",onClick:()=>E(u.command),children:[h?o.jsx(la,{size:14}):o.jsx($g,{size:14}),h?"Copied":"Copy"]})]})]}),u.docsUrl&&o.jsxs("a",{className:"sc-setup-alt",href:u.docsUrl,target:"_blank",rel:"noreferrer",children:["Installation help ",o.jsx(fd,{size:13})]})]})]})]})}function RI({phase:e}){if(e==="no-plan")return null;const t=e==="not-authenticated"||e==="signing-in"||e==="update-needed"||e==="ready",n=e==="ready";return o.jsxs("ol",{className:"sc-setup-steps",children:[o.jsxs("li",{"data-on":t?"":void 0,"data-now":e==="not-installed"||e==="installing"?"":void 0,children:[t?o.jsx(la,{size:12}):o.jsx("span",{className:"d"})," Install"]}),o.jsxs("li",{"data-on":n?"":void 0,"data-now":e==="not-authenticated"||e==="signing-in"?"":void 0,children:[n?o.jsx(la,{size:12}):o.jsx("span",{className:"d"})," Sign in"]})]})}function PI(){const{brands:e}=an(),t=$9(e);return t?o.jsx(so,{to:ho(t),replace:!0}):o.jsx(so,{to:"/setup",replace:!0})}function $9(e){const t=VT();return e.find(n=>n.id===t)??e[0]??null}const D9=r.createContext(null);function Tt(){const e=r.useContext(D9);if(!e)throw new Error("useBrand must be used inside BrandLayout");return e}const F9=r.createContext(null);function LI(){const e=r.useContext(F9);if(!e)throw new Error("useAssetsPanel must be used inside BrandLayout");return e}function TI(){const{brandSlug:e}=ns(),{pathname:t,search:n}=rn(),s=ur({path:Ye.brand,end:!1}),{brands:l,engines:c,refresh:u}=an(),[f,h]=r.useState(null),[m,p]=r.useState([]),[v,y]=r.useState([]),[x,b]=r.useState({}),[C,S]=r.useState(!1),[A,E]=Qa(fr.assetsOpen,window.innerWidth>=1280),k=r.useCallback(()=>E(Z=>!Z),[]),M=r.useMemo(()=>({open:A,toggle:k,setOpen:E}),[A,k]);vF();const N=l.find(Z=>Z.slug===e)??l.find(Z=>Z.id===e)??null,{products:P,loaded:$,reload:L}=yF(N==null?void 0:N.id),W=r.useCallback(async()=>{if(!N)return;const Z=await ke.workspace(N.id);h(Z.project),p(Z.nodes),y(Z.sets),b(Z.membership),S(!0)},[N==null?void 0:N.id]),B=r.useCallback(Z=>y(G=>G.map(re=>re.id===Z.id?Z:re)),[]),te=r.useCallback(Z=>y(G=>G.filter(re=>re.id!==Z)),[]);r.useEffect(()=>{S(!1)},[N==null?void 0:N.id]),r.useEffect(()=>{N&&zT(N.id)},[N==null?void 0:N.id]),r.useEffect(()=>{W()},[W,N==null?void 0:N.updatedAt]);const X=s?t.slice(s.pathnameBase.length):"";if(!N){const Z=$9(l);return o.jsx(so,{to:Z?ho(Z)+X+n:Ye.root,replace:!0})}return e!==N.slug?o.jsx(so,{to:ho(N)+X+n,replace:!0}):o.jsxs(D9.Provider,{value:{brand:N,workspace:f,nodes:m,sets:v,membership:x,products:P,productsLoaded:$,refreshProducts:L,loaded:C,refresh:W,applySet:B,dropSet:te},children:[o.jsx(wI,{engines:c,shots:m,onSaved:u}),o.jsx(AI,{engines:c,onSaved:u}),o.jsx(SI,{}),o.jsxs(PD,{brand:N,children:[o.jsx(FI,{}),o.jsx(aF,{children:o.jsx(F9.Provider,{value:M,children:o.jsxs("div",{className:"sc-shell",children:[o.jsx(mF,{}),o.jsx(pm,{}),o.jsx(ID,{})]})})})]})]})}function HI(e){return!e.unread||e.spent||!e.loaded||!e.visible||e.dialogOpen?!1:e.running===0&&e.builds===0}const $I=Number(window.localStorage.getItem("scenri:whatsnew-settle-ms")??2500)||2500,I9=r.createContext(null);function Sd(){const e=r.useContext(I9);if(!e)throw new Error("useWhatsNew must be used inside WhatsNewProvider");return e}function DI({children:e}){const[t,n]=r.useState(null),[s,l]=r.useState(null),[c,u]=r.useState(null),[f,h]=r.useState(null),[m,p]=r.useState(null),[v,y]=r.useState("loading"),[x,b]=r.useState(!1),C=Ps("whatsnew");r.useEffect(()=>{let N=!0;return ke.releaseNotes().then(P=>{N&&(n(P.version),l(P.entry),u(P.changelogUrl),h(P.releasesUrl??null),p(P.seen),y("ready"))}).catch(()=>{N&&y("failed")}),()=>{N=!1}},[]);const S=C.open,A=r.useCallback(()=>S(t??"latest"),[S,t]),E=r.useCallback(()=>{b(!0),A()},[A]),k=r.useCallback(()=>{!t||m===t||(p(t),ke.releaseSeen(t).catch(()=>{}))},[t,m]),M=t!==null&&m!==t&&s!==null&&s.sections.length>0;return o.jsx(I9.Provider,{value:{status:v,version:t,entry:s,changelogUrl:c,releasesUrl:f,unread:M,open:A,autoOpenSpent:x,autoOpen:E,markSeen:k},children:e})}function FI(){const e=Sd(),{running:t,builds:n}=Sl(),{loaded:s}=Tt(),[l]=Mi(),[c,u]=r.useState(()=>!document.hidden),f=r.useRef(!1);r.useEffect(()=>{const m=()=>u(!document.hidden);return document.addEventListener("visibilitychange",m),()=>document.removeEventListener("visibilitychange",m)},[]);const h=l.has("settings")||l.has("setup")||l.has("new")||l.has("whatsnew");return r.useEffect(()=>{if(!HI({unread:e.unread,spent:f.current||e.autoOpenSpent,loaded:s,visible:c,dialogOpen:h,running:t,builds:n.length}))return;const p=window.setTimeout(()=>{f.current=!0,e.autoOpen()},$I);return()=>window.clearTimeout(p)},[e,s,c,h,t,n.length]),null}const O9=r.createContext(null);function an(){const e=r.useContext(O9);if(!e)throw new Error("useAppData must be used inside AppShell");return e}function II(){const e=q$(),[t,n]=r.useState(null),[s,l]=r.useState([]),[c,u]=r.useState(null),f=Q$(),h=eD(),m=nD(),p=aD(),v=r.useCallback(x=>{n(b=>b&&b.map(C=>C.id===x.id?x:C))},[]),y=r.useCallback(async()=>{try{const[x,b]=await Promise.all([ke.brands(),ke.engines()]);n(x),l(b)}catch(x){u(String(x.message??x))}},[]);return r.useEffect(()=>{y()},[y]),c?o.jsx(pr,{align:"center",justify:"center",height:"100vh",p:"5",children:o.jsx(Sp,{failure:bo(c)})}):t===null?o.jsx(pr,{align:"center",justify:"center",height:"100vh",children:o.jsx(qt,{size:"3"})}):o.jsx(O9.Provider,{value:{brands:t,engines:s,...f,presenters:h.presenters,presenterCategories:h.categories,presenterStyles:h.styles,presentersLoaded:h.loaded,presentersError:h.error,refetchPresenters:h.refetch,demoProducts:m.demoProducts,demoProductCategories:m.categories,demoProductsLoaded:m.loaded,demoProductsError:m.error,showcase:p.showcase,showcaseCategories:p.categories,showcaseLoaded:p.loaded,showcaseError:p.error,refetchShowcase:p.refetch,refresh:y,applyBrand:v},children:o.jsx(e9.Provider,{value:e,children:o.jsx(fD,{children:o.jsxs(DI,{children:[o.jsx(P3,{}),o.jsx(pm,{})]})})})})}function Ps(e){const[t,n]=Mi(),s=t.get(e),l=r.useCallback(f=>{n(h=>{const m=new URLSearchParams(h);return m.set(e,f),m},{replace:!1})},[e,n]),c=r.useCallback(f=>{n(h=>{const m=new URLSearchParams(h);return m.set(e,f),m},{replace:!0})},[e,n]),u=r.useCallback(()=>{n(f=>{const h=new URLSearchParams(f);return h.delete(e),h},{replace:!0})},[e,n]);return{value:s,open:l,set:c,close:u}}function Xs(e,t=""){const[n,s]=Mi(),l=n.get(e)??t,c=r.useCallback(u=>{s(f=>{const h=new URLSearchParams(f);return u===null||u===t?h.delete(e):h.set(e,u),h},{replace:!0})},[e,t,s]);return[l,c]}function lv(e,t){const n=iv(t.name),s=cv(t.url);return!n&&!s?null:e.find(l=>{var c,u,f,h;return!!(s&&cv((u=(c=l.json)==null?void 0:c.meta)==null?void 0:u.website)===s||n&&iv(((h=(f=l.json)==null?void 0:f.meta)==null?void 0:h.name)??l.slug)===n)})??null}const iv=e=>String(e??"").trim().replace(/\s+/g," ").toLowerCase()||null,cv=e=>{const t=String(e??"").trim();if(!t)return null;const n=/^https?:\/\//i.test(t)?t:`https://${t}`;try{return new URL(n).hostname.toLowerCase().replace(/^www\./,"")||null}catch{return null}};function OI(){var L,W,B,te,X,Z;const{brands:e,refresh:t}=an(),n=vn(),s=e.length>0,[l,c]=r.useState(""),[u,f]=r.useState(""),[h,m]=r.useState(!1),[p,v]=r.useState(!1),[y,x]=r.useState(null),[b,C]=r.useState(null),[S,A]=r.useState(null),E=async G=>{C(G),await t(),n(ho(G),{replace:!0})},k=async(G=!1)=>{var re,de,ne;if(!G){const U=lv(e,{url:l.trim()});if(U){A(U);return}}v(!0),x(null);try{const U=/^https?:\/\//.test(l)?l:`https://${l}`,D=await ke.brandFromUrl(U),V=await ke.updateBrand(D.id,{...D.json,meta:{...(re=D.json)==null?void 0:re.meta,website:((ne=(de=D.json)==null?void 0:de.meta)==null?void 0:ne.website)||U}});ke.catalogImport(V.id,U).catch(()=>{}),await E(V)}catch(U){x(String(U.message??U)),v(!1)}},M=async(G=!1)=>{if(!G){const re=lv(e,{name:u});if(re){A(re);return}}v(!0),x(null);try{await E(await ke.createBrand({specVersion:"0.1",meta:{name:u.trim()||"Untitled brand"}}))}catch(re){x(String(re.message??re)),v(!1)}},N=()=>n("/",{replace:!0}),P=b?Na((L=b.json)==null?void 0:L.palette):[],$=b?Un((W=y9(b.json))==null?void 0:W.file):null;return o.jsxs("div",{className:"sc-wiz",children:[o.jsxs("div",{className:"sc-wiz-form",children:[o.jsxs("div",{className:"sc-wiz-head",children:[o.jsxs("button",{type:"button",className:"sc-wiz-back",onClick:N,style:s?void 0:{visibility:"hidden"},children:[o.jsx(Fi,{size:11})," Back"]}),o.jsx("span",{}),o.jsx("span",{})]}),o.jsxs("h1",{children:["Your ",o.jsx("em",{children:"brand"})]}),o.jsx("p",{className:"sc-wiz-sub",children:"Paste a website and the kit builds itself: name, logo, palette. You can also start from nothing and fill it in later from Settings."}),o.jsxs("div",{className:"sc-wiz-fields",children:[h?o.jsxs(o.Fragment,{children:[o.jsx("label",{htmlFor:"sc-wiz-name",children:"Brand name"}),o.jsx("input",{id:"sc-wiz-name",className:"sc-in",placeholder:"Brand name",value:u,onChange:G=>{f(G.target.value),A(null)},onKeyDown:G=>G.key==="Enter"&&u.trim()&&!p&&void M()}),o.jsxs("div",{style:{textAlign:"center"},children:[o.jsx("button",{type:"button",className:"sc-wiz-cta",disabled:!u.trim()||p,onClick:()=>void M(),children:p?o.jsx(qt,{size:"1"}):o.jsxs(o.Fragment,{children:["Create it ",o.jsx(Qc,{size:12})]})}),o.jsx("div",{children:o.jsx("button",{type:"button",className:"sc-wiz-skip",onClick:()=>{m(!1),A(null)},children:"Build from a website instead"})})]})]}):o.jsxs(o.Fragment,{children:[o.jsx("label",{htmlFor:"sc-wiz-url",children:"Website"}),o.jsx("input",{id:"sc-wiz-url",className:"sc-in",placeholder:"acme.com",value:l,onChange:G=>{c(G.target.value),A(null)},onKeyDown:G=>G.key==="Enter"&&l.trim()&&!p&&void k()}),o.jsx("p",{className:"sc-wiz-hint",children:"We only read public pages. Nothing leaves this machine."}),o.jsxs("div",{style:{textAlign:"center"},children:[o.jsx("button",{type:"button",className:"sc-wiz-cta",disabled:!l.trim()||p,onClick:()=>void k(),children:p?o.jsx(qt,{size:"1"}):o.jsxs(o.Fragment,{children:["Build the kit ",o.jsx(Qc,{size:12})]})}),o.jsx("div",{children:o.jsx("button",{type:"button",className:"sc-wiz-skip",onClick:()=>{m(!0),A(null)},children:"Start from scratch instead"})})]})]}),S&&o.jsxs(Lh,{color:"amber",mt:"3",size:"1",children:[o.jsxs(Th,{children:["You already have ",xs(S),". Creating another makes a second workspace with its own address."]}),o.jsxs("div",{style:{display:"flex",gap:10,marginTop:4,flexWrap:"wrap"},children:[o.jsxs("button",{type:"button",className:"sc-wiz-cta",onClick:()=>n(ho(S)),children:["Open ",xs(S)," instead"]}),o.jsx("button",{type:"button",className:"sc-wiz-skip",onClick:()=>{A(null),h?M(!0):k(!0)},children:"Create anyway"})]})]}),y&&o.jsx(Lh,{color:"red",mt:"3",size:"1",children:o.jsx(Th,{children:y})})]})]}),o.jsx("div",{className:"sc-wiz-preview",children:o.jsxs("div",{className:"sc-wiz-card",children:[o.jsx("div",{className:"sc-wiz-cap",children:p?`Reading ${l||"the site"}`:"Live kit preview"}),o.jsxs("div",{className:"sc-wiz-body",children:[p&&!b&&o.jsxs("div",{className:"sc-scrape-row",children:[o.jsx(qt,{size:"1"})," Reading the site and building the kit"]}),!p&&!b&&o.jsx("p",{style:{color:"var(--sc-fg3)",fontSize:12.5,margin:0},children:"The kit appears here as it is found."}),b&&o.jsxs(o.Fragment,{children:[o.jsxs("div",{style:{display:"flex",alignItems:"center",gap:12,marginBottom:P.length?16:0},children:[o.jsx("span",{className:"sc-kit-logo",style:{width:44,height:44,padding:7,borderRadius:12},children:$?o.jsx("img",{src:$,alt:""}):o.jsx(ha,{size:16,color:"var(--sc-fg3)"})}),o.jsxs("span",{children:[o.jsx("b",{dir:"auto",style:{fontFamily:"var(--sc-font-display)",fontSize:16},children:(te=(B=b.json)==null?void 0:B.meta)==null?void 0:te.name}),((Z=(X=b.json)==null?void 0:X.meta)==null?void 0:Z.tagline)&&o.jsx("small",{dir:"auto",style:{display:"block",color:"var(--sc-fg3)",fontSize:11.5},children:String(b.json.meta.tagline).slice(0,60)})]})]}),P.length>0&&o.jsx("div",{style:{display:"flex",gap:8},children:P.slice(0,5).map(G=>o.jsx("span",{style:{flex:1,height:44,borderRadius:9,border:"1px solid var(--sc-line)",background:G.hex}},G.hex))})]})]})]})})]})}const ii=e=>{const t=(e??"").trim();return t||null};function _I(e){const t=e;return{name:e.name,brand:ii(t.brand)??ii(t.vendor),qualifier:ii(t.format)??ii(t.subcategory)??ii(t.variant)}}function ZI(e){return!e.brand||e.name.toLowerCase().startsWith(e.brand.toLowerCase())?e.name:`${e.brand} ${e.name}`}function Ja(e,t){const n=_I(e);if(t==="chip")return n.name;const s=ZI(n);return t==="tooltip"?[s,n.qualifier].filter(Boolean).join(" · "):s}function po(e,t){return t==="tooltip"?[e.name,ii(e.lighting)].filter(Boolean).join(" · "):e.name}function P1(e){return[e.name,...e.legacyNames??[],...e.keywords??[],e.description,e.lighting,e.subject].concat(e.collections??[],e.verticals??[]).filter(Boolean).join(" ")}function Op(e){const t=e;return[e.name,...t.legacyNames??[],...t.keywords??[],t.brand,t.vendor,t.format,t.subcategory,t.variant,t.productType,...t.tags??[]].filter(Boolean).join(" ")}function L1(e){return[e.name,e.descriptor,e.presentation,e.ageRange,e.facial,e.skin,e.hair,e.build,e.wardrobeDefault,...e.suitableCategories,...e.suitableStyles].filter(Boolean).join(" ")}function VI(e,t,n){return[e.title,e.category,n,t.product?Op(t.product):null,t.presenter?L1(t.presenter):null,t.scene?P1(t.scene):null].filter(Boolean).join(" ")}function _p(){const{brand:e}=Tt(),t=vn(),n=hr(e);return r.useCallback(s=>{t(`${n}?presenter=${encodeURIComponent(s)}&compose=1`)},[n,t])}function Zp(){const{brand:e}=Tt(),t=vn(),n=hr(e);return r.useCallback(s=>{t(`${n}?scene=${encodeURIComponent(s)}&compose=1`)},[n,t])}function Uh(e){return{...e.brief,...e.variants?{variants:e.variants}:{},...e.quality?{quality:e.quality}:{},_at:Date.now()}}function zI(){const{brand:e}=Tt(),t=vn(),n=hr(e);return r.useCallback(s=>{t(`${n}?showcase=${encodeURIComponent(s)}`)},[n,t])}const m1=e=>`sc-favscenes-${e}`,BI=e=>`sc-favlooks-${e}`,UI=e=>`bt-favlooks-${e}`;function es(e){try{const t=localStorage.getItem(m1(e))??$h(BI(e),m1(e))??$h(UI(e),m1(e)),n=t?JSON.parse(t):[];return Array.isArray(n)?n.filter(s=>typeof s=="string"):[]}catch{return[]}}function WI(e,t){try{localStorage.setItem(m1(e),JSON.stringify(t))}catch{}}function _9(e,t){const n=es(e),s=n.includes(t)?n.filter(l=>l!==t):[...n,t];return WI(e,s),s}const Z9=[{key:"campaign",label:"Product campaign"},{key:"lifestyle",label:"Lifestyle"},{key:"editorial",label:"Fashion & editorial"},{key:"beauty",label:"Beauty"},{key:"food-drink",label:"Food & drink"},{key:"launch",label:"Tech launch"},{key:"social",label:"Social"},{key:"cinematic",label:"Cinematic"},{key:"catalog",label:"Catalog"},{key:"seasonal",label:"Seasonal"}],GI=new Map(Z9.map(e=>[e.key,e]));function B2(e){var t;return e?((t=GI.get(e))==null?void 0:t.label)??e:null}function KI(e){const t=new Map(Z9.map((n,s)=>[n.key,s]));return[...e].sort((n,s)=>(t.get(n)??99)-(t.get(s)??99)||n.localeCompare(s))}const U2=14,YI=768,Wh=[{px:190,label:"Compact",cells:3},{px:320,label:"Large",cells:2}],V9=320;function z9(e){const t=typeof e=="number"&&Number.isFinite(e)?e:V9;let n=Wh[0].px;for(const s of Wh)Math.abs(s.px-t)<Math.abs(n-t)&&(n=s.px);return n}const al=5;function Al(e){const t=typeof e=="number"?e:al;return t===7||t===5?t:t===6?5:al}function qI(e){const[t,n]=r.useState(0);return r.useEffect(()=>{if(!e)return;const s=()=>n(e.clientWidth);s();const l=new ResizeObserver(s);return l.observe(e),()=>l.disconnect()},[e]),t}function XI(){const[e,t]=r.useState(()=>window.innerWidth);return r.useEffect(()=>{const n=()=>t(window.innerWidth);return window.addEventListener("resize",n),()=>window.removeEventListener("resize",n)},[]),e}function QI(e,t,n){if(e<=0)return{tile:t,cols:1};const s=n?2:Math.max(1,Math.floor((e+U2)/(t+U2)));return{tile:Math.floor((e-U2*(s-1))/s),cols:s}}function JI(e){let t=0;return e.map(n=>Array.from({length:n},()=>t++))}function Nu(e){return Al(e)===5?"large":"compact"}function eO(){const[e]=Qa(fr.wallDensity,al);return Nu(e)}const tO=[{value:7,label:"Compact",hint:"More cards per row",cells:3},{value:5,label:"Large",hint:"Fewer, larger cards",cells:2}],nO=Wh.map(e=>({value:e.px,label:e.label,hint:e.label==="Compact"?"More shots per row":"Fewer, larger shots",cells:e.cells}));function jd({value:e,onChange:t}){return o.jsx(B9,{label:"Grid size",value:Al(e),options:tO,onChange:n=>t(n)})}function rO({value:e,onChange:t}){return o.jsx(B9,{label:"Shot size",value:z9(e),options:nO,onChange:t})}function B9({label:e,value:t,options:n,onChange:s}){const l=r.useRef(null);return r.useLayoutEffect(()=>{const c=l.current;if(!c)return;const u=()=>{const h=c.querySelector(":scope > button[data-on]");if(!h){c.style.setProperty("--sc-density-x","0px"),c.style.setProperty("--sc-density-w","0px");return}c.style.setProperty("--sc-density-x",`${h.offsetLeft}px`),c.style.setProperty("--sc-density-w",`${h.offsetWidth}px`)};u(),c.dataset.inkReady||requestAnimationFrame(()=>{c.dataset.inkReady=""});const f=new ResizeObserver(u);return f.observe(c),()=>f.disconnect()},[t]),o.jsxs("div",{ref:l,className:"sc-density",role:"radiogroup","aria-label":e,children:[o.jsx("span",{className:"sc-density-ink","aria-hidden":!0}),n.map(c=>{const u=t===c.value;return o.jsx("button",{type:"button",role:"radio",className:"sc-density-opt","aria-checked":u,"aria-label":c.label,title:c.hint,"data-on":u||void 0,onClick:()=>{u||s(c.value)},children:o.jsx(aO,{cells:c.cells})},c.value)})]})}function aO({cells:e}){const t=e,n=16,s=1.5,l=1.5,u=(n-s*2-l*(t-1))/t,f=Math.max(.6,u*.22),h=[];for(let m=0;m<t;m++)for(let p=0;p<t;p++)h.push({x:s+p*(u+l),y:s+m*(u+l)});return o.jsx("svg",{className:"sc-density-icon",width:n,height:n,viewBox:`0 0 ${n} ${n}`,"aria-hidden":!0,children:h.map(m=>o.jsx("rect",{x:m.x,y:m.y,width:u,height:u,rx:f,ry:f,fill:"currentColor"},`${m.x}-${m.y}`))})}function kd(e){return{"--sc-wall-cols":String(Al(e))}}function Ad(e){var n;if(e.avatarUrl)return{src:e.avatarUrl};const t=e.previewUrl??((n=e.shots)==null?void 0:n[0])??null;return t?{src:t,crop:"top"}:{src:null}}function Vp(e){const t=Un(e.avatar);if(t)return{src:t};const n=l=>{var c;return Array.isArray(l)?Un((c=l[0])==null?void 0:c.file):null},s=Un(e.preview)??n(e.shots)??n(e.sourceRefs);return s?{src:s,crop:"top"}:{src:null}}const uv=e=>e.t!=="format",vs=()=>[{t:"text",v:""}],Gh=e=>e.t==="product"?`p:${e.id}`:zp(e);function U9(e){const t=(e.tokens??[]).filter(uv),n=new Set(t.map(Gh)),s=(e.inherited??[]).filter(uv).filter(f=>{const h=Gh(f);return!h||n.has(h)?!1:(n.add(h),!0)}),l=[...t,...s],c=l.length?l:vs(),u=c.some(f=>f.t==="template");return e.templateId&&!u?[{t:"template",id:e.templateId},...c]:c}const Sa="sc-token",Nd=`.${Sa}`,zp=e=>e.t==="template"?`t:${e.id}`:e.t==="product"?`p:${e.id}${e.angle?`|${e.angle}`:""}`:e.t==="character"?`h:${e.id}`:e.t==="color"?`c:${e.hex}|${e.name??""}`:e.t==="ref"?`r:${e.imageHash}`:e.t==="mark"?`m:${e.imageHash}`:"",Ar=e=>{const t=e.slice(0,1),n=e.slice(2);if(t==="t")return n?{t:"template",id:n}:null;if(t==="p"){const[s,l]=n.split("|");return s?{t:"product",id:s,...l?{angle:l}:{}}:null}if(t==="h")return n?{t:"character",id:n}:null;if(t==="r")return n?{t:"ref",imageHash:n}:null;if(t==="m")return n?{t:"mark",imageHash:n}:null;if(t==="c"){const[s,l]=n.split("|");return s?{t:"color",hex:s,name:l||void 0}:null}return null};function Mc(e){const t=typeof window>"u"?null:window.getSelection();if(!e||!t||t.rangeCount===0)return null;const n=t.getRangeAt(0);if(!e.contains(n.startContainer))return null;if(n.startContainer===e){let l=0;for(let c=0;c<n.startOffset&&c<e.childNodes.length;c++)l+=sl(e.childNodes[c]);return l}let s=0;for(const l of Array.from(e.childNodes)){if(l===n.startContainer)return s+n.startOffset;if(l.contains(n.startContainer))return s+1;s+=sl(l)}return s}function Go(e,t){if(!e)return;let n=0;for(const s of Array.from(e.childNodes)){const l=sl(s);if(t<=n+l){if(s.nodeType===Node.TEXT_NODE){zr(e,s,t-n);return}const c=s.nextSibling;if((c==null?void 0:c.nodeType)===Node.TEXT_NODE){zr(e,c,0);return}break}n+=l}ci(e)}function ci(e){if(!e)return;if(e.focus({preventScroll:!0}),!e.firstChild){const n=window.getSelection(),s=document.createRange();s.selectNodeContents(e),s.collapse(!1),n==null||n.removeAllRanges(),n==null||n.addRange(s);return}const t=sO(e);zr(e,t,t.length)}function sO(e){const t=e.lastChild;if(t&&t.nodeType===Node.TEXT_NODE)return t;const n=document.createTextNode(" ");return e.appendChild(n),n}function oO(e){if(!e)return!1;const t=window.getSelection();if(!t||t.rangeCount===0||t.isCollapsed)return!1;const n=t.getRangeAt(0);return e.contains(n.startContainer)&&e.contains(n.endContainer)}function zr(e,t,n){const s=window.getSelection(),l=document.createRange();l.setStart(t,Math.max(0,Math.min(n,t.length))),l.collapse(!0),s==null||s.removeAllRanges(),s==null||s.addRange(l)}const sl=e=>e.nodeType===Node.TEXT_NODE?(e.textContent??"").length:1;function lO(e,t,n){if(t===e){let l=0;for(let c=0;c<n&&c<e.childNodes.length;c++)l+=sl(e.childNodes[c]);return l}let s=0;for(const l of Array.from(e.childNodes)){if(l===t)return s+n;if(l.contains(t))return s+1;s+=sl(l)}return s}function ws(e){if(!e)return;const t=Mc(e);e.normalize();for(const s of Array.from(e.childNodes))s.nodeType===Node.TEXT_NODE&&!(s.textContent??"").length&&s.remove();const n=Array.from(e.childNodes);for(let s=0;s<n.length;s++){const l=n[s];if(l.nodeType!==Node.TEXT_NODE)continue;let c=(l.textContent??"").replace(/ {2,}/g," ");const u=gs(l.previousSibling),f=gs(l.nextSibling);u?c=c.replace(/^ */," "):l.previousSibling||(c=c.replace(/^ +/,"")),f&&(c=c.replace(/ *$/," ")),l.textContent=c}for(const s of Array.from(e.childNodes))gs(s)&&gs(s.nextSibling)&&e.insertBefore(document.createTextNode(" "),s.nextSibling);gs(e.lastChild)&&e.appendChild(document.createTextNode(" ")),gs(e.firstChild)&&e.insertBefore(document.createTextNode(""),e.firstChild),!Rc(e)&&t!==null&&Go(e,t)}function iO(e){return e.querySelector(Nd)?!1:!(e.textContent??"").replace(/[\u200B\uFEFF\u00a0]/g,"").trim()}function Rc(e){if(!e)return!1;const t=iO(e);return t&&e.firstChild&&e.replaceChildren(),e.toggleAttribute("data-empty",t),t}const gs=e=>!!e&&e.nodeType===Node.ELEMENT_NODE&&e.classList.contains(Sa);function dv(e){var l;if(!e)return vs();const t=[];let n="";const s=()=>{n&&(t.push({t:"text",v:n}),n="")};for(const c of Array.from(e.childNodes)){if(c.nodeType===Node.TEXT_NODE){n+=c.textContent??"";continue}const u=c,f=(l=u.dataset)==null?void 0:l.tok;if(f){const h=Ar(f);if(h){s(),t.push(h);continue}}if(u.tagName==="BR"){n+=`
|
|
100
100
|
`;continue}n+=u.textContent??""}return s(),t.some(c=>c.t==="text")||t.push({t:"text",v:""}),t}function fv(e,t,n){if(e){e.textContent="";for(const s of t){if(s.t==="text"){s.v&&e.appendChild(document.createTextNode(s.v));continue}e.appendChild(n(s))}ws(e)}}function W9(e){const t=typeof window>"u"?null:window.getSelection();if(!e||!t||t.rangeCount===0)return"";const n=t.getRangeAt(0);if(n.startContainer.nodeType!==Node.TEXT_NODE||!e.contains(n.startContainer))return"";let s=(n.startContainer.textContent??"").slice(0,n.startOffset);for(let l=n.startContainer.previousSibling;l&&l.nodeType===Node.TEXT_NODE;l=l.previousSibling)s=(l.textContent??"")+s;return s}function G9(){const e=window.getSelection();if(!e||e.rangeCount===0)return null;const t=e.getRangeAt(0).cloneRange(),n=t.getBoundingClientRect();if(n.width||n.height)return n;const s=document.createElement("span");s.textContent="",t.insertNode(s);const l=s.getBoundingClientRect(),c=s.parentNode;return s.remove(),c==null||c.normalize(),l}function Ic(e,t,n){var c,u;if(!e||!t)return;if(n==="after"){const f=t.nextSibling;if((f==null?void 0:f.nodeType)===Node.TEXT_NODE){const m=f;zr(e,m,Math.min(1,m.length));return}const h=document.createTextNode(" ");(c=t.parentNode)==null||c.insertBefore(h,t.nextSibling),zr(e,h,h.length);return}const s=t.previousSibling;if((s==null?void 0:s.nodeType)===Node.TEXT_NODE){const f=s;zr(e,f,f.length);return}const l=document.createTextNode("");(u=t.parentNode)==null||u.insertBefore(l,t),zr(e,l,0)}const T1=9;function K9(e){if(!e.firstChild)return[];const t=document.createRange();return t.selectNodeContents(e),Array.from(t.getClientRects()).filter(n=>n.height>0)}function Y9(e,t){let n=null,s=1/0;for(const l of e){const c=t<l.top?l.top-t:t>l.bottom?t-l.bottom:0;c<s&&(s=c,n=l)}return n}function hv(e,t,n){if(!e)return!1;const s=K9(e),l=Y9(s,n);if(!l)return!1;const c=l.top+l.height/2;for(const f of Array.from(e.querySelectorAll(Nd))){const h=f.getBoundingClientRect();if(!(h.bottom<l.top||h.top>l.bottom)&&!(t<h.left-T1||t>h.right+T1))return Ic(e,f,t<h.left+h.width/2?"before":"after"),!0}if(Math.abs(c-n)<1)return!1;const u=q9(t,c);return!u||!e.contains(u.node)||u.node.nodeType!==Node.TEXT_NODE?!1:(zr(e,u.node,u.offset),!0)}function cO(e,t,n){if(!e)return null;const s=Y9(K9(e),n);if(!s)return null;const l=s.top+s.height/2;for(const u of Array.from(e.querySelectorAll(Nd))){const f=u.getBoundingClientRect();if(!(f.bottom<s.top||f.top>s.bottom)&&!(t<f.left-T1||t>f.right+T1))return{beside:u,side:t<f.left+f.width/2?"before":"after"}}const c=q9(t,l);return!c||!e.contains(c.node)?null:{node:c.node,offset:c.offset}}function q9(e,t){var c,u;const n=document,s=(c=n.caretRangeFromPoint)==null?void 0:c.call(n,e,t);if(s)return{node:s.startContainer,offset:s.startOffset};const l=(u=n.caretPositionFromPoint)==null?void 0:u.call(n,e,t);return l?{node:l.offsetNode,offset:l.offset}:null}function uO(e,t,n={}){if(!e)return;const s=window.getSelection();let l=null;if(s&&s.rangeCount>0&&e.contains(s.getRangeAt(0).startContainer))l=s.getRangeAt(0);else if(n.fallbackUnits!=null){Go(e,n.fallbackUnits);const v=window.getSelection();v&&v.rangeCount>0&&e.contains(v.getRangeAt(0).startContainer)&&(l=v.getRangeAt(0))}l||(l=document.createRange(),l.selectNodeContents(e),l.collapse(!1)),l.deleteContents();let c,u;if(l.startContainer.nodeType===Node.TEXT_NODE)c=l.startContainer,u=l.startOffset;else{const v=l.startContainer;c=document.createTextNode(""),v.insertBefore(c,v.childNodes[l.startOffset]??null),u=0}const f=c.textContent??"";let h=f.slice(0,u);const m=f.slice(u);n.eatQuery&&(h=mO(c,h));const p=c.parentNode;p&&(c.textContent=" ",(m.trim()||m.length>1)&&p.insertBefore(document.createTextNode(m),c.nextSibling),p.insertBefore(t,c),h&&p.insertBefore(document.createTextNode(h),t),zr(e,c,c.length),ws(e))}const dO=["$","/","@","#"],fO=e=>dO.includes(e),H1=e=>e===" "||e===`
|
|
101
101
|
`||e===" ";function hO(e){const t=W9(e);for(let n=t.length-1;n>=0;n--){const s=t[n];if(H1(s))return null;if(fO(s))return n===0||H1(t[n-1])?{sigil:s,query:t.slice(n+1)}:null}return null}function mO(e,t){const n=c=>Math.max(c.lastIndexOf("$"),c.lastIndexOf("/"),c.lastIndexOf("@"),c.lastIndexOf("#")),s=n(t);if(s>=0)return t.slice(0,s);const l=[];for(let c=e.previousSibling;c&&c.nodeType===Node.TEXT_NODE;c=c.previousSibling){const u=c.textContent??"",f=n(u);if(f>=0){c.textContent=u.slice(0,f);for(const h of l)h.remove();return""}l.push(c)}return t}function mv(e,t){if(!e||!t)return;e.normalize();const n=go(e,t);t.remove(),ws(e),Go(e,n)}function go(e,t){let n=0;for(const s of Array.from(e.childNodes)){if(s===t)break;n+=sl(s)}return n}function pO(e){if(!e)return;const t=window.getSelection();if(!t||t.rangeCount===0||!t.getRangeAt(0).collapsed)return;const n=t.getRangeAt(0),s=n.startContainer;if(s.nodeType!==Node.TEXT_NODE||!e.contains(s))return;const l=s,c=l.textContent??"",u=n.startOffset;c[u-1]!==" "||c[u]!==" "||(l.textContent=c.slice(0,u)+c.slice(u+1),zr(e,l,u))}const W2=e=>e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""");function gO(e){let t="",n="";const s=l=>{var f;if(l.nodeType===Node.TEXT_NODE){const h=l.textContent??"";t+=h,n+=W2(h);return}const c=l,u=(f=c.dataset)==null?void 0:f.tok;if(u){const h=Xo(c);t+=h,n+=`<span data-sc-tok="${W2(u)}">${W2(h)}</span>`;return}l.childNodes.forEach(s)};return e.cloneContents().childNodes.forEach(s),{text:t,html:`<span data-sc-brief="1">${n}</span>`}}function Xo(e){let t="";for(const n of Array.from(e.childNodes))n.nodeType===Node.TEXT_NODE&&(t+=n.textContent??"");return t.trim()}function vO(e){if(!e.includes("data-sc-brief")&&!e.includes("data-bt-brief"))return null;const n=new DOMParser().parseFromString(e,"text/html").querySelector("[data-sc-brief], [data-bt-brief]");if(!n)return null;const s=[],l=c=>{var m,p;if(c.nodeType===Node.TEXT_NODE){s.push(c.textContent??"");return}const u=c,f=((m=u.dataset)==null?void 0:m.scTok)??((p=u.dataset)==null?void 0:p.btTok);if(f===void 0){c.childNodes.forEach(l);return}const h=Ar(f);s.push(h??u.textContent??"")};return n.childNodes.forEach(l),s.length?s:null}function X9(e){const t=new Set([0]);let n=0;for(const s of e){if(s.t!=="text"){t.add(n),n+=1,t.add(n);continue}for(let l=0;l<s.v.length;l++)(s.v[l]===" "||s.v[l]===`
|
|
102
102
|
`)&&t.add(n+l+1);n+=s.v.length}return t.add(n),[...t].sort((s,l)=>s-l)}const Bp=e=>e.map(t=>t.t==="text"?t.v:"").join(""),Up=(e,t,n)=>{const s=n<=t?e.slice(n,t):e.slice(t+1,n);return/^[ \n]*$/.test(s)};function yO(e,t){const n=Bp(e);return X9(e).filter(s=>!Up(n,t,s))}function xO(e,t){let n=null,s=1/0;for(const l of e){const c=Math.abs(l-t);c<s&&(s=c,n=l)}return n}function Q9(e,t,n){if(!e||!t.parentNode)return!1;const s=go(e,t);if(Up(Bp(Wp(e)),s,n))return!1;let l=null,c=0;for(const u of Array.from(e.childNodes)){const f=sl(u);if(n<=c+f){if(u.nodeType===Node.TEXT_NODE){const h=n-c;h<=0?l=u:h>=f?l=u.nextSibling:l=u.splitText(h)}else l=n===c?u:u.nextSibling;break}c+=f}return l===t?!1:(t.remove(),e.insertBefore(t,l),ws(e),!0)}function pv(e,t,n){if(!e)return!1;const s=go(e,t),l=yO(Wp(e),s),c=n===-1?[...l].reverse().find(u=>u<s):l.find(u=>u>s+1);return c===void 0?!1:Q9(e,t,c)}function gv(e,t,n,s){if(!e)return null;const l=cO(e,n,s);if(!l)return null;const c=Wp(e),u=go(e,t),f=X9(c),h="beside"in l?go(e,l.beside)+(l.side==="before"?0:1):l.node.nodeType===Node.TEXT_NODE||l.node===e?lO(e,l.node,l.offset):null;if(h===null)return null;const m=xO(f,h);return m===null?null:{units:m,noop:Up(Bp(c),u,m)}}function Kh(e,t){const n=Xo(t)||"the chip",s=wO(t);if(s)return`Moved ${n} before ${s}.`;const l=bO(t);return l?`Moved ${n} after ${l}.`:go(e,t)===0?`Moved ${n} to the start of the brief.`:`Moved ${n} to the end of the brief.`}const J9=3;function wO(e){for(let t=e.nextSibling;t;t=t.nextSibling){if(gs(t))return Xo(t)||null;const n=(t.textContent??"").trim();if(n)return`"${n.split(/\s+/).slice(0,J9).join(" ")}"`}return null}function bO(e){for(let t=e.previousSibling;t;t=t.previousSibling){if(gs(t))return Xo(t)||null;const n=(t.textContent??"").trim();if(n)return`"${n.split(/\s+/).slice(-J9).join(" ")}"`}return null}function Wp(e){const t=[];let n="";for(const s of Array.from(e.childNodes)){if(s.nodeType===Node.TEXT_NODE){n+=s.textContent??"";continue}n&&(t.push({t:"text",v:n}),n=""),t.push({t:"ref",imageHash:""})}return n&&t.push({t:"text",v:n}),t}function Yh(e){var n;const t=e.target;(n=t==null?void 0:t.closest)!=null&&n.call(t,'input, textarea, select, [contenteditable=""], [contenteditable="true"]')||e.preventDefault()}const G2=e=>(e==null?void 0:e.querySelector('[data-kind="template"]'))??null,Qs=e=>{var t;return((t=e==null?void 0:e.closest)==null?void 0:t.call(e,Nd))??null};function K2(e,t,n={}){var l;if(!e)return!1;let s=!1;for(let c=0;c<32;c++){const u=CO(e,!!n.commit);if(!u)break;const f={t:"color",hex:u.hex,name:(l=n.nameFor)==null?void 0:l.call(n,u.hex)};kO(e,u.node,u.start,u.end,t(f)),s=!0}return s&&ws(e),s}function EO(e,t){var l;e.dataset.kind="color",e.dataset.tok=zp(t);const n=t.name??t.hex,s=e.querySelector(".sc-token-swatch");s&&(s.style.background=t.hex);for(const c of Array.from(e.childNodes))if(c.nodeType===Node.TEXT_NODE){c.textContent=n;break}e.getAttribute("role")==="button"&&e.setAttribute("aria-label",`colour: ${n}. Change or remove.`),(l=e.querySelector('[data-role="remove"]'))==null||l.setAttribute("aria-label",`Remove ${n}`)}function CO(e,t){for(let n=e.childNodes.length-1;n>=0;n--){const s=e.childNodes[n];if(s.nodeType!==Node.TEXT_NODE)continue;const l=s,c=jO(l.textContent??"",t,(f,h)=>SO(l,h,f)),u=c[c.length-1];if(u)return{node:l,...u}}return null}function SO(e,t,n){if(n>0)return H1(t[n-1]);const s=e.previousSibling;if(!s||gs(s))return!0;if(s.nodeType===Node.TEXT_NODE){const l=s.textContent??"";return!l.length||H1(l[l.length-1]??"")}return!0}function jO(e,t,n){const s=[];for(let l=0;l<e.length;l++){if(e[l]!=="#"||!n(l,e))continue;let c=l+1;for(;c<e.length&&/[0-9A-Fa-f]/.test(e[c]??"");)c++;const u=e.slice(l,c),f=RF(u);if(!f)continue;if(c-l-1===3){const m=e[c];if(m===void 0?!t:/[0-9A-Za-z]/.test(m))continue}s.push({start:l,end:c,hex:f})}return s}function kO(e,t,n,s,l){const c=t.textContent??"",u=c.slice(0,n),f=c.slice(s),h=typeof window>"u"?null:window.getSelection();let m=null;h&&h.rangeCount>0&&h.getRangeAt(0).startContainer===t&&(m=h.getRangeAt(0).startOffset);const p=t.parentNode;if(p&&(t.textContent=f.length?f:" ",p.insertBefore(l,t),u&&p.insertBefore(document.createTextNode(u),l),m!=null)){if(m<=n){const v=l.previousSibling;(v==null?void 0:v.nodeType)===Node.TEXT_NODE&&zr(e,v,Math.min(m,(v.textContent??"").length));return}if(m<=s||!f.length){zr(e,t,t.length);return}zr(e,t,Math.min(m-s,t.length))}}function Gp(e){if(!e||!/^#[0-9a-f]{6}$/i.test(e))return;const t=parseInt(e.slice(1,3),16)/255,n=parseInt(e.slice(3,5),16)/255,s=parseInt(e.slice(5,7),16)/255,l=Math.max(t,n,s),c=Math.min(t,n,s),u=l-c;if(u<.02)return;let f;return l===t?f=((n-s)/u+(n<s?6:0))*60%360:l===n?f=((s-t)/u+2)*60:f=((t-n)/u+4)*60,`hsl(${Math.round(f)} 55% 55%)`}function AO(){const e="http://www.w3.org/2000/svg",t=document.createElementNS(e,"svg");t.setAttribute("width","9"),t.setAttribute("height","9"),t.setAttribute("viewBox","0 0 24 24"),t.setAttribute("fill","none"),t.setAttribute("stroke","currentColor"),t.setAttribute("stroke-width","2.4");const n=document.createElementNS(e,"path");return n.setAttribute("d","m6 6 12 12M18 6 6 18"),t.appendChild(n),t}function NO(e,t){let s=null,l=null,c=null,u=null,f=null,h={dx:0,dy:0},m={w:0,h:0},p=0;const v=P=>{P.style.position="fixed",P.style.left="0",P.style.top="0",P.style.margin="0",P.style.zIndex="var(--sc-z-popover)",P.style.pointerEvents="none"},y=()=>{const P=$=>{var L,W;window.removeEventListener("click",P,!0),!((W=(L=$.target).closest)!=null&&W.call(L,'[data-role="remove"]'))&&($.stopPropagation(),$.preventDefault())};window.addEventListener("click",P,!0),setTimeout(()=>window.removeEventListener("click",P,!0),250)},x=()=>{c==null||c.remove(),u==null||u.remove(),c=null,u=null,f=null,l==null||l.removeAttribute("data-drag-src"),l=null,s=null,e.removeAttribute("data-chip-drag"),document.documentElement.style.cursor="",cancelAnimationFrame(p)},b=()=>{l&&(x(),y(),t.onCancelled())},C=P=>{if(P.button!==0||P.pointerType==="touch")return;const $=P.target;if($.closest('[data-role="remove"]'))return;const L=Qs($);L&&(s={chip:L,x:P.clientX,y:P.clientY})},S=P=>{var L,W;if(!s)return;l=s.chip,t.onDragStart(),(L=window.getSelection())==null||L.removeAllRanges(),e.setAttribute("data-chip-drag",""),l.setAttribute("data-drag-src","");const $=l.getBoundingClientRect();h={dx:s.x-$.left,dy:s.y-$.top},s=null,document.documentElement.style.cursor="grabbing",c=l.cloneNode(!0),(W=c.querySelector('[data-role="remove"]'))==null||W.remove(),c.className=`${l.className} sc-chip-ghost`,c.removeAttribute("data-drag-src"),c.removeAttribute("title"),v(c),c.style.width=`${$.width}px`,c.style.height=`${$.height}px`,c.style.fontSize=getComputedStyle(l).fontSize,m={w:$.width,h:$.height},document.body.appendChild(c),u=document.createElement("div"),u.className="sc-drop-caret",v(u),u.style.display="none",document.body.appendChild(u),A(P)},A=P=>{if(!c||!l)return;const $=Math.min(Math.max(4,P.clientX-h.dx),window.innerWidth-m.w-4),L=Math.min(Math.max(4,P.clientY-h.dy),window.innerHeight-m.h-4);c.style.transform=`translate3d(${$}px, ${L}px, 0)`;const W=gv(e,l,P.clientX,P.clientY);if(f=W,!u)return;const B=W&&!W.noop?MO(e,W.units):null;if(!B){u.style.display="none";return}u.style.display="",u.style.transform=`translate3d(${B.left-1.5}px, ${B.top-2}px, 0)`,u.style.height=`${B.height+4}px`},E=P=>{if(s){if(Math.hypot(P.clientX-s.x,P.clientY-s.y)<5)return;S(P);return}if(!l)return;P.preventDefault(),cancelAnimationFrame(p);const{clientX:$,clientY:L}=P;p=requestAnimationFrame(()=>A({clientX:$,clientY:L}))},k=P=>{if(s){s=null;return}if(!l)return;const $=l,L=gv(e,$,P.clientX,P.clientY)??f;if(x(),y(),L&&!L.noop&&Q9(e,$,L.units)){Ic(e,$,"after"),t.onMoved($,Kh(e,$));return}t.onCancelled()},M=P=>{P.key==="Escape"&&l&&(P.stopPropagation(),b())},N=P=>{Qs(P.target)&&P.preventDefault()};return e.addEventListener("pointerdown",C),e.addEventListener("dragstart",N),window.addEventListener("pointermove",E),window.addEventListener("pointerup",k),window.addEventListener("pointercancel",b),window.addEventListener("blur",b),window.addEventListener("keydown",M,!0),()=>{x(),e.removeEventListener("pointerdown",C),e.removeEventListener("dragstart",N),window.removeEventListener("pointermove",E),window.removeEventListener("pointerup",k),window.removeEventListener("pointercancel",b),window.removeEventListener("blur",b),window.removeEventListener("keydown",M,!0)}}function MO(e,t){let n=0;const s=Array.from(e.childNodes);for(let u=0;u<s.length;u++){const f=s[u],h=f.nodeType===Node.TEXT_NODE?(f.textContent??"").length:1;if(t<=n+h){if(f.nodeType!==Node.TEXT_NODE){const v=f.getBoundingClientRect();return new DOMRect(t===n?v.left:v.right,v.top,0,v.height)}const m=document.createRange();m.setStart(f,Math.max(0,Math.min(t-n,h))),m.collapse(!0);const p=m.getBoundingClientRect();return p.height?p:null}n+=h}const c=(e.lastElementChild??e).getBoundingClientRect();return new DOMRect(c.right,c.top,0,c.height||18)}function RO({kind:e,label:t,thumb:n,onInspect:s,onMove:l,onRemove:c,onClose:u}){const{sheet:f,grip:h}=Oi(()=>u("dismiss")),m=e==="mark"?"brand mark":"reference image";return o.jsx(ul,{open:!0,onOpenChange:p=>!p&&u("dismiss"),children:o.jsxs(dl,{children:[o.jsx(fl,{className:"sc-shotsheet-scrim"}),o.jsxs(hl,{ref:f,className:"sc-shotsheet sc-swapsheet","data-kind":e,"aria-describedby":void 0,onOpenAutoFocus:p=>{var v;p.preventDefault(),(v=f.current)==null||v.focus({preventScroll:!0})},onCloseAutoFocus:p=>p.preventDefault(),onEscapeKeyDown:p=>{p.preventDefault(),u("escape")},children:[o.jsxs("div",{className:"sc-shotsheet-grip",...h,children:[o.jsx("span",{className:"sc-shotsheet-bar","aria-hidden":!0}),o.jsxs(ml,{className:"sc-vh",children:["Move or remove ",m]})]}),o.jsxs("div",{className:"sc-movesheet-head",children:[n&&o.jsx("button",{type:"button",className:"sc-movesheet-face",onClick:s,"aria-label":`Open ${m}`,children:o.jsx("img",{src:n,alt:"",onError:p=>p.currentTarget.remove()})}),o.jsxs("span",{className:"sc-movesheet-txt",children:[o.jsx("b",{dir:"auto",children:t||m}),o.jsx("span",{children:m})]})]}),o.jsxs("div",{className:"sc-swap-foot",children:[o.jsxs("div",{className:"sc-swap-move",children:[o.jsxs("button",{type:"button",className:"sc-btn",onClick:()=>l(-1),children:[o.jsx(vp,{size:13})," Move earlier"]}),o.jsxs("button",{type:"button",className:"sc-btn",onClick:()=>l(1),children:["Move later ",o.jsx(Qc,{size:13})]})]}),o.jsxs("button",{type:"button",className:"sc-swap-remove",onClick:c,children:[o.jsx(Ep,{size:13}),"Remove ",e==="mark"?"mark":"reference"]})]})]})]})})}const PO=440,LO=460,TO=156,Y0=8,Vo=12,HO=200,$O=240;function Kp(e,t,n){if(e.bottom<0||e.top>t.height)return null;const s=Math.min((n==null?void 0:n.width)??PO,t.width-Vo*2),l=e.top-Y0-Vo,c=t.height-e.bottom-Y0-Vo,u=l>=$O||l>=c?"above":"below",h=Math.max(HO,Math.min(LO,u==="above"?l:c)),m=Math.min(Math.max(e.left,Vo),Math.max(Vo,t.width-s-Vo)),p=u==="above"?Math.max(Vo,e.top-Y0-h):e.bottom+Y0;return{left:m,top:p,width:s,maxHeight:h,side:u}}const DO=["ref","mark","product","presenter","scene"],e7=e=>DO.includes(e),t7={ref:"Reference image",mark:"Brand mark",product:"Product",presenter:"Presenter",scene:"Scene"};function FO(e){return e.side==="below"?{top:Math.round(e.top)}:{bottom:Math.round(window.innerHeight-(e.top+e.maxHeight))}}function n7({anchor:e,kind:t,src:n,label:s,warning:l,onOpen:c,onHoverIn:u,onHoverOut:f,onClose:h}){const[m,p]=r.useState(null),[v,y]=r.useState(!1),x=r.useRef(null);if(r.useEffect(()=>y(!1),[n]),r.useLayoutEffect(()=>{var S,A;const C=()=>{const E=window.visualViewport,k=Kp(e.getBoundingClientRect(),{width:(E==null?void 0:E.width)??window.innerWidth,height:(E==null?void 0:E.height)??window.innerHeight},{width:TO});if(!k){h();return}p(k)};return C(),window.addEventListener("resize",C),window.addEventListener("scroll",C,!0),(S=window.visualViewport)==null||S.addEventListener("resize",C),(A=window.visualViewport)==null||A.addEventListener("scroll",C),()=>{var E,k;window.removeEventListener("resize",C),window.removeEventListener("scroll",C,!0),(E=window.visualViewport)==null||E.removeEventListener("resize",C),(k=window.visualViewport)==null||k.removeEventListener("scroll",C)}},[e,h]),r.useEffect(()=>{const C=S=>{S.key==="Escape"&&h()};return window.addEventListener("keydown",C,!0),()=>window.removeEventListener("keydown",C,!0)},[h]),!m)return null;const b=t7[t];return Ur.createPortal(o.jsxs("div",{ref:x,className:"sc-chip-preview","data-kind":t,"data-side":m.side,"aria-hidden":"true",style:{left:Math.round(m.left),...FO(m),maxWidth:m.width,maxHeight:m.maxHeight},onPointerEnter:u,onPointerLeave:f,children:[o.jsxs("button",{type:"button",className:"sc-chip-preview-hit",tabIndex:-1,onClick:c,children:[v?o.jsxs("span",{className:"sc-chip-preview-plate sc-chip-preview-blank",children:[o.jsx(ha,{size:20}),"Image unavailable"]}):o.jsx("img",{className:"sc-chip-preview-plate",src:n,alt:"",decoding:"async",onError:()=>y(!0)}),s&&o.jsx("b",{dir:"auto",children:s}),o.jsx("span",{children:b})]}),l&&o.jsx("p",{className:"sc-swap-warn",children:l})]}),document.body)}const IO=160,OO=120;function r7(){const[e,t]=r.useState(null),n=r.useRef(null),s=r.useRef(!1);s.current=e!==null;const l=r.useCallback(()=>{n.current&&clearTimeout(n.current),n.current=null},[]),c=r.useCallback(h=>{if(l(),s.current){t(h);return}n.current=setTimeout(()=>t(h),IO)},[l]),u=r.useCallback(()=>{l(),n.current=setTimeout(()=>t(null),OO)},[l]),f=r.useCallback(()=>{l(),t(null)},[l]);return r.useEffect(()=>l,[l]),{shown:e,open:c,keep:l,close:u,closeNow:f}}const p1="sc-insert-menu";function _O(e){var t;return!!(((t=e.nativeEvent)==null?void 0:t.isComposing)??e.isComposing)||e.keyCode===229}function vv(e){return e==="/"?"Scenes":e==="@"?"Presenters":e==="#"?"Colors":"Products"}function ZO(e){return e==="/"?"No matching scenes":e==="#"?"No matching colours":e==="@"?"No matching presenters":"No matching products"}function VO({menuOpen:e,handled:t}){return!e&&!t}function zO(e,t){return t||!e?{open:!1}:{open:!0,sigil:e.sigil,query:e.query}}function BO(e,t){const n=t.trim().split(/\s+/).filter(Boolean)[0];if(!n)return[{text:e,hit:!1}];const s=e.toLocaleLowerCase().indexOf(n.toLocaleLowerCase());if(s<0)return[{text:e,hit:!1}];const l=s+n.length;return[...s>0?[{text:e.slice(0,s),hit:!1}]:[],{text:e.slice(s,l),hit:!0},...l<e.length?[{text:e.slice(l),hit:!1}]:[]]}const a7=320,qh=320,UO=280,Uo=8,Bo=12,WO=8,yv=80,GO=120,s7=48;function KO(e,t){return!(!e||e.top===0&&e.left===0&&e.right===0&&e.bottom===0||e.bottom<0||e.top>t.height||e.right-e.left>s7)}function YO(e){return{top:e.top,bottom:Math.min(e.bottom,e.top+22),left:e.left,right:e.left+2}}function o7(e,t,n,s){return Math.min(Math.max(e,s),Math.max(s,n.width-t-s))}function Xh(e,t,n,s){const l=n?WO:Bo,c=n?Math.max(0,e.right-e.left):Math.min(a7,t.width-l*2),u=n?e.left:o7(e.left,c,t,l),f=n?Math.min(UO,Math.floor(t.height*.4)):qh,h=Math.min(f,s??f),m=e.top-Uo-l,p=Math.max(0,Math.min(h,m)),v=Math.max(l,e.top-Uo-p);return{left:u,top:v,width:c,maxHeight:p,side:"above",shell:"dock"}}function xv(e,t,n,s){const l=Math.min(a7,n.width-Bo*2),c=o7(e.left,l,n,Bo),u=e.top-Uo-Bo,f=n.height-e.bottom-Uo-Bo,h=u>=GO||u>=f?"above":"below",m=Math.min(qh,s??qh),p=h==="above"?u:f,v=Math.min(m,s==null?Math.max(yv,p):p);if(h==="above"){const x=Math.max(Bo,e.top-Uo-Math.min(m,u)),b=Math.min(m,e.top-Uo-x);return s==null&&b<yv?Xh(t,n,!1):{left:c,top:x,width:l,maxHeight:b,side:h,shell:"caret"}}const y=e.bottom+Uo;return y+Math.min(v,f)>n.height-Bo?Xh(t,n,!1,s):{left:c,top:y,width:l,maxHeight:Math.min(m,f),side:h,shell:"caret"}}function qO(e,t,n,s={}){if(s.phone)return Xh(t,n,!0,s.height);const l=s.line??t;if(KO(e,n)&&e)return xv(e,t,n,s.height);const c=e&&e.right-e.left>s7?e:l;return xv(YO(c),t,n,s.height)}function XO({anchor:e,composer:t,line:n,query:s,options:l,sigil:c,onActiveId:u,onClose:f}){const h=Eo(_i),[m,p]=r.useState(0),[v,y]=r.useState(null),x=r.useRef(null),b=`${s}\0${l.length}`,C=r.useRef({key:""});r.useEffect(()=>{p(0)},[s]),r.useEffect(()=>{p(E=>Math.min(E,Math.max(0,l.length-1)))},[l.length]);const S=r.useCallback(E=>{const M=G9()??(e==null?void 0:e.getBoundingClientRect())??null,N=t==null?void 0:t.getBoundingClientRect();if(!N)return null;const P=(n==null?void 0:n.getBoundingClientRect())??null,$=window.visualViewport;return qO(M,N,{width:($==null?void 0:$.width)??window.innerWidth,height:($==null?void 0:$.height)??window.innerHeight},{phone:h,line:P,height:E})},[e,t,n,h]);r.useLayoutEffect(()=>{var M,N;C.current.key!==b&&(C.current={key:b});const E=()=>y(S(C.current.height));E();const k=requestAnimationFrame(E);return window.addEventListener("resize",E),window.addEventListener("scroll",E,!0),(M=window.visualViewport)==null||M.addEventListener("resize",E),(N=window.visualViewport)==null||N.addEventListener("scroll",E),()=>{var P,$;cancelAnimationFrame(k),window.removeEventListener("resize",E),window.removeEventListener("scroll",E,!0),(P=window.visualViewport)==null||P.removeEventListener("resize",E),($=window.visualViewport)==null||$.removeEventListener("scroll",E)}},[e,t,n,h,b,S]),r.useLayoutEffect(()=>{if((v==null?void 0:v.side)!=="above"||!x.current)return;const E=x.current.offsetHeight;if(!(E>0&&E<v.maxHeight))return;C.current={key:b,height:E};const k=S(E);!k||k.top===v.top&&k.maxHeight===v.maxHeight||y(k)},[v,b,S]),r.useLayoutEffect(()=>{const E=k=>{k.isComposing||k.keyCode===229||(k.key==="ArrowDown"?(k.preventDefault(),p(M=>Math.min(l.length-1,M+1))):k.key==="ArrowUp"?(k.preventDefault(),p(M=>Math.max(0,M-1))):(k.key==="Enter"||k.key==="Tab")&&l[m]?(k.preventDefault(),l[m].run()):k.key==="Escape"&&(k.preventDefault(),f()))};return window.addEventListener("keydown",E,!0),()=>window.removeEventListener("keydown",E,!0)},[l,m,f]),r.useEffect(()=>{var E,k;(k=(E=x.current)==null?void 0:E.querySelector('[data-active="true"]'))==null||k.scrollIntoView({block:"nearest"})},[m]);const A=l[m]?`${p1}-opt-${m}`:null;return r.useEffect(()=>(u==null||u(A),()=>u==null?void 0:u(null)),[A,u]),r.useEffect(()=>{const E=k=>{k.target.closest(".sc-cmd")||(Yh(k),f())};return document.addEventListener("mousedown",E),()=>document.removeEventListener("mousedown",E)},[f]),v?Ur.createPortal(o.jsx("div",{className:"sc-cmd",id:p1,"data-shell":v.shell,style:{left:v.left,top:v.top,width:v.width,maxHeight:v.maxHeight},ref:x,role:"listbox","aria-label":vv(c),children:l.length?l.map((E,k)=>{var N;const M=k===0||E.group!==((N=l[k-1])==null?void 0:N.group);return o.jsxs("div",{children:[M&&o.jsx("div",{className:"sc-cmd-group",children:E.group}),o.jsxs("button",{type:"button",id:`${p1}-opt-${k}`,className:"sc-cmd-row",role:"option","aria-selected":k===m,"data-active":k===m,onMouseEnter:()=>p(k),onMouseDown:P=>Yh(P),onClick:()=>E.run(),children:[E.thumb?o.jsx("img",{src:E.thumb,alt:"","data-crop":E.crop}):E.swatch?o.jsx("span",{className:"sc-cmd-swatch",style:{background:E.swatch}}):null,o.jsx(QO,{text:E.label,query:s}),E.hint&&o.jsx("span",{className:"sc-cmd-hint",children:E.hint})]})]},E.key)}):o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"sc-cmd-group",children:vv(c)}),o.jsx("div",{className:"sc-cmd-empty",children:ZO(c)})]})}),document.body):null}function QO({text:e,query:t}){return o.jsx("span",{className:"sc-cmd-label",children:BO(e,t).map(n=>n.hit?o.jsx("b",{children:n.text},`h:${n.text}`):o.jsx("span",{children:n.text},`t:${n.text}`))})}const JO={fragrance:["Fragrance"],footwear:["Footwear"],apparel:["Apparel"],furniture:["Furniture","Home"],beauty:["Beauty"],electronics:["Electronics"],accessories:["Accessories"],beverage:["Food & drink"],jewelry:["Jewelry"],food:["Food & drink"]},e_={fragrance:["Fragrance"],footwear:["Footwear","Apparel"],apparel:["Apparel"],furniture:["Furniture","Home"],beauty:["Beauty"],electronics:["Electronics"],accessories:["Accessories"],beverage:["Food & drink"],jewelry:["Jewelry"],food:["Food & drink"]};function t_(e,t){if(!t)return!1;const n=JO[t];return!!n&&n.some(s=>e.verticals.includes(s))}function n_(e,t){if(!t)return!1;const n=e_[t];return!!n&&n.some(s=>e.suitableCategories.includes(s))}function wv(e){return e.normalize("NFD").replace(new RegExp("\\p{Diacritic}","gu"),"").replace(/[\u200e\u200f\u061c\u202a-\u202e\u2066-\u2069]/g,"").toLowerCase()}const r_=4;function Ra(e,t){const n=wv(t).trim().split(/\s+/).filter(Boolean);if(!n.length)return!0;const s=wv(e);return n.every(l=>s.includes(l)||l.length>=r_&&l.endsWith("s")&&s.includes(l.slice(0,-1)))}function l7(e){return e<2?"none":"tabs"}function i7(e,t){return{visible:e.slice(0,t),remaining:Math.max(0,e.length-t)}}function c7(e,t){return[...e].sort((n,s)=>Number(t(s))-Number(t(n)))}const Mu={product:"product",presenter:"presenter",scene:"scene"},Pc=48;function a_(e){return e?e.t==="product"?"product":e.t==="character"?"presenter":e.t==="template"?"scene":null:null}function g1(e){const t=a_(e);return t||((e==null?void 0:e.t)==="color"?"color":null)}function s_(e){const t=g1(e);return t||((e==null?void 0:e.t)==="ref"||(e==null?void 0:e.t)==="mark"?e.t:null)}function q0(e){return(e==null?void 0:e.t)==="ref"||(e==null?void 0:e.t)==="mark"?e.imageHash:null}const Oc=e=>{const t=(e??"").trim();return t||void 0},bv=e=>(e==null?void 0:e.custom)===!0;function hi(e,t){return e==="product"?[...(t.libraryProducts.length?t.libraryProducts:t.brandProducts).map(s=>{var l,c;return Ev(s,"brand",Un((c=(l=s.shots)==null?void 0:l[0])==null?void 0:c.file))}),...t.demoProducts.map(s=>Ev(s,"catalog",s.previewUrl??null))]:e==="presenter"?[...t.presenters.map(n=>{const s=Ad(n);return{kind:"presenter",id:n.id,label:n.name,full:[n.name,Oc(n.descriptor)].filter(Boolean).join(" · "),sub:Oc(n.descriptor),search:L1(n),thumb:s.src,crop:s.crop,source:bv(n)?"brand":"catalog",recommended:n_(n,t.productCategory),token:{t:"character",id:n.id}}}),...t.cast.map(n=>{const s=Vp(n);return{kind:"presenter",id:n.id,label:n.name,full:n.name,search:n.name,thumb:s.src,crop:s.crop,source:"brand",token:{t:"character",id:n.id}}})]:t.scenes.map(n=>({kind:"scene",id:n.id,label:po(n,"card"),full:po(n,"tooltip"),sub:Oc(n.lighting),search:P1(n),thumb:n.previewUrl??null,tint:Gp(n.previewColor),source:bv(n)?"brand":"catalog",recommended:t_(n,t.productCategory),token:{t:"template",id:n.id}}))}function Ev(e,t,n){return{kind:"product",id:e.id,label:Ja(e,"chip"),full:Ja(e,"tooltip"),sub:o_(e),search:Op(e),thumb:n,source:t,token:{t:"product",id:e.id}}}function o_(e){const t=e;return Oc(t.brand)??Oc(t.vendor)}function _c(e,t){const n=t.trim();return n?e.filter(s=>Ra(s.search,n)):e}function Cv(e,t,n){return t.source==="brand"?0:e==="scene"?n.has(t.id)?1:t.recommended?2:3:e==="presenter"?t.recommended?1:2:1}function Md(e,t,n){const s=n.currentId?t.find(m=>m.id===n.currentId)??null:null,l=s?t.filter(m=>m.id!==s.id):t,u=[..._c(l,n.query)].sort((m,p)=>Cv(e,m,n.bookmarked)-Cv(e,p,n.bookmarked)).map(m=>n.bookmarked.has(m.id)?{...m,bookmarked:!0}:m),{visible:f,remaining:h}=i7(u,n.shown??Pc);return{current:s,items:f,remaining:h,total:u.length}}const l_={$:"product","/":"scene","@":"presenter"},Sv=40,jv={Products:8,Presenters:8,Colors:16,Scenes:8},i_={$:"Products","/":"Scenes","@":"Presenters","#":"Colors"};function u7(e){return{key:`${e.kind}:${e.id}`,group:e.kind==="presenter"?"Presenters":e.kind==="scene"?"Scenes":"Products",label:e.label,hint:e.sub,search:e.search,thumb:e.thumb??void 0,crop:e.crop,token:e.token}}function c_(e,t,n,s){return Md(e,t,{currentId:null,query:"",bookmarked:n,shown:s}).items.map(u7)}function u_(e,t,n={query:""}){const s=n.query.trim(),l=n.bookmarked??new Set;if(e==="#"){const f=(t.colors??[]).map(d_);return s?f.filter(h=>Ra(h.search??h.label,s)).slice(0,Sv):f.slice(0,jv.Colors)}const c=l_[e],u=c==="product"?t.products:c==="presenter"?t.presenters:t.scenes??[];return s?_c(u,s).map(u7).slice(0,Sv):c_(c,u,l,jv[i_[e]])}function d_(e){return{key:`color:${e.hex}`,group:"Colors",label:e.name,hint:e.hex,search:`${e.name} ${e.hex}`,swatch:e.hex,token:{t:"color",hex:e.hex,name:e.name||void 0}}}const f_="(pointer: coarse)";function h_(e){return Eo(_i)?o.jsx(y_,{...e}):o.jsx(v_,{...e,onMove:void 0})}function m_(){return!Eo(f_)}const p_=e=>`Remove ${Mu[e]}`;function g_(e,t,n){const s={slug:t};return e==="product"?sa(s,n):e==="presenter"?Ka(s,n):ia(s,n)}function d7({kind:e,currentId:t,candidates:n,brandId:s,brandSlug:l,warning:c,onPick:u,onRemove:f,onClose:h,onAttachRequest:m,onMove:p,autoFocusSearch:v}){const[y,x]=r.useState(""),[b,C]=r.useState(Pc),S=r.useRef(null),A=r.useRef(null),[E,k]=r.useState(0),M=r.useMemo(()=>e==="scene"?new Set(es(s)):new Set,[e,s]);r.useEffect(()=>{C(Pc),k(0)},[y]);const N=r.useMemo(()=>Md(e,n,{currentId:t,query:y,bookmarked:M,shown:b}),[e,n,t,y,M,b]);r.useLayoutEffect(()=>{var te;v&&((te=S.current)==null||te.focus({preventScroll:!0}))},[v]),r.useEffect(()=>{k(te=>Math.max(0,Math.min(te,N.items.length-1)))},[N.items.length]);const P=r.useCallback(te=>{var Z;const X=(Z=A.current)==null?void 0:Z.querySelectorAll("[data-nav]")[te];X&&(k(te),X.focus({preventScroll:!0}),X.scrollIntoView({block:"nearest"}))},[]),$=r.useCallback(()=>{const te=A.current;return te?Math.max(1,getComputedStyle(te).gridTemplateColumns.split(" ").filter(Boolean).length):1},[]),L=te=>{var re;if(te.key==="Escape"){te.preventDefault(),te.stopPropagation(),h("escape");return}const X=te.target===S.current;if(X&&te.key==="ArrowDown"){te.preventDefault(),P(0);return}if(X&&te.key==="Enter"){te.preventDefault(),N.items[0]&&u(N.items[0]);return}if(X)return;const Z=$(),G=te.key==="ArrowRight"?1:te.key==="ArrowLeft"?-1:te.key==="ArrowDown"?Z:te.key==="ArrowUp"?-Z:0;if(G){te.preventDefault();const de=E+G;de<0&&G===-Z?(re=S.current)==null||re.focus():de>=0&&de<N.items.length&&P(de);return}te.key==="Home"?(te.preventDefault(),P(0)):te.key==="End"&&(te.preventDefault(),P(N.items.length-1))},W=Mu[e],B=e==="product";return o.jsxs("div",{className:"sc-swap-inner",onKeyDown:L,children:[o.jsx("div",{className:"sc-swap-head",children:o.jsxs("span",{className:"sc-swap-search",children:[o.jsx(Jc,{size:13}),o.jsx("input",{ref:S,type:"text",value:y,onChange:te=>x(te.target.value),placeholder:`Search ${W}s`,"aria-label":`Search ${W}s`,autoComplete:"off",spellCheck:!1})]})}),N.current&&o.jsxs("div",{className:"sc-swap-cur",title:N.current.full,children:[o.jsx(kv,{src:N.current.thumb,tinted:!!N.current.tint,crop:N.current.crop}),o.jsxs("span",{className:"sc-swap-curtext",children:[o.jsx("b",{dir:"auto",children:N.current.label}),N.current.sub&&o.jsx("span",{dir:"auto",children:N.current.sub})]}),o.jsx("a",{className:"sc-swap-open",href:g_(e,l,N.current.id),target:"_blank",rel:"noreferrer",title:`Open this ${W} in a new tab`,"aria-label":`Open ${N.current.label} in a new tab`,children:o.jsx(fd,{size:14})}),o.jsx("span",{className:"sc-swap-tick","aria-hidden":!0,children:o.jsx(la,{size:11,weight:"bold"})})]}),o.jsxs("div",{className:"sc-swap-body",children:[N.items.length===0&&o.jsx("p",{className:"sc-swap-empty",children:y.trim()?`Nothing matches “${y.trim()}”.`:`No other ${W}s.`}),o.jsx("div",{className:"sc-swap-grid",ref:A,role:"listbox","aria-label":`Choose a ${W}`,children:N.items.map((te,X)=>o.jsxs("div",{className:"sc-swap-card",role:"option","aria-selected":!1,"data-nav":X,tabIndex:X===E?0:-1,title:te.full,style:te.tint?{"--tint":te.tint}:void 0,onFocus:()=>k(X),onClick:()=>u(te),onKeyDown:Z=>{Z.key!=="Enter"&&Z.key!==" "||(Z.preventDefault(),u(te))},children:[o.jsx(kv,{src:te.thumb,tinted:!!te.tint,crop:te.crop}),o.jsxs("b",{dir:"auto",children:[te.bookmarked&&o.jsxs(o.Fragment,{children:[o.jsx(hd,{className:"sc-bm-mark",size:10,weight:"fill","aria-hidden":!0}),o.jsx("span",{className:"sc-vh",children:"Bookmarked. "})]}),te.label]}),B&&te.sub&&o.jsx("span",{dir:"auto",children:te.sub})]},te.id))}),N.remaining>0&&o.jsxs("button",{type:"button",className:"sc-swap-more",onClick:()=>C(te=>te+Pc),children:["Show ",Math.min(Pc,N.remaining)," more of ",N.total]})]}),o.jsxs("div",{className:"sc-swap-foot",children:[t&&!N.current&&o.jsxs("p",{className:"sc-swap-warn",children:["This ",W," is no longer available."]}),c&&o.jsx("p",{className:"sc-swap-warn",children:c}),c&&m&&e==="scene"&&o.jsxs("div",{className:"sc-swap-attach",children:[c.includes("product")&&o.jsx("button",{type:"button",className:"sc-btn",onClick:()=>m("Products"),children:"Attach a product"}),c.includes("person")&&o.jsx("button",{type:"button",className:"sc-btn",onClick:()=>m("Presenters"),children:"Attach a presenter"})]}),p&&o.jsxs("div",{className:"sc-swap-move",children:[o.jsxs("button",{type:"button",className:"sc-btn",onClick:()=>p(-1),children:[o.jsx(vp,{size:13})," Move earlier"]}),o.jsxs("button",{type:"button",className:"sc-btn",onClick:()=>p(1),children:["Move later ",o.jsx(Qc,{size:13})]})]}),o.jsxs("button",{type:"button",className:"sc-swap-remove",onClick:f,children:[o.jsx(Ep,{size:13}),p_(e)]})]})]})}function kv({src:e,tinted:t,crop:n}){const[s,l]=r.useState(!1);return r.useEffect(()=>l(!1),[e]),!e||s?o.jsx("span",{className:"sc-swap-thumb sc-swap-thumb-empty",children:o.jsx(ha,{size:18})}):o.jsx("img",{className:"sc-swap-thumb","data-tinted":t||void 0,"data-crop":n,src:e,alt:"",loading:"lazy",onError:()=>l(!0)})}function v_(e){const{anchor:t,kind:n,onClose:s}=e,l=m_(),[c,u]=r.useState(null),f=r.useRef(null);return r.useLayoutEffect(()=>{var m,p;const h=()=>{const v=window.visualViewport,y=Kp(t.getBoundingClientRect(),{width:(v==null?void 0:v.width)??window.innerWidth,height:(v==null?void 0:v.height)??window.innerHeight});if(!y){s("outside");return}u(y)};return h(),window.addEventListener("resize",h),window.addEventListener("scroll",h,!0),(m=window.visualViewport)==null||m.addEventListener("resize",h),(p=window.visualViewport)==null||p.addEventListener("scroll",h),()=>{var v,y;window.removeEventListener("resize",h),window.removeEventListener("scroll",h,!0),(v=window.visualViewport)==null||v.removeEventListener("resize",h),(y=window.visualViewport)==null||y.removeEventListener("scroll",h)}},[t,s]),r.useEffect(()=>{const h=m=>{var v;const p=m.target;(v=f.current)!=null&&v.contains(p)||t.contains(p)||s("outside")};return document.addEventListener("mousedown",h),()=>document.removeEventListener("mousedown",h)},[s,t]),c?Ur.createPortal(o.jsx("div",{ref:f,className:"sc-swap","data-kind":n,"data-side":c.side,role:"dialog","aria-label":`Change ${Mu[n]}`,style:{left:c.left,top:c.top,width:c.width,maxHeight:c.maxHeight},children:o.jsx(d7,{...e,autoFocusSearch:l})}),document.body):null}function y_(e){const{kind:t,onClose:n}=e,{sheet:s,grip:l}=Oi(()=>n("dismiss"));return o.jsx(ul,{open:!0,onOpenChange:c=>!c&&n("dismiss"),children:o.jsxs(dl,{children:[o.jsx(fl,{className:"sc-shotsheet-scrim"}),o.jsxs(hl,{ref:s,className:"sc-shotsheet sc-swapsheet","data-kind":t,"aria-describedby":void 0,onOpenAutoFocus:c=>{var u;c.preventDefault(),(u=s.current)==null||u.focus({preventScroll:!0})},onCloseAutoFocus:c=>c.preventDefault(),onEscapeKeyDown:c=>{c.preventDefault(),n("escape")},children:[o.jsxs("div",{className:"sc-shotsheet-grip",...l,children:[o.jsx("span",{className:"sc-shotsheet-bar","aria-hidden":!0}),o.jsxs(ml,{className:"sc-vh",children:["Change ",Mu[t]]})]}),o.jsx(d7,{...e,autoFocusSearch:!1})]})]})})}const x_=260;function w_(e){return Eo(_i)?o.jsx(E_,{...e}):o.jsx(b_,{...e,onMove:void 0})}function ni(e,t){const n=e?cn(e):null,s=t?cn(t):null;return!!n&&n===s}function f7({currentHex:e,currentName:t,palette:n,onPick:s,onRemove:l,onClose:c,onMove:u}){const f=r.useMemo(()=>{const A=new Set,E=[],k=N=>{const P=cn(N.hex);!P||A.has(P)||(A.add(P),E.push({...N,hex:P}))},M=e?cn(e):null;M&&!n.some(N=>ni(N.hex,M))&&k({hex:M,name:t||M,slot:"accent"});for(const N of n)k(N);return E},[n,e,t]),h=r.useRef(null),[m,p]=r.useState(()=>Math.max(0,f.findIndex(A=>ni(A.hex,e))));r.useEffect(()=>{p(A=>Math.max(0,Math.min(A,Math.max(0,f.length-1))))},[f.length]),r.useLayoutEffect(()=>{var E,k;const A=Math.max(0,f.findIndex(M=>ni(M.hex,e)));(k=(E=h.current)==null?void 0:E.querySelectorAll("[data-nav]")[A])==null||k.focus({preventScroll:!0})},[]);const v=r.useCallback(A=>{var k;const E=(k=h.current)==null?void 0:k.querySelectorAll("[data-nav]")[A];E&&(p(A),E.focus({preventScroll:!0}))},[]),y=A=>{if(A.key==="Escape"){A.preventDefault(),A.stopPropagation(),c("escape");return}if(A.key==="ArrowDown"||A.key==="ArrowUp"){A.preventDefault();const E=m+(A.key==="ArrowDown"?1:-1);E>=0&&E<f.length&&v(E)}},x=A=>s({t:"color",hex:A.hex,name:A.name||void 0}),b=(A,E)=>{const k=f.find(M=>ni(M.hex,A));s({t:"color",hex:A,name:(k==null?void 0:k.name)||void 0},{live:!0})},C=e?cn(e):null,S=!!C&&!n.some(A=>ni(A.hex,C));return o.jsxs("div",{className:"sc-swap-inner",onKeyDown:y,children:[o.jsx("div",{className:"sc-swap-body",children:f.length===0?o.jsx("p",{className:"sc-swap-empty",children:"No brand colours yet."}):o.jsx("div",{className:"sc-swap-swatches",ref:h,role:"listbox","aria-label":"Choose a colour",children:f.map((A,E)=>{const k=ni(A.hex,e),M=o.jsxs(o.Fragment,{children:[o.jsx("span",{className:"sc-swap-dot",style:{background:A.hex},"aria-hidden":!0}),o.jsx("b",{dir:"auto",children:A.name}),o.jsx("span",{children:A.hex}),k&&o.jsx("span",{className:"sc-swap-tick","aria-hidden":!0,children:o.jsx(la,{size:11,weight:"bold"})})]});return S&&k?o.jsx(R1,{className:"sc-swap-swatch",triggerStyle:{background:"none"},value:A.hex,presets:n.map(N=>N.hex),commitMode:"live",align:"start",label:`Edit ${A.name}`,triggerProps:{role:"option","aria-selected":!0,"data-on":"","data-nav":E,tabIndex:E===m?0:-1,title:`${A.name} ${A.hex}`,onFocus:()=>p(E)},onChange:N=>b(N),children:M},"current-custom"):o.jsx("div",{className:"sc-swap-swatch",role:"option","aria-selected":k,"data-on":k||void 0,"data-nav":E,tabIndex:E===m?0:-1,title:`${A.name} ${A.hex}`,onFocus:()=>p(E),onClick:()=>x(A),onKeyDown:N=>{N.key!=="Enter"&&N.key!==" "||(N.preventDefault(),x(A))},children:M},A.hex)})})}),o.jsxs("div",{className:"sc-swap-foot",children:[o.jsxs(R1,{className:"sc-swap-swatch sc-swap-custom",triggerStyle:{background:"none"},value:e??Fp(n),presets:n.map(A=>A.hex),commitMode:"live",align:"start",label:"Custom colour",onChange:A=>b(A),children:[o.jsx(Wn,{size:12}),o.jsx("b",{children:"Custom colour"})]}),u&&o.jsxs("div",{className:"sc-swap-move",children:[o.jsxs("button",{type:"button",className:"sc-btn",onClick:()=>u(-1),children:[o.jsx(vp,{size:13})," Move earlier"]}),o.jsxs("button",{type:"button",className:"sc-btn",onClick:()=>u(1),children:["Move later ",o.jsx(Qc,{size:13})]})]}),o.jsxs("button",{type:"button",className:"sc-swap-remove",onClick:l,children:[o.jsx(Ep,{size:13}),"Remove colour"]})]})]})}function b_(e){const{anchor:t,onClose:n}=e,[s,l]=r.useState(null),c=r.useRef(null);return r.useLayoutEffect(()=>{var f,h;const u=()=>{const m=window.visualViewport,p=Kp(t.getBoundingClientRect(),{width:(m==null?void 0:m.width)??window.innerWidth,height:(m==null?void 0:m.height)??window.innerHeight},{width:x_});if(!p){n("outside");return}l(p)};return u(),window.addEventListener("resize",u),window.addEventListener("scroll",u,!0),(f=window.visualViewport)==null||f.addEventListener("resize",u),(h=window.visualViewport)==null||h.addEventListener("scroll",u),()=>{var m,p;window.removeEventListener("resize",u),window.removeEventListener("scroll",u,!0),(m=window.visualViewport)==null||m.removeEventListener("resize",u),(p=window.visualViewport)==null||p.removeEventListener("scroll",u)}},[t,n]),r.useEffect(()=>{const u=f=>{var m,p;const h=f.target;(m=c.current)!=null&&m.contains(h)||t.contains(h)||(p=h.closest)!=null&&p.call(h,".sc-cp")||n("outside")};return document.addEventListener("mousedown",u),()=>document.removeEventListener("mousedown",u)},[n,t]),s?Ur.createPortal(o.jsx("div",{ref:c,className:"sc-swap","data-kind":"color","data-side":s.side,role:"dialog","aria-label":"Change colour",style:{left:s.left,top:s.top,width:s.width,maxHeight:s.maxHeight},children:o.jsx(f7,{...e})}),document.body):null}function E_(e){const{onClose:t}=e,{sheet:n,grip:s}=Oi(()=>t("dismiss"));return o.jsx(ul,{open:!0,onOpenChange:l=>!l&&t("dismiss"),children:o.jsxs(dl,{children:[o.jsx(fl,{className:"sc-shotsheet-scrim"}),o.jsxs(hl,{ref:n,className:"sc-shotsheet sc-swapsheet","data-kind":"color","aria-describedby":void 0,onOpenAutoFocus:l=>{var c;l.preventDefault(),(c=n.current)==null||c.focus({preventScroll:!0})},onCloseAutoFocus:l=>l.preventDefault(),onEscapeKeyDown:l=>{l.preventDefault(),t("escape")},children:[o.jsxs("div",{className:"sc-shotsheet-grip",...s,children:[o.jsx("span",{className:"sc-shotsheet-bar","aria-hidden":!0}),o.jsx(ml,{className:"sc-vh",children:"Change colour"})]}),o.jsx(f7,{...e})]})]})})}function Ru(e){const{brand:t,products:n}=Tt(),{scenes:s,presenters:l,demoProducts:c}=an(),u=r.useMemo(()=>_h(jl(t),s),[t,s]),f=r.useMemo(()=>_h(Au(t),l),[t,l]),h=r.useMemo(()=>{var p;return(((p=t==null?void 0:t.json)==null?void 0:p.characters)??[]).filter(v=>(v==null?void 0:v.origin)!=="custom")},[t]),m=r.useMemo(()=>{var p;return((p=t==null?void 0:t.json)==null?void 0:p.products)??[]},[t]);return r.useMemo(()=>({libraryProducts:n,brandProducts:m,demoProducts:c,presenters:f,cast:h,scenes:u,productCategory:e??null}),[n,m,c,f,h,u,e])}const nr=[{id:"square",label:"Square",hint:"1:1",w:1024,h:1024},{id:"portrait",label:"Portrait",hint:"4:5",w:1024,h:1280},{id:"story",label:"Story",hint:"9:16",w:1080,h:1920},{id:"landscape",label:"Landscape",hint:"16:9",w:1600,h:900}];function ru(e){const t=nr.find(n=>n.id===e);return t?t.w/t.h:1}function C_(e,t=0){var c,u;const n=nr.find(f=>f.id===(e==null?void 0:e.format));if(n)return n.id;const s=(u=(c=e==null?void 0:e.rendered)==null?void 0:c.sizes)==null?void 0:u[t];if(!s||!(s[0]>0)||!(s[1]>0))return;const l=Math.log(s[0]/s[1]);return nr.reduce((f,h)=>Math.abs(Math.log(h.w/h.h)-l)<Math.abs(Math.log(f.w/f.h)-l)?h:f).id}const X0=6,S_=r.forwardRef(function({initialTokens:t,onChange:n,brand:s,templates:l,presenters:c,demoProducts:u,onTemplatePick:f,placeholder:h,placeholderSm:m,flag:p,onInspect:v,activeProductCategory:y,onAttachRequest:x,onSubmit:b,onDropFiles:C},S){var Tn,Sn,hn,mn,z;const A=r.useRef(null),E=r.useId(),[k,M]=r.useState(""),N=r.useCallback(R=>{M(""),requestAnimationFrame(()=>M(R))},[]),P=r.useRef(0),$=r.useRef(null),[L,W]=r.useState(null),[B,te]=r.useState(null),X=r7(),{shown:Z,closeNow:G}=X,re=r.useRef(B);r.useEffect(()=>{re.current=B},[B]);const de=r.useRef(p);r.useEffect(()=>{de.current=p},[p]);const[ne,U]=r.useState(""),[D,V]=r.useState(null),F=r.useRef(!1),Q=r.useRef(0),[ae,q]=r.useState(!1),ge=r.useRef(0),{products:ce}=Tt(),he=ce.length?ce:((Tn=s.json)==null?void 0:Tn.products)??[],me=((Sn=s.json)==null?void 0:Sn.characters)??[],fe=r.useMemo(()=>wd(s.json),[s]),ie=r.useCallback((R,H)=>{var We,Ze;const O=document.createElement("span");O.className=Sa,O.contentEditable="false",O.dir="auto",O.dataset.kind=R.t,O.dataset.tok=zp(R),O.dataset.uid=H??`u${Q.current++}`;let J="",ve=null,Se,Me=null;if(R.t==="template"){const Te=l.find(qe=>qe.id===R.id);J=Te?po(Te,"chip"):"missing template",ve=(Te==null?void 0:Te.previewUrl)??null;const Qe=Gp(Te==null?void 0:Te.previewColor);Qe&&(O.dataset.tinted="true",O.style.setProperty("--tint",Qe))}else if(R.t==="product"){const Te=he.find(at=>at.id===R.id),Qe=Te?null:u.find(at=>at.id===R.id),qe=Te??Qe;J=qe?Ja(qe,"chip"):"missing product",ve=Te?Un((Ze=(We=Te.shots)==null?void 0:We[0])==null?void 0:Ze.file):(Qe==null?void 0:Qe.previewUrl)??null}else if(R.t==="character"){const Te=me.find(at=>at.id===R.id),Qe=Te?null:c.find(at=>at.id===R.id);J=(Te==null?void 0:Te.name)??(Qe==null?void 0:Qe.name)??"missing person";const qe=Te?Vp(Te):Qe?Ad(Qe):{src:null};ve=qe.src,Se=qe.crop}else if(R.t==="color")J=R.name??R.hex,Me=R.hex;else if(R.t==="ref")J="reference",ve=Pt(R.imageHash);else if(R.t==="mark"){const Te=fe.find(Qe=>Qe.hash===R.imageHash);J=Te?bd(s.json,Te):"missing mark",ve=Pt(R.imageHash)}if(ve){const Te=document.createElement("img");Te.src=ve,Te.alt="",Se&&(Te.dataset.crop=Se),Te.onerror=()=>Te.remove(),O.appendChild(Te)}else if(Me){const Te=document.createElement("span");Te.className="sc-token-swatch",Te.style.background=Me,O.appendChild(Te)}O.appendChild(document.createTextNode(J));const we=(p==null?void 0:p(R))??null;we&&(O.title=we,O.dataset.warn="1");const Le=g1(R);if(Le){const Te=Le==="color"?"colour":Mu[Le];O.tabIndex=0,O.setAttribute("role","button"),O.setAttribute("aria-haspopup","dialog"),O.setAttribute("aria-expanded","false"),O.setAttribute("aria-label",`${Te}: ${J}. Change or remove.`)}else O.tabIndex=0,O.setAttribute("role","button"),O.setAttribute("aria-haspopup","dialog"),O.setAttribute("aria-expanded","false"),O.setAttribute("aria-label",`${R.t==="mark"?"brand mark":"reference image"}: ${J}. Open, remove or move.`);O.setAttribute("aria-keyshortcuts","Alt+ArrowLeft Alt+ArrowRight"),O.setAttribute("aria-describedby",E),O.setAttribute("draggable","false");const Oe=document.createElement("button");return Oe.type="button",Oe.tabIndex=-1,Oe.setAttribute("aria-hidden","true"),Oe.dataset.role="remove",Oe.appendChild(AO()),O.appendChild(Oe),O},[l,he,me,c,u,fe,s,p,E]),Ee=r.useCallback(()=>{const R=A.current;R&&(P.current=R.querySelectorAll(`.${Sa}`).length,n(dv(R)))},[n]);r.useEffect(()=>{const R=A.current;R&&(fv(R,t!=null&&t.length?t:vs(),H=>ie(H)),P.current=R.querySelectorAll(`.${Sa}`).length,Rc(R))},[]);const De=r.useCallback((R,H)=>{const O=A.current,J=O==null?void 0:O.querySelector(`[data-uid="${CSS.escape(R)}"]`);O&&J&&pv(O,J,H)&&(Ee(),N(Kh(O,J)))},[Ee,N]);r.useEffect(()=>{const R=A.current;if(R)return NO(R,{onDragStart:()=>{W(null),U("")},onMoved:(H,O)=>{Ee(),N(O)},onCancelled:()=>N("Reorder cancelled.")})},[Ee,N]),r.useEffect(()=>{const R=A.current;if(R)for(const H of R.querySelectorAll(`.${Sa}`)){const O=Ar(H.dataset.tok??"");if(!O)continue;const J=(p==null?void 0:p(O))??null;J?H.dataset.warn="1":delete H.dataset.warn,J&&!("open"in H.dataset)?H.title=J:H.removeAttribute("title")}},[p]),r.useEffect(()=>{const R=()=>{const H=Mc(A.current);H!==null&&($.current=H)};return document.addEventListener("selectionchange",R),()=>document.removeEventListener("selectionchange",R)},[]);const Fe=r.useCallback(R=>{const H=A.current;if(H){if(R.t==="template"){const O=G2(H);if(O){O.replaceWith(ie(R,O.dataset.uid)),ws(H),Ee(),W(null),U("");return}}uO(H,ie(R),{eatQuery:!!L,fallbackUnits:$.current}),Ee(),W(null),U("")}},[L,ie,Ee]),tt=r.useRef(Fe);r.useEffect(()=>{tt.current=Fe},[Fe]);const bt=r.useCallback((R,H)=>{const O=A.current,J=O==null?void 0:O.querySelector(`[data-uid="${CSS.escape(R)}"]`);return!O||!J?!1:(J.replaceWith(ie(H,R)),ws(O),Ee(),!0)},[ie,Ee]),Ne=r.useCallback(R=>{const H=A.current,O=H==null?void 0:H.querySelector(`[data-uid="${CSS.escape(R)}"]`);if(!H||!O)return null;const J=go(H,O);return mv(H,O),Ee(),J},[Ee]),Pe=r.useCallback(R=>{const H=Ar(R.dataset.tok??"");if(!H||H.t!=="ref"&&H.t!=="mark")return!1;const O=A.current,J=O?Mc(O):null;return J!=null&&($.current=J),G(),v==null||v({hash:H.imageHash,kind:H.t,label:H.t==="mark"?Xo(R):null}),!0},[v,G]),Ce=r.useCallback((R,H,O,J)=>{const ve=R.dataset.uid;ve&&(R.dataset.open="",R.hasAttribute("aria-haspopup")&&R.setAttribute("aria-expanded","true"),R.removeAttribute("title"),W(null),U(""),te({uid:ve,kind:H,anchor:R,caret:O,touch:J}))},[]),ye=r.useCallback((R,H)=>{var Me;const O=re.current;if(re.current=null,te(null),!O)return;const J=A.current,ve=J==null?void 0:J.querySelector(`[data-uid="${CSS.escape(O.uid)}"]`);if(ve){delete ve.dataset.open,ve.hasAttribute("aria-haspopup")&&ve.setAttribute("aria-expanded","false");const we=Ar(ve.dataset.tok??""),Le=we?((Me=de.current)==null?void 0:Me.call(de,we))??null:null;Le&&(ve.title=Le)}const Se=H!==void 0?H:O.caret;if(O.touch){Se!=null&&($.current=Se);return}J&&(J.focus({preventScroll:!0}),Se!=null?Go(J,Se):ci(J))},[]);r.useEffect(()=>{if(!B)return;const R=A.current;R!=null&&R.querySelector(`[data-uid="${CSS.escape(B.uid)}"]`)||ye("outside")},[B,ye]),r.useEffect(()=>{var R;Z&&((R=A.current)!=null&&R.contains(Z.anchor)||G())},[Z,G]),r.useEffect(()=>{const R=Z==null?void 0:Z.anchor;if(!R)return;R.dataset.open="";const H=R.getAttribute("title");return H&&R.removeAttribute("title"),()=>{delete R.dataset.open,H&&R.setAttribute("title",H)}},[Z]),r.useImperativeHandle(S,()=>({insert:R=>tt.current(R),setTokens:R=>{const H=A.current;H&&(fv(H,R.length?R:vs(),O=>ie(O)),P.current=H.querySelectorAll(`.${Sa}`).length,Rc(H),n(dv(H)))},removeTemplate:()=>{const R=A.current,H=R?G2(R):null;!R||!H||(mv(R,H),Ee())},openMenu:R=>{U(""),W({anchor:R})},focus:()=>ci(A.current),restoreCaret:()=>{const R=A.current;if(!R)return;R.focus({preventScroll:!0});const H=$.current;H!=null?Go(R,H):ci(R)}}));const Xe=Ru(y),ft=r.useCallback(R=>hi(R,Xe),[Xe]),_t=r.useMemo(()=>new Set(es(s.id)),[s.id]),Gn=r.useMemo(()=>{var R;return L?u_(L.sigil??"$",{products:hi("product",Xe),presenters:hi("presenter",Xe),scenes:hi("scene",Xe),colors:Na((R=s.json)==null?void 0:R.palette)},{query:ne,bookmarked:_t}).map(H=>({...H,run:()=>H.token.t==="template"?f(H.token.id):tt.current(H.token)})):[]},[L,Xe,ne,_t,f,(hn=s.json)==null?void 0:hn.palette]),Mt=R=>{const H=A.current,O=R.target;if(O.closest('[data-role="remove"]')){R.preventDefault();const Le=Qs(O);B&&(Le==null?void 0:Le.dataset.uid)===B.uid&&ye("remove"),Le!=null&&Le.dataset.uid&&Ne(Le.dataset.uid),W(null);return}const J=Qs(O),ve=J==null?void 0:J.getBoundingClientRect();if(!(!!J&&!!ve&&R.clientX-ve.left>X0&&ve.right-R.clientX>X0)){if(oO(H))return;hv(H,R.clientX,R.clientY);return}hv(H,R.clientX,R.clientY);const Me=J.dataset.uid??null;if(Me&&(B==null?void 0:B.uid)===Me){R.detail!==0&&ye("outside");return}const we=g1(Ar(J.dataset.tok??""));if(!we){Pe(J);return}Ce(J,we,Mc(H),!1)},pt=R=>{if(R.pointerType!=="mouse")return;const H=A.current;if(B||L||H&&"chipDrag"in H.dataset)return;const O=Qs(R.target),J=O==null?void 0:O.dataset.uid;if(!O||!J||!q0(Ar(O.dataset.tok??""))){X.close();return}if((Z==null?void 0:Z.uid)===J){X.keep();return}X.open({uid:J,anchor:O})},yn=R=>{const H=Qs(R.target),O=H==null?void 0:H.dataset.uid;!H||!O||B||L||q0(Ar(H.dataset.tok??""))&&H.matches(":focus-visible")&&X.open({uid:O,anchor:H})},Rn=R=>{if(R.pointerType==="mouse")return;const H=R.target;if(H.closest('[data-role="remove"]'))return;const O=Qs(H);if(!O)return;const J=O.getBoundingClientRect();if(R.clientX-J.left<=X0||J.right-R.clientX<=X0)return;const ve=s_(Ar(O.dataset.tok??""));if(!ve||O.dataset.uid&&(B==null?void 0:B.uid)===O.dataset.uid)return;R.preventDefault();const Se=A.current,Me=document.activeElement===Se,we=Me?Mc(Se):$.current;Me&&(Se==null||Se.blur()),Ce(O,ve,we,!0)},dn=R=>{const H=A.current,O=Qs(R.target);if(O&&!B){const J=()=>{Ic(H,O,"after"),H==null||H.focus({preventScroll:!0})};if(R.altKey&&(R.key==="ArrowLeft"||R.key==="ArrowRight")){R.preventDefault(),H&&pv(H,O,R.key==="ArrowLeft"?-1:1)&&(O.focus({preventScroll:!0}),Ee(),N(Kh(H,O)));return}if(R.key==="ArrowLeft"||R.key==="ArrowRight"){R.preventDefault(),Ic(H,O,R.key==="ArrowLeft"?"before":"after"),H==null||H.focus({preventScroll:!0});return}if(R.key==="Tab"){R.preventDefault(),Ic(H,O,R.shiftKey?"before":"after"),H==null||H.focus({preventScroll:!0});return}if(R.key==="Enter"||R.key===" "){R.preventDefault();const ve=g1(Ar(O.dataset.tok??""));ve&&H?Ce(O,ve,go(H,O)+1,!1):Pe(O);return}if(R.key==="Backspace"||R.key==="Delete"){R.preventDefault();const ve=O.dataset.uid?Ne(O.dataset.uid):null;H==null||H.focus({preventScroll:!0}),ve!=null&&Go(H,ve);return}if(R.key==="Escape"){R.preventDefault(),J();return}}if(R.key==="Escape"&&L){R.preventDefault(),W(null),U("");return}if(R.key==="Enter"&&!R.shiftKey){const J=R.defaultPrevented;R.preventDefault(),VO({menuOpen:!!L,handled:J})&&b();return}if(!(L||B)&&!_O(R)&&(R.key==="$"||R.key==="/"||R.key==="@"||R.key==="#")){const J=A.current,ve=W9(J),Se=ve.slice(-1);if(ve.length&&!/[\s\u00a0]/.test(Se))return;U(""),W({anchor:{getBoundingClientRect:()=>G9()??(J==null?void 0:J.getBoundingClientRect())??new DOMRect},sigil:R.key})}},Ht=r.useCallback(R=>{var H,O;return(O=Na((H=s.json)==null?void 0:H.palette).find(J=>J.hex===R))==null?void 0:O.name},[(mn=s.json)==null?void 0:mn.palette]),xt=()=>{const R=A.current,H=(R==null?void 0:R.querySelectorAll(`.${Sa}`).length)??0;H<P.current&&pO(R),P.current=H,Rc(R)&&ci(R);const O=F.current;F.current=!1;const J=K2(R,Se=>ie(Se),{commit:O,nameFor:Ht});J&&(P.current=(R==null?void 0:R.querySelectorAll(`.${Sa}`).length)??0,W(null),U(""));const ve=J?{open:!1}:zO(hO(R),O);ve.open?L&&U(ve.query):L&&(W(null),U("")),Ee()},Be=R=>{const H=window.getSelection();if(!H||H.rangeCount===0||H.isCollapsed)return null;const O=H.getRangeAt(0),{text:J,html:ve}=gO(O);return J?(R.clipboardData.setData("text/plain",J),R.clipboardData.setData("text/html",ve),R.preventDefault(),O):null},sn=R=>{Be(R)},Ft=R=>{const H=Be(R);H&&(H.deleteContents(),ws(A.current),Ee())},Kn=r.useCallback(R=>R.t==="template"?l.some(H=>H.id===R.id):R.t==="product"?he.some(H=>H.id===R.id)||u.some(H=>H.id===R.id):R.t==="character"?me.some(H=>H.id===R.id)||c.some(H=>H.id===R.id):R.t==="mark"?fe.some(H=>H.hash===R.imageHash):!0,[l,he,me,c,u,fe]),Zt=R=>{Array.from(R.dataTransfer.types).includes("Files")&&(R.preventDefault(),ge.current++,q(!0))},vr=R=>R.preventDefault(),ar=()=>{ge.current=Math.max(0,ge.current-1),ge.current===0&&q(!1)},At=R=>{R.preventDefault(),ge.current=0,q(!1),R.dataTransfer.files.length&&(C==null||C(R.dataTransfer.files))},yr=R=>{R.preventDefault(),F.current=!0;const H=vO(R.clipboardData.getData("text/html"));if(H&&xn(H)){const J=A.current;K2(J,ve=>ie(ve),{commit:!0,nameFor:Ht})&&(P.current=(J==null?void 0:J.querySelectorAll(`.${Sa}`).length)??0,Ee());return}const O=R.clipboardData.getData("text/plain");O&&document.execCommand("insertText",!1,O)},xn=R=>{const H=A.current,O=window.getSelection();if(!H||!O||O.rangeCount===0||!H.contains(O.getRangeAt(0).startContainer))return!1;const J=O.getRangeAt(0);let ve=!1;const Se=[];for(const We of R){if(typeof We!="string"&&!Kn(We)){Se.push(N_(We,l,he));continue}if(typeof We!="string"&&We.t==="template"){if(ve)continue;ve=!0}Se.push(We)}const Me=ve?G2(H):null;J.deleteContents();const we=document.createDocumentFragment();for(const We of Se)we.appendChild(typeof We=="string"?document.createTextNode(We):ie(We));const Le=document.createTextNode(" ");we.appendChild(Le),J.insertNode(we),Me&&Me.remove();const Oe=A_(H,Le);return ws(H),Go(H,Oe),Ee(),!0},Xt=r.useCallback(()=>{requestAnimationFrame(()=>{const R=A.current;R&&document.activeElement===R&&Rc(R)&&ci(R)})},[]),fn=B?Ar(B.anchor.dataset.tok??""):null,Lt=q0(fn),Pn=fn?(p==null?void 0:p(fn))??null:null,Ln=Z?Ar(Z.anchor.dataset.tok??""):null,Gr=q0(Ln),sr=Ln&&e7(Ln.t)?Ln.t:null,wn=Ln?(p==null?void 0:p(Ln))??null:null;return o.jsxs("div",{className:"sc-brief","data-drag-over":ae||void 0,children:[o.jsx("span",{id:E,className:"sc-vh",children:"Press Enter to open, Delete to remove, Alt plus arrow keys to move."}),o.jsx("span",{className:"sc-vh",role:"status","aria-live":"polite",children:k}),o.jsx("div",{ref:A,className:"sc-brief-line",contentEditable:!0,suppressContentEditableWarning:!0,role:"textbox","aria-multiline":"true","aria-autocomplete":"list","aria-expanded":L?!0:void 0,"aria-controls":L?p1:void 0,"aria-activedescendant":L?D??void 0:void 0,tabIndex:0,dir:"auto","data-ph":h,...m?{"data-ph-sm":m}:{},onClick:Mt,onPointerDown:Rn,onPointerOver:pt,onPointerLeave:R=>R.pointerType==="mouse"&&X.close(),onFocusCapture:yn,onKeyDown:dn,onInput:xt,onCopy:sn,onCut:Ft,onPaste:yr,onDragEnter:Zt,onDragOver:vr,onDragLeave:ar,onDrop:At,onFocus:Xt,onBlur:()=>{const R=A.current;K2(R,H=>ie(H),{commit:!0,nameFor:Ht})&&(P.current=(R==null?void 0:R.querySelectorAll(`.${Sa}`).length)??0,W(null),U("")),Ee()}}),L&&o.jsx(XO,{anchor:L.anchor,composer:{getBoundingClientRect:()=>{var R,H,O;return((H=(R=A.current)==null?void 0:R.closest(".sc-promptcard"))==null?void 0:H.getBoundingClientRect())??((O=A.current)==null?void 0:O.getBoundingClientRect())??new DOMRect}},line:{getBoundingClientRect:()=>{var R;return((R=A.current)==null?void 0:R.getBoundingClientRect())??new DOMRect}},query:ne,options:Gn,sigil:L.sigil,onActiveId:V,onClose:()=>{W(null),U("")}}),Z&&Gr&&sr&&o.jsx(n7,{anchor:Z.anchor,kind:sr,src:Pt(Gr),label:sr==="mark"?Xo(Z.anchor):null,warning:wn,onOpen:()=>Pe(Z.anchor),onHoverIn:X.keep,onHoverOut:X.close,onClose:G},Z.uid),(B==null?void 0:B.kind)==="ref"||(B==null?void 0:B.kind)==="mark"?o.jsx(RO,{kind:B.kind,label:Xo(B.anchor),thumb:Lt?Pt(Lt):null,onInspect:()=>Pe(B.anchor),onMove:R=>De(B.uid,R),onRemove:()=>{const R=Ne(B.uid);ye("remove",R)},onClose:ye},B.uid):(B==null?void 0:B.kind)==="color"?o.jsx(w_,{anchor:B.anchor,currentHex:Q0(B.anchor),currentName:j_(B.anchor),palette:Na((z=s.json)==null?void 0:z.palette),onPick:(R,H)=>{var J;const O=B.uid;if(H!=null&&H.live){const ve=(J=A.current)==null?void 0:J.querySelector(`[data-uid="${CSS.escape(O)}"]`);ve&&EO(ve,R),Ee();return}if(k_(R.hex,Q0(B.anchor))){ye("pick");return}bt(O,R),ye("pick")},onRemove:()=>{const R=Ne(B.uid);ye("remove",R)},onMove:R=>De(B.uid,R),onClose:ye},B.uid):B?o.jsx(h_,{kind:B.kind,anchor:B.anchor,currentId:Q0(B.anchor),candidates:ft(B.kind),brandId:s.id,brandSlug:s.slug,warning:Pn,onAttachRequest:x?R=>{ye("outside"),x(R)}:void 0,onPick:R=>{const H=B.uid;if(R.id===Q0(B.anchor)){ye("pick");return}R.kind==="scene"?f(R.id):bt(H,R.token),ye("pick")},onRemove:()=>{const R=Ne(B.uid);ye("remove",R)},onMove:R=>De(B.uid,R),onClose:ye},B.uid):null]})});function Q0(e){const t=Ar(e.dataset.tok??"");return t?t.t==="color"?t.hex:"id"in t?t.id:null:null}function j_(e){const t=Ar(e.dataset.tok??"");return(t==null?void 0:t.t)==="color"?t.name:void 0}function k_(e,t){const n=e?cn(e):null,s=t?cn(t):null;return!!n&&n===s}function A_(e,t){let n=0;for(const s of Array.from(e.childNodes)){if(s===t||s.contains(t))break;n+=s.nodeType===Node.TEXT_NODE?(s.textContent??"").length:1}return n+(t.nodeType===Node.TEXT_NODE?(t.textContent??"").length:1)}function N_(e,t,n){var s,l;return e.t==="template"?((s=t.find(c=>c.id===e.id))==null?void 0:s.name)??"template":e.t==="product"?((l=n.find(c=>c.id===e.id))==null?void 0:l.name)??"product":e.t==="character"?"someone":e.t==="color"?e.name??e.hex:e.t==="mark"?"brand mark":"reference"}const M_=8,Y2=60,R_=["All","Products","Presenters","Scenes","Colors","Brand","Shots"];function P_({brand:e,shots:t,initialTab:n="All",activeProductCategory:s,id:l,onToken:c,onTemplate:u,onUpload:f,onClose:h}){const[m,p]=r.useState(n);r.useEffect(()=>{p(n)},[n]);const[v,y]=r.useState(""),x=Ru(s),b=r.useMemo(()=>new Set(es(e.id)),[e.id]),C=kl(),{applyBrand:S}=an(),{push:A}=rr(),[E,k]=r.useState(!1),M=async Z=>{k(!0);try{const G=await qw(e.id,Z);S(G);const re=G.logoHash;re&&c({t:"mark",imageHash:re});const de=G.logoEdge;de&&de<512&&A({kind:"success",title:"Logo added, but it is small",detail:`Only ${de}px across. Fine lettering may not survive generation. Export it larger, or as SVG.`})}catch(G){A(tn(G,"Could not upload that logo"))}finally{k(!1)}},[N]=Mi(),P=N.get("new")!==null;r.useEffect(()=>{const Z=G=>{G.key==="Escape"&&!P&&(G.stopPropagation(),h())};return window.addEventListener("keydown",Z,!0),()=>window.removeEventListener("keydown",Z,!0)},[h,P]),r.useEffect(()=>{const Z=G=>{P||!G.target.closest(".sc-attachpanel")&&!G.target.closest(".sc-attach-toggle")&&h()};return document.addEventListener("mousedown",Z),()=>document.removeEventListener("mousedown",Z)},[h,P]);const $=r.useMemo(()=>{var ne;const Z=Na((ne=e.json)==null?void 0:ne.palette),G=wd(e.json),re=t.filter(U=>U.status==="done"&&U.images.length>0).slice(-12).reverse(),de=(U,D)=>Md(U,hi(U,x),{currentId:null,query:"",bookmarked:b,shown:Number.MAX_SAFE_INTEGER}).items.map(V=>({key:`${U}:${V.id}`,tab:D,label:V.label,sub:V.sub,search:V.search,thumb:V.thumb,crop:V.crop,recommended:V.recommended,run:()=>V.kind==="scene"?u(V.id):c(V.token)}));return[...de("product","Products"),...de("presenter","Presenters"),...de("scene","Scenes"),...G.map(U=>({key:`m:${U.hash}`,tab:"Brand",label:bd(e.json,U),sub:"the mark itself",thumb:Pt(U.hash),run:()=>c({t:"mark",imageHash:U.hash})})),...Z.map(U=>({key:`c:${U.hex}`,tab:"Colors",label:U.name,sub:U.hex,swatch:U.hex,run:()=>c({t:"color",hex:U.hex,name:U.name})})),...re.map((U,D)=>({key:`r:${U.id}`,tab:"Shots",label:`Shot ${re.length-D}`,sub:"as reference",thumb:Pt(U.images[0]),run:()=>c({t:"ref",imageHash:U.images[0]})}))]},[e,x,b,t,c,u]),L=Z=>Ra(`${Z.label} ${Z.sub??""} ${Z.search??""}`,v),W=Z=>m==="All"||Z.tab===m,B=$.filter(Z=>W(Z)&&L(Z)),te=["Products","Presenters","Scenes","Brand","Colors","Shots"],X=Z=>o.jsxs("button",{type:"button",className:"sc-ap-card",title:Z.sub?`${Z.label} · ${Z.sub}`:Z.label,onClick:Z.run,children:[Z.swatch?o.jsx("span",{className:"sc-ap-thumb",style:{background:Z.swatch}}):Z.thumb?o.jsx("img",{className:"sc-ap-thumb",src:Z.thumb,alt:"",loading:"lazy","data-crop":Z.crop}):o.jsx("span",{className:"sc-ap-thumb sc-ap-thumb-empty",children:o.jsx(ha,{size:16})}),Z.recommended&&o.jsx("span",{className:"sc-ap-rec",children:"Recommended"}),o.jsx("b",{dir:"auto",children:Z.label})]},Z.key);return o.jsxs("div",{className:"sc-attachpanel",role:"dialog",id:l,"aria-label":"Attach to brief",onMouseDownCapture:Yh,onKeyDown:Z=>{Z.key==="Escape"&&(Z.stopPropagation(),h())},children:[o.jsxs("div",{className:"sc-ap-head",children:[o.jsx("div",{className:"sc-ap-tabs",children:R_.map(Z=>o.jsx("button",{type:"button","data-active":Z===m,onClick:()=>p(Z),children:Z},Z))}),o.jsxs("div",{className:"sc-ap-search",children:[o.jsx(Jc,{size:12}),o.jsx("input",{placeholder:"Search",value:v,onChange:Z=>y(Z.target.value)})]}),o.jsx("button",{type:"button",className:"sc-icon-btn sc-ap-close",onClick:f,"aria-label":"Upload image",title:"Upload an image",style:{width:28,height:28},children:o.jsx(Zw,{size:12})}),o.jsx("button",{type:"button",className:"sc-icon-btn sc-ap-close",onClick:h,"aria-label":"Close",style:{width:28,height:28},children:o.jsx(Mn,{size:12})})]}),o.jsxs("div",{className:"sc-ap-body",children:[B.length===0&&o.jsxs("div",{className:"sc-ap-empty",children:["Nothing matches",v.trim()?` "${v.trim()}"`:"","."]}),m==="All"?te.map(Z=>{const G=B.filter(ne=>ne.tab===Z);if(!G.length)return null;const re=G.slice(0,M_),de=G.length-re.length;return o.jsxs("div",{className:"sc-ap-group",children:[o.jsx("div",{className:"sc-eyebrow",children:Z==="Shots"?"Recent shots":Z==="Colors"?"Brand colors":Z}),o.jsx("div",{className:"sc-ap-grid",children:re.map(X)}),de>0&&o.jsxs("button",{type:"button",className:"sc-amore",onClick:()=>p(Z),children:["Show all ",G.length]})]},Z)}):o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"sc-ap-grid",children:[m==="Products"&&o.jsxs("button",{type:"button",className:"sc-ap-card sc-ap-add",onClick:()=>C("product",{onCreated:Z=>Z.kind==="product"&&c({t:"product",id:Z.id})}),children:[o.jsx("span",{className:"sc-ap-thumb sc-ap-thumb-empty",children:o.jsx(Wn,{size:16})}),o.jsx("b",{children:"Add product"})]}),m==="Brand"&&o.jsxs("label",{className:"sc-ap-card sc-ap-add",title:"Add your logo to the brand kit","aria-label":"Add your logo to the brand kit","data-busy":E||void 0,children:[o.jsx("input",{type:"file",accept:"image/*",hidden:!0,disabled:E,onChange:Z=>{var re;const G=(re=Z.target.files)==null?void 0:re[0];Z.target.value="",G&&M(G)}}),o.jsx("span",{className:"sc-ap-thumb sc-ap-thumb-empty",children:o.jsx(Wn,{size:16})}),o.jsx("b",{children:"Add logo"})]}),B.slice(0,Y2).map(X)]}),B.length>Y2&&o.jsxs("p",{className:"sc-ap-capped",children:["Showing ",Y2," of ",B.length,". Search to narrow it down."]})]})]})]})}function L_({src:e,kind:t,label:n,onRestoreFocus:s,onClose:l}){const[c,u]=r.useState(!1),f=t7[t];return o.jsxs(Ed,{className:"sc-lightbox",maxWidth:"min(880px, 92vw)",onCloseAutoFocus:h=>{h.preventDefault(),s==null||s()},onDismiss:l,children:[o.jsx("div",{className:"sc-lightbox-frame","data-kind":t,children:c?o.jsxs("span",{className:"sc-lightbox-blank",children:[o.jsx(ha,{size:28}),"Image unavailable"]}):o.jsx("img",{src:e,alt:n?`${n}, ${f.toLowerCase()}`:f,onError:()=>u(!0)})}),o.jsxs("p",{className:"sc-lightbox-cap",children:[n&&o.jsx("b",{dir:"auto",children:n}),o.jsx("span",{children:f})]})]})}function T_({brandId:e,revision:t}){const[n,s]=r.useState([]),[l,c]=r.useState(!1);return r.useEffect(()=>{let u=!0;return ke.brandRules(e).then(f=>u&&s(f.directives)).catch(()=>u&&s([])),()=>{u=!1}},[e,t]),n.length?o.jsxs("div",{className:"sc-inherit",children:[o.jsxs("button",{type:"button",className:"sc-inherit-head",onClick:()=>c(u=>!u),"aria-expanded":l,children:[o.jsx(S$,{size:12}),o.jsx("span",{children:"Brand rules apply to every shot"}),o.jsx(ki,{size:10,weight:"bold"})]}),l&&o.jsx("div",{className:"sc-inherit-body",children:n.map(u=>o.jsx("p",{children:u},u))})]}):null}const H_={"codex-cli":{sizing:"advisory"},openrouter:{sizing:"ratio"},replicate:{sizing:"ratio",formats:["square","story","landscape"]},fal:{sizing:"exact"},demo:{sizing:"exact"}},$_={sizing:"exact"},h7=e=>H_[e]??$_;function D_(e,t){const n=h7(e).formats;return!n||n.includes(t)}const Yp=e=>h7(e).sizing,to=[{id:"draft",label:"Draft",edge:768,note:"quick checks"},{id:"standard",label:"Standard",edge:1024,note:"everyday shots"},{id:"high",label:"High",edge:1536,note:"hero and print"}],$1=[1,2,3,4],m7=e=>nr.filter(t=>!D_(e,t.id)).map(t=>t.id),Qh=(e,t)=>t.length===0?void 0:`${e} cannot make ${nr.filter(n=>t.includes(n.id)).map(n=>n.hint).join(" or ")}.`,qp=e=>{var n;e.preventDefault();const t=e.currentTarget??e.target;(n=t==null?void 0:t.querySelector('[role="radiogroup"]'))==null||n.focus()};function q2({aria:e,width:t,trigger:n,open:s,onOpenChange:l,children:c,onCloseAutoFocus:u}){const f=r.useRef(null);return r.useEffect(()=>{var m;const h=(m=f.current)==null?void 0:m.parentElement;h&&(h.style.pointerEvents=s?"":"none")},[s]),o.jsxs(Ci,{open:s,onOpenChange:l,children:[o.jsx(Si,{children:o.jsx("button",{type:"button",className:"sc-var","aria-label":e,children:n})}),o.jsx(ji,{ref:f,className:"sc-setpop",align:"end",sideOffset:8,width:t,onOpenAutoFocus:qp,onCloseAutoFocus:u,onInteractOutside:h=>{var m;(m=h.target)!=null&&m.closest(".sc-prompt-pills")&&h.preventDefault()},children:c(()=>l(!1))})]})}function Jh({w:e,h:t,slot:n,box:s}){const l=s/Math.max(e,t);return o.jsx("span",{className:"sc-ratio-slot",style:{width:n,height:n},"aria-hidden":!0,children:o.jsx("span",{className:"sc-ratio",style:{width:Math.round(e*l),height:Math.round(t*l)}})})}const Av=()=>o.jsx("span",{className:"sc-setpop-tick","aria-hidden":!0,children:o.jsx(la,{size:12,weight:"bold"})});function Ko({label:e,value:t,ids:n,unavailable:s=[],onChange:l,className:c,children:u}){const f=r.useRef(null),h=n.filter(p=>!s.includes(p)),m=p=>{var b,C;const v=p.key==="ArrowDown"||p.key==="ArrowRight"?1:p.key==="ArrowUp"||p.key==="ArrowLeft"?-1:p.key==="Home"?"first":p.key==="End"?"last":null;if(v===null||!h.length)return;p.preventDefault();const y=h.indexOf(t),x=v==="first"?h[0]:v==="last"?h[h.length-1]:v===1?h[y<0||y===h.length-1?0:y+1]:h[y<=0?h.length-1:y-1];l(x),(C=(b=f.current)==null?void 0:b.querySelector(`[data-id="${x}"]`))==null||C.focus()};return o.jsx("div",{className:c,role:"radiogroup","aria-label":e,ref:f,tabIndex:-1,onKeyDown:m,children:u})}function Yo({id:e,on:t,unavailable:n,label:s,onPick:l,className:c,children:u}){return o.jsx("button",{type:"button",role:"radio","data-id":e,className:c,"aria-checked":t,"aria-label":s,"aria-disabled":n||void 0,"data-on":t||void 0,tabIndex:t?0:-1,onClick:()=>{n||l()},children:u})}const F_=({children:e})=>o.jsx("p",{className:"sc-setpop-foot",children:e});function I_({mode:e,engineId:t,engineName:n,formatId:s,onFormat:l,count:c,onCount:u,quality:f,onQuality:h,onCloseAutoFocus:m}){const p=nr.find(k=>k.id===s)??nr[0],v=to.find(k=>k.id===f)??to[1],y=m7(t),x=Yp(t),[b,C]=r.useState(null),S=r.useRef(null);S.current=b;const A=k=>{k.preventDefault(),S.current===null&&(m==null||m(k))},E=k=>({open:b===k,onCloseAutoFocus:A,onOpenChange:M=>C(N=>M?k:N===k?null:N)});return o.jsxs("div",{className:"sc-prompt-pills",children:[o.jsx(q2,{...E("aspect"),aria:`Aspect ${p.label}, ${p.hint}`,width:"178px",trigger:o.jsxs(o.Fragment,{children:[o.jsx(Jh,{w:p.w,h:p.h,slot:15,box:13}),p.label]}),children:k=>o.jsxs(o.Fragment,{children:[o.jsx(Ko,{label:"Aspect ratio",className:"sc-setpop-list",value:s,ids:nr.map(M=>M.id),unavailable:y,onChange:l,children:nr.map(M=>o.jsxs(Yo,{id:M.id,className:"sc-setrow",on:M.id===s,unavailable:y.includes(M.id),label:`${M.label}, ${M.hint}`,onPick:()=>{l(M.id),k()},children:[o.jsx(Jh,{w:M.w,h:M.h,slot:20,box:17}),o.jsx("span",{className:"sc-setrow-n",children:M.label}),o.jsx("span",{className:"sc-setrow-v",children:M.hint}),o.jsx(Av,{})]},M.id))}),Qh(n,y)&&o.jsx(F_,{children:Qh(n,y)})]})}),e==="generation"&&o.jsx(q2,{...E("variants"),aria:`${c} variants`,width:"156px",trigger:o.jsxs(o.Fragment,{children:[o.jsx(Hw,{size:14}),c]}),children:k=>o.jsx(o.Fragment,{children:o.jsx(Ko,{label:"Variants",className:"sc-seg",value:String(c),ids:$1.map(String),onChange:M=>u(Number(M)),children:$1.map(M=>o.jsx(Yo,{id:String(M),className:"sc-seg-o",on:M===c,label:`${M} variant${M===1?"":"s"}`,onPick:()=>{u(M),k()},children:M},M))})})}),e==="generation"&&x!=="ratio"&&o.jsx(q2,{...E("resolution"),aria:`Resolution ${v.label}, ${v.edge} px`,width:"192px",trigger:o.jsxs(o.Fragment,{children:[o.jsx(x$,{size:14}),v.label]}),children:k=>o.jsx(o.Fragment,{children:o.jsx(Ko,{label:"Resolution",className:"sc-setpop-list",value:f,ids:to.map(M=>M.id),onChange:M=>h(M),children:to.map(M=>o.jsxs(Yo,{id:M.id,className:"sc-setrow",on:M.id===f,label:`${M.label}, ${M.edge} px, ${M.note}`,onPick:()=>{h(M.id),k()},children:[o.jsx("span",{className:"sc-setrow-n",children:M.label}),o.jsxs("span",{className:"sc-setrow-v",children:[M.edge," px"]}),o.jsx(Av,{})]},M.id))})})})]})}function p7({mode:e,engineId:t,engineName:n,formatId:s,onFormat:l,count:c,onCount:u,quality:f,onQuality:h,engineChoices:m,onEngine:p}){const v=m7(t),y=Yp(t);return o.jsxs(o.Fragment,{children:[m&&p&&m.length>1&&o.jsx(J0,{label:"Engine",children:o.jsx(Ko,{label:"Engine",className:"sc-seg",value:t,ids:m.map(x=>x.id),onChange:p,children:m.map(x=>o.jsx(Yo,{id:x.id,className:"sc-seg-o",on:x.id===t,label:x.displayName,onPick:()=>p(x.id),children:x.displayName},x.id))})}),o.jsx(J0,{label:"Aspect ratio",note:Qh(n,v),children:o.jsx(Ko,{label:"Aspect ratio",className:"sc-seg",value:s,ids:nr.map(x=>x.id),unavailable:v,onChange:l,children:nr.map(x=>o.jsxs(Yo,{id:x.id,className:"sc-seg-o sc-seg-ratio",on:x.id===s,unavailable:v.includes(x.id),label:`${x.label}, ${x.hint}`,onPick:()=>l(x.id),children:[o.jsx(Jh,{w:x.w,h:x.h,slot:17,box:14}),x.hint]},x.id))})}),e==="generation"&&o.jsx(J0,{label:"Variants",children:o.jsx(Ko,{label:"Variants",className:"sc-seg",value:String(c),ids:$1.map(String),onChange:x=>u(Number(x)),children:$1.map(x=>o.jsx(Yo,{id:String(x),className:"sc-seg-o",on:x===c,label:`${x} variant${x===1?"":"s"}`,onPick:()=>u(x),children:x},x))})}),e==="generation"&&y!=="ratio"&&o.jsx(J0,{label:"Resolution",note:y==="advisory"?"This engine renders at its own size, so this is a request rather than a guarantee.":void 0,children:o.jsx(Ko,{label:"Resolution",className:"sc-seg",value:f,ids:to.map(x=>x.id),onChange:x=>h(x),children:to.map(x=>o.jsx(Yo,{id:x.id,className:"sc-seg-o",on:x.id===f,label:y==="advisory"?`${x.label}, asks for ${x.edge} px, ${x.note}`:`${x.label}, ${x.edge} px, ${x.note}`,onPick:()=>h(x.id),children:x.label},x.id))})})]})}function J0({label:e,note:t,children:n}){return o.jsxs("div",{className:"sc-shotfield",children:[o.jsx("span",{className:"sc-shotfield-lb",children:e}),n,t&&o.jsx("p",{className:"sc-shotfield-note",children:t})]})}function O_(e){const[t,n]=r.useState(!1),{sheet:s,grip:l}=Oi(()=>n(!1));return o.jsxs(ul,{open:t,onOpenChange:n,children:[o.jsx(Am,{asChild:!0,children:o.jsx("button",{type:"button",className:"sc-var sc-shotset","aria-label":"Shot settings",title:"Shot settings",children:o.jsx(Pw,{size:16})})}),o.jsxs(dl,{children:[o.jsx(fl,{className:"sc-shotsheet-scrim"}),o.jsxs(hl,{ref:s,className:"sc-shotsheet","aria-describedby":void 0,onOpenAutoFocus:qp,onCloseAutoFocus:c=>c.preventDefault(),children:[o.jsxs("div",{className:"sc-shotsheet-grip",...l,children:[o.jsx("span",{className:"sc-shotsheet-bar","aria-hidden":!0}),o.jsx(ml,{className:"sc-vh",children:"Shot settings"})]}),o.jsx(p7,{...e})]})]})]})}const mi=e=>`scenri:draft-${e}`,__=e=>Ii.get(e),Z_=(e,t)=>Ii.set(e,t),v1=e=>Ii.del(e);function Nv(e,t){return e.some(n=>n.t==="text"?!!n.v.trim():n.t!=="template")||Object.values(t).some(n=>!!n.trim())}function V_(e){const t=__(mi(e));if(!t)return null;let n;try{n=JSON.parse(t)}catch{return null}if(typeof n!="object"||n===null)return null;const s=n;if(s.v!==1||s.brandId!==e||!Array.isArray(s.tokens)||typeof s.tplFields!="object"||!s.tplFields||s.branchId)return v1(mi(e)),null;const l=Date.now()-Date.parse(s.updatedAt??"");return!Number.isFinite(l)||l>a9?(v1(mi(e)),null):{v:1,brandId:e,updatedAt:s.updatedAt,tokens:s.tokens,tplFields:s.tplFields,setSlug:s.setSlug??null}}function g7(e,t){const n={v:1,brandId:e,updatedAt:new Date().toISOString(),tokens:t.tokens,tplFields:t.tplFields,setSlug:t.setSlug??null};Z_(mi(e),JSON.stringify(n))}function Mv(e){v1(mi(e))}function Rv(e,t,n,s,l){if(e===t)return{changed:!1,toast:null};const c=!!s;return e===null&&!c?{changed:!0,toast:null}:{changed:!0,toast:{title:c?`Switched to ${n}. This starts a new shot instead of refining ${l??"that shot"}.`:`Switched to ${n}.`,prevSceneId:e,branchWasCleared:c}}}function z_(e,t){return e>0&&t>0&&Math.abs(Math.log(t))<Math.abs(Math.log(e))-.01?"crop":"extend"}const X2=2,B_=.15;function U_(e,t){if(z_(e,t)==="crop")return"crop";if(!(e>0&&t>0))return"extend";const n=t>e?t/e:e/t;return(n>X2?Math.max(X2,n*(1-B_)):n)>X2+1e-9?"crop":"extend"}const Pv=["product","presenter","scene","ref","mark","color"];function v7(e,t){const n=s=>{const l=Pv.indexOf(s);return l===-1?Pv.length:l};return n(e.kind)-n(t.kind)}const em=4,Lv=24,Tv=24,y7={product:[],presenter:[],scene:null};function W_(e){const t=[],n=[];let s=null;for(const l of e)l.t==="product"?t.includes(l.id)||t.push(l.id):l.t==="character"?n.includes(l.id)||n.push(l.id):l.t==="template"&&(s=l.id);return{product:t,presenter:n,scene:s}}function G_(e){return`${e.product.join(",")}|${e.presenter.join(",")}|${e.scene??""}`}function K_(e,t,n){const l=(t.size?[...e].sort((c,u)=>Number(t.has(u.id))-Number(t.has(c.id))):e).slice(0,n);return{visible:l,more:Math.max(0,e.length-l.length)}}const Xp=r.forwardRef(function({projectId:t,brand:n,engines:s,parent:l,shots:c,initialBrief:u,suppressDraftRestore:f,startScene:h,startPresenter:m,startProduct:p,onSeedsSpent:v,openAttachTab:y,onQueued:x,onSending:b,onAttached:C,target:S,onClearTarget:A,sourceImage:E,onRestoreBranchId:k,setSlug:M,persistDraft:N=!0,variant:P="dock"},$){var K,oe;const{products:L}=Tt(),{demoProducts:W,loaded:B}=an(),te=Ru(),X=te.scenes,Z=te.presenters,G=yd(),re=xd(),{push:de}=rr(),ne=s.filter(_=>_.available),[U,D]=Qa(fr.engine,nu);r.useEffect(()=>{const _=eI(ne,U);_!==U&&D(_)},[ne,U,D]);const V=ne.length===0&&s.some(_=>_.code==="not-installed"||_.code==="not-authenticated"),F=ne.length===0,Q=F?V?{icon:o.jsx(R9,{}),title:"Image generation is not set up yet",detail:"About a minute, using the ChatGPT account you already have.",action:"Set up",onAct:()=>re(),info:!0}:{icon:o.jsx(N1,{size:15}),title:"No image provider connected",detail:"Add a provider key and this brief is ready to run.",action:"Open settings",onAct:()=>G("engines"),info:!1}:null,[ae,q]=r.useState(vs()),[ge,ce]=r.useState(void 0),[he,me,fe]=$2(fr.format,"square"),[ie,Ee]=r.useState({}),De=S&&S.kind!=="root"?S:null,Fe=De?C_(De.brief,Math.max(0,De.images.indexOf(E??""))):void 0,tt=De?ie[De.id]??Fe??he:he,bt=_=>{De?Ee(pe=>({...pe,[De.id]:_})):me(_)},[Ne,Pe]=r.useState({}),[Ce,ye,Xe]=$2(fr.count,2),[ft,_t]=r.useState(!1),[Gn,Mt]=r.useState(null),[pt,yn]=r.useState(null),[Rn,dn]=r.useState(!1),[Ht,xt]=r.useState("All"),[Be,sn,Ft]=$2(fr.quality,"standard"),[Kn,Zt]=r.useState(!1),[vr,ar]=r.useState(!1),At=r.useRef(null),yr=r.useRef(null),xn=r.useRef(null),Xt=r.useId(),fn=r.useRef({tokens:ae,tplFields:Ne,branchId:(S==null?void 0:S.id)??null});fn.current={tokens:ae,tplFields:Ne,branchId:(S==null?void 0:S.id)??null};const Lt=r.useRef(null),Pn=r.useRef(null),Ln=r.useRef(void 0),Gr=r.useRef(void 0),sr=r.useRef(void 0),wn=r.useCallback(_=>{if(Pn.current&&(clearTimeout(Pn.current),Pn.current=null),!N)return;const pe=fn.current;pe.branchId||(Nv(pe.tokens,pe.tplFields)?g7(_,{tokens:pe.tokens,tplFields:pe.tplFields,setSlug:M}):Mv(_))},[M,N]);r.useEffect(()=>{y&&(xt(y),dn(!0))},[y]),r.useEffect(()=>{if(!u)return;const _=(u.tokens??[]).find(pe=>pe.t==="format");_&&fe(_.id),u.variants&&Xe(u.variants),u.quality&&Ft(u.quality),ce(U9(u)),Pe(u.templateFields??{})},[u]),r.useEffect(()=>{var jt;const _=Lt.current;_&&_!==n.id&&wn(_);const pe=!!u||!!f||!N,He=_!==n.id;let Ae=null,et=null;if(!pe&&He){const ut=V_(n.id);ut&&Nv(ut.tokens,ut.tplFields)&&(Ae=ut.tokens,et=ut.tplFields)}let st=!1;if(h&&h!==Ln.current){Ln.current=h,st=!0;const ut=Ae??vs(),jn=ut.find(pa=>pa.t==="template"),Yr=(jn==null?void 0:jn.id)??null,Hu=((jt=X.find(pa=>pa.id===h))==null?void 0:jt.name)??"this scene",os=Rv(Yr,h,Hu,null,null);if(os.changed&&(Ae=[{t:"template",id:h},...ut.filter(pa=>pa.t!=="template")],os.toast)){const pa=os.toast;de({kind:"success",title:pa.title,action:{label:"Undo",onClick:()=>{var Zi,jo;pa.prevSceneId?(Zi=At.current)==null||Zi.insert({t:"template",id:pa.prevSceneId}):(jo=At.current)==null||jo.removeTemplate()}}})}}if(m&&m!==Gr.current){Gr.current=m,st=!0;const ut=Ae??vs();ut.some(Yr=>Yr.t==="character"&&Yr.id===m)||(Ae=[...ut,{t:"character",id:m}])}if(p&&p!==sr.current){sr.current=p,st=!0;const ut=Ae??vs();ut.some(Yr=>Yr.t==="product"&&Yr.id===p)||(Ae=[...ut,{t:"product",id:p}])}Ae&&(ce(Ae),Pe(et??{})),st&&(v==null||v()),Lt.current=n.id},[n.id,h,m,p]),r.useEffect(()=>{var _;ge&&((_=At.current)==null||_.setTokens(ge),ce(void 0))},[ge]);const Tn=r.useMemo(()=>{var et;const _=nr.find(st=>st.id===tt)??nr[0],He=(((et=to.find(st=>st.id===Be))==null?void 0:et.edge)??1024)/Math.max(_.w,_.h),Ae=st=>Math.max(256,Math.round(st*He/8)*8);return{t:"format",id:_.id,w:Ae(_.w),h:Ae(_.h)}},[tt,Be]),Sn=r.useMemo(()=>[Tn,...ae],[Tn,ae]),hn=r.useMemo(()=>({tokens:Sn,templateFields:Ne,variants:Ce,quality:Be,format:tt}),[Sn,Ne,Ce,Be,tt]),mn=ae.some(_=>_.t==="text"?!!_.v.trim():!0),z=r.useMemo(()=>{const _=ae.find(pe=>pe.t==="template");return _?X.find(pe=>pe.id===_.id)??null:null},[ae,X]),R=r.useMemo(()=>{const _=ae.find(pe=>pe.t==="template");return(_==null?void 0:_.id)??null},[ae]),H=r.useCallback(_=>{var st,jt;const pe=(z==null?void 0:z.id)??null,He=(S==null?void 0:S.id)??null,Ae=((st=X.find(ut=>ut.id===_))==null?void 0:st.name)??"this scene",et=Rv(pe,_,Ae,He,S?nn(S):null);if(et.changed&&((jt=At.current)==null||jt.insert({t:"template",id:_}),et.toast)){const ut=et.toast;de({kind:"success",title:ut.title,action:{label:"Undo",onClick:()=>{var jn,Yr;ut.prevSceneId?(jn=At.current)==null||jn.insert({t:"template",id:ut.prevSceneId}):(Yr=At.current)==null||Yr.removeTemplate(),ut.branchWasCleared&&He&&(k==null||k(He))}}})}},[z,S,X,de,k]);r.useImperativeHandle($,()=>({insertToken:_=>{var pe;return(pe=At.current)==null?void 0:pe.insert(_)},applyScene:_=>H(_),openAttach:_=>ss(_),focus:()=>{var _;return(_=At.current)==null?void 0:_.focus()},submit:()=>{gt()}}));const O=r.useMemo(()=>W_(ae),[ae]),J=G_(O),ve=r.useRef(O);ve.current=O,r.useEffect(()=>{C==null||C(ve.current)},[J,C]),r.useEffect(()=>{var _;!B||!R||z||((_=At.current)==null||_.removeTemplate(),de({kind:"error",title:"That scene is no longer available.",detail:"Starting from scratch."}))},[B,R,z,de]);const Se=r.useRef(null);r.useEffect(()=>(Pn.current&&clearTimeout(Pn.current),Pn.current=setTimeout(()=>wn(Lt.current??n.id),500),()=>{Pn.current&&clearTimeout(Pn.current)}),[ae,Ne,S==null?void 0:S.id,n.id,wn]),r.useEffect(()=>()=>wn(Lt.current??n.id),[wn]),r.useEffect(()=>{const _=()=>wn(Lt.current??n.id);return window.addEventListener("beforeunload",_),()=>window.removeEventListener("beforeunload",_)},[wn,n.id]);const Me=s.find(_=>_.id===U),we=Me?ro(Me.displayName):"This engine",Le=!!S&&S.kind!=="root"&&S.status==="running",Oe=S&&S.kind!=="root"&&S.status==="done"&&S.images.length>0||Le,We=!!(Me!=null&&Me.supportsEdit),Te=!!De&&!!Fe&&Fe!==tt&&Oe&&!z,Qe=Te?U_(ru(Fe),ru(tt)):null,qe=Qe==="crop",at=Qe==="extend"&&We,wt=nr.find(_=>_.id===tt),lt=wt?`${wt.label} ${wt.hint}`:tt,It=r.useMemo(()=>{if(P!=="overlay")return[];const _={product:"product",character:"presenter",brand:"mark",reference:"ref"},pe=new Map;for(const He of(pt==null?void 0:pt.attachments)??[]){if(!He.inherited)continue;const Ae=_[He.role]??He.role,et=`${Ae}:${He.id??He.hash}`;pe.has(et)||pe.set(et,{kind:Ae,label:He.label,hash:He.hash})}return[...pe.values()].sort(v7)},[P,pt]),pn=r7(),{shown:$t,closeNow:on}=pn,[_n,Gt]=r.useState(null);r.useEffect(()=>{$t&&!It.some(_=>`${_.kind}:${_.hash}`===$t.key)&&on()},[It,$t,on]);const or=r.useCallback(_=>{on(),Gt({hash:_.hash,kind:_.kind,label:_.label})},[on]),ct=Oe&&!z&&(We||qe||at)?"edit":"generation",Yn=r.useMemo(()=>{var He,Ae,et,st;if(P!=="overlay"||!De||ct!=="edit")return null;const _=new Map(c.map(jt=>[jt.id,jt]));let pe=De;for(;pe&&pe.kind!=="root";){const jt=((et=(Ae=(He=pe.brief)==null?void 0:He.tokens)==null?void 0:Ae.find(ut=>(ut==null?void 0:ut.t)==="template"))==null?void 0:et.id)??((st=pe.brief)==null?void 0:st.templateId);if(jt){const ut=X.find(jn=>jn.id===jt);return ut?{name:ut.name,thumb:ut.previewUrl??null}:null}pe=pe.parentId?_.get(pe.parentId):null}return null},[P,De,ct,c,X]),Vt=Oe?z?"A scene starts a new shot.":qe||at?null:We?Le?"Still rendering. This can be refined the moment it lands.":null:`${(Me==null?void 0:Me.displayName)??"This engine"} cannot edit. This makes a new shot.`:null,lr=r.useMemo(()=>{const _=nr.find(st=>st.id===tt)??nr[0],pe=`Aspect ${_.label} ${_.hint}`;if(ct==="edit")return pe;const He=to.find(st=>st.id===Be),Ae=Yp(U),et=Ae==="ratio"||!He?null:Ae==="advisory"?`${He.label}, asking for ${He.edge} px`:`${He.label} ${He.edge} px`;return[pe,`${Ce} variants`,et&&`resolution ${et}`].filter(Boolean).join(", ")},[ct,tt,Ce,Be,U]);r.useEffect(()=>{z&&Oe&&A&&A()},[z,Oe,A]);const dt=(pt==null?void 0:pt.warnings.filter(_=>_.includes("built around a product")))??[],Qt=r.useMemo(()=>{const _=((pt==null?void 0:pt.dropped)??[]).filter(pe=>pe.role!=="scene");return[...new Set(_.map(pe=>pe.label))]},[pt]),Dt=Te&&!mn,Kt=qe&&mn,xr=!ft&&(mn||Dt)&&!Kt&&!!t&&!Le&&(qe||!F),Kr=F&&!qe?"Image generation is not set up yet":ft?"Working on the last one":t?Le?"Wait for this version to finish, or press X to start a new shot":Kt?"This shape is reached by cropping, and a crop uses no words. Clear the brief, or keep the current shape.":!mn&&!Dt?"Write a brief first":null:"Still opening this brand";r.useEffect(()=>{const _=ct==="edit"&&!!S;if(qe||!mn&&!_){yn(null);return}return Se.current&&clearTimeout(Se.current),Se.current=setTimeout(()=>{ke.previewBrief(hn,U,n.id,_?S.id:void 0).then(yn).catch(()=>yn(null))},280),()=>{Se.current&&clearTimeout(Se.current)}},[hn,U,n.id,mn,ct,S,qe]);const St=_=>{var pe;bt(_),(pe=At.current)==null||pe.focus()},Hn=_=>{var pe;sn(_),(pe=At.current)==null||pe.focus()},wr=_=>{var pe;ye(_),(pe=At.current)==null||pe.focus()},$a=_=>{var pe;_.preventDefault(),(pe=At.current)==null||pe.focus()},ss=_=>{xt(_),dn(!0)},Da=async _=>{var He;if(!(_!=null&&_.length))return;const pe=Array.from(_).filter(Ae=>Ae.type.startsWith("image/"));if(!pe.length){de({kind:"error",title:"Only images can be attached here"});return}Zt(!0),Mt(null);try{for(const Ae of pe.slice(0,4)){const et=await Xw(Ae);(He=At.current)==null||He.insert({t:"ref",imageHash:et})}pe.length>4&&de({kind:"error",title:"Only the first 4 images were attached",detail:`${pe.length-4} more ${pe.length-4===1?"was":"were"} skipped. Attach ${pe.length-4===1?"it":"them"} in another pick.`})}catch(Ae){Mt(String(Ae.message??Ae)),de(tn(Ae,"Could not attach that image"))}finally{Zt(!1),xn.current&&(xn.current.value="")}},Nl=z?dt.length>0?"This scene builds around a product. Attach one.":(pt==null?void 0:pt.warnings.some(_=>_.includes("built around a person")))??!1?"This scene builds around a person. Attach a presenter.":null:null,Co=_=>{var pe;if(_.t==="template")return Nl;if(!pt)return null;if(_.t==="ref"&&!pt.attachments.some(He=>He.hash===_.imageHash))return`${(Me==null?void 0:Me.displayName)??"This engine"} cannot read this reference, so it is left out.`;if(_.t==="mark"&&!pt.attachments.some(He=>He.role==="brand"&&He.hash===_.imageHash))return`${(Me==null?void 0:Me.displayName)??"This engine"} cannot read the brand mark, so it is left out.`;if(_.t==="mark"){const He=pt.warnings.find(Ae=>Ae.includes("px across"));if(He)return He}if(_.t==="product"){const Ae=(L.length?L:((pe=n.json)==null?void 0:pe.products)??[]).find(et=>et.id===_.id)??W.find(et=>et.id===_.id);if(Ae&&!pt.attachments.some(et=>et.role==="product"&&et.id===Ae.id))return`${(Me==null?void 0:Me.displayName)??"This engine"} cannot read the product image, so ${Ae.name} rides as text only.`}if(_.t==="character"){const He=Z.find(Ae=>Ae.id===_.id);if(He&&!pt.attachments.some(Ae=>Ae.role==="character"&&Ae.id===He.id))return`${(Me==null?void 0:Me.displayName)??"This engine"} cannot read the person reference, so ${He.name} rides as text only.`}return null},gt=async()=>{var pe;if(!xr)return;_t(!0),Mt(null);const _=ae.flatMap(He=>He.t==="text"?[He.v]:[]).join(" ").replace(/\s+/g," ").trim();b==null||b(_||"Your shot");try{if(!t)throw new Error("the workspace is still loading");const He=await ke.addNode({projectId:t,parentId:ct==="edit"&&S?S.id:(l==null?void 0:l.id)??null,kind:ct,engineId:U,count:Ce,brief:hn,...ct==="edit"&&E?{sourceImage:E}:{},...ct==="edit"&&Qe?{reshape:Qe}:{}}),Ae=He.warnings??[];Ae.length===1?de({kind:"success",title:"Sent, with one thing to know",detail:Ae[0]}):Ae.length>1&&de({kind:"success",title:`Sent, with ${Ae.length} things to know`,detail:Ae.join(" ")}),(pe=At.current)==null||pe.setTokens(vs()),Pe({}),fe(null),Ee({}),Xe(null),Ft(null),N&&Mv(n.id),x(He.id,ct)}catch(He){const Ae=String(He.message??He);Mt(Ae),de({kind:"error",title:"That did not send",detail:Ae}),b==null||b(null)}finally{_t(!1)}},ma=(K=ae.find(_=>_.t==="product"))==null?void 0:K.id,So=ma?L.find(_=>_.id===ma)??(((oe=n.json)==null?void 0:oe.products)??[]).find(_=>_.id===ma)??W.find(_=>_.id===ma)??null:null,Ls=So?$p(So):null;return o.jsxs("div",{className:"sc-composer",children:[o.jsx("input",{ref:xn,type:"file",accept:"image/*",multiple:!0,hidden:!0,onChange:_=>void Da(_.target.files)}),_n&&o.jsx(L_,{src:Pt(_n.hash),kind:_n.kind,label:_n.label,onRestoreFocus:()=>{var _;return(_=At.current)==null?void 0:_.restoreCaret()},onClose:()=>Gt(null)}),Rn&&o.jsx(P_,{brand:n,activeProductCategory:Ls,shots:c,initialTab:Ht,id:Xt,onUpload:()=>{var _;return(_=xn.current)==null?void 0:_.click()},onToken:_=>{var pe;return(pe=At.current)==null?void 0:pe.insert(_)},onTemplate:_=>H(_),onClose:()=>{var pe,He,Ae;const _=!!((He=(pe=document.activeElement)==null?void 0:pe.closest)!=null&&He.call(pe,".sc-attachpanel"));dn(!1),_&&((Ae=yr.current)==null||Ae.focus())}}),Q&&o.jsx("div",{className:"sc-notes",children:Q&&o.jsxs("div",{className:"sc-banner","data-tone":"action",children:[o.jsx("span",{className:"sc-banner-ic",children:Q.icon}),o.jsxs("span",{className:"sc-banner-txt",children:[o.jsx("b",{children:Q.title}),o.jsxs("small",{children:[Q.detail,Q.info&&o.jsxs(Ci,{children:[o.jsx(Si,{children:o.jsx("button",{type:"button",className:"sc-note-info","aria-label":"What a ChatGPT account has to do with this",children:o.jsx(wp,{size:13})})}),o.jsxs(ji,{className:"sc-note-pop",align:"start",sideOffset:8,width:"300px",children:[o.jsx("p",{children:"Codex CLI signs in with your ChatGPT account and makes the images there. Every plan includes some Codex usage, so how many images you get depends on the plan you are on."}),o.jsx("p",{children:"No ChatGPT account, or run out for now? Use your own key from an image provider instead."}),o.jsx("p",{className:"sc-note-pop-fine",children:"Scenri never sees your password or token. The sign-in happens in your browser and stays with Codex."}),o.jsx("button",{type:"button",className:"sc-btn sc-btn-ghost",onClick:()=>G("engines"),children:"Use a provider key instead"})]})]})]})]}),o.jsx("button",{type:"button",className:"sc-banner-act","data-primary":"",onClick:Q.onAct,children:Q.action})]})}),o.jsxs("div",{className:"sc-promptcard",children:[Oe&&A&&o.jsxs("div",{className:"sc-target","data-note":Vt?"":void 0,children:[o.jsxs("span",{className:"sc-target-lb",children:["Refining",S.images[0]?o.jsx("img",{src:Pt(S.images[0]),alt:""}):o.jsx("span",{className:"sc-target-thumb sc-shimmer"}),o.jsx("b",{dir:"auto",children:nn(S)})]}),Vt&&o.jsx("small",{className:"sc-target-note",children:Vt}),o.jsx("button",{type:"button",className:"sc-target-x",onClick:A,"aria-label":"Make a new shot instead",children:o.jsx(Mn,{size:12})})]}),Oe&&!A&&Vt&&o.jsx("small",{className:"sc-target-note sc-target-note-alone",children:Vt}),Te&&(qe||at)&&o.jsxs("small",{className:"sc-reshape-hint","aria-live":"polite",children:[qe?"Will crop to":"Will extend to"," ",lt]}),(It.length>0||Yn)&&o.jsxs("div",{className:"sc-carried",children:[o.jsx("span",{className:"sc-carried-lb",children:"Carrying"}),It.map(_=>{const pe=`${_.kind}:${_.hash}`,He=($t==null?void 0:$t.key)===pe,Ae=o.jsxs(o.Fragment,{children:[o.jsx("img",{src:Pt(_.hash),alt:""}),o.jsx("span",{dir:"auto",children:_.label})]}),et=`Carried from the shot being refined: ${_.label}`,st=_.kind;return e7(st)?o.jsx("button",{type:"button",className:"sc-carried-chip","data-kind":st,"data-open":He||void 0,title:He?void 0:et,"aria-haspopup":"dialog","aria-label":`${_.label}, carried from the shot being refined. Open it.`,onPointerEnter:jt=>jt.pointerType==="mouse"&&pn.open({key:pe,hash:_.hash,kind:st,label:_.label,el:jt.currentTarget}),onPointerLeave:jt=>jt.pointerType==="mouse"&&pn.close(),onFocus:jt=>jt.currentTarget.matches(":focus-visible")&&pn.open({key:pe,hash:_.hash,kind:st,label:_.label,el:jt.currentTarget}),onClick:()=>or({hash:_.hash,kind:st,label:_.label}),children:Ae},pe):o.jsx("span",{className:"sc-carried-chip","data-kind":st,title:et,children:Ae},pe)}),Yn&&o.jsxs("span",{className:"sc-carried-chip","data-kind":"scene","data-world":"",title:`The world this thread was shot in: ${Yn.name}. It stays in the picture through the photo being refined — nothing is sent again.`,children:[Yn.thumb&&o.jsx("img",{src:Yn.thumb,alt:""}),o.jsx("span",{dir:"auto",children:Yn.name})]})]}),$t&&o.jsx(n7,{anchor:$t.el,kind:$t.kind,src:Pt($t.hash),label:$t.label,onOpen:()=>or($t),onHoverIn:pn.keep,onHoverOut:pn.close,onClose:on},$t.key),Qt.length>0&&o.jsxs("small",{className:"sc-reshape-hint","data-kind":"dropped-refs","aria-live":"polite",children:[we," cannot carry ",Qt.join(" and ")," as ",Qt.length===1?"an image":"images",", so"," ",Qt.length===1?"it rides":"they ride"," as text only."]}),o.jsx(S_,{ref:At,onChange:q,brand:n,shots:c,templates:X,presenters:Z,demoProducts:W,onTemplatePick:H,flag:Co,onInspect:_=>Gt(_),onAttachRequest:_=>ss(_),activeProductCategory:Ls,placeholder:z?"Add art direction, or run it as written":ct==="edit"?"Say what to change about this shot":"What should we shoot? (use $ / @ #)",placeholderSm:z||ct==="edit"?void 0:"What should we shoot? ($ / @ #)",onSubmit:()=>void gt(),onDropFiles:_=>void Da(_)}),o.jsx(T_,{brandId:n.id,revision:n.updatedAt}),o.jsxs("div",{className:"sc-prompt-row",children:[o.jsxs("div",{className:"sc-prompt-left",children:[o.jsx("button",{type:"button",ref:yr,className:"sc-icon-btn sc-attach-toggle","aria-expanded":Rn,"aria-controls":Rn?Xt:void 0,"aria-label":"Attach",title:"Attach a product, a scene, a colour or an image",onClick:()=>Rn?dn(!1):ss("All"),children:Kn?o.jsx(qt,{size:"1"}):o.jsx(Wn,{size:16})}),ne.length>1&&o.jsxs(C5,{value:U,onValueChange:D,children:[o.jsxs(S5,{variant:"ghost",className:"sc-mini-sel",children:[o.jsx(N1,{size:14}),o.jsx("span",{className:"sc-mini-sel-t",children:Me?ro(Me.displayName):"Demo"})]}),o.jsx(j5,{children:ne.map(_=>o.jsx(k5,{value:_.id,children:ro(_.displayName)},_.id))})]})]}),o.jsxs("div",{className:"sc-prompt-right",children:[o.jsx(I_,{mode:ct,engineId:U,engineName:we,formatId:tt,onFormat:St,count:Ce,onCount:wr,quality:Be,onQuality:Hn,onCloseAutoFocus:$a}),o.jsxs(Ci,{open:vr,onOpenChange:ar,children:[o.jsx(Si,{children:o.jsxs("button",{type:"button",className:"sc-var sc-more","aria-label":`Shot settings. ${lr}`,children:[o.jsx(Pw,{size:14}),"More"]})}),o.jsx(ji,{className:"sc-morepop",align:"end",sideOffset:8,width:"300px",onOpenAutoFocus:qp,onCloseAutoFocus:$a,children:o.jsx(p7,{mode:ct,engineId:U,engineName:we,formatId:tt,onFormat:St,count:Ce,onCount:wr,quality:Be,onQuality:Hn,...P==="overlay"&&ne.length>1?{engineChoices:ne,onEngine:D}:{}})})]}),o.jsx(O_,{mode:ct,engineId:U,engineName:we,formatId:tt,onFormat:St,count:Ce,onCount:wr,quality:Be,onQuality:Hn}),o.jsxs("button",{type:"button",className:"sc-send","aria-disabled":!xr||void 0,onClick:()=>void gt(),"aria-label":ct==="edit"?"Refine":"Generate",title:Gn??Nl??Kr??`${ct==="edit"?"Refine":"Generate"} (enter)`,children:[o.jsx("span",{className:"sc-send-ico",children:ft?o.jsx(qt,{size:"1"}):o.jsx(c$,{size:17,weight:"bold"})}),o.jsx("span",{className:"sc-send-lb",children:ct==="edit"?"Refine":"Generate"})]})]})]})]})]})});function x7({full:e=!0,children:t}){return o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"sc-dock-fade","data-full":e,"aria-hidden":!0}),o.jsx("div",{className:"sc-canvas-dock","data-full":e,children:t})]})}function Pu({id:e,previewUrl:t,title:n,primary:s,secondary:l,useLabel:c,variant:u,onOpen:f,onUse:h,href:m,selected:p,onToggle:v,bookmarked:y,onBookmark:x,size:b="grid"}){const[C,S]=r.useState(!1),[A,E]=r.useState(!1),k=r.useRef(null),[M,N]=r.useState(!1);r.useEffect(()=>{const X=window.matchMedia("(hover: none)"),Z=()=>N(X.matches);return Z(),X.addEventListener("change",Z),()=>X.removeEventListener("change",Z)},[]);const P=u==="use"&&!!f&&!!h;r.useEffect(()=>{if(!A)return;const X=Z=>{var G;(G=k.current)!=null&&G.contains(Z.target)||E(!1)};return document.addEventListener("pointerdown",X),()=>document.removeEventListener("pointerdown",X)},[A]);const $=t&&!C?o.jsx("img",{src:t,alt:"",loading:"lazy",onError:()=>S(!0)}):o.jsx("span",{className:"sc-lookcard-blank",children:o.jsx(ha,{size:20})}),L=o.jsxs("span",{className:"sc-lookcard-cap",title:n,children:[o.jsx("b",{dir:"auto",children:s}),l&&o.jsx("span",{children:l})]});if(u==="select")return o.jsxs("button",{type:"button",className:"sc-lookcard","data-variant":"select","data-size":b,"data-on":p||void 0,"aria-pressed":!!p,"aria-label":n,onClick:()=>v==null?void 0:v(e),children:[o.jsxs("span",{className:"sc-lookcard-media",children:[$,o.jsx("span",{className:"sc-lookcard-veil","aria-hidden":!0}),o.jsx("span",{className:"sc-lookcard-tick","aria-hidden":!0,children:o.jsx(la,{size:11,weight:"bold"})})]}),L]});const W=()=>{if(P&&M){if(!A){E(!0);return}E(!1)}f?f(e):h==null||h(e)},B=()=>{E(!1),h==null||h(e)},te=o.jsxs("div",{ref:k,className:"sc-lookcard","data-fb":"catalog-card","data-fb-id":e,"data-variant":u,"data-size":b,"data-armed":A||void 0,children:[o.jsxs("div",{className:"sc-lookcard-media",children:[m?o.jsxs(Ut,{className:"sc-lookcard-open",to:m,"aria-label":n,onClick:X=>{if(P&&M){if(!A){X.preventDefault(),E(!0);return}E(!1)}},children:[$,o.jsx("span",{className:"sc-lookcard-veil","aria-hidden":!0})]}):o.jsxs("button",{type:"button",className:"sc-lookcard-open",onClick:W,"aria-label":n,children:[$,o.jsx("span",{className:"sc-lookcard-veil","aria-hidden":!0})]}),P&&o.jsx("button",{type:"button",className:"sc-lookcard-use",onClick:B,children:c}),x&&o.jsx("button",{type:"button",className:"sc-cardpuck sc-lookcard-bookmark","data-on":y||void 0,"aria-pressed":!!y,"aria-label":y?`Remove bookmark from ${s}`:`Bookmark ${s}`,onClick:X=>{X.stopPropagation(),x(e)},children:o.jsx(hd,{size:13,weight:y?"fill":"regular"})})]}),L]});return!f&&!h&&!m||M?te:o.jsxs(up,{children:[o.jsx(dp,{children:te}),o.jsxs(fp,{children:[f&&o.jsx(di,{onSelect:()=>f(e),children:"Open"}),m&&o.jsx(di,{onSelect:()=>window.open(m,"_blank"),children:"Open in new tab"}),P&&o.jsx(di,{onSelect:()=>h==null?void 0:h(e),children:c}),x&&o.jsx(di,{onSelect:()=>x(e),children:y?"Remove bookmark":"Bookmark"})]})]})}function Rd({size:e="grid",count:t=4}){return o.jsx(o.Fragment,{children:Array.from({length:t},(n,s)=>o.jsx("div",{className:"sc-lookcard","data-variant":"skeleton","data-size":e,"aria-hidden":!0},s))})}const Y_={presenter:"Presenter",product:"Product",scene:"Scene"};function w7({entry:e,productName:t,productPreviewUrl:n,productId:s,presenterName:l,presenterPreviewUrl:c,presenterId:u,sceneName:f,scenePreviewUrl:h,sceneId:m,onOpen:p,productHref:v,presenterHref:y,sceneHref:x,active:b,hideRecipe:C,decorative:S,size:A="grid"}){const E=[t,l,f].filter(Boolean).join(" · "),k=l?{key:"presenter",name:l,previewUrl:c,linked:!!(y&&u),href:y&&u?y(u):void 0}:null,M=n&&t?{key:"product",name:t,previewUrl:n,linked:!!(v&&s),href:v&&s?v(s):void 0}:null,N=h&&f?{key:"scene",name:f,previewUrl:h,linked:!!(x&&m),href:x&&m?x(m):void 0}:null;return o.jsxs("div",{className:"sc-showcase-tile","data-active":b||void 0,"aria-hidden":S||void 0,...S?{inert:""}:{},children:[o.jsx(Pu,{id:e.id,previewUrl:e.previewUrl,title:e.title,primary:e.title,secondary:C?"":E,useLabel:"Recreate this",variant:"use",onOpen:p,onUse:p,size:A}),(k||M||N)&&o.jsx(X_,{presenter:k,product:M,scene:N})]})}function q_(e){return o.jsx(Rd,{...e})}function X_({presenter:e,product:t,scene:n}){const[s,l]=r.useState(null),c=[t,n].filter(Boolean),u=c.length+(e?1:0)+Math.max(0,c.length-1);let f=0;const h=()=>({"--i":f++});return o.jsxs("div",{className:"sc-showcase-chips",onMouseLeave:()=>l(null),children:[e&&o.jsx(Hv,{credit:e,open:s==="presenter",onEnter:()=>l("presenter"),children:J_(e)}),c.length>0&&o.jsxs("div",{className:"sc-showcase-recipe",style:{"--n":u},children:[e&&o.jsx("span",{className:"sc-showcase-join",style:h(),"aria-hidden":!0}),c.map((m,p)=>o.jsxs(r.Fragment,{children:[p>0&&o.jsx("span",{className:"sc-showcase-join",style:h(),"aria-hidden":!0}),o.jsx(Hv,{credit:m,open:s===m.key,onEnter:()=>l(m.key),style:h(),children:Q_({credit:m,step:p===0?1:2})})]},m.key))]})]})}function Hv({credit:e,open:t,onEnter:n,children:s,style:l}){const c=r.useRef(null),u=r.useRef(null),[f,h]=r.useState(null),m=eO(),p=m==="large"?144:88,v=m==="large"?168:112;if(r.useLayoutEffect(()=>{if(!t||!e.previewUrl){h(null);return}const x=()=>{const A=c.current;if(!A)return;const E=A.getBoundingClientRect(),k=u.current,M=(k==null?void 0:k.offsetWidth)||p,N=(k==null?void 0:k.offsetHeight)||v,P=8,$=E.top>=N+P+12;h({left:Math.round(E.left+E.width/2-M/2),top:Math.round($?E.top-P-N:E.bottom+P)})};x();const b=requestAnimationFrame(x),C=c.current,S=C?new ResizeObserver(x):null;return C&&S&&S.observe(C),window.addEventListener("scroll",x,!0),window.addEventListener("resize",x),()=>{cancelAnimationFrame(b),S==null||S.disconnect(),window.removeEventListener("scroll",x,!0),window.removeEventListener("resize",x)}},[t,e.previewUrl,e.key,p,v]),!e.previewUrl)return o.jsx("span",{ref:c,className:"sc-credit-tip",onPointerEnter:n,style:l,children:s});const y=Y_[e.key];return o.jsxs("span",{ref:c,className:"sc-credit-tip","data-open":t||void 0,onPointerEnter:n,style:l,children:[s,t&&Ur.createPortal(o.jsx("span",{ref:u,className:"sc-credit-tip-pop","data-size":m,style:f?{left:f.left,top:f.top}:{left:-9999,top:0},role:"tooltip","aria-label":`${y}: ${e.name}`,children:o.jsxs("span",{className:"sc-credit-tip-card",children:[o.jsx("img",{src:e.previewUrl,alt:""}),o.jsx("span",{className:"sc-credit-tip-name",children:e.name}),o.jsx("span",{className:"sc-credit-tip-role",children:y})]})}),document.body)]})}function Q_({credit:e,step:t}){const{name:n,previewUrl:s,linked:l,href:c}=e;return l&&c?o.jsx(Ut,{className:"sc-showcase-chip",to:c,"data-link":!0,"data-step":t,"aria-label":`See ${n}`,onClick:u=>u.stopPropagation(),children:s?o.jsx("img",{src:s,alt:""}):null}):o.jsx("span",{className:"sc-showcase-chip","data-step":t,children:s?o.jsx("img",{src:s,alt:n}):o.jsx("span",{className:"sc-vh",children:n})})}function J_(e){const{name:t,previewUrl:n,linked:s,href:l}=e;return s&&l?o.jsxs(Ut,{className:"sc-showcase-badge",to:l,"data-link":!0,"aria-label":`See ${t}`,onClick:c=>c.stopPropagation(),children:[n?o.jsx("img",{src:n,alt:""}):null,o.jsx("span",{className:"sc-showcase-badge-name",children:t})]}):o.jsxs("span",{className:"sc-showcase-badge","aria-hidden":!0,children:[n?o.jsx("img",{src:n,alt:""}):null,o.jsx("span",{className:"sc-showcase-badge-name",children:t})]})}function D1({presenter:e,variant:t,onOpen:n,onUse:s,href:l,selected:c,onToggle:u,size:f="grid"}){return o.jsx(Pu,{id:e.id,previewUrl:e.previewUrl,title:e.descriptor||e.name,primary:e.name,secondary:e.descriptor,useLabel:"Use in a shot",variant:t,onOpen:n,onUse:s,href:l,selected:c,onToggle:u,size:f})}function b7(e){return o.jsx(Rd,{...e})}function au({scene:e,variant:t,onOpen:n,onUse:s,href:l,selected:c,onToggle:u,bookmarked:f,onBookmark:h,size:m="grid"}){return o.jsx(Pu,{id:e.id,previewUrl:e.previewUrl,title:e.description||po(e,"tooltip"),primary:po(e,"card"),secondary:e.lighting,useLabel:"Use in a shot",variant:t,onOpen:n,onUse:s,href:l,selected:c,onToggle:u,bookmarked:f,onBookmark:h,size:m})}function E7(e){return o.jsx(Rd,{...e})}const $v=new Map,eZ=1e3;function mr({className:e="sc-home",children:t}){const n=r.useRef(null),{key:s}=rn(),l=r.useRef(!1);return r.useLayoutEffect(()=>{const c=n.current,u=$v.get(s);if(!c||!u)return;let f=!1;const h=()=>{f||(f=!0,l.current=!1,p.disconnect(),clearTimeout(v),c.removeEventListener("wheel",h),c.removeEventListener("touchstart",h))},m=()=>{f||(c.scrollTop=u,Math.abs(c.scrollTop-u)<1&&h())};l.current=!0;const p=new ResizeObserver(m),v=setTimeout(h,eZ);return c.addEventListener("wheel",h,{passive:!0}),c.addEventListener("touchstart",h,{passive:!0}),m(),p.observe(c),c.firstElementChild&&p.observe(c.firstElementChild),h},[s]),r.useEffect(()=>{const c=n.current;if(!c)return;const u=()=>{l.current||$v.set(s,c.scrollTop)};return c.addEventListener("scroll",u,{passive:!0}),()=>c.removeEventListener("scroll",u)},[s]),o.jsx("div",{ref:n,className:e,children:t})}function Pd({title:e,filters:t,active:n,summary:s,onClear:l,density:c,search:u,action:f}){return o.jsxs("div",{className:"sc-filterbar",children:[e?o.jsx("h1",{className:"sc-vh",children:e}):null,t,o.jsxs("div",{className:"sc-filterbar-actions",children:[n&&o.jsxs("span",{className:"sc-lib-count",children:[s,l&&o.jsx("button",{type:"button",className:"sc-lib-clear",onClick:l,children:"Clear"})]}),u,c,f?o.jsx("span",{className:"sc-filterbar-cta",children:f}):null]})]})}function e1(e,t){return t===null?e===null:e===t}function C7({"aria-label":e,activeKey:t,items:n,onSelect:s}){const l=r.useRef(null),c=r.useRef(null),u=n.map(p=>`${p.value??""}:${p.count}`).join("|");r.useLayoutEffect(()=>{const p=l.current,v=c.current;if(!p||!v)return;let y=0;const x=()=>{const M=v.querySelector(":scope > button[data-on]");if(!M)return v.style.setProperty("--sc-ink-x","0px"),v.style.setProperty("--sc-ink-w","0px"),null;const N=M.querySelector(".sc-vlabel")??M;return v.style.setProperty("--sc-ink-x",`${M.offsetLeft+N.offsetLeft}px`),v.style.setProperty("--sc-ink-w",`${N.offsetWidth}px`),M},b=()=>{const M=v.scrollWidth-v.clientWidth;if(M<=1){delete p.dataset.overflowLeft,delete p.dataset.overflowRight;return}v.scrollLeft>2?p.dataset.overflowLeft="":delete p.dataset.overflowLeft,v.scrollLeft<M-2?p.dataset.overflowRight="":delete p.dataset.overflowRight},C=M=>{const N=v.scrollWidth-v.clientWidth;if(N<=0)return;const P=[...v.querySelectorAll(":scope > button")],$=P.indexOf(M);if($<0)return;const L=72,W=v.scrollLeft,B=W+v.clientWidth,te=P[$-1],X=P[$+1],Z=X?X.offsetLeft+Math.min(L,X.offsetWidth):M.offsetLeft+M.offsetWidth+8,G=te?Math.max(0,te.offsetLeft+te.offsetWidth-L):Math.max(0,M.offsetLeft-8);let re=W;if(Z>B)re=Math.min(N,Z-v.clientWidth);else if(G<W)re=G;else return;if(Math.abs(re-W)<1)return;const de=window.matchMedia("(prefers-reduced-motion: reduce)").matches;v.scrollTo({left:re,behavior:de?"auto":"smooth"})},S=x();S&&C(S),b(),v.dataset.inkReady||requestAnimationFrame(()=>{v.dataset.inkReady=""});const A=()=>{y||(y=requestAnimationFrame(()=>{y=0,b()}))},E=M=>{if(v.scrollWidth<=v.clientWidth+1||Math.abs(M.deltaX)>Math.abs(M.deltaY)||M.deltaY===0)return;const N=v.scrollWidth-v.clientWidth,P=Math.max(0,Math.min(N,v.scrollLeft+M.deltaY));P!==v.scrollLeft&&(M.preventDefault(),v.scrollLeft=P,b())},k=new ResizeObserver(()=>{x(),b()});return k.observe(v),v.addEventListener("scroll",A,{passive:!0}),v.addEventListener("wheel",E,{passive:!1}),()=>{y&&cancelAnimationFrame(y),k.disconnect(),v.removeEventListener("scroll",A),v.removeEventListener("wheel",E)}},[t,u]);const f=p=>{e1(t,p)||s(p)},h=p=>{var b;if(p.key!=="ArrowLeft"&&p.key!=="ArrowRight"&&p.key!=="Home"&&p.key!=="End"||n.length===0)return;p.preventDefault();const v=Math.max(0,n.findIndex(C=>e1(t,C.value)));let y=v;if(p.key==="ArrowRight"?y=Math.min(n.length-1,v+1):p.key==="ArrowLeft"?y=Math.max(0,v-1):p.key==="Home"?y=0:p.key==="End"&&(y=n.length-1),y===v)return;f(n[y].value);const x=(b=c.current)==null?void 0:b.querySelectorAll(":scope > button")[y];x==null||x.focus()},m=n.findIndex(p=>e1(t,p.value));return o.jsx("div",{ref:l,className:"sc-verticals-shell",children:o.jsxs("div",{ref:c,className:"sc-verticals",role:"tablist","aria-label":e,onKeyDown:h,children:[o.jsx("span",{className:"sc-verticals-ink","aria-hidden":!0}),n.map((p,v)=>{const y=e1(t,p.value);return o.jsxs("button",{type:"button",role:"tab","aria-selected":y,"data-on":y?"":void 0,tabIndex:y||m<0&&v===0?0:-1,onClick:()=>f(p.value),children:[o.jsx("span",{className:"sc-vlabel",children:p.label}),o.jsx("span",{className:"sc-vcount",children:p.count})]},p.value??"__all__")})]})})}function Ld({mode:e,group:t}){if(e==="none"||!t)return null;const n=[{value:null,label:t.everyLabel,count:t.everyCount},...t.options.map(s=>({value:s.value,label:s.label,count:s.count}))];return o.jsx(C7,{"aria-label":t.label,activeKey:t.selected,items:n,onSelect:t.onSelect})}function Lu({value:e,onChange:t,noun:n,total:s}){const l=r.useRef(null),[c,u]=r.useState(e.trim().length>0),f=r.useCallback(()=>{var m;Ur.flushSync(()=>u(!0)),(m=l.current)==null||m.focus()},[]);r.useEffect(()=>{e.trim().length>0&&u(!0)},[e]),r.useEffect(()=>{const m=p=>{if(p.key!=="/"||p.metaKey||p.ctrlKey||p.altKey)return;const v=p.target;v!=null&&v.isContentEditable||v&&/^(input|textarea|select)$/i.test(v.tagName)||(p.preventDefault(),f())};return document.addEventListener("keydown",m),()=>document.removeEventListener("keydown",m)},[f]);const h=m=>{var p;m.key==="Escape"&&(m.stopPropagation(),e?t(""):(u(!1),(p=l.current)==null||p.blur()))};return o.jsxs("div",{className:"sc-libsearch","data-open":c?"":void 0,children:[o.jsx("button",{type:"button",className:"sc-libsearch-toggle","aria-label":`Search ${n}`,"aria-expanded":c,tabIndex:c?-1:0,onClick:f,children:o.jsx(Jc,{size:16})}),o.jsxs("div",{className:"sc-libsearch-field",children:[o.jsx(Jc,{size:15,"aria-hidden":!0}),o.jsx("input",{ref:l,type:"search",value:e,placeholder:`Search ${s} ${n}`,"aria-label":`Search ${n}`,autoComplete:"off",autoCorrect:"off",spellCheck:!1,tabIndex:c?0:-1,onChange:m=>t(m.target.value),onKeyDown:h,onBlur:()=>{e.trim()||u(!1)}}),o.jsx("button",{type:"button",className:"sc-libsearch-clear","aria-label":"Clear search",hidden:!e,tabIndex:e?0:-1,onMouseDown:m=>m.preventDefault(),onClick:()=>{var m;t(""),(m=l.current)==null||m.focus()},children:o.jsx(Mn,{size:12,weight:"bold"})})]})]})}function ao({shape:e,title:t,body:n,action:s,onRetry:l}){return e==="error"?o.jsxs(o.Fragment,{children:[o.jsx("h1",{children:t??"Couldn't load this library"}),o.jsx("p",{className:"sc-lookpage-lede",children:n}),o.jsx("div",{className:"sc-lookpage-acts",children:o.jsx("button",{type:"button",className:"sc-btn sc-btn-primary",onClick:l,children:"Retry"})})]}):e==="cold"?o.jsxs("div",{className:"sc-canvas-empty",children:[t&&o.jsx("h3",{children:t}),o.jsx("p",{children:n}),s&&o.jsx("div",{className:"sc-lookpage-acts",children:s})]}):o.jsxs("div",{className:"sc-lib-zero",children:[o.jsx("p",{children:n}),s]})}function Td({noun:e,q:t,facet:n,onClearSearch:s,onClearAll:l}){const c=t.trim(),u=c?o.jsxs(o.Fragment,{children:["No ",e," found for ",o.jsxs("em",{children:["“",c,"”"]}),n?` in ${n}`:""]}):o.jsxs(o.Fragment,{children:["No ",e," in ",n]});return o.jsx(ao,{shape:"zero",body:u,action:o.jsxs("span",{className:"sc-lib-zero-acts",children:[c&&o.jsx("button",{type:"button",className:"sc-btn sc-btn-ghost",onClick:s,children:"Clear search"}),c&&n&&o.jsx("button",{type:"button",className:"sc-btn sc-btn-ghost",onClick:l,children:"Clear all"}),!c&&o.jsx("button",{type:"button",className:"sc-btn sc-btn-ghost",onClick:l,children:"Clear filter"})]})})}const tZ=150;function Tu(e){const[t,n]=Mi(),s=t.get("q")??"",l=e.join(","),c=r.useMemo(()=>{const E={};for(const k of l.split(",").filter(Boolean))E[k]=t.get(k)||null;return E},[t,l]),u=r.useCallback(E=>{n(k=>{const M=new URLSearchParams(k);for(const[N,P]of Object.entries(E))P===null||P===""?M.delete(N):M.set(N,P);return M},{replace:!0})},[n]),[f,h]=r.useState(s),m=r.useRef(s),p=r.useRef(null),v=r.useCallback(()=>{p.current!==null&&(clearTimeout(p.current),p.current=null)},[]);r.useEffect(()=>{s!==m.current&&(m.current=s,v(),h(s))},[s,v]),r.useEffect(()=>v,[v]);const y=r.useCallback(E=>{h(E),v(),p.current=setTimeout(()=>{p.current=null,m.current=E,u({q:E||null})},tZ)},[u,v]),x=r.useCallback((E,k)=>u({[E]:k}),[u]),b=u,C=f.trim().length>0||Object.values(c).some(Boolean),S=r.useCallback(()=>{v(),h(""),m.current="",u({q:null})},[u,v]),A=r.useCallback(()=>{v(),h(""),m.current="";const E={q:null};for(const k of l.split(",").filter(Boolean))E[k]=null;u(E)},[u,v,l]);return{q:f,setQ:y,facets:c,setFacet:x,setFacets:b,active:C,clearSearch:S,clear:A}}const nZ=8;function rZ(){var Ne;const{engines:e,scenes:t,loaded:n,presenters:s,presentersLoaded:l,demoProducts:c,showcase:u,showcaseCategories:f,showcaseLoaded:h,showcaseError:m,refetchShowcase:p}=an(),{brand:v,workspace:y,nodes:x,products:b}=Tt(),C=kl(),S=vn(),{push:A}=rr(),E=_p(),k=Zp(),M=zI(),N=Eo(_i),{q:P,setQ:$,facets:L,setFacet:W,clearSearch:B,clear:te}=Tu(["category"]),X=L.category,Z=Pe=>W("category",Pe),G=P.trim().length>0,[re,de]=Qa(fr.wallDensity,al),ne=Al(re),U=Pe=>de(Pe),D=kd(ne),V=Nu(ne),F=Pe=>{const Ce=new URLSearchParams(Pe??{}).toString();S(`${hr(v)}${Ce?`?${Ce}`:""}`)},Q=b.length?b:((Ne=v.json)==null?void 0:Ne.products)??[],ae=Pe=>{var ft,_t,Gn;const Ce=(ft=Pe.brief.tokens.find(Mt=>Mt.t==="product"))==null?void 0:ft.id,ye=(_t=Pe.brief.tokens.find(Mt=>Mt.t==="character"))==null?void 0:_t.id,Xe=(Gn=Pe.brief.tokens.find(Mt=>Mt.t==="template"))==null?void 0:Gn.id;return{product:Ce?c.find(Mt=>Mt.id===Ce):void 0,presenter:ye?s.find(Mt=>Mt.id===ye):void 0,scene:Xe?t.find(Mt=>Mt.id===Xe):void 0}},q=r.useMemo(()=>{const Pe=new Map;for(const Ce of u){const{product:ye,presenter:Xe,scene:ft}=ae(Ce);Pe.set(Ce.id,VI(Ce,{product:ye,presenter:Xe,scene:ft},B2(Ce.category)))}return Pe},[u,c,s,t]),ge=r.useMemo(()=>(X?u.filter(Ce=>Ce.category===X):u).filter(Ce=>Ra(q.get(Ce.id)??Ce.title,P)),[u,X,P,q]),ce=r.useMemo(()=>{const Pe=KI(f);return{key:"category",label:"Categories",everyLabel:"All examples",everyCount:u.length,selected:X,onSelect:Z,options:Pe.map(Ce=>({value:Ce,label:B2(Ce)??Ce,count:u.filter(ye=>ye.category===Ce).length}))}},[u,f,X,Z]),he=Pe=>{const{product:Ce,presenter:ye,scene:Xe}=ae(Pe);return{productName:Ce?Ja(Ce,"chip"):null,productPreviewUrl:(Ce==null?void 0:Ce.previewUrl)??null,productId:(Ce==null?void 0:Ce.id)??null,presenterName:(ye==null?void 0:ye.name)??null,presenterPreviewUrl:(ye==null?void 0:ye.avatarUrl)??(ye==null?void 0:ye.previewUrl)??null,presenterId:(ye==null?void 0:ye.id)??null,sceneName:Xe?po(Xe,"chip"):null,scenePreviewUrl:(Xe==null?void 0:Xe.previewUrl)??null,sceneId:(Xe==null?void 0:Xe.id)??null}},[me,fe]=r.useState(null),Ee=N?M:Pe=>{const Ce=u.find(ye=>ye.id===Pe);Ce&&(fe(Uh(Ce)),A({kind:"success",title:`Starting from "${Ce.title}"`}))},De=x.find(Pe=>Pe.kind==="root")??null,Fe=()=>{const Ce=[...es(v.id)].reverse().find(ye=>t.some(Xe=>Xe.id===ye));F(Ce?{scene:Ce,attach:"products",compose:"1"}:{attach:"products",compose:"1"})},tt=r.useMemo(()=>{const Pe=es(v.id);return _h(jl(v),c7(t,Ce=>Pe.includes(Ce.id))).slice(0,8)},[t,v]),bt=r.useMemo(()=>{var Gn,Mt,pt,yn,Rn,dn,Ht,xt;const Pe=new Set,Ce=Be=>!Be||Pe.has(Be)?null:(Pe.add(Be),Be),ye=Be=>{for(const sn of Be){const Ft=u.find(Zt=>Zt.id===sn&&Zt.previewUrl),Kn=Ce(Ft==null?void 0:Ft.previewUrl);if(Kn)return Kn}return null},Xe=Be=>{for(const sn of Be){const Ft=t.find(Zt=>Zt.id===sn&&Zt.previewUrl),Kn=Ce(Ft==null?void 0:Ft.previewUrl);if(Kn)return Kn}return null},ft=Be=>{for(const sn of u)if(!(!sn.previewUrl||Pe.has(sn.previewUrl))&&!(Be&&!sn.brief.tokens.some(Ft=>Ft.t===Be)))return Ce(sn.previewUrl);return null},_t=Q.find(Be=>{var sn,Ft;return Un((Ft=(sn=Be==null?void 0:Be.shots)==null?void 0:sn[0])==null?void 0:Ft.file)});return{compose:Ce(_t?Un((Mt=(Gn=_t.shots)==null?void 0:Gn[0])==null?void 0:Mt.file):null)??ye(["aurelia-serum-succulent-dew","verity-pearls-suspended-silk","solstice-aviators-screen-print"])??Ce((pt=c.find(Be=>Be.id==="aurelia-amber-serum"))==null?void 0:pt.previewUrl)??Ce((yn=c.find(Be=>Be.previewUrl))==null?void 0:yn.previewUrl)??ft("product"),product:ye(["voss-rowe-runner-volcanic-ash","birchwood-salt-flat","voss-rowe-dune-slip-face"])??Ce((Rn=c.find(Be=>Be.id==="voss-rowe-trail-runner"))==null?void 0:Rn.previewUrl)??ft("product"),presenter:Ce((dn=s.find(Be=>Be.id==="maren"))==null?void 0:dn.avatarUrl)??Ce((Ht=s.find(Be=>Be.avatarUrl))==null?void 0:Ht.avatarUrl)??Ce((xt=s.find(Be=>Be.previewUrl))==null?void 0:xt.previewUrl)??ft("character"),scene:Xe(["furniture-travertine-atrium","wide-establishing-environment","studio-soft-horizon","studio-volcanic-ash-field","furniture-lamplight-hours"])??ye(["moss-larkin-chair-travertine-atrium","calder-snow-loft","basalt-snells-window"])??ft("template")}},[t,s,Q,c,u]);return o.jsxs(mr,{children:[o.jsxs("main",{className:"sc-main",id:"main","data-no-dock":N||void 0,children:[o.jsxs("h1",{className:"sc-greet",children:["Compose a shot ",o.jsx("em",{children:"on brand"})]}),o.jsxs("div",{className:"sc-create-grid",children:[o.jsxs("button",{type:"button",className:"sc-create-card","data-tone":"compose","data-main":"",onClick:Fe,children:[o.jsx(S7,{thumbUrl:bt.compose,fallback:o.jsx(o$,{size:22,weight:"fill"})}),o.jsx("b",{children:"Create an image"})]}),o.jsx(Q2,{tone:"product",title:"Add a product",count:Q.length,thumbUrl:bt.product,icon:o.jsx(bp,{size:22,weight:"fill"}),onClick:()=>C("product")}),o.jsx(Q2,{tone:"presenter",title:"Create a presenter",thumbUrl:bt.presenter,icon:o.jsx(H$,{size:22,weight:"fill"}),onClick:()=>C("presenter")}),o.jsx(Q2,{tone:"scene",title:"Create a scene",thumbUrl:bt.scene,icon:o.jsx(C$,{size:22,weight:"fill"}),onClick:()=>C("scene")})]}),!h&&o.jsx("div",{className:"sc-masonry","data-density":!0,"data-density-size":V,style:D,"aria-hidden":!0,children:o.jsx(q_,{size:"grid",count:8})}),h&&m&&o.jsxs("p",{className:"sc-feed-empty",children:["Couldn't load the showcase gallery."," ",o.jsx("button",{type:"button",className:"sc-sec-more",onClick:()=>p(),children:"Retry"})]}),h&&!m&&u.length>0&&o.jsxs(o.Fragment,{children:[o.jsx(Pd,{filters:o.jsx(Ld,{mode:"tabs",group:ce}),search:u.length>=nZ&&o.jsx(Lu,{value:P,onChange:$,noun:"examples",total:u.length}),density:o.jsx(jd,{value:ne,onChange:U})}),ge.length>0&&o.jsx("div",{className:"sc-masonry","data-wall":!0,"data-density":!0,"data-density-size":V,style:D,children:ge.map(Pe=>o.jsx(w7,{entry:Pe,size:"grid",onOpen:Ee,productHref:Ce=>sa(v,Ce),presenterHref:Ce=>Ka(v,Ce),sceneHref:Ce=>ia(v,Ce),...he(Pe)},Pe.id))}),ge.length===0&&(G?o.jsx(Td,{noun:"examples",q:P,facet:X?B2(X):null,onClearSearch:B,onClearAll:te}):o.jsx("p",{className:"sc-looks-empty",children:"No example carries that category yet."}))]}),!l&&o.jsx("div",{className:"sc-masonry","aria-hidden":!0,children:o.jsx(b7,{size:"grid",count:8})}),l&&s.length>0&&o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"sc-sec-head",children:[o.jsx("span",{className:"sc-sec-title",children:"Presenters"}),o.jsx(Ut,{className:"sc-sec-more",to:$c(v),children:"Browse presenters"})]}),o.jsx("div",{className:"sc-masonry",children:s.slice(0,8).map(Pe=>o.jsx(D1,{presenter:Pe,variant:"navigate",size:"grid",onOpen:E},Pe.id))})]}),!n&&o.jsx("div",{className:"sc-masonry","aria-hidden":!0,children:o.jsx(E7,{size:"grid",count:8})}),n&&t.length>0&&o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"sc-sec-head",children:[o.jsx("span",{className:"sc-sec-title",children:"Scenes"}),o.jsx(Ut,{className:"sc-sec-more",to:Hc(v),children:"Browse scenes"})]}),o.jsx("div",{className:"sc-masonry",children:tt.map(Pe=>o.jsx(au,{scene:Pe,variant:"navigate",size:"grid",onOpen:k},Pe.id))})]})]}),!N&&o.jsx(x7,{children:o.jsx(Xp,{projectId:(y==null?void 0:y.id)||null,brand:v,engines:e,parent:De,shots:x,initialBrief:me,onQueued:()=>S(hr(v))})})]})}function Q2({tone:e,title:t,icon:n,count:s,thumbUrl:l,onClick:c}){return o.jsxs("button",{type:"button",className:"sc-create-card","data-tone":e,onClick:c,children:[o.jsx(S7,{thumbUrl:l,fallback:n}),o.jsxs("b",{children:[t,s?o.jsx(c5,{variant:"soft",radius:"full",size:"1",children:s}):null]})]})}function S7({thumbUrl:e,fallback:t}){return o.jsx("span",{className:"sc-glyph","data-photo":e?"":void 0,"aria-hidden":!0,children:e?o.jsx("span",{className:"sc-glyph-shot",children:o.jsx("img",{src:e,alt:"",loading:"lazy"})}):t})}function j7({build:e,onCancel:t,onRetry:n,onDismiss:s}){const l=e.stage==="failed",c=e.steps>0?Math.round(e.step/e.steps*100):0,u=l?bo(e.error):null,f=u?u.title:e.message??"Starting",h=[...e.warnings,...e.coverage];return o.jsxs("div",{className:"sc-lookcard","data-variant":"plain","data-size":"grid","data-build":!0,"data-building":!l||void 0,children:[o.jsxs("div",{className:"sc-lookcard-media",children:[e.previewHash?o.jsx("img",{src:Pt(e.previewHash),alt:""}):o.jsx("span",{className:"sc-lookcard-blank",children:l?null:o.jsx(qt,{})}),!l&&o.jsx("span",{className:"sc-buildbar","aria-hidden":!0,children:o.jsx("span",{style:{width:`${Math.max(6,c)}%`}})}),!l&&t&&o.jsx("button",{type:"button",className:"sc-cardpuck","aria-label":`Stop building ${e.name}`,onClick:()=>t(e.id),children:o.jsx(Mn,{size:13})}),l&&s&&o.jsx("button",{type:"button",className:"sc-cardpuck","aria-label":`Dismiss ${e.name}`,onClick:()=>s(e.id),children:o.jsx(Mn,{size:13})}),l&&n&&o.jsxs("button",{type:"button",className:"sc-lookcard-use",onClick:()=>n(e),children:[o.jsx(gp,{size:12})," Try again"]})]}),o.jsxs("span",{className:"sc-lookcard-cap",title:(u==null?void 0:u.raw)||f,children:[o.jsx("b",{dir:"auto",children:e.name}),o.jsx("span",{children:f})]}),h.length>0&&o.jsx("ul",{className:"sc-buildnotes",children:h.slice(0,2).map(m=>o.jsx("li",{children:m},m))})]})}function Qp({label:e}){return o.jsx("div",{className:"sc-starter-rule",children:o.jsx("span",{children:e})})}const J2=60;function Jp(e,t){const[n,s]=r.useState(J2);r.useEffect(()=>{s(J2)},[t]);const{visible:l,remaining:c}=i7(e,n);return{visible:l,remaining:c,showMore:()=>s(f=>f+J2)}}const aZ=8,eh="__bookmarked";function sZ(){const{scenes:e,collections:t,verticals:n,loaded:s,error:l,refetch:c}=an(),{brand:u}=Tt(),f=vn(),[h,m]=r.useState(()=>es(u.id)),p=ye=>m(_9(u.id,ye)),v=Zp(),{builds:y,poke:x}=Sl(),b=kl(),C=r.useMemo(()=>jl(u),[u]),S=y.filter(ye=>ye.kind==="scene"&&(!ye.finished||ye.stage==="failed")),{q:A,setQ:E,facets:k,setFacets:M,clearSearch:N,clear:P}=Tu(["vertical","bookmarked"]),$=k.vertical,L=k.bookmarked==="1",W=A.trim().length>0,[B,te]=Qa(fr.wallDensity,al),X=Al(B),Z=ye=>te(ye),G=kd(X),re=Nu(X),de=ye=>f(ia(u,ye)),ne=r.useMemo(()=>L?e.filter(ye=>h.includes(ye.id)):$?e.filter(ye=>ye.verticals.includes($)):e,[e,$,L,h]),D=!(C.length>0||S.length>0),V=e.reduce((ye,Xe)=>ye+(h.includes(Xe.id)?1:0),0),F=L&&V===0,Q=F&&D,ae=F&&!D,q=W||L&&!Q,ge=r.useMemo(()=>Q?e:ne,[Q,e,ne]),ce=r.useMemo(()=>ge.filter(ye=>Ra(P1(ye),A)),[ge,A]),{visible:he,remaining:me,showMore:fe}=Jp(ce,`${$??""}|${L?"bookmarked":""}|${Q?"browse":""}|${A}`),ie=ye=>[...C,...e].filter(Xe=>!Xe.verticals.length||Xe.verticals.includes(ye)).length,Ee=[{value:eh,label:"Bookmarks",count:V},...n.map(ye=>({value:ye,label:ye,count:ie(ye)}))],De=e.length>0?"tabs":"none",Fe={key:"vertical",label:"Vertical",everyLabel:"Every scene",everyCount:e.length+C.length,selected:L?eh:$,onSelect:ye=>M(ye===eh?{bookmarked:"1",vertical:null}:{bookmarked:null,vertical:ye}),options:Ee},tt=r.useMemo(()=>C.filter(ye=>$?!ye.verticals.length||ye.verticals.includes($):!0).filter(ye=>Ra(P1(ye),A)),[C,$,A]),bt=!L&&(S.length>0||tt.length>0),Ne=o.jsxs("button",{type:"button",className:"sc-btn sc-btn-primary",onClick:()=>b("scene"),children:[o.jsx(Wn,{size:12})," Create scene"]}),Pe=(ye,Xe=!1)=>o.jsx("div",{className:"sc-masonry","data-wall":Xe||void 0,"data-density":!0,"data-density-size":re,style:G,children:ye.map(ft=>o.jsx(au,{scene:ft,variant:"use",size:"grid",onOpen:de,href:ia(u,ft.id),onUse:v,bookmarked:h.includes(ft.id),onBookmark:p},ft.id))}),Ce=o.jsx(Pd,{title:"Scenes",filters:o.jsx(Ld,{mode:De,group:Fe}),density:o.jsx(jd,{value:X,onChange:Z}),search:e.length>=aZ&&o.jsx(Lu,{value:A,onChange:E,noun:"scenes",total:e.length}),action:D?void 0:Ne});return o.jsx(mr,{children:o.jsxs("main",{className:"sc-looks sc-scenes",id:"main","data-hero":D||void 0,children:[!D&&Ce,bt&&o.jsxs("section",{className:"sc-owned",children:[o.jsx("div",{className:"sc-sec-head",children:o.jsx("h2",{className:"sc-sec-title",children:"Your scenes"})}),o.jsxs("div",{className:"sc-masonry","data-wall":!0,"data-density":!0,"data-density-size":re,style:G,children:[S.map(ye=>o.jsx(j7,{build:ye,onCancel:Xe=>void ke.cancelAssetBuild(u.id,Xe).then(x),onDismiss:Xe=>void ke.deleteAssetBuild(u.id,Xe).then(x),onRetry:()=>b("scene")},ye.id)),tt.map(ye=>o.jsx(au,{scene:ye,variant:"use",size:"grid",onOpen:de,href:ia(u,ye.id),onUse:v},ye.id))]})]}),D&&s&&!l&&e.length>0&&o.jsx(ao,{shape:"cold",title:o.jsxs(o.Fragment,{children:["Build your own ",o.jsx("em",{children:"scene"})]}),body:"Upload a few references of a place, and its light and materials carry into every image you make.",action:Ne}),bt&&s&&!l&&!L&&ne.length>0&&o.jsx("div",{className:"sc-sec-head sc-owned-divider",children:o.jsx("h2",{className:"sc-sec-title",children:"Scenri scenes"})}),D&&s&&!l&&e.length>0&&o.jsxs(o.Fragment,{children:[o.jsx(Qp,{label:"Or start from one of ours"}),Ce]}),!s&&o.jsx("div",{className:"sc-masonry","data-density":!0,"data-density-size":re,style:G,"aria-hidden":!0,children:o.jsx(E7,{size:"grid",count:8})}),s&&l&&o.jsx(ao,{shape:"error",title:"Couldn't load this library",body:"Something went wrong reaching the catalog.",onRetry:()=>c()}),s&&!l&&!q&&t.map(ye=>{const Xe=ge.filter(ft=>ft.collections.includes(ye));return Xe.length?o.jsxs("section",{className:"sc-coll",children:[o.jsx("h2",{children:ye}),Pe(Xe)]},ye):null}),s&&!l&&q&&he.length>0&&Pe(he,!0),s&&!l&&ae&&o.jsx(ao,{shape:"zero",body:"Nothing bookmarked yet. Bookmark a scene from its card and it stays here.",action:o.jsx("button",{type:"button",className:"sc-btn sc-btn-ghost",onClick:()=>M({bookmarked:null}),children:"Browse every scene"})}),s&&!l&&e.length>0&&!ae&&ce.length===0&&tt.length===0&&o.jsx(Td,{noun:"scenes",q:A,facet:Q?null:L?"Bookmarks":$,onClearSearch:N,onClearAll:P}),q&&me>0&&o.jsx("div",{className:"sc-lib-more",children:o.jsxs("button",{type:"button",className:"sc-btn sc-btn-ghost",onClick:fe,children:["Show ",Math.min(me,60)," more"]})})]})})}function F1({src:e}){const[t,n]=r.useState(!1);return o.jsx("div",{className:"sc-lookpage-ref",children:t?o.jsx("span",{className:"sc-lookpage-ref-blank",children:o.jsx(ha,{size:20})}):o.jsx("img",{src:e,alt:"",loading:"lazy",onError:()=>n(!0)})})}function k7(){return o.jsx("div",{className:"sc-lookpage-refs",children:o.jsx("div",{className:"sc-lookpage-ref",children:o.jsx("span",{className:"sc-lookpage-ref-blank",children:o.jsx(ha,{size:20})})})})}function e8({node:e,to:t}){const[n,s]=r.useState(!1);return o.jsx(Ut,{className:"sc-lookcard","aria-label":`Open ${nn(e)}`,to:t,children:n?o.jsx("span",{className:"sc-lookcard-blank",children:o.jsx(ha,{size:20})}):o.jsx("img",{src:Pt(e.images[0]),alt:"",loading:"lazy",onError:()=>s(!0)})})}function Qo({label:e,children:t}){const n=r.useRef(null),s=r.useRef(null),l=r.useRef(!1),c=r.useRef(()=>{});r.useLayoutEffect(()=>{const f=n.current,h=s.current;if(!f||!h)return;let m=0;const p=()=>{const x=h.scrollWidth-h.clientWidth;if(x<=1){delete f.dataset.overflowLeft,delete f.dataset.overflowRight;return}h.scrollLeft>2?f.dataset.overflowLeft="":delete f.dataset.overflowLeft,h.scrollLeft<x-2?f.dataset.overflowRight="":delete f.dataset.overflowRight};c.current=p,p();const v=()=>{m||(m=requestAnimationFrame(()=>{m=0,p()}))},y=new ResizeObserver(()=>p());return y.observe(h),h.addEventListener("scroll",v,{passive:!0}),()=>{m&&cancelAnimationFrame(m),c.current=()=>{},y.disconnect(),h.removeEventListener("scroll",v)}},[]);const u=f=>{const h=s.current;if(!(h!=null&&h.firstElementChild)||l.current)return;const m=h.firstElementChild.getBoundingClientRect().width+16,p=h.scrollWidth/2;f<0&&h.scrollLeft<m&&(h.scrollLeft+=p);const v=h.scrollLeft,y=f*m,x=performance.now();l.current=!0;const b=C=>{const S=Math.min(1,(C-x)/420);h.scrollLeft=v+y*(1-(1-S)**3),c.current(),S<1?requestAnimationFrame(b):(l.current=!1,h.scrollLeft>=p&&(h.scrollLeft-=p),c.current())};requestAnimationFrame(b)};return o.jsxs("section",{className:"sc-lookpage-band",children:[o.jsx("p",{className:"sc-bandhead",children:e}),o.jsxs("div",{className:"sc-slider",ref:n,children:[o.jsx("button",{type:"button",className:"sc-slider-arrow prev","aria-label":"Previous",onClick:()=>u(-1),children:o.jsx(Fi,{size:13,weight:"bold"})}),o.jsx("button",{type:"button",className:"sc-slider-arrow next","aria-label":"Next",onClick:()=>u(1),children:o.jsx(md,{size:13,weight:"bold"})}),o.jsxs("div",{className:"sc-slider-track",ref:s,children:[t,t]})]})]})}const oZ="(max-width: 760px)";function lZ(){const{sceneId:e=""}=ns(),{scenes:t,loaded:n,error:s,refetch:l,applyBrand:c}=an(),{brand:u,nodes:f}=Tt(),h=vn(),m=Zp(),p=u.id,[v,y]=r.useState([]),[x,b]=r.useState(()=>es(p)),[C,S]=Xs("all"),A=C==="1",k=Eo(oZ)?4:3,M=Ne=>h(ia(u,Ne)),N=zD(u,e),P=N??t.find(Ne=>Ne.id===e);vd(P==null?void 0:P.name);const $=!!N;r.useEffect(()=>{let Ne=!0;if(y([]),!$)return ke.sceneFrames(e).then(Pe=>{Ne&&y(Pe.frames)}).catch(()=>{Ne&&y([])}),()=>{Ne=!1}},[e,$]);const L=r.useMemo(()=>f.filter(Ne=>{var Pe;return Ne.status==="done"&&Ne.images.length>0&&(((Pe=Ne.brief)==null?void 0:Pe.tokens)??[]).some(Ce=>(Ce==null?void 0:Ce.t)==="template"&&Ce.id===e)}).slice(-12).reverse(),[f,e]),W=r.useMemo(()=>{if(!P)return[];return t.filter(Ce=>Ce.id!==P.id).sort((Ce,ye)=>Pe(ye)-Pe(Ce)).slice(0,8);function Pe(Ce){const ye=Ce.lighting.split(/[ ,]+/).some(ft=>ft.length>3&&P.lighting.toLowerCase().includes(ft.toLowerCase())),Xe=Ce.collections.some(ft=>P.collections.includes(ft));return(ye?2:0)+(Xe?1:0)}},[t,P]),B=r.useMemo(()=>{if(P||!n||s)return[];const Ne=es(p);return c7(t,Pe=>Ne.includes(Pe.id)).slice(0,6)},[P,n,s,t,p]),[te,X]=r.useState((N==null?void 0:N.name)??""),[Z,G]=r.useState((N==null?void 0:N.description)??""),[re,de]=r.useState((N==null?void 0:N.lighting)??""),[ne,U]=r.useState((N==null?void 0:N.prompt)??""),[D,V]=r.useState(null),[F,Q]=r.useState(!1),[ae,q]=r.useState(!1),[ge,ce]=r.useState(!1),he=r.useRef(void 0);r.useEffect(()=>{X((N==null?void 0:N.name)??""),G((N==null?void 0:N.description)??""),de((N==null?void 0:N.lighting)??""),U((N==null?void 0:N.prompt)??"")},[N==null?void 0:N.id]);const me=Ne=>{N&&(he.current&&clearTimeout(he.current),he.current=setTimeout(()=>{ke.updateScene(u.id,N.id,Ne).then(Pe=>{c(Pe.brand),V(Pe.warnings[0]??null)}).catch(Pe=>V(String(Pe.message??Pe)))},500))},fe=async()=>{if(N){Q(!0),V(null);try{c((await ke.generateScenePreview(u.id,N.id)).brand)}catch(Ne){V(String(Ne.message??Ne))}finally{Q(!1)}}},ie=async()=>{if(!(!N||ae)){q(!0),V(null);try{await ke.rereadScene(u.id,N.id)}catch(Ne){V(String(Ne.message??Ne)),q(!1)}}},Ee=async()=>{if(N){ce(!0);try{await ke.deleteScene(u.id,N.id),h(Hc(u))}catch(Ne){V(String(Ne.message??Ne)),ce(!1)}}};if(!n&&!N)return o.jsx(mr,{children:o.jsx("main",{className:"sc-lookpage",id:"main",children:o.jsx("div",{className:"sc-tplrow","aria-hidden":!0})})});if(s&&!N)return o.jsx(mr,{children:o.jsxs("main",{className:"sc-lookpage",id:"main",children:[o.jsx("h1",{children:"Couldn't load this scene"}),o.jsx("p",{className:"sc-lookpage-lede",children:"Something went wrong reaching the catalog."}),o.jsx("div",{className:"sc-lookpage-acts",children:o.jsx("button",{type:"button",className:"sc-btn sc-btn-primary",onClick:()=>l(),children:"Retry"})})]})});if(!P)return o.jsx(mr,{children:o.jsxs("main",{className:"sc-lookpage",id:"main",children:[o.jsx("h1",{children:"This scene isn't here anymore"}),o.jsx("p",{className:"sc-lookpage-lede",children:"It may have been removed from the catalog, or the link is out of date."}),o.jsxs("div",{className:"sc-lookpage-acts",children:[o.jsx(Ut,{className:"sc-btn sc-btn-primary",to:`${hr(u)}?compose=1`,children:"Start from scratch"}),o.jsx(Ut,{className:"sc-btn sc-btn-ghost",to:Hc(u),children:"Browse all scenes"})]}),B.length>0&&o.jsx(Qo,{label:"You might like",children:B.map(Ne=>o.jsx(au,{scene:Ne,variant:"navigate",size:"slider",onOpen:M,href:ia(u,Ne.id)},Ne.id))})]})});const De=A?v:v.slice(0,k),Fe=N?N.previewUrl?[N.previewUrl]:[]:v.length?De:P.previewUrl?[P.previewUrl]:[],tt=!N&&P.subject!=="person"&&Fe.length>0,bt=x.includes(P.id);return o.jsx(mr,{children:o.jsxs("main",{className:"sc-lookpage",id:"main",children:[o.jsxs("div",{className:"sc-lookpage-crumb",children:[o.jsx(Ut,{to:Hc(u),children:"Scenes"}),o.jsx("span",{children:"/"}),o.jsx("span",{children:N?"Yours":P.collections[0]})]}),N?o.jsx(xi,{className:"sc-ownededit-title",value:te,"aria-label":"Scene name",onChange:Ne=>{X(Ne.target.value),me({name:Ne.target.value})}}):o.jsx("h1",{children:P.name}),N?o.jsx(xi,{className:"sc-ownededit-lede",value:Z,placeholder:"One sentence for the card","aria-label":"Description",onChange:Ne=>{G(Ne.target.value),me({description:Ne.target.value})}}):o.jsx("p",{className:"sc-lookpage-lede",children:P.description}),o.jsxs("p",{className:"sc-lookpage-facts",children:[P.lighting," · ",P.subject==="either"?"product or person":`for a ${P.subject}`," ·"," ",P.width===P.height?"square by default":`${P.width}×${P.height} by default`]}),o.jsxs("div",{className:"sc-lookpage-acts",children:[o.jsx("button",{type:"button",className:"sc-btn sc-btn-primary",onClick:()=>void m(P.id),children:"Use in a shot"}),!N&&o.jsxs("button",{type:"button",className:"sc-btn sc-btn-ghost","aria-pressed":bt,onClick:()=>b(_9(p,P.id)),children:[o.jsx(hd,{size:13,weight:bt?"fill":"regular"}),o.jsx("span",{children:bt?"Bookmarked":"Bookmark"})]}),N&&o.jsxs("button",{type:"button",className:"sc-btn sc-btn-ghost",disabled:F,onClick:()=>void fe(),children:[F?o.jsx(qt,{size:"1"}):o.jsx(gp,{size:13}),o.jsx("span",{children:N.previewUrl?"Redraw the example":"Draw an example"})]}),N&&N.refs.length>0&&o.jsxs("button",{type:"button",className:"sc-btn sc-btn-ghost",disabled:ae,onClick:()=>void ie(),children:[ae?o.jsx(qt,{size:"1"}):o.jsx(v$,{size:13}),o.jsx("span",{children:ae?"Reading the references":"Read the references again"})]})]}),D&&o.jsx("p",{className:"sc-assetform-err",children:D}),Fe.length>0?o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"sc-lookpage-refs",children:Fe.map(Ne=>o.jsx(F1,{src:Ne},Ne))}),tt&&o.jsx("p",{className:"sc-lookpage-note",children:"Shown with a demo product for reference. Yours replaces it."}),N&&o.jsx("p",{className:"sc-lookpage-note",children:N!=null&&N.figure?"An example of this scene. The person in it is nobody: attach a presenter and they take the role.":"The place with nothing staged in it. Whatever you attach to a shot goes here."}),!N&&v.length>k&&o.jsx("button",{type:"button",className:"sc-lookpage-expand",onClick:()=>S(A?null:"1"),children:A?"Enough, close it":"See the whole set"})]}):o.jsx(k7,{}),N&&o.jsxs("div",{className:"sc-ownedbits",children:[N.refs.length>0&&o.jsxs("section",{children:[o.jsx("p",{className:"sc-bandhead",children:"Your references"}),o.jsxs("p",{className:"sc-ownedbits-note",children:["What this scene was read from, and what its example above was drawn from.",N.figure?" Because this scene is built around a figure, one of these also goes to the shot as reference for the world and the treatment. The people, products and marks in it are never copied.":" A scene reaches a shot as words, never as pixels, so nothing staged in these images can turn up in a render on its own."]}),o.jsx("div",{className:"sc-lookpage-refs",children:N.refs.map(Ne=>o.jsx(F1,{src:Ne},Ne))})]}),N.figure&&o.jsxs("section",{children:[o.jsx("p",{className:"sc-bandhead",children:"Who it is built around"}),o.jsxs("p",{className:"sc-ownedbits-note",children:[N.figure,N.figureTreatment?`, and ${N.figureTreatment}`:"",". A role, not a person: attach a presenter and they play it. Their own face stays theirs underneath."]})]}),o.jsxs("section",{children:[o.jsx("p",{className:"sc-bandhead",children:"The place itself"}),o.jsx("p",{className:"sc-ownedbits-note",children:"Sent with every shot built here. Describe the world, not what stands in it."}),o.jsx(pp,{value:ne,rows:5,onChange:Ne=>{U(Ne.target.value),me({prompt:Ne.target.value})}}),o.jsx(xi,{mt:"2",value:re,placeholder:"The light, in a short phrase","aria-label":"Lighting",onChange:Ne=>{de(Ne.target.value),me({lighting:Ne.target.value})}})]}),o.jsxs("section",{children:[o.jsx("p",{className:"sc-bandhead",children:"Direction"}),o.jsx("p",{className:"sc-ownedbits-note",children:"What matters in these references, and what to ignore. Read again to apply it."}),o.jsx("textarea",{className:"sc-in",rows:3,maxLength:400,placeholder:"What matters in these references, and what to ignore",defaultValue:N.instruction??"",onChange:Ne=>me({instruction:Ne.target.value})})]}),o.jsx("div",{className:"sc-lookpage-acts",children:o.jsx(Cs,{label:"Delete scene",title:`Delete ${N.name}?`,body:"Shots already made here keep their images and their recipe. Only future shots lose it.",busy:ge,onConfirm:()=>void Ee()})})]}),L.length>0&&o.jsx(Qo,{label:"Your shots in this scene",children:L.map(Ne=>o.jsx(e8,{node:Ne,to:gd(u,null,Ne.id)},Ne.id))}),W.length>0&&o.jsx(Qo,{label:"Other scenes, similar light",children:W.map(Ne=>o.jsx(au,{scene:Ne,variant:"navigate",size:"slider",onOpen:M,href:ia(u,Ne.id)},Ne.id))})]})})}const iZ=8;function cZ(){const{presenters:e,presenterCategories:t,presentersLoaded:n,presentersError:s,refetchPresenters:l}=an(),{brand:c}=Tt(),u=vn(),f=_p(),{q:h,setQ:m,facets:p,setFacet:v,clearSearch:y,clear:x}=Tu(["category"]),b=p.category,{builds:C,poke:S}=Sl(),A=kl(),E=r.useMemo(()=>Au(c),[c]),k=C.filter(q=>q.kind==="presenter"&&(!q.finished||q.stage==="failed")),[M,N]=Qa(fr.wallDensity,al),P=Al(M),$=q=>N(q),L=kd(P),W=Nu(P),B=q=>u(Ka(c,q)),te=r.useMemo(()=>b?e.filter(q=>q.suitableCategories.includes(b)):e,[e,b]),X=r.useMemo(()=>te.filter(q=>Ra(L1(q),h)),[te,h]),{visible:Z,remaining:G,showMore:re}=Jp(X,`${b??""}|${h}`),de=l7(t.length),ne=o.jsxs("button",{type:"button",className:"sc-btn sc-btn-primary",onClick:()=>A("presenter"),children:[o.jsx(Wn,{size:12})," Create presenter"]}),U=r.useMemo(()=>E.filter(q=>b?!q.suitableCategories.length||q.suitableCategories.includes(b):!0).filter(q=>Ra(L1(q),h)),[E,b,h]),D=E.length>0||k.length>0,V=k.length>0||U.length>0,F=!D,Q={key:"category",label:"Category",everyLabel:"Every presenter",everyCount:e.length+E.length,selected:b,onSelect:q=>v("category",q),options:t.map(q=>({value:q,label:q,count:[...E,...e].filter(ge=>!ge.suitableCategories.length||ge.suitableCategories.includes(q)).length}))},ae=o.jsx(Pd,{title:"Presenters",filters:o.jsx(Ld,{mode:de,group:Q}),density:o.jsx(jd,{value:P,onChange:$}),search:e.length>=iZ&&o.jsx(Lu,{value:h,onChange:m,noun:"presenters",total:e.length}),action:F?void 0:ne});return o.jsx(mr,{children:o.jsxs("main",{className:"sc-looks sc-presenters",id:"main","data-hero":F||void 0,children:[!F&&ae,V&&o.jsxs("section",{className:"sc-owned",children:[o.jsx("div",{className:"sc-sec-head",children:o.jsx("h2",{className:"sc-sec-title",children:"Your presenters"})}),o.jsxs("div",{className:"sc-masonry","data-wall":!0,"data-density":!0,"data-density-size":W,style:L,children:[k.map(q=>o.jsx(j7,{build:q,onCancel:ge=>void ke.cancelAssetBuild(c.id,ge).then(S),onDismiss:ge=>void ke.deleteAssetBuild(c.id,ge).then(S),onRetry:()=>A("presenter")},q.id)),U.map(q=>o.jsx(D1,{presenter:q,variant:"use",size:"grid",onOpen:B,href:Ka(c,q.id),onUse:f},q.id))]})]}),F&&n&&!s&&e.length>0&&o.jsx(ao,{shape:"cold",title:o.jsxs(o.Fragment,{children:["Cast your own ",o.jsx("em",{children:"presenter"})]}),body:"Upload a few photos of one person, and they stay the same person in every image you make.",action:ne}),V&&n&&!s&&Z.length>0&&o.jsx("div",{className:"sc-sec-head sc-owned-divider",children:o.jsx("h2",{className:"sc-sec-title",children:"Scenri presenters"})}),!n&&o.jsx("div",{className:"sc-masonry","data-density":!0,"data-density-size":W,style:L,"aria-hidden":!0,children:o.jsx(b7,{size:"grid",count:8})}),n&&s&&o.jsx(ao,{shape:"error",title:"Couldn't load the presenter library",body:"Something went wrong reaching the catalog.",onRetry:()=>l()}),F&&n&&!s&&e.length>0&&o.jsxs(o.Fragment,{children:[o.jsx(Qp,{label:"Or cast someone from ours"}),ae]}),n&&!s&&Z.length>0&&o.jsx("div",{className:"sc-masonry","data-wall":!0,"data-density":!0,"data-density-size":W,style:L,children:Z.map(q=>o.jsx(D1,{presenter:q,variant:"use",size:"grid",onOpen:B,href:Ka(c,q.id),onUse:f},q.id))}),n&&!s&&!X.length&&e.length>0&&o.jsx(Td,{noun:"presenters",q:h,facet:b,onClearSearch:y,onClearAll:x}),n&&!s&&!e.length&&o.jsx(ao,{shape:"zero",body:"The presenter library is still being cast. Check back soon."}),G>0&&o.jsx("div",{className:"sc-lib-more",children:o.jsxs("button",{type:"button",className:"sc-btn sc-btn-ghost",onClick:re,children:["Show ",Math.min(G,60)," more"]})})]})})}const Dv=4;function uZ(){var ge;const{presenterId:e=""}=ns(),{presenters:t,presentersLoaded:n,presentersError:s,refetchPresenters:l,applyBrand:c}=an(),{brand:u,nodes:f}=Tt(),h=vn(),m=_p(),[p,v]=r.useState([]),[y,x]=Xs("all"),b=y==="1",C=ZD(u,e),S=C??t.find(ce=>ce.id===e);vd(S==null?void 0:S.name);const A=!!C;r.useEffect(()=>{let ce=!0;if(v([]),!A)return ke.presenterFrames(e).then(he=>{ce&&v(he.frames)}).catch(()=>{ce&&v([])}),()=>{ce=!1}},[e,A]);const k=(((ge=u.json)==null?void 0:ge.characters)??[]).find(ce=>ce.presenterId===e),M=r.useMemo(()=>f.filter(ce=>{var he;return ce.status==="done"&&ce.images.length>0&&(((he=ce.brief)==null?void 0:he.tokens)??[]).some(me=>(me==null?void 0:me.t)==="character"&&(me.id===e||me.id===(k==null?void 0:k.id)))}).slice(-12).reverse(),[f,e,k]),[N,P]=r.useState((C==null?void 0:C.name)??""),[$,L]=r.useState((C==null?void 0:C.descriptor)??""),[W,B]=r.useState((C==null?void 0:C.identityNotes)??""),[te,X]=r.useState(null),[Z,G]=r.useState(!1),re=r.useRef(void 0);r.useEffect(()=>{P((C==null?void 0:C.name)??""),L((C==null?void 0:C.descriptor)??""),B((C==null?void 0:C.identityNotes)??"")},[C==null?void 0:C.id]);const de=ce=>{C&&(re.current&&clearTimeout(re.current),re.current=setTimeout(()=>{ke.updatePresenter(u.id,C.id,ce).then(he=>c(he.brand)).catch(he=>X(String(he.message??he)))},500))},ne=async()=>{if(C){G(!0);try{await ke.deletePresenter(u.id,C.id),h($c(u))}catch(ce){X(String(ce.message??ce)),G(!1)}}};if(!n&&!C)return o.jsx(mr,{children:o.jsx("main",{className:"sc-lookpage",id:"main",children:o.jsx("div",{className:"sc-tplrow","aria-hidden":!0})})});if(s&&!C)return o.jsx(mr,{children:o.jsxs("main",{className:"sc-lookpage",id:"main",children:[o.jsx("h1",{children:"Couldn't load this presenter"}),o.jsx("p",{className:"sc-lookpage-lede",children:"Something went wrong reaching the catalog."}),o.jsx("div",{className:"sc-lookpage-acts",children:o.jsx("button",{type:"button",className:"sc-btn sc-btn-primary",onClick:()=>l(),children:"Retry"})})]})});if(!S)return o.jsx(mr,{children:o.jsxs("main",{className:"sc-lookpage",id:"main",children:[o.jsx("h1",{children:"This presenter isn't here anymore"}),o.jsx("p",{className:"sc-lookpage-lede",children:"They may have been removed from the catalog, or the link is out of date."}),o.jsx("div",{className:"sc-lookpage-acts",children:o.jsx(Ut,{className:"sc-btn sc-btn-primary",to:$c(u),children:"Browse presenters"})})]})});const U=(C==null?void 0:C.shots)??[],D=b?p:p.slice(0,Dv),V=C?U:p.length?D:S.previewUrl?[S.previewUrl]:[],F=t.filter(ce=>ce.id!==S.id).slice(0,8),Q=Ad(C??S),ae=!!(Q.src&&!Q.crop),q=Q.src??p[0]??null;return o.jsx(mr,{children:o.jsxs("main",{className:"sc-lookpage sc-presenterpage",id:"main",children:[o.jsxs("div",{className:"sc-lookpage-crumb",children:[o.jsx(Ut,{to:$c(u),children:"Presenters"}),o.jsx("span",{children:"/"}),o.jsx("span",{children:C?"Yours":S.suitableStyles[0]??S.presentation})]}),q?o.jsx("div",{className:"sc-presenterpage-avatar","data-avatar":ae||void 0,children:o.jsx("img",{src:q,alt:S.name})}):null,C?o.jsx(xi,{className:"sc-ownededit-title",value:N,"aria-label":"Their name",onChange:ce=>{P(ce.target.value),de({name:ce.target.value})}}):o.jsx("h1",{children:S.name}),C?o.jsx(xi,{className:"sc-ownededit-lede",value:$,placeholder:"A short caption for the card","aria-label":"Caption",onChange:ce=>{L(ce.target.value),de({descriptor:ce.target.value})}}):o.jsx("p",{className:"sc-lookpage-lede",children:S.descriptor}),o.jsx("p",{className:"sc-lookpage-facts",children:[S.ageRange,S.hair,S.suitableCategories.join(", ")].filter(Boolean).join(" · ")}),o.jsx("div",{className:"sc-lookpage-acts",children:o.jsx("button",{type:"button",className:"sc-btn sc-btn-primary",onClick:()=>m(e),children:"Use in a shot"})}),te&&o.jsx("p",{className:"sc-assetform-err",children:te}),V.length>0?o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"sc-lookpage-refs",children:V.map((ce,he)=>o.jsxs("div",{className:"sc-ownedref","data-engine":C&&he<2?"":void 0,children:[o.jsx(F1,{src:ce}),C&&he<2&&o.jsx("span",{className:"sc-ownedref-tag",children:"Used in shots"})]},ce))}),!C&&p.length>Dv&&o.jsx("button",{type:"button",className:"sc-lookpage-expand",onClick:()=>x(b?null:"1"),children:b?"Enough, close it":"See the whole set"})]}):o.jsx(k7,{}),C&&o.jsxs("div",{className:"sc-ownedbits",children:[C.sourceRefs.length>0&&o.jsxs("section",{children:[o.jsx("p",{className:"sc-bandhead",children:"Your photos"}),o.jsx("p",{className:"sc-ownedbits-note",children:"What this presenter was built from. Kept as they arrived, and never replaced by anything generated."}),o.jsx("div",{className:"sc-lookpage-refs",children:C.sourceRefs.map(ce=>o.jsx(F1,{src:ce},ce))})]}),o.jsxs("section",{children:[o.jsx("p",{className:"sc-bandhead",children:"What must stay the same"}),o.jsx("p",{className:"sc-ownedbits-note",children:"Sent with every shot they appear in."}),o.jsx(pp,{value:W,rows:3,placeholder:"For example: the wide-set eyes and the small scar above the left brow must survive every generation.",onChange:ce=>{B(ce.target.value),de({identityNotes:ce.target.value})}}),C.negativeConstraints.length>0&&o.jsx("ul",{className:"sc-ownedbits-list",children:C.negativeConstraints.map(ce=>o.jsx("li",{children:ce},ce))})]}),o.jsx("div",{className:"sc-lookpage-acts",children:o.jsx(Cs,{label:"Delete presenter",title:`Delete ${C.name}?`,body:"Shots already made with them keep their images and their recipe. Only future shots lose them.",busy:Z,onConfirm:()=>void ne()})})]}),M.length>0&&o.jsx(Qo,{label:`Shots featuring ${S.name}`,children:M.map(ce=>o.jsx(e8,{node:ce,to:gd(u,null,ce.id)},ce.id))}),F.length>0&&o.jsx(Qo,{label:"Other presenters",children:F.map(ce=>o.jsx(D1,{presenter:ce,variant:"navigate",size:"slider",onOpen:he=>h(Ka(u,he)),href:Ka(u,ce.id)},ce.id))})]})})}function A7(){const{brand:e}=Tt(),t=vn(),n=hr(e);return r.useCallback(s=>{t(`${n}?product=${encodeURIComponent(s)}&compose=1`)},[n,t])}function N7({product:e,variant:t,onOpen:n,onUse:s,href:l,selected:c,onToggle:u,size:f="grid"}){var p,v;const h=Ai(e.category),m=h&&e.variant?`${h} · ${e.variant}`:h??e.variant??"";return o.jsx(Pu,{id:e.id,previewUrl:Un((v=(p=e.shots)==null?void 0:p[0])==null?void 0:v.file),title:Ja(e,"tooltip"),primary:Ja(e,"card"),secondary:m,useLabel:"Use in a shot",variant:t,onOpen:n,onUse:s,href:l,selected:c,onToggle:u,size:f})}function dZ(e){return o.jsx(Rd,{...e})}function M7({product:e,variant:t,onOpen:n,onUse:s,href:l,selected:c,onToggle:u,size:f="grid"}){const h=Ai(e.category)??e.category;return o.jsx(Pu,{id:e.id,previewUrl:e.previewUrl,title:`${Ja(e,"tooltip")} · ${h}`,primary:Ja(e,"card"),secondary:h,useLabel:"Use in a shot",variant:t,onOpen:n,onUse:s,href:l,selected:c,onToggle:u,size:f})}const fZ=8;function hZ(){const{brand:e,products:t,productsLoaded:n}=Tt(),{demoProducts:s}=an(),l=n&&t.length===0,c=vn(),u=A7(),f=kl(),{q:h,setQ:m,facets:p,setFacet:v,clearSearch:y,clear:x}=Tu(["category"]),b=p.category,[C,S]=Qa(fr.wallDensity,al),A=Al(C),E=ae=>S(ae),k=kd(A),M=Nu(A),N=r.useMemo(()=>t.map(ae=>({product:ae,category:$p(ae),own:!0})),[t]),P=r.useMemo(()=>s.map(ae=>({product:ae,category:ae.category,own:!1})),[s]),$=r.useMemo(()=>[...N,...P],[N,P]),L=r.useMemo(()=>{const ae=new Map;for(const{category:q}of $)q&&ae.set(q,(ae.get(q)??0)+1);return ae},[$]),W=r.useMemo(()=>eu.filter(ae=>L.has(ae.key)),[L]),B=l7(W.length),te=ae=>c(sa(e,ae)),X=r.useCallback(ae=>ae.filter(({category:q})=>!b||q===b).filter(({product:q,category:ge})=>Ra([Op(q),Ai(ge)].filter(Boolean).join(" "),h)).map(({product:q})=>q),[b,h]),Z=r.useMemo(()=>X(N),[X,N]),G=r.useMemo(()=>X(P),[X,P]),{visible:re,remaining:de,showMore:ne}=Jp(Z,`${b??""}|${h}`),U={key:"category",label:"Category",everyLabel:"Every product",everyCount:$.length,selected:b,onSelect:ae=>v("category",ae),options:W.map(ae=>({value:ae.key,label:ae.label,count:L.get(ae.key)??0}))},D=o.jsxs("button",{type:"button",className:"sc-btn sc-btn-primary",onClick:()=>f("product"),children:[o.jsx(Wn,{size:12})," Add product"]}),V=l,F=t.length>0,Q=o.jsx(Pd,{title:"Products",filters:o.jsx(Ld,{mode:B,group:U}),density:o.jsx(jd,{value:A,onChange:E}),search:$.length>=fZ&&o.jsx(Lu,{value:h,onChange:m,noun:"products",total:$.length}),action:V?void 0:D});return o.jsx(mr,{children:o.jsxs("main",{className:"sc-looks sc-products",id:"main","data-hero":V||void 0,children:[!V&&Q,!n&&o.jsx("div",{className:"sc-masonry","data-density":!0,"data-density-size":M,style:k,"aria-hidden":!0,children:o.jsx(dZ,{size:"grid",count:8})}),F&&re.length>0&&o.jsxs("section",{className:"sc-owned",children:[o.jsx("div",{className:"sc-sec-head",children:o.jsx("h2",{className:"sc-sec-title",children:"Your products"})}),o.jsx("div",{className:"sc-masonry","data-wall":!0,"data-density":!0,"data-density-size":M,style:k,children:re.map(ae=>o.jsx(N7,{product:ae,variant:"use",size:"grid",onOpen:te,href:sa(e,ae.id),onUse:u},ae.id))}),de>0&&o.jsx("div",{className:"sc-lib-more",children:o.jsxs("button",{type:"button",className:"sc-btn sc-btn-ghost",onClick:ne,children:["Show ",Math.min(de,60)," more"]})})]}),V&&o.jsx(ao,{shape:"cold",title:o.jsxs(o.Fragment,{children:["Bring in a ",o.jsx("em",{children:"product"})]}),body:"Upload a few clean shots, or import your store, and it stays exact in every image you make.",action:D}),F&&re.length>0&&G.length>0&&o.jsx("div",{className:"sc-sec-head sc-owned-divider",children:o.jsx("h2",{className:"sc-sec-title",children:"Scenri products"})}),V&&P.length>0&&o.jsxs(o.Fragment,{children:[o.jsx(Qp,{label:"Or borrow one of ours"}),Q]}),G.length>0&&o.jsx("div",{className:"sc-masonry","data-wall":!0,"data-density":!0,"data-density-size":M,style:k,children:G.map(ae=>o.jsx(M7,{product:ae,variant:"use",size:"grid",onUse:u,onOpen:te,href:sa(e,ae.id)},ae.id))}),n&&Z.length===0&&G.length===0&&o.jsx(Td,{noun:"products",q:h,facet:b?Ai(b):null,onClearSearch:y,onClearAll:x})]})})}function mZ({value:e,onChange:t}){const n=Ai(e)??"Other",s=e&&eu.some(l=>l.key===e)?e:"other";return o.jsxs(co,{children:[o.jsx(uo,{children:o.jsxs("button",{type:"button",className:"sc-btn sc-btn-ghost sc-catpick","aria-label":`Category: ${n}`,children:[n,o.jsx(ki,{size:11,weight:"bold"})]})}),o.jsx(fo,{align:"center",sideOffset:8,children:o.jsx(A1,{value:s,children:eu.map(l=>o.jsx(fi,{value:l.key,onSelect:()=>t(l.key),children:l.label},l.key))})})]})}function pZ(e){const t=r.useRef(null),n=r.useRef(null);r.useLayoutEffect(()=>{const l=t.current,c=n.current;if(!l||!c)return;let u=0;const f=()=>{const p=c.scrollWidth-c.clientWidth;if(p<=1){delete l.dataset.overflowLeft,delete l.dataset.overflowRight;return}c.scrollLeft>2?l.dataset.overflowLeft="":delete l.dataset.overflowLeft,c.scrollLeft<p-2?l.dataset.overflowRight="":delete l.dataset.overflowRight},h=()=>{u||(u=requestAnimationFrame(()=>{u=0,f()}))};f();const m=new ResizeObserver(()=>f());m.observe(c);for(const p of c.children)m.observe(p);return c.addEventListener("scroll",h,{passive:!0}),()=>{u&&cancelAnimationFrame(u),m.disconnect(),c.removeEventListener("scroll",h)}},[e]);const s=r.useCallback(l=>{const c=n.current;if(!(c!=null&&c.firstElementChild))return;const u=c.firstElementChild.getBoundingClientRect().width,f=Number.parseFloat(getComputedStyle(c).columnGap)||0,h=window.matchMedia("(prefers-reduced-motion: reduce)").matches;c.scrollBy({left:l*(u+f),behavior:h?"auto":"smooth"})},[]);return{shellRef:t,railRef:n,page:s}}function gZ({refs:e,cap:t,note:n,addLabel:s,busy:l,onAdd:c,onPromote:u,onRemove:f}){const[h,m]=r.useState(null),p=r.useMemo(()=>e.find(M=>M.file===h)??e[0],[e,h]);r.useEffect(()=>{var M;e.length&&!e.some(N=>N.file===h)&&m(((M=e[0])==null?void 0:M.file)??null)},[e,h]);const v=p?e.findIndex(M=>M.file===p.file):-1,y=!!u&&v>0,x=!!f&&!!p&&e.length>1,b=!!(s&&c&&e.length>0),C=e.length>1||b,{shellRef:S,railRef:A,page:E}=pZ(e.length),k=M=>{const N=M==null?void 0:M[0];N&&(c==null||c(N))};return o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"sc-refstage",children:p?o.jsx("div",{className:"sc-refstage-frame",children:o.jsx("img",{src:p.url,alt:""})}):c?o.jsxs("label",{className:"sc-refstage-blank sc-refstage-drop","data-busy":l||void 0,onDragOver:M=>{M.preventDefault(),M.dataTransfer.dropEffect="copy"},onDrop:M=>{M.preventDefault(),k(M.dataTransfer.files)},children:[o.jsx("input",{type:"file",accept:"image/*",hidden:!0,disabled:l,onChange:M=>{k(M.target.files),M.target.value=""}}),l?o.jsx(qt,{size:"2"}):o.jsx(Wn,{size:22,weight:"bold"}),o.jsx("span",{children:"Add a reference"})]}):o.jsx("span",{className:"sc-refstage-blank",children:o.jsx(ha,{size:22})})}),C&&o.jsxs("div",{className:"sc-refrail-shell",ref:S,children:[o.jsxs("div",{className:"sc-refrail-track",children:[o.jsx("button",{type:"button",className:"sc-refrail-arrow prev","aria-label":"Previous references",onClick:()=>E(-1),children:o.jsx(Fi,{size:13,weight:"bold"})}),o.jsx("button",{type:"button",className:"sc-refrail-arrow next","aria-label":"Next references",onClick:()=>E(1),children:o.jsx(md,{size:13,weight:"bold"})}),o.jsx("div",{className:"sc-refrail",ref:A,children:e.map((M,N)=>o.jsx("button",{type:"button",className:"sc-refrail-item","data-on":(p==null?void 0:p.file)===M.file?"":void 0,"data-spare":N>=t?"":void 0,"aria-label":`Reference ${N+1}`,"aria-pressed":(p==null?void 0:p.file)===M.file,onClick:()=>m(M.file),children:o.jsx("img",{src:M.url,alt:"",loading:"lazy"})},M.file))})]}),b&&o.jsxs("label",{className:"sc-refrail-item sc-refrail-add","data-busy":l||void 0,children:[o.jsx("input",{type:"file",accept:"image/*",hidden:!0,disabled:l,onChange:M=>{k(M.target.files),M.target.value=""}}),l?o.jsx(qt,{size:"1"}):o.jsx(Wn,{size:16,weight:"bold"}),o.jsx("span",{className:"sc-vh",children:s})]})]}),(y||x)&&o.jsx("div",{className:"sc-refacts",children:o.jsxs("span",{className:"sc-refacts-pair",children:[y&&o.jsxs("button",{type:"button",className:"sc-refact sc-refact-lead",onClick:()=>u==null?void 0:u(p.file),children:[o.jsx(i$,{size:14,weight:"bold"}),"Use first"]}),x&&o.jsx("button",{type:"button",className:"sc-refact sc-refact-aside",onClick:()=>f==null?void 0:f(p.file),children:"Remove"})]})}),o.jsx("p",{className:"sc-lookpage-note",children:n})]})}const vZ=3;function yZ(e){const t=e,n=(t.brand??t.vendor??"").trim();return!n||e.name.toLowerCase().startsWith(n.toLowerCase())?null:n}function xZ(e){return e.replace(/<script[\s\S]*?<\/script>/gi,"").replace(/<style[\s\S]*?<\/style>/gi,"").replace(/<[^>]+>/g," ").replace(/ /g," ").replace(/&/g,"&").replace(/"/g,'"').replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">").replace(/\s+/g," ").trim()}function wZ(e,t){if(e.length<=t)return e;const n=e.slice(0,t+1).search(/[.!?](\s|$)/);if(n>40)return e.slice(0,n+1);const s=e.lastIndexOf(" ",t);return`${e.slice(0,s>40?s:t).trimEnd()}…`}function bZ({value:e,onChange:t}){const n=r.useRef(null),s=l=>{l&&(l.style.height="auto",l.style.height=`${l.scrollHeight}px`)};return r.useEffect(()=>s(n.current),[e]),o.jsx("textarea",{ref:n,className:"sc-lookpage-titleedit",rows:1,dir:"auto","aria-label":"Product name",value:e,onChange:l=>{s(l.currentTarget),t(l.target.value)},onKeyDown:l=>{l.key==="Enter"&&(l.preventDefault(),l.currentTarget.blur())}})}function EZ(){var me;const{productId:e=""}=ns(),{brand:t,products:n,nodes:s,refresh:l,refreshProducts:c}=Tt(),{demoProducts:u,demoProductsLoaded:f}=an(),h=vn(),m=A7(),{push:p}=rr(),[v,y]=r.useState(!1),[x,b]=r.useState(!1),[C,S]=r.useState(null),A=r.useRef(null),E=n.find(fe=>fe.id===e),k=r.useMemo(()=>E?void 0:u.find(fe=>fe.id===e),[E,u,e]);vd((me=E??k)==null?void 0:me.name);const[M,N]=r.useState([]);r.useEffect(()=>{if(!k){N([]);return}let fe=!0;return ke.demoProductFrames(k.id).then(ie=>{fe&&N(ie.frames)}).catch(()=>{fe&&N([])}),()=>{fe=!1}},[k==null?void 0:k.id]);const[P,$]=r.useState((E==null?void 0:E.name)??"");r.useEffect(()=>{$((E==null?void 0:E.name)??"")},[E==null?void 0:E.id]);const L=r.useMemo(()=>s.filter(fe=>{var ie;return fe.status==="done"&&fe.images.length>0&&(((ie=fe.brief)==null?void 0:ie.tokens)??[]).some(Ee=>(Ee==null?void 0:Ee.t)==="product"&&Ee.id===e)}).slice(-12).reverse(),[s,e]),W=((E==null?void 0:E.origin)??"manual")==="manual",B=fe=>{E&&(A.current&&clearTimeout(A.current),A.current=setTimeout(()=>{(W?ke.updateProduct(t.id,E.id,fe):ke.updateCatalogProduct(t.id,E.id,fe)).then(()=>c()).catch(Ee=>S(String(Ee.message??Ee)))},500))},te=async fe=>{y(!0),S(null);try{await fe,await c()}catch(ie){S(String(ie.message??ie))}finally{y(!1)}},X=async()=>{if(E){b(!0),S(null);try{E.origin==="catalog"||E.id.startsWith("cat-")?await ke.deleteCatalogProduct(t.id,E.id):await F$(t.id,E.id),await l(),h(h1(t),{replace:!0})}catch(fe){S(String(fe.message??fe)),b(!1)}}};if(!E&&!k&&!f)return o.jsx(mr,{children:o.jsxs("main",{className:"sc-lookpage sc-productpage",id:"main",children:[o.jsxs("div",{className:"sc-refskeleton","aria-hidden":!0,children:[o.jsx("span",{className:"sc-refskeleton-title"}),o.jsx("span",{className:"sc-refskeleton-stage"}),o.jsxs("span",{className:"sc-refskeleton-rail",children:[o.jsx("span",{}),o.jsx("span",{}),o.jsx("span",{})]})]}),o.jsx("p",{className:"sc-vh",role:"status",children:"Loading this product"})]})});if(!E&&!k)return o.jsx(mr,{children:o.jsxs("main",{className:"sc-lookpage",id:"main",children:[o.jsx("h1",{children:"This product isn't here anymore"}),o.jsx("p",{className:"sc-lookpage-lede",children:"It may have been removed, or the link is out of date."}),o.jsx("div",{className:"sc-lookpage-acts",children:o.jsx(Ut,{className:"sc-btn sc-btn-primary",to:h1(t),children:"Browse products"})})]})});const Z=k?"none":W?"full":"fields",G=E??k,re=(E==null?void 0:E.id)??k.id,de=E?$p(E):(k==null?void 0:k.category)??null,ne=yZ(G),U=fe=>{const ie=Un(fe.file);return ie?[{file:fe.file,url:ie,angle:fe.angle}]:[]},D=k?M.map(fe=>({file:fe.angle,url:fe.url,angle:fe.angle})):((E==null?void 0:E.shots)??[]).flatMap(U),V=fe=>{const ie=D.map(De=>De.file),Ee=ie.indexOf(fe)+1;te(ke.setProductShots(t.id,re,ie.filter(De=>De!==fe))).then(()=>p({kind:"success",title:"Reference removed",detail:`Reference ${Ee} of ${ie.length}`,action:{label:"Undo",onClick:()=>void te(ke.setProductShots(t.id,re,ie))}}))},F=k?"Our reference set. Yours replaces it.":D.length===0?W?"No reference yet.":"No reference yet. Images from your store are still arriving.":D.length===1?"One angle. A shot has to guess at every side it can't see.":D.length===2?"Two angles. A third pins the shape.":"The first three build every shot. Remove any that show a different colour or version.",Q=Z==="none"?null:"Add image",ae=E!=null&&E.descriptionHtml?wZ(xZ(E.descriptionHtml),200):"",q=(k==null?void 0:k.description)||ae||null,ge=k?[k.subcategory]:[E==null?void 0:E.variant,E==null?void 0:E.material,E==null?void 0:E.dimensions],ce=[Z==="none"?Ai(de):null,...ge].filter(Boolean),he=k?u.filter(fe=>fe.id!==re).slice(0,8):n.filter(fe=>fe.id!==re).slice(0,8);return o.jsx(mr,{children:o.jsxs("main",{className:"sc-lookpage sc-productpage",id:"main",children:[o.jsxs("div",{className:"sc-lookpage-crumb",children:[o.jsx(Ut,{to:h1(t),children:"Products"}),o.jsx("span",{children:"/"}),o.jsx("span",{children:k?"Scenri library":W?"Yours":"From your store"})]}),ne&&o.jsx("p",{className:"sc-lookpage-house",children:o.jsx("em",{className:"sc-accent",children:ne})}),Z==="full"?o.jsx(bZ,{value:P,onChange:fe=>{$(fe),B({name:fe})}}):o.jsx("h1",{dir:"auto",children:G.name}),q&&o.jsx("p",{className:"sc-lookpage-lede",children:q}),ce.length>0&&o.jsx("p",{className:"sc-lookpage-facts",children:ce.join(" · ")}),o.jsxs("div",{className:"sc-lookpage-acts",children:[Z!=="none"&&o.jsx(mZ,{value:de,onChange:fe=>B({category:fe})}),o.jsx("button",{type:"button",className:"sc-btn sc-btn-primary",onClick:()=>m(re),children:"Use in a shot"})]}),C&&o.jsx("p",{className:"sc-assetform-err",children:C}),o.jsx(gZ,{refs:D,cap:vZ,note:F,addLabel:Q,busy:v,onAdd:Z==="none"?void 0:fe=>void te(O$(t.id,re,fe)),onPromote:Z==="none"?void 0:fe=>void te(ke.setProductShots(t.id,re,[fe,...D.map(ie=>ie.file).filter(ie=>ie!==fe)])),onRemove:Z==="none"?void 0:V}),L.length>0&&o.jsx(Qo,{label:`Shots featuring ${G.name}`,children:L.map(fe=>o.jsx(e8,{node:fe,to:gd(t,null,fe.id)},fe.id))}),he.length>0&&o.jsx(Qo,{label:k?"Other products in the library":"Other products",children:he.map(fe=>k?o.jsx(M7,{product:fe,variant:"navigate",size:"slider",onOpen:ie=>h(sa(t,ie)),href:sa(t,fe.id)},fe.id):o.jsx(N7,{product:fe,variant:"navigate",size:"slider",onOpen:ie=>h(sa(t,ie)),href:sa(t,fe.id)},fe.id))}),E&&o.jsx("div",{className:"sc-ownedbits",children:o.jsx("div",{className:"sc-lookpage-acts",children:o.jsx(Cs,{label:"Delete product",title:`Delete ${E.name}?`,body:"Shots already made with it keep their images and their recipe. Only future shots lose it.",busy:x,onConfirm:()=>void X()})})})]})})}function CZ(e,t){const n=new Map,s=[];for(const l of t){n.set(l.id,l.status);const c=e.get(l.id);if(c!==l.status){if(c===void 0){l.status==="running"&&s.push("Generating shot.");continue}l.status==="done"?s.push(`Shot ready, ${l.images.length} image${l.images.length===1?"":"s"}.`):l.status==="error"?s.push(`Shot failed${l.error?`: ${l.error}`:"."}`):l.status==="cancelled"&&s.push("Shot cancelled.")}}return{messages:s,next:n}}const R7=[{id:"newest",label:"Newest first"},{id:"oldest",label:"Oldest first"},{id:"cost",label:"Highest cost"},{id:"keepers",label:"Keepers first"}];function SZ(e){return R7.some(t=>t.id===e)}const P7=[{id:"all",label:"All"},{id:"keepers",label:"Keepers"},{id:"archived",label:"Archived"}];function jZ(e){return P7.some(t=>t.id===e)}function kZ(e,t,n){return n==="archived"?t:n==="keepers"?e.filter(s=>s.kept):e}function AZ(e,t,n,s){const l=tm(e,n,s);return{all:l.length,keepers:l.reduce((c,u)=>c+(u.kept?1:0),0),archived:tm(t,n,s).length}}const pi=(e,t)=>t.createdAt.localeCompare(e.createdAt)||t.id.localeCompare(e.id);function NZ(e,t,n){const s=[e.prompt],l=e.brief;if(l){const c=l.tokens??[];let u=!1;for(const f of c)switch(f.t){case"product":Ks(s,t.product(f.id));break;case"character":Ks(s,t.person(f.id));break;case"template":u=!0,Ks(s,t.scene(f.id));break;case"color":Ks(s,f.name),Ks(s,f.hex);break}l.templateId&&!u&&Ks(s,t.scene(l.templateId));for(const f of Object.values(l.templateFields??{}))Ks(s,f)}return Ks(s,n),s.join(`
|