PageSourceSearch

https://4lines.ai/assets/chunks/chunk-DW7kIkR7.js

js 4lines.ai collected 2026-10-05 11:49:54 UTC 55,241 bytes, 1 lines download raw bytes

1import{a as e,n as t,r}from"./chunk-DatIzjBI.js";import{t as i}from"./chunk-3gXSEo4U.js";import{t as s}from"./chunk-BTia2Bxe.js";import{_ as o,b as l,f as n,g as h,h as a,l as c,m as x,p as d,r as k,t as y,v as b,y as j}from"./chunk-CaF3DKJG2.js";import{G as f}from"./chunk-DQzuE58c2.js";import{h as p,o as m,t as g,u as W}from"./chunk-C19kY8W9.js";import{C as u,E as w,S as $,T as M,_ as A,f as L,n as _,t as v,u as K,w as C}from"./chunk-BCtRVt47.js";function S(e){const t=({black:"#000000",white:"#ffffff"}[e]??e).replace(/^#([\da-f])([\da-f])([\da-f])$/i,"#$1$1$2$2$3$3");return/^#[\da-f]{6}$/i.test(t)?[1,3,5].map(e=>parseInt(t.slice(e,e+2),16)):null}function I(e,t,r="#ffffff"){const i=S(e),s=S(r);return i&&s?`#${i.map((e,r)=>Math.round(e*t+s[r]*(1-t)).toString(16).padStart(2,"0")).join("")}`:e}function P(e,t,r,i=1){return D.Children.map(e,e=>{if(!D.isValidElement(e))return e;const s=e.props,o=i*("number"==typeof s.opacity?s.opacity:1),l="string"==typeof s.stroke?s.stroke:t;if(1!==o&&("none"!==l&&!S(l)||!S(r)||"string"==typeof s.fill&&"none"!==s.fill&&!S(s.fill)))return D.cloneElement(e,{opacity:o,stroke:l});const n={};return void 0!==s.opacity&&(n.opacity=1),1!==o&&(n.stroke="none"===l?"none":I(l,o,r),"string"==typeof s.fill&&"none"!==s.fill&&(n.fill=I(s.fill,o,r))),s.children&&(n.children=P(s.children,l,r,o)),e.type===D.Fragment?D.cloneElement(e,{children:n.children}):D.cloneElement(e,n)})}var D,H,T=t(()=>{D=e(i(),1)});function q(e){return Math.max(2,Math.round(e/H))}var N,B,O,R,z,E,F,Q=t(()=>{f(),H=30}),Z=r({BLOCK_DIMENSIONS:()=>E,CLASSIC_SINK_PROPORTIONS:()=>z,DOUBLE_SINK_THRESHOLD_M:()=>R,MINIMAL_SINK_PROPORTIONS:()=>O,MINIMAL_WC_PROPORTIONS:()=>B,RenderBlockSVG:()=>F,calculateAutoChairs:()=>y,getClassicSinkTapRadius:()=>V,resolveChairSides:()=>c});function V(e){return Math.min(3,Math.max(1.2,.07*e))}var Y=t(()=>{e(i(),1),k(),T(),f(),A(),w(),d(),p(),h(),Q(),l(),N=e(s(),1),B={cisternX:0,cisternWidth:1,cisternHeight:16/60,panX:.1,panWidth:.8,panTop:16/60,panBottom:1},O={basinX:.12,basinY:.26,basinWidth:.76,basinHeight:.61,basinCornerRadius:.08,doubleSideMargin:.08,doubleGap:.06,tapWidthToBasin:.2},R=1.1,z={basinCenterY:.62,basinRadiusY:.26,tapCenterY:.14},E={wc:{w:20,h:35,label:"Inodoro",labelKey:"blockLib.wc",isAdaptive:!1,baseAnchor:"back-center"},sink:{w:30,h:25,label:"Lavabo",labelKey:"blockLib.sink",isAdaptive:!0,baseAnchor:"back-center"},chair:{w:25,h:25,label:"Silla",labelKey:"blockLib.chair",isAdaptive:!1,baseAnchor:"center"},bed_single:{w:45,h:95,label:"Cama Simple",labelKey:"blockLib.bed_single",isAdaptive:!0,baseAnchor:"back-center"},bed_double:{w:75,h:95,label:"Cama Doble",labelKey:"blockLib.bed_double",isAdaptive:!0,baseAnchor:"back-center"},bed:{w:67.5,h:95,label:"Cama matrimonio",labelKey:"blockLib.bed",isAdaptive:!0,baseAnchor:"back-center"},bed_queen:{w:75,h:100,label:"Cama queen 150",labelKey:"blockLib.bed_queen",isAdaptive:!0,baseAnchor:"back-center"},bed_king:{w:90,h:100,label:"Cama king 180",labelKey:"blockLib.bed_king",isAdaptive:!0,baseAnchor:"back-center"},sofa:{w:120,h:45,label:"Sofá 3 plazas",labelKey:"blockLib.sofa",isAdaptive:!0,baseAnchor:"back-center"},sofa_l:{w:130,h:80,label:"Sofá en L",labelKey:"blockLib.sofa_l",isAdaptive:!0,baseAnchor:"back-center"},sofa_2:{w:80,h:45,label:"Sofá 2 plazas",labelKey:"blockLib.sofa_2",isAdaptive:!0,baseAnchor:"back-center"},armchair:{w:45,h:45,label:"Butaca",labelKey:"blockLib.armchair",isAdaptive:!1,baseAnchor:"back-center"},table_dining:{w:80,h:45,label:"Mesa Comedor",labelKey:"blockLib.table_dining",isAdaptive:!0,baseAnchor:"center"},table_round:{w:60,h:60,label:"Mesa redonda",labelKey:"blockLib.table_round",isAdaptive:!0,baseAnchor:"center"},table_coffee:{w:50,h:30,label:"Mesa centro",labelKey:"blockLib.table_coffee",isAdaptive:!0,baseAnchor:"center"},desk:{w:70,h:35,label:"Escritorio",labelKey:"blockLib.desk",isAdaptive:!0,baseAnchor:"back-center"},chair_office:{w:30,h:30,label:"Silla oficina",labelKey:"blockLib.chair_office",isAdaptive:!1,baseAnchor:"center"},shelf:{w:50,h:15,label:"Estantería",labelKey:"blockLib.shelf",isAdaptive:!0,fixedDepth:15,baseAnchor:"back-center"},drawers:{w:40,h:22.5,label:"Cajonera",labelKey:"blockLib.drawers",isAdaptive:!0,fixedDepth:22.5,baseAnchor:"back-center"}
1,bedside_table:{w:22.5,h:20,label:"Mesita de noche",labelKey:"blockLib.bedside_table",isAdaptive:!1,baseAnchor:"back-center"},kitchen_sink:{w:30,h:25,label:"Fregadero",labelKey:"blockLib.kitchen_sink",isAdaptive:!1,baseAnchor:"back-center"},fridge:{w:35,h:35,label:"Nevera",labelKey:"blockLib.fridge",isAdaptive:!1,baseAnchor:"back-center"},kitchen_column:{w:30,h:30,label:"Columna de cocina",labelKey:"blockLib.kitchen_column",isAdaptive:!0,baseAnchor:"back-center"},bathtub:{w:85,h:37.5,label:"Bañera",labelKey:"blockLib.bathtub",isAdaptive:!0,baseAnchor:"back-center"},wardrobe:{w:60,h:30,label:"Armario",labelKey:"blockLib.wardrobe",isAdaptive:!0,fixedDepth:30,baseAnchor:"back-center"},kitchen_counter:{w:150,h:30,label:"Cocina",labelKey:"blockLib.kitchen_counter",isAdaptive:!0,fixedDepth:30,baseAnchor:"back-center"},shower:{w:45,h:45,label:"Ducha",labelKey:"blockLib.shower",isAdaptive:!0,baseAnchor:"back-center"},custom:{w:50,h:50,label:"Personalizado",labelKey:"blockLib.custom",isAdaptive:!0},bidet:{w:18,h:.55*50,label:"Bidé",labelKey:"blockLib.bidet",isAdaptive:!1,baseAnchor:"back-center"},crib:{w:65,h:35,label:"Cuna",labelKey:"blockLib.crib",isAdaptive:!0,baseAnchor:"back-center"},bunk_bed:{w:45,h:95,label:"Litera",labelKey:"blockLib.bunk_bed",isAdaptive:!0,baseAnchor:"back-center"},side_table:{w:25,h:25,label:"Mesa auxiliar",labelKey:"blockLib.side_table",isAdaptive:!0,baseAnchor:"center"},bar_stool:{w:20,h:20,label:"Taburete",labelKey:"blockLib.bar_stool",isAdaptive:!1,baseAnchor:"center"},sideboard:{w:90,h:22.5,label:"Aparador",labelKey:"blockLib.sideboard",isAdaptive:!0,fixedDepth:22.5,baseAnchor:"back-center"},shoe_rack:{w:40,h:15,label:"Zapatero",labelKey:"blockLib.shoe_rack",isAdaptive:!0,fixedDepth:15,baseAnchor:"back-center"},tv_unit:{w:80,h:20,label:"Mueble TV",labelKey:"blockLib.tv_unit",isAdaptive:!0,fixedDepth:20,baseAnchor:"back-center"},dishwasher:{w:30,h:30,label:"Lavavajillas",labelKey:"blockLib.dishwasher",isAdaptive:!1,baseAnchor:"back-center"},microwave:{w:25,h:17.5,label:"Microondas",labelKey:"blockLib.microwave",isAdaptive:!1,baseAnchor:"back-center"},washing_machine:{w:30,h:30,label:"Lavadora",labelKey:"blockLib.washing_machine",isAdaptive:!1,baseAnchor:"back-center"},dryer:{w:30,h:30,label:"Secadora",labelKey:"blockLib.dryer",isAdaptive:!1,baseAnchor:"back-center"},fireplace:{w:60,h:20,label:"Chimenea",labelKey:"blockLib.fireplace",isAdaptive:!0,baseAnchor:"back-center"},radiator:{w:50,h:6,label:"Radiador",labelKey:"blockLib.radiator",isAdaptive:!0,fixedDepth:6,baseAnchor:"back-center"},elevator:{w:50*g.w,h:50*g.h,label:"Ascensor",labelKey:"blockLib.elevator",isAdaptive:!0,baseAnchor:"back-center"},tree:{w:75,h:75,label:"Árbol",labelKey:"blockLib.tree",isAdaptive:!0,baseAnchor:"center"},tree_large:{w:200,h:200,label:"Árbol grande",labelKey:"blockLib.tree_large",isAdaptive:!0,baseAnchor:"center"},conifer:{w:90,h:90,label:"Conífera",labelKey:"blockLib.conifer",isAdaptive:!0,baseAnchor:"center"},palm_tree:{w:125,h:125,label:"Palmera",labelKey:"blockLib.palm_tree",isAdaptive:!0,baseAnchor:"center"},bush:{w:40,h:40,label:"Arbusto",labelKey:"blockLib.bush",isAdaptive:!0,baseAnchor:"center"},hedge:{w:100,h:25,label:"Seto",labelKey:"blockLib.hedge",isAdaptive:!0,baseAnchor:"center"},car:{w:225,h:90,label:"Coche",labelKey:"blockLib.car",isAdaptive:!0,baseAnchor:"center"},motorbike:{w:100,h:40,label:"Moto",labelKey:"blockLib.motorbike",isAdaptive:!1,baseAnchor:"center"},truck:{w:350,h:120,label:"Camión",labelKey:"blockLib.truck",isAdaptive:!0,baseAnchor:"center"},north_arrow:{w:40,h:40,label:"Norte",labelKey:"blockLib.north_arrow",isAdaptive:!0,baseAnchor:"center"},north_arrow_simple:{w:20,h:20,label:"Flecha + N",labelKey:"blockLib.north_arrow_simple",isAdaptive:!0,baseAnchor:"center"},north_arrow_quadrant:{w:40,h:40,label:"Cuadrantes",labelKey:"blockLib.north_arrow_quadrant",isAdaptive:!0,baseAnchor:"center"},north_arrow_minimal:{w:25,h:25,label:"Media flecha",labelKey:"blockLib.north_arrow_minimal",isAdaptive:!0,baseAnchor:"center"},pillar:{w:15,h:15,label:"Pilar",labelKey:"blockLib.pillar",isAdaptive:!1,baseAnchor:"center"},pillar_round:{w:15,h:15,label:"Pilar redondo",labelKey:"blockLib.pillar_round",isAdaptive:!1,baseAnchor:"center"},pillar_h:{w:12,h:12,label:"Pilar perfil H",labelKey:"blockLib.pillar_h",isAdaptive:!1,baseAnchor:"center"},pillar_i:{w:5.3,h:12,label:"Pilar perfil I",labelKey:"blockLib.pillar_i",isAdaptive:!1,baseAnchor:"center"},person:{w:25,h:25,label:"Persona",labelKey:"blockLib.person",isAdaptive:!1,baseAnchor:"center"},pool:{w:300,h:150,label:"Piscina",labelKey:"blockLib.pool",isAdaptive:!0,baseAnchor:"center"},banco:{w:75,h:20,label:"Banco",labelKey:"blockLib.banco",isAdaptive:!0,baseAnchor:"center"},tumbona:{w:32.5,h:95,label:"Tumbona",labelKey:"blockLib.tumbona",isAdaptive:!0,baseAnchor:"center"},sombrilla:{w:125,h:125,label:"Sombrilla",labelKey:"blockLib.sombrilla",isAdaptive:!0,baseAnchor:"center"},bbq:{w:45,h:30,label:"Barbacoa",labelKey:"blockLib.bbq",isAdaptive:!0,baseAnchor:"center"},farola:{w:20,h:20,label:"Farola",labelKey:"blockLib.farola",isAdaptive:!1,baseAnchor:"center"},aplique_exterior:{w:15,h:6,label:"Aplique exterior",labelKey:"blockLib.aplique_exterior",isAdaptive:!1,baseAnchor:"back-center"},jardinera:{w:40,h:20,label:"Jardinera",labelKey:"blockLib.jardinera",isAdaptive:!0,baseAnchor:"center"}};for(const e of a){const t=E[e.dimensionsFrom];if(!t)throw new Error(`Furniture preset ${e.id} has no dimension source ${e.dimensionsFrom}`);E[e.id]={...t,w:null!=e.defaultWidthM?50*e.defaultWidthM:t.w,h:null!=e.defaultDepthM?50*e.defaultDepthM:t.h,label:e.label,labelKey:e.labelKey}}F=({type:e,width:t,height:r,stroke:i,fill:s,strokeWidth:l=1.5,paperPens:h,customPath:a,customSourceW
1idth:c,customSourceHeight:d,customLines:k,customIsAdaptive:y,customStrokeWeight:f="normal",showAdaptiveIndicator:p=!1,viewportScale:g=1,flipX:w=!1,subType:A,furnitureStyle:S,kitchenFeatures:I,kitchenModules:D,kitchenArms:H,kitchenColumnKind:T,poolLadders:Q,poolLadderSize:Z,chairConfig:Y,tableChairs:X,selectedTableChairId:G,pocheFill:U,elevatorView:J})=>{const ee=(e,t)=>h?Math.min(l,Math.max(h.minPx,t)):Math.max(e,t),te=x(e),re=te.type,ie=A??te.subType,se=S??te.furnitureStyle,oe="custom"===e?!1!==y:!0===E[e]?.isAdaptive,le=()=>n({width:t,height:r,chairConfig:Y,tableChairs:X}).map((e,t)=>(0,N.jsx)("g",{"data-chair":e.side,"data-chair-index":t,"data-table-chair-id":e.id,transform:`translate(${e.x+e.size/2}, ${e.y+e.size/2}) rotate(${e.rotation}) translate(${-e.size/2}, ${-e.size/2})`,children:(0,N.jsx)(F,{type:"chair",width:e.size,height:e.size,stroke:G===e.id?"#ea580c":i,fill:s,strokeWidth:l,paperPens:h})},e.id)),ne=()=>{if("custom"===re&&(a||(k?.length??0)>0)){const e=Math.max(.001,c??t),s=Math.max(.001,d??r),o=t/e,n=r/s,h=l*("fine"===f?.65:"bold"===f?1.45:1);return(0,N.jsxs)("g",{children:[(0,N.jsx)("rect",{x:0,y:0,width:t,height:r,fill:"transparent",stroke:"none"}),(0,N.jsxs)("g",{transform:`scale(${o} ${n})`,children:[a&&(0,N.jsx)("path",{d:a,stroke:i,fill:"none",strokeWidth:h,vectorEffect:"non-scaling-stroke",strokeLinecap:"round",strokeLinejoin:"round"}),(k??[]).map(e=>(0,N.jsx)("line",{x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2,stroke:i,fill:"none",strokeWidth:h,vectorEffect:"non-scaling-stroke",strokeLinecap:"round"},e.id))]})]})}switch(re){case"wc":if("modern"===se){const e=50*b,r=50*o,n=t=>r+e*t,h=50*j,a=n(.13);return(0,N.jsxs)("g",{children:[(0,N.jsx)("path",{d:`M ${.08*t} ${a} C ${.03*t} ${n(.38)} ${.04*t} ${n(.69)} ${.18*t} ${n(.84)} C ${.32*t} ${n(.98)} ${.68*t} ${n(.98)} ${.82*t} ${n(.84)} C ${.96*t} ${n(.69)} ${.97*t} ${n(.38)} ${.92*t} ${a} Z`,stroke:i,fill:s,strokeWidth:l,strokeLinejoin:"round"}),(0,N.jsx)("rect",{x:0,y:0,width:t,height:h,rx:Math.min(4,.38*h),stroke:i,fill:s,strokeWidth:l}),(0,N.jsx)("path",{d:`M ${.3*t} ${n(.34)} C ${.18*t} ${n(.46)} ${.19*t} ${n(.69)} ${.31*t} ${n(.81)} C ${.4*t} ${n(.9)} ${.6*t} ${n(.9)} ${.69*t} ${n(.81)} C ${.81*t} ${n(.69)} ${.82*t} ${n(.46)} ${.7*t} ${n(.34)} C ${.6*t} ${n(.24)} ${.4*t} ${n(.24)} ${.3*t} ${n(.34)} Z`,stroke:i,fill:"none",strokeWidth:ee(.45,l/2),strokeLinejoin:"round"})]})}if("minimal"===se){const e=B,o=t*e.panX,n=o+t*e.panWidth,h=r*e.panTop,a=r*e.panBottom,c=Math.min(.04*t,.02*r);return(0,N.jsxs)("g",{children:[(0,N.jsx)("path",{d:`M ${o} ${h} H ${n} V ${a-c} Q ${n} ${a} ${n-c} ${a} H ${o+c} Q ${o} ${a} ${o} ${a-c} V ${h} Z`,stroke:i,fill:s,strokeWidth:l,strokeLinejoin:"round"}),(0,N.jsx)("rect",{x:t*e.cisternX,y:0,width:t*e.cisternWidth,height:r*e.cisternHeight,stroke:i,fill:s,strokeWidth:l})]})}return(0,N.jsxs)("g",{children:[(0,N.jsx)("rect",{x:0,y:0,width:t,height:.3*r,stroke:i,fill:s,strokeWidth:l,rx:2}),(0,N.jsx)("ellipse",{cx:t/2,cy:.65*r,rx:.4*t,ry:.35*r,stroke:i,fill:s,strokeWidth:l})]});case"sink":{const e=t>50*R;if("modern"===se){const o=e?[.27,.73]:[.5],n=e?.38*t:.62*t;return(0,N.jsxs)("g",{children:[(0,N.jsx)("path",{d:`M 0 0 H ${t} V ${.62*r} Q ${.88*t} ${r} ${t/2} ${r} Q ${.12*t} ${r} 0 ${.62*r} Z`,stroke:i,fill:s,strokeWidth:l,strokeLinejoin:"round"}),o.map((e,s)=>(0,N.jsx)("rect",{x:t*e-n/2,y:.24*r,width:n,height:.54*r,rx:Math.min(6,.16*r),stroke:i,fill:"none",strokeWidth:ee(.45,l/2)},s)),o.map((e,s)=>(0,N.jsx)("circle",{cx:t*e,cy:.1*r,r:Math.max(1.2,.035*r),stroke:i,fill:"none",strokeWidth:ee(.4,l/2)},`tap-${s}`))]})}if("minimal"===se){const o=O,n=t*o.doubleGap,h=t*o.doubleSideMargin,a=e?(t-2*h-n)/2:t*o.basinWidth,c=e?[h,h+a+n]:[t*o.basinX];return(0,N.jsxs)("g",{children:[(0,N.jsx)("rect",{x:0,y:0,width:t,height:r,rx:.18*r,stroke:i,fill:s,strokeWidth:l}),c.map((e,t)=>(0,N.jsx)("rect",{x:e,y:r*o.basinY,width:a,height:r*o.basinHeight,rx:Math.min(3,r*o.basinCornerRadius),stroke:i,fill:"none",strokeWidth:ee(.45,l/2)},`basin-${t}`)),c.map((e,t)=>{const s=e+a/2,n=a*o.tapWidthToBasin/2;return(0,N.jsx)("line",{x1:s-n,y1:.13*r,x2:s+n,y2:.13*r,stroke:i,strokeWidth:ee(.45,l/2)},`tap-${t}`)})]})}const o=r*z.basinCenterY,n=r*z.basinRadiusY,h=r*z.tapCenterY,a=V(r);if(e){const e=(t-15)/2;return(0,N.jsxs)("g",{children:[(0,N.jsx)("rect",{x:0,y:0,width:t,height:r,rx:8,stroke:i,fill:s,strokeWidth:l}),(0,N.jsxs)("g",{transform:"translate(5, 0)",children:[(0,N.jsx)("ellipse",{cx:e/2,cy:o,rx:.35*e,ry:n,stroke:i,fill:"none",strokeWidth:l}),(0,N.jsx)("circle",{cx:e/2,cy:h,r:a,stroke:i,fill:"none",strokeWidth:ee(.5,l/1.5)})]}),(0,N.jsxs)("g",{transform:`translate(${t-e-5}, 0)`,children:[(0,N.jsx)("ellipse",{cx:e/2,cy:o,rx:.35*e,ry:n,stroke:i,fill:"none",strokeWidth:l}),(0,N.jsx)("circle",{cx:e/2,cy:h,r:a,stroke:i,fill:"none",strokeWidth:ee(.5,l/1.5)})]})]})}return(0,N.jsxs)("g",{children:[(0,N.jsx)("rect",{x:0,y:0,width:t,height:r,rx:8,stroke:i,fill:s,strokeWidth:l}),(0,N.jsx)("ellipse",{cx:t/2,cy:o,rx:.35*t,ry:n,stroke:i,fill:"none",strokeWidth:l}),(0,N.jsx)("circle",{cx:t/2,cy:h,r:a,stroke:i,fill:"none",strokeWidth:ee(.5,l/1.5)})]})}case"shower":if("modern"===se)return(0,N.jsxs)("g",{children:[(0,N.jsx)("rect",{x:0,y:0,width:t,height:r,rx:Math.min(4,.05*Math.min(t,r)),stroke:i,fill:s,strokeWidth:l}),(0,N.jsx)("line",{x1:.12*t,y1:.08*r,x2:.12*t,y2:.78*r,stroke:i,strokeWidth:ee(.5,l/1.5)}),(0,N.jsx)("line",{x1:.32*t,y1:.82*r,x2:.84*t,y2:.82*r,stroke:i,strokeWidth:ee(.65,l),strokeLinecap:"round"})]});if("minimal"===se)return(0,N.jsxs)("g",{children:[(0,N.jsx)("rect",{x:0,y:0,width:t,height:r,stroke:i,fill:"none",strokeWidth:l}),(0,N.jsx)("line",{x1:.28*t,y1:.78*r,x2:.72*t,y2:.78*r,stroke:i,strokeWidth:ee(.55,l),strokeLinecap:"round"})]});const e=t/r,n=e<.66;let h=t/2,a=r/2;const c=4,x=25;return e>1.5&&(h=Math.min(x,.15*t)),n&&(a=Math.min(x,.15*r)),(0,N.jsxs)("g",{children:[(0,N.jsx)("rect",{x:0,y:0,width:t,height:r,stroke:i,fill:s,strokeWidth:l}),(0,N.jsxs)("g",{opacity:.4,children:[(0,N.jsx)("line",{x1:0,y1:0,x2:h,y2:a,stroke:i,strokeWidth:ee(.3,l/3)}),(0,N.jsx)("line",{x1:t,y1:0,x2:h,y2:a,stroke:i,strokeWidth:ee(.3,l/3)}),(0,N.jsx)("line",{x1:t,y1:r,x2:h,y2:a,stroke:i,strokeWidth:ee(.3,l/3)}),(0,N.jsx)("line",{x1:0,y1:r,x2:h,y2:a,stroke:i,strokeWidth:ee(.3,l/3)})]}),(0,N.jsx)("circle",{cx:h,cy:a,r:c,stroke:i,fill:"none",strokeWidth:ee(.5,l/1.5)}),(0,N.jsx)("circle",{cx:h,cy:a,r:c/2,stroke:i,fill:"none",strokeWidth:ee(.4,l/2)})]});case"bed":case"bed_single":case"bed_double":case"bed_queen":case"bed_king":const d=t>60,k=.15*r,y=5,f=(t-(d?3*y:2*y))/(d?2:1);if("modern"===se){const e=(t-3*y)/2;return(0,N.jsxs)("g",{children:[(0,N.jsx)("rect",{x:0,y:0,width:t,height:r,rx:Math.min(8,.06*t),stroke:i,fill:s,strokeWidth:l}),(0,N.jsx)("path",{d:`M ${.05*t} ${.24*r} Q ${t/2} ${.34*r} ${.95*t} ${.24*r}`,stroke:i,fill:"none",strokeWidth:ee(.5,l/2)}),(0,N.jsx)("rect",{x:y,y:y,width:e,height:k,rx:Math.min(6,.45*k),stroke:i,fill:"none",strokeWidth:l}),(0,N.jsx)("rect",{x:2*y+e,y:y,width:e,height:k,rx:Math.min(6,.45*k),stroke:i,fill:"none",strokeWidth:l})]})}return"minimal"===se?(0,N.jsxs)("g",{children:[(0,N.jsx)("rect",{x:0,y:0,width:t,height:r,stroke:i,fill:"none",strokeWidth:l}),(0,N.jsx)("line",{x1:0,y1:.22*r,x2:t,y2:.22*r,stroke:i,strokeWidth:ee(.5,l/2)}),(0,N.jsx)("line",{x1:t/2,y1:0,x2:t/2,y2:.22*r,stroke:i,strokeWidth:ee(.4,l/2)})]}):(0,N.jsxs)("g",{children:[(0,N.jsx)("rect",{x:0,y:0,width:t,height:r,stroke:i,fill:s,strokeWidth:l,rx:2}),(0,N.jsx)("line",{x1:0,y1:.3*r,x2:t,y2:.3*r,stroke:i,strokeWidth:ee(.5,l/2)}),(0,N.jsx)("rect",{x:y,y:y,width:f,height:k,rx:3,stroke:i,fill:"none",strokeWidth:l}),d&&(0,N.jsx)("rect",{x:2*y+f,y:y,width:f,height:k,rx:3,stroke:i,fill:"none",strokeWidth:l})]});case"sofa":case"sofa_l":case"sofa_2":const p=50*$,g=50*u,A="l"===ie,S="modern"===se?Math.min(8,.12*r):2,P=37.5,E=C(t,50);if("minimal"===se){if(A){const{polygon:e,chaise:s,bodyDepth:o}=M(t,r,!!w,50),n=w?s:t-s;return(0,N.jsxs)("g",{children:[(0,N.jsx)("polygon",{points:e.map(e=>e.join(",")).join(" "),stroke:i,fill:"none",strokeWidth:l,strokeLinejoin:"round"}),(0,N.jsx)("line",{x1:0,y1:g,x2:t,y2:g,stroke:i,strokeWidth:ee(.45,l/2)}),(0,N.jsx)("line",{x1:n,y1:g,x2:n,y2:r-p,stroke:i,strokeWidth:ee(.45,l/2)}),(0,N.jsx)("line",{x1:t/2,y1:g,x2:t/2,y2:o,stroke:i,strokeWidth:ee(.4,l/2)})]})}return(0,N.jsxs)("g",{children:[(0,N.jsx)("rect",{x:0,y:0,width:t,height:r,stroke:i,fill:"none",strokeWidth:l}),(0,N.jsx)("line",{x1:0,y1:g,x2:t,y2:g,stroke:i,strokeWidth:ee(.45,l/2)}),Array.from({length:E-1},(e,s)=>{const o=t*(s+1)/E;return(0,N.jsx)("line",{x1:o,y1:g,x2:o,y2:r,stroke:i,strokeWidth:ee(.4,l/2)},s)})]})}if(A){const{polygon:e,chaise:o,bodyDepth:n}=M(t,r,!!w,50),h=w?t-p:0,a=w?0:t-p,c=(0,N.jsx)("polygon",{points:e.map(e=>e.join(",")).join(" "),stroke:i,fill:s,strokeWidth:l,opacity:"modern"===se?.28:.5,strokeLinejoin:"round"}),x=(0,N.jsx)("rect",{x:0,y:0,width:t,height:g,rx:S,stroke:i,fill:s,strokeWidth:l}),d=(0,N.jsx)("rect",{x:w?0:t-g,y:g,width:g,height:r-g,rx:S,stroke:i,fill:s,strokeWidth:l}),k=(0,N.jsx)("rect",{x:h,y:0,width:p,height:n,rx:S,stroke:i,fill:s,strokeWidth:l}),y=(0,N.jsx)("rect",{x:a,y:r-p,width:p,height:p,rx:S,stroke:i,fill:s,strokeWidth:l}),b=n-g-2,j=t-o-p,f=Math.max(1,Math.round(j/P)),m=j/f,W=[];for(let t=0;t<f;t++){const e=w?o+t*m+2:p+t*m+2;W.push((0,N.jsx)("rect",{x:e,y:g+2,width:m-4,height:b,rx:S,stroke:i,fill:"none"},`mc-${t}`))}const u=r-g-p,$=o-g-2;return(0,N.jsxs)("g",{children:[c,x,d,k,y,W,(0,N.jsx)("rect",{x:w?g+2:t-o+2,y:g+2,width:$,height:u,rx:S,stroke:i,fill:"none"})]})}{const e=r-g-4,o=t-2*p,n=Math.max(1,Math.round(o/P)),h=o/n,a=[];for(let t=0;t<n;t++)a.push((0,N.jsx)("rect",{x:p+t*h+2,y:g+2,width:h-4,height:e,rx:S,stroke:i,fill:"none"},t));return(0,N.jsxs)("g",{children:[(0,N.jsx)("rect",{x:0,y:0,width:t,height:r,rx:S,stroke:i,fill:s,strokeWidth:l,opacity:"modern"===se?.28:.5}
1),(0,N.jsx)("rect",{x:0,y:0,width:t,height:g,rx:S,stroke:i,fill:s,strokeWidth:l}),(0,N.jsx)("rect",{x:0,y:0,width:p,height:r,rx:S,stroke:i,fill:s,strokeWidth:l}),(0,N.jsx)("rect",{x:t-p,y:0,width:p,height:r,rx:S,stroke:i,fill:s,strokeWidth:l}),a]})}case"table_dining":const F=le();if("minimal"===se)return(0,N.jsxs)("g",{children:[F,(0,N.jsx)("rect",{x:0,y:0,width:t,height:r,stroke:i,fill:s,strokeWidth:l})]});if("modern"===se){const e=.32*Math.min(t,r);return(0,N.jsxs)("g",{children:[F,(0,N.jsx)("rect",{x:0,y:0,width:t,height:r,rx:e,stroke:i,fill:s,strokeWidth:l}),(0,N.jsx)("rect",{x:4,y:4,width:Math.max(0,t-8),height:Math.max(0,r-8),rx:Math.max(0,e-4),stroke:i,fill:"none",strokeWidth:ee(.4,l/2),opacity:.45})]})}return(0,N.jsxs)("g",{children:[F,(0,N.jsx)("rect",{x:0,y:0,width:t,height:r,rx:2,stroke:i,fill:s,strokeWidth:l}),(0,N.jsx)("rect",{x:4,y:4,width:Math.max(0,t-8),height:Math.max(0,r-8),rx:1,stroke:i,fill:"none",strokeWidth:ee(.4,l/2),opacity:.5})]});case"chair":return"modern"===se?(0,N.jsxs)("g",{children:[(0,N.jsx)("rect",{x:.08*t,y:.08*r,width:.84*t,height:.78*r,rx:.28*Math.min(t,r),stroke:i,fill:s,strokeWidth:l}),(0,N.jsx)("path",{d:`M ${.18*t} ${.22*r} Q ${t/2} ${.02*r} ${.82*t} ${.22*r}`,stroke:i,fill:"none",strokeWidth:ee(.5,l/2)})]}):"minimal"===se?(0,N.jsxs)("g",{children:[(0,N.jsx)("rect",{x:0,y:0,width:t,height:r,stroke:i,fill:"none",strokeWidth:l}),(0,N.jsx)("line",{x1:0,y1:.22*r,x2:t,y2:.22*r,stroke:i,strokeWidth:ee(.45,l/2)})]}):(0,N.jsx)("rect",{x:0,y:0,width:t,height:r,rx:2,stroke:i,fill:s,strokeWidth:l});case"wardrobe":{const e=q(t),o=t/e,n=Array.from({length:e-1},(e,t)=>(0,N.jsx)("line",{x1:(t+1)*o,y1:0,x2:(t+1)*o,y2:r,stroke:i,strokeWidth:ee(.45,l/2)},t));return"modern"===se?(0,N.jsxs)("g",{children:[(0,N.jsx)("rect",{x:0,y:0,width:t,height:r,rx:Math.min(3,.08*r),stroke:i,fill:s,strokeWidth:l}),n,(0,N.jsx)("line",{x1:2,y1:.28*r,x2:t-2,y2:.28*r,stroke:i,strokeWidth:ee(.35,l/3)}),(0,N.jsx)("line",{x1:2,y1:.72*r,x2:t-2,y2:.72*r,stroke:i,strokeWidth:ee(.35,l/3)})]}):"minimal"===se?(0,N.jsxs)("g",{children:[(0,N.jsx)("rect",{x:0,y:0,width:t,height:r,stroke:i,fill:"none",strokeWidth:l}),n]}):(0,N.jsxs)("g",{children:[(0,N.jsx)("rect",{x:0,y:0,width:t,height:r,stroke:i,fill:s,strokeWidth:l}),n]})}case"kitchen_counter":{const e=30,o="number"==typeof H?.left?Math.max(0,H.left):0,n="number"==typeof H?.right?Math.max(0,H.right):0,h=o>0,a=n>0,c="island"===ie,x=!c&&h&&a,d=(e,t,r,s)=>{const o=.78*Math.min(r,s),n=t-o/2,h=.18*o,a=.27*o,c=r>=v&&r<_,x=c?o:.86*r,d=(0,N.jsx)("rect",{x:e-x/2,y:n,width:x,height:o,rx:2,stroke:i,fill:"none",strokeWidth:ee(.3,l/2)});if(r<v)return(0,N.jsxs)("g",{children:[d,(0,N.jsx)("circle",{cx:e,cy:t-a,r:h,stroke:i,fill:"none"}),(0,N.jsx)("circle",{cx:e,cy:t+a,r:.85*h,stroke:i,fill:"none"})]});if(c)return(0,N.jsxs)("g",{children:[d,(0,N.jsx)("circle",{cx:e-a,cy:t-a,r:h,stroke:i,fill:"none"}),(0,N.jsx)("circle",{cx:e+a,cy:t-a,r:.85*h,stroke:i,fill:"none"}),(0,N.jsx)("circle",{cx:e-a,cy:t+a,r:.85*h,stroke:i,fill:"none"}),(0,N.jsx)("circle",{cx:e+a,cy:t+a,r:.65*h,stroke:i,fill:"none"})]});const k=.3*x;return(0,N.jsxs)("g",{children:[d,(0,N.jsx)("circle",{cx:e-k,cy:t-a,r:h,stroke:i,fill:"none"}),(0,N.jsx)("circle",{cx:e+k,cy:t-a,r:.85*h,stroke:i,fill:"none"}),(0,N.jsx)("circle",{cx:e,cy:t,r:1.15*h,stroke:i,fill:"none"}),(0,N.jsx)("circle",{cx:e-k,cy:t+a,r:.85*h,stroke:i,fill:"none"}),(0,N.jsx)("circle",{cx:e+k,cy:t+a,r:.65*h,stroke:i,fill:"none"})]})},k=(e,t,r,s)=>{const o=.78*r,n=.78*s,h=e-o/2,a=t-n/2,c=.12*o,x=.12*n;return(0,N.jsxs)("g",{children:[(0,N.jsx)("rect",{x:h,y:a,width:o,height:n,rx:3,stroke:i,fill:"none",strokeWidth:ee(.3,l/2)}),(0,N.jsx)("rect",{x:h+c,y:a+x,width:o-2*c,height:n-2*x,rx:2,stroke:i,fill:"none"}),(0,N.jsx)("line",{x1:e,y1:a+x,x2:e,y2:a+x-.18*n,stroke:i,strokeWidth:ee(.4,l/2)}),(0,N.jsx)("circle",{cx:e,cy:a+x-.18*n,r:Math.max(1,.04*n),fill:i})]})},y=(e,t,r,s)=>{const o=.78*r,n=.78*s,h=e-o/2,a=t-n/2,c=Math.max(1.5,2*l);return(0,N.jsxs)("g",{children:[(0,N.jsx)("rect",{x:h,y:a,width:o,height:n,rx:2,stroke:i,fill:"none",strokeWidth:ee(.3,l/2),strokeDasharray:`${c} ${.75*c}`}),(0,N.jsx)("line",{x1:h+.15*o,y1:a+.25*n,x2:h+.85*o,y2:a+.25*n,stroke:i,strokeWidth:ee(.5,l/2)}),(0,N.jsx)("circle",{cx:h+.85*o,cy:a+.12*n,r:Math.max(1,.05*n),stroke:i,fill:"none"})]})},b=(e,t,r,s)=>{const o=.78*r,n=.78*s,h=e-o/2,a=t-n/2,c=ee(.3,l/2),x=Math.max(1.5,2*l);return(0,N.jsxs)("g",{"data-kitchen-mod-kind":"dishwasher",children:[(0,N.jsx)("rect",{x:h,y:a,width:o,height:n,rx:2,stroke:i,fill:"none",strokeWidth:c,strokeDasharray:`${x} ${.75*x}`}),(0,N.jsx)("line",{x1:h+.1*o,y1:a+.2*n,x2:h+.9*o,y2:a+.2*n,stroke:i,strokeWidth:c}),[.3,.5,.7].map(e=>(0,N.jsx)("circle",{cx:h+o*e,cy:a+.1*n,r:Math.max(.8,.035*n),stroke:i,fill:"none",strokeWidth:c},e))]})},j=(e,t,r,o,n="generic")=>{const h=e-r/2,a=t-o/2,c=Math.min(2,r/8,o/8),x=ee(.5,l/2);return(0,N.jsxs)("g",{children:[(0,N.jsx)("rect",{x:h,y:a,width:r,height:o,stroke:i,fill:s,strokeWidth:l}),"fridge"!==n&&(0,N.jsx)("line",{x1:h+c,y1:a+c,x2:h+r-c,y2:a+o-c,stroke:i,strokeWidth:x}),(0,N.jsx)("line",{x1:h+c,y1:a+o-c-1,x2:h+r-c,y2:a+o-c-1,stroke:i,strokeWidth:x}),"oven"===n&&(0,N.jsxs)("g",{"data-kitchen-col":"oven",children:[(0,N.jsx)("line",{x1:h+c,y1:a+.42*o,x2:h+r-c,y2:a+.42*o,stroke:i,strokeWidth:x}),(0,N.jsx)("line",{x1:h+c,y1:a+.62*o,x2:h+r-c,y2:a+.62*o,stroke:i,strokeWidth:x}),(0,N.jsx)("line",{x1:e-.2*r,y1:a+.36*o,x2:e+.2*r,y2:a+.36*o,stroke:i,strokeWidth:ee(.8,1.2*l)}),(0,N.jsx)("line",{x1:e-.2*r,y1:a+.56*o,x2:e+.2*r,y2:a+.56*o,stroke:i,strokeWidth:ee(.8,1.2*l)})]}),"fridge"===n&&(0,N.jsx)("g",{"data-kitchen-col":"fridge"})]})},f=(e,t,r,s)=>{const o=e-r/2,n=t-s/2,h=Math.max(1.5,2*l);return(0,N.jsx)("g",{children:(0,N.jsx)("rect",{x:o,y:n,width:r,height:s,stroke:i,fill:"none",strokeWidth:ee(.4,l/2),strokeDasharray:`${h} ${.75*h}`})})},p=()=>{const e=K({id:"preview",type:"kitchen_counter",x:0,y:0,rotation:0,width:t,height:r,subType:ie,kitchenArms:{left:o,right:n},kitchenFeatures:I,kitchenModules:D});return 0===e.length?null:e.map((e,t)=>{const r="stove"===e.type?d(e.cxLocal,e.cyLocal,e.slotW,e.slotH):"sink"===e.type?k(e.cxLocal,e.cyLocal,e.slotW,e.slotH):"oven"===e.type?y(e.cxLocal,e.cyLocal,e.slotW,e.slotH):"dishwasher"===e.type?b(e.cxLocal,e.cyLocal,e.slotW,e.slotH):"upper"===e.type?f(e.cxLocal,e.cyLocal,e.slotW,e.slotH):j(e.cxLocal,e.cyLocal,e.slotW,e.slotH,e.kind);return(0,N.jsx)("g",{"data-kitchen-mod":e.type,transform:`rotate(${e.rotation} ${e.cxLocal} ${e.cyLocal})`,children:r},`mod-${e.type}-${e.columnId??e.upperId??t}`)})};if(!c&&!x&&(h||a)){const{polygon:h,cornerLines:a}=L(t,r,o,n,e);return(0,N.jsxs)("g",{children:[(0,N.jsx)("polygon",{points:h.map(e=>e.join(",")).join(" "),stroke:i,fill:s,strokeWidth:l,strokeLinejoin:"round"}),a.map(([e,t],r)=>(0,N.jsx)("line",{x1:e[0],y1:e[1],x2:t[0],y2:t[1],stroke:i,strokeWidth:ee(.3,l/2)},r)),p()]})}if(x){const{polygon:h,cornerLines:a}=L(t,r,o,n,e);return(0,N.jsxs)("g",{children:[(0,N.jsx)("polygon",{points:h.map(e=>e.join(",")).join(" "),stroke:i,fill:s,strokeWidth:l,strokeLinejoin:"round"}),a.map(([e,t],r)=>(0,N.jsx)("line",{x1:e[0],y1:e[1],x2:t[0],y2:t[1],stroke:i,strokeWidth:ee(.3,l/2)},r)),p()]})}return c?(0,N.jsxs)("g",{children:[(0,N.jsx)("rect",{x:0,y:0,width:t,height:r,stroke:i,fill:s,strokeWidth:l}),(0,N.jsx)("rect",{x:4,y:4,width:t-8,height:r-8,stroke:i,fill:"none",strokeWidth:ee(.3,l/2)}),p()]}):(0,N.jsxs)("g",{children:[(0,N.jsx)("rect",{x:0,y:0,width:t,height:r,stroke:i,fill:s,strokeWidth:l}),p()]})}case"armchair":{const e=8;if("modern"===se){const o=.22*Math.min(t,r);return(0,N.jsxs)("g",{children:[(0,N.jsx)("rect",{x:0,y:0,width:t,height:r,rx:o,stroke:i,fill:s,strokeWidth:l}),(0,N.jsx)("rect",{x:e,y:.24*r,width:t-2*e,height:.58*r,rx:.65*o,stroke:i,fill:"none",strokeWidth:ee(.5,l/2)}),(0,N.jsx)("path",{d:`M ${e} ${.25*r} Q ${t/2} ${.12*r} ${t-e} ${.25*r}`,stroke:i,fill:"none",strokeWidth:ee(.45,l/2)})]})}return"minimal"===se?(0,N.jsxs)("g",{children:[(0,N.jsx)("rect",{x:0,y:0,width:t,height:r,stroke:i,fill:"none",strokeWidth:l}),(0,N.jsx)("line",{x1:0,y1:.28*r,x2:t,y2:.28*r,stroke:i,strokeWidth:ee(.45,l/2)})]}):(0,N.jsxs)("g",{children:[(0,N.jsx)("rect",{x:0,y:0,width:t,height:r,rx:4,stroke:i,fill:s,strokeWidth:l}),(0,N.jsx)("line",{x1:0,y1:.28*r,x2:t,y2:.28*r,stroke:i,strokeWidth:ee(.5,l/2)}),(0,N.jsx)("rect",{x:e,y:.32*r,width:t-2*e,height:r-.36*r-e,rx:3,stroke:i,fill:"none",strokeWidth:ee(.5,l/2)}),(0,N.jsx)("line",{x1:e,y1:.28*r,x2:e,y2:r-4,stroke:i,strokeWidth:ee(.5,l/2)}),(0,N.jsx)("line",{x1:t-e,y1:.28*r,x2:t-e,y2:r-4,stroke:i,strokeWidth:ee(.5,l/2)})]})}case"table_round":{const e=t/2,o=r/2,n=Math.min(t,r)/2;return(0,N.jsxs)("g",{children:[le(),Math.abs(t-r)<.5?(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)("circle",{"data-tabletop":"outer",cx:e,cy:o,r:n,stroke:i,fill:s,strokeWidth:l}),(0,N.jsx)("circle",{"data-tabletop":"inner",cx:e,cy:o,r:Math.max(0,n-4),stroke:i,fill:"none",strokeWidth:ee(.4,l/3),opacity:.5})]}):(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)("rect",{"data-tabletop":"outer",x:0,y:0,width:t,height:r,rx:n,stroke:i,fill:s,strokeWidth:l}),(0,N.jsx)("rect",{"data-tabletop":"inner",x:4,y:4,width:Math.max(0,t-8),height:Math.max(0,r-8),rx:Math.max(0,n-4),stroke:i,fill:"none",strokeWidth:ee(.4,l/3),opacity:.5})]})]})}case"table_coffee":case"desk":{const e="desk"===re;return"modern"===se?(0,N.jsxs)("g",{children:[(0,N.jsx)("rect",{x:0,y:0,width:t,height:r,rx:Math.min(t,r)*(e?.16:.42),stroke:i,fill:s,strokeWidth:l}),(0,N.jsx)("path",{d:`M ${.16*t} ${.5*r} Q ${t/2} ${.28*r} ${.84*t} ${.5*r}`,stroke:i,fill:"none",strokeWidth:ee(.4,l/2)}),e&&(0,N.jsx)("line",{x1:.62*t,y1:.78*r,x2:.9*t,y2:.78*r,stroke:i,strokeWidth:ee(.45,l/2)})]}):"minimal"===se?(0,N.jsxs)("g",{children:[(0,N.jsx)("rect",{x:0,y:0,width:t,height:r,stroke:i,fill:"none",strokeWidth:l}),e&&(0,N.jsx)("line",{x1:.62*t,y1:.72*r,x2:.9*t,y2:.72*r,stroke:i,strokeWidth:ee(.45,l/2)})]}):(0,N.jsxs)("g",{children:[(0,N.jsx)("rect",{x:0,y:0,width:t,height:r,rx:2,stroke:i,fill:s,strokeWidth:l}),(0,N.jsx)("rect",{x:3,y:3,width:Math.max(0,t-6),height:Math.max(0,r-6),rx:1,stroke:i,fill:"none",strokeWidth:ee(.4,l/2),opacity:.5}),e&&(0,N.jsx)("rect",{x:.6*t,y:r-12,width:.35*t,height:9,rx:1,stroke:i,fill:"none",strokeWidth:ee(.4,l/2),opacity:.7})]})}case"chair_office":{const e=t/2,o=r/2,n=Math.min(t,r)/2-2;return(0,N.jsxs)("g",{children:[[0,72,144,216,288].map(t=>{const r=(t-90)*Math.PI/180;return(0,N.jsx)("line",{x1:e,y1:o,x2:e+Math.cos(r)*n,y2:o+Math.sin(r)*n,stroke:i,strokeWidth:ee(.6,l/2),opacity:.55},t)}),(0,N.jsx)("circle",{cx:e,cy:o,r:.55*n,stroke:i,fill:s,strokeWidth:l}),(0,N.jsx)("path",{d:`M ${e-.5*n} ${o-.55*n} Q ${e} ${o-.85*n} ${e+.5*n} ${o-.55*n}`,stroke:i,fill:"none",strokeWidth:ee(.6,l/2)})]})}case"shelf":{const e=Math.max(2,Math.round(t/20)),o=t/e;return(0,N.jsxs)("g",{children:[(0,N.jsx)("rect",{x:0,y:0,width:t,height:r,stroke:i,fill:s,strokeWidth:l}),Array.from({length:e-1}).map((e,t)=>(0,N.jsx)("line",{x1:(t+1)*o,y1:2,x2:(t+1)*o,y2:r-2,stroke:i,strokeWidth:ee(.4,l/2),opacity:.6},t))]})}case"drawers":{const e=3,o=r/e;return(0,N.jsxs)("g",{children:[(0,N.jsx)("rect",{x:0,y:0,width:t,height:r,stroke:i,fill:s,strokeWidth:l}),Array.from({length:e}).map((e,r)=>(0,N.jsxs)("g",{children:[r>0&&(0,N.jsx)("line",{x1:0,y1:r*o,x2:t,y2:r*o,stroke:i,strokeWidth:ee(.4,l/2),opacity:.6}),(0,N.jsx)("rect",{x:.4*t,y:r*o+.45*o,width:.2*t,height:2,rx:1,fill:i,stroke:"none",opacity:.7})]},r))]})}case"bedside_table":return(0,N.jsxs)("g",{children:[(0,N.jsx)("rect",{x:0,y:0,width:t,height:r,rx:2,stroke:i,fill:s,strokeWidth:l}),(0,N.jsx)("line",{x1:2,y1:.35*r,x2:t-2,y2:.35*r,stroke:i,strokeWidth:ee(.4,l/2),opacity:.7}),(0,N.jsx)("rect",{x:.4*t,y:.55*r,width:.2*t,height:Math.max(1.5,1.2*l),rx:1,fill:i,stroke:"none",opacity:.8})]});case"sideboard":{const e=Math.max(2,Math.round(t/30)),o=Array.from({length:e-1},(r,i)=>(i+1)*(t/e));return(0,N.jsxs)("g",{children:[(0,N.jsx)("rect",{x:0,y:0,width:t,height:r,rx:2,stroke:i,fill:s,strokeWidth:l}),o.map(e=>(0,N.jsx)("line",{x1:e,y1:2,x2:e,y2:r-2,stroke:i,strokeWidth:ee(.3,l/2),opacity:.7},e)),Array.from({length:e},(s,o)=>(0,N.jsx)("rect",{x:(o+.5)*(t/e)-.04*t,y:.65*r,width:.08*t,height:Math.max(1.2,l),rx:1,fill:i,stroke:"none",opacity:.8},`h-${o}`))]})}case"shoe_rack":{const e=3;return(0,N.jsxs)("g",{children:[(0,N.jsx)("rect",{x:0,y:0,width:t,height:r,rx:1.5,stroke:i,fill:s,strokeWidth:l}),Array.from({length:e},(s,o)=>{const n=(o+1)/(e+1)*r;return(0,N.jsx)("line",{x1:2,y1:n,x2:t-2,y2:n,stroke:i,strokeWidth:ee(.3,l/2.5),opacity:.7},o)})]})}case"tv_unit":{const e=.25*t,o=.75*t;return(0,N.jsxs)("g",{children:[(0,N.jsx)("rect",{x:0,y:0,width:t,height:r,rx:2,stroke:i,fill:s,strokeWidth:l}),(0,N.jsx)("line",{x1:e,y1:2,x2:e,y2:r-2,stroke:i,strokeWidth:ee(.3,l/2),opacity:.7}),(0,N.jsx)("line",{x1:o,y1:2,x2:o,y2:r-2,stroke:i,strokeWidth:ee(.3,l/2),opacity:.7}),(0,N.jsx)("rect",{x:e+.05*t,y:.15*r,width:o-e-.1*t,height:Math.max(1.5,.1*r),rx:1,stroke:i,fill:"none",strokeWidth:ee(.3,l/2),opacity:.6})]})}case"crib":return(0,N.jsxs)("g",{children:[(0,N.jsx)("rect",{x:0,y:0,width:t,height:r,rx:3,stroke:i,fill:s,strokeWidth:l}),(0,N.jsx)("rect",{x:3,y:3,width:Math.max(0,t-6),height:Math.max(0,r-6),rx:2,stroke:i,fill:"none",strokeWidth:ee(.3,l/2),opacity:.7}),(0,N.jsx)("rect",{x:8,y:8,width:Math.max(0,t-16),height:Math.max(0,r-16),rx:2,stroke:i,fill:"none",strokeWidth:ee(.3,l/2),opacity:.5})]});case"bunk_bed":return(0,N.jsxs)("g",{children:[(0,N.jsx)("rect",{x:0,y:0,width:t,height:r,rx:3,stroke:i,fill:s,strokeWidth:l}),(0,N.jsx)("rect",{x:3,y:3,width:Math.max(0,.78*t-3),height:Math.max(0,r-6),rx:2,stroke:i,fill:"none",strokeWidth:ee(.4,l/2),strokeDasharray:"3 2",opacity:.65}),(0,N.jsx)("line",{x1:.85*t,y1:.25*r,x2:t-2,y2:.25*r,stroke:i,strokeWidth:ee(.3,l/2.5)}),(0,N.jsx)("line",{x1:.85*t,y1:.5*r,x2:t-2,y2:.5*r,stroke:i,strokeWidth:ee(.3,l/2.5)}),(0,N.jsx)("line",{x1:.85*t,y1:.75*r,x2:t-2,y2:.75*r,stroke:i,strokeWidth:ee(.3,l/2.5)})]});case"side_table":return(0,N.jsxs)("g",{children:[(0,N.jsx)("rect",{x:0,y:0,width:t,height:r,rx:.18*Math.min(t,r),stroke:i,fill:s,strokeWidth:l}),(0,N.jsx)("rect",{x:4,y:4,width:Math.max(0,t-8),height:Math.max(0,r-8),rx:.12*Math.min(t,r),stroke:i,fill:"none",strokeWidth:ee(.3,l/2),opacity:.5})]});case"bar_stool":{const e=t/2,o=r/2,n=Math.min(t,r)/2-1;return(0,N.jsxs)("g",{children:[(0,N.jsx)("circle",{cx:e,cy:o,r:n,stroke:i,fill:s,strokeWidth:l}),(0,N.jsx)("circle",{cx:e,cy:o,r:.5*n,stroke:i,fill:"none",strokeWidth:ee(.3,l/2),opacity:.5})]})}case"bidet":{const e=t/2;return(0,N.jsxs)("g",{children:[(0,N.jsx)("rect",{x:0,y:0,width:t,height:r,rx:.3*t,stroke:i,fill:s,strokeWidth:l}),(0,N.jsx)("ellipse",{cx:e,cy:.55*r,rx:Math.max(0,.32*t),ry:Math.max(0,.32*r),stroke:i,fill:"none",strokeWidth:ee(.4,l/2)}),(0,N.jsx)("line",{x1:e-.1*t,y1:.15*r,x2:e+.1*t,y2:.15*r,stroke:i,strokeWidth:ee(.4,l/2)})]})}case"dishwasher":case"washing_machine":case"dryer":{const e=t/2,o=.55*r,n=.32*Math.min(t,r);return(0,N.jsxs)("g",{children:[(0,N.jsx)("rect",{x:0,y:0,width:t,height:r,rx:2,stroke:i,fill:s,strokeWidth:l}),(0,N.jsx)("line",{x1:2,y1:.22*r,x2:t-2,y2:.22*r,stroke:i,strokeWidth:ee(.3,l/2.5),opacity:.7}),(0,N.jsx)("circle",{cx:.2*t,cy:.11*r,r:Math.max(1,.04*Math.min(t,r)),stroke:i,fill:"none",strokeWidth:ee(.3,l/2)}),(0,N.jsx)("circle",{cx:.4*t,cy:.11*r,r:Math.max(1,.04*Math.min(t,r)),stroke:i,fill:"none",strokeWidth:ee(.3,l/2)}),(0,N.jsx)("circle",{cx:e,cy:o,r:n,stroke:i,fill:"none",strokeWidth:ee(.4,l/1.8)}),(0,N.jsx)("circle",{cx:e,cy:o,r:.62*n,stroke:i,fill:"none",strokeWidth:ee(.3,l/2.5),opacity:.6})]})}case"microwave":return(0,N.jsxs)("g",{children:[(0,N.jsx)("rect",{x:0,y:0,width:t,height:r,rx:1.5,stroke:i,fill:s,strokeWidth:l}),(0,N.jsx)("line",{x1:.7*t,y1:2,x2:.7*t,y2:r-2,stroke:i,strokeWidth:ee(.3,l/2),opacity:.7}
1),(0,N.jsx)("rect",{x:.74*t,y:.2*r,width:Math.max(0,.22*t),height:Math.max(0,.25*r),rx:1,stroke:i,fill:"none",strokeWidth:ee(.3,l/2),opacity:.6}),(0,N.jsx)("line",{x1:.66*t,y1:.3*r,x2:.66*t,y2:.7*r,stroke:i,strokeWidth:ee(.4,l/1.8)})]});case"fireplace":{const e=.12*Math.min(t,r),o=.55*t,n=(t-o)/2,h=r-.65*r-.4*e;return(0,N.jsxs)("g",{children:[(0,N.jsx)("rect",{x:0,y:0,width:t,height:r,rx:1,stroke:i,fill:s,strokeWidth:l}),(0,N.jsx)("path",{d:`M ${n} ${r} L ${n} ${h} L ${n+o} ${h} L ${n+o} ${r}`,stroke:i,fill:"none",strokeWidth:ee(.5,l/1.5)}),(0,N.jsx)("line",{x1:.5*e,y1:.5*e,x2:.18*t,y2:r-.5*e,stroke:i,strokeWidth:ee(.3,l/2.5),opacity:.45}),(0,N.jsx)("line",{x1:t-.18*t,y1:.5*e,x2:t-.5*e,y2:r-.5*e,stroke:i,strokeWidth:ee(.3,l/2.5),opacity:.45})]})}case"radiator":{const e=Math.max(4,Math.min(20,Math.round(t/(.07*50))));return(0,N.jsxs)("g",{children:[(0,N.jsx)("rect",{x:0,y:0,width:t,height:r,rx:1,stroke:i,fill:s,strokeWidth:l}),Array.from({length:e-1},(s,o)=>{const n=(o+1)/e*t;return(0,N.jsx)("line",{x1:n,y1:1,x2:n,y2:r-1,stroke:i,strokeWidth:ee(.3,l/2.5),opacity:.75},o)})]})}case"elevator":{const e=J??W(t,r),o=e.cabin,n=ee(.3,l/2.5),h={back:{a:{x:0,y:0},b:{x:t,y:0},nx:0,ny:1},right:{a:{x:t,y:0},b:{x:t,y:r},nx:-1,ny:0},front:{a:{x:t,y:r},b:{x:0,y:r},nx:0,ny:-1},left:{a:{x:0,y:r},b:{x:0,y:0},nx:1,ny:0}},a=t=>{const r=h[t],i=r.b.x-r.a.x,s=r.b.y-r.a.y,o=Math.hypot(i,s)||1,l=Math.min(e.doorWidthPx,o)/2,n=(r.a.x+r.b.x)/2,a=(r.a.y+r.b.y)/2,c=i/o,x=s/o;return{f:r,ux:c,uy:x,p1:{x:n-c*l,y:a-x*l},p2:{x:n+c*l,y:a+x*l}}},c=e.side?a(e.side):null,x=[];for(const t of m){const r=h[t];c&&t===e.side?(x.push(`M ${r.a.x} ${r.a.y} L ${c.p1.x} ${c.p1.y}`),x.push(`M ${c.p2.x} ${c.p2.y} L ${r.b.x} ${r.b.y}`)):x.push(`M ${r.a.x} ${r.a.y} L ${r.b.x} ${r.b.y}`)}const d=(()=>{if(!e.counterweight)return null;const i=Math.min(6,Math.min(t,r)/6);switch(e.counterweight){case"back":return{x:o.x,y:2,w:o.w,h:i};case"front":return{x:o.x,y:r-2-i,w:o.w,h:i};case"left":return{x:2,y:o.y,w:i,h:o.h};case"right":return{x:t-2-i,y:o.y,w:i,h:o.h}}})();return(0,N.jsxs)("g",{children:[(0,N.jsx)("rect",{x:0,y:0,width:t,height:r,stroke:"none",fill:s}),(0,N.jsx)("path",{d:x.join(" "),stroke:i,fill:"none",strokeWidth:l,strokeLinecap:"butt"}),d&&(0,N.jsx)("rect",{x:d.x,y:d.y,width:Math.max(0,d.w),height:Math.max(0,d.h),stroke:i,fill:"none",strokeWidth:n,opacity:.75}),o.w>0&&o.h>0&&(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)("rect",{x:o.x,y:o.y,width:o.w,height:o.h,stroke:i,fill:"none",strokeWidth:ee(.4,l/1.6)}),(0,N.jsx)("line",{x1:o.x,y1:o.y,x2:o.x+o.w,y2:o.y+o.h,stroke:i,strokeWidth:n,opacity:.8}),(0,N.jsx)("line",{x1:o.x+o.w,y1:o.y,x2:o.x,y2:o.y+o.h,stroke:i,strokeWidth:n,opacity:.8})]}),c&&(0,N.jsx)("line",{x1:c.p1.x+.05*c.f.nx*50,y1:c.p1.y+.05*c.f.ny*50,x2:c.p2.x+.05*c.f.nx*50,y2:c.p2.y+.05*c.f.ny*50,stroke:i,strokeWidth:n})]})}case"kitchen_sink":return"modern"===se?(0,N.jsxs)("g",{children:[(0,N.jsx)("rect",{x:0,y:0,width:t,height:r,rx:Math.min(5,.12*r),stroke:i,fill:s,strokeWidth:l}),(0,N.jsx)("rect",{x:.08*t,y:.16*r,width:.84*t,height:.68*r,rx:Math.min(7,.2*r),stroke:i,fill:"none",strokeWidth:ee(.5,l/2)}),(0,N.jsx)("line",{x1:.38*t,y1:.6*r,x2:.62*t,y2:.6*r,stroke:i,strokeWidth:ee(.7,l),strokeLinecap:"round"}),(0,N.jsx)("path",{d:`M ${.5*t} ${.16*r} V ${.02*r} Q ${.62*t} ${.02*r} ${.62*t} ${.14*r}`,stroke:i,fill:"none",strokeWidth:ee(.45,l/2)})]}):"minimal"===se?(0,N.jsxs)("g",{children:[(0,N.jsx)("rect",{x:0,y:0,width:t,height:r,stroke:i,fill:"none",strokeWidth:l}),(0,N.jsx)("rect",{x:.14*t,y:.18*r,width:.72*t,height:.64*r,stroke:i,fill:"none",strokeWidth:ee(.45,l/2)})]}):(0,N.jsxs)("g",{children:[(0,N.jsx)("rect",{x:0,y:0,width:t,height:r,rx:3,stroke:i,fill:s,strokeWidth:l}),(0,N.jsx)("rect",{x:.12*t,y:.18*r,width:.76*t,height:.6*r,rx:3,stroke:i,fill:"none",strokeWidth:ee(.5,l/2)}),(0,N.jsx)("circle",{cx:.5*t,cy:.5*r,r:.05*Math.min(t,r),stroke:i,fill:"none",strokeWidth:ee(.4,l/2)}),(0,N.jsx)("rect",{x:.45*t,y:2,width:.1*t,height:6,rx:1,stroke:i,fill:"none",strokeWidth:ee(.4,l/2)})]});case"fridge":return(0,N.jsxs)("g",{children:[(0,N.jsx)("rect",{x:0,y:0,width:t,height:r,rx:2,stroke:i,fill:s,strokeWidth:l}),(0,N.jsx)("line",{x1:.5*t,y1:2,x2:.5*t,y2:r-2,stroke:i,strokeWidth:ee(.5,l/2)}),(0,N.jsx)("line",{x1:.4*t,y1:r-5,x2:.45*t,y2:r-5,stroke:i,strokeWidth:ee(.8,1.2*l)}),(0,N.jsx)("line",{x1:.55*t,y1:r-5,x2:.6*t,y2:r-5,stroke:i,strokeWidth:ee(.8,1.2*l)})]});case"kitchen_column":{const e=ee(.5,l/2);return(0,N.jsxs)("g",{children:[(0,N.jsx)("rect",{x:0,y:0,width:t,height:r,rx:2,stroke:i,fill:s,strokeWidth:l}),"fridge"!==T&&(0,N.jsx)("line",{x1:2,y1:2,x2:t-2,y2:r-2,stroke:i,strokeWidth:e}),(0,N.jsx)("line",{x1:2,y1:r-3,x2:t-2,y2:r-3,stroke:i,strokeWidth:e}),"oven"===T&&(0,N.jsxs)("g",{"data-kitchen-col":"oven",children:[(0,N.jsx)("line",{x1:2,y1:.42*r,x2:t-2,y2:.42*r,stroke:i,strokeWidth:e}),(0,N.jsx)("line",{x1:2,y1:.62*r,x2:t-2,y2:.62*r,stroke:i,strokeWidth:e}),(0,N.jsx)("line",{x1:.3*t,y1:.36*r,x2:.7*t,y2:.36*r,stroke:i,strokeWidth:ee(.8,1.2*l)}),(0,N.jsx)("line",{x1:.3*t,y1:.56*r,x2:.7*t,y2:.56*r,stroke:i,strokeWidth:ee(.8,1.2*l)})]}),"fridge"===T&&(0,N.jsx)("g",{"data-kitchen-col":"fridge"})]})}case"bathtub":{const e=.4*Math.min(t,r);return"modern"===se?(0,N.jsxs)("g",{children:[(0,N.jsx)("ellipse",{cx:t/2,cy:r/2,rx:t/2,ry:r/2,stroke:i,fill:s,strokeWidth:l}),(0,N.jsx)("ellipse",{cx:t/2,cy:r/2,rx:Math.max(0,t/2-7),ry:Math.max(0,r/2-7),stroke:i,fill:"none",strokeWidth:ee(.5,l/2)}),(0,N.jsx)("circle",{cx:.78*t,cy:r/2,r:.04*Math.min(t,r),stroke:i,fill:"none",strokeWidth:ee(.4,l/2)})]}):"minimal"===se?(0,N.jsxs)("g",{children:[(0,N.jsx)("rect",{x:0,y:0,width:t,height:r,rx:.16*r,stroke:i,fill:"none",strokeWidth:l}),(0,N.jsx)("path",{d:`M ${.24*r} ${r/2} H ${t-.24*r}`,stroke:i,fill:"none",strokeWidth:ee(.45,l/2)})]}):(0,N.jsxs)("g",{children:[(0,N.jsx)("rect",{x:0,y:0,width:t,height:r,rx:e,stroke:i,fill:s,strokeWidth:l}),(0,N.jsx)("rect",{x:6,y:6,width:Math.max(0,t-12),height:Math.max(0,r-12),rx:Math.max(0,e-6),stroke:i,fill:"none",strokeWidth:ee(.5,l/2)}),(0,N.jsx)("circle",{cx:t-.5*r,cy:r/2,r:.04*Math.min(t,r),stroke:i,fill:"none",strokeWidth:ee(.4,l/2)}),(0,N.jsx)("rect",{x:.25*r,y:r/2-4,width:6,height:8,rx:1,stroke:i,fill:"none",strokeWidth:ee(.4,l/2)})]})}case"tree":case"tree_large":{const e=t/2,o=r/2,n=Math.max(.1,t/2-l),h=Math.max(.1,r/2-l),a=Math.min(n,h);return(0,N.jsxs)("g",{children:[n===h?(0,N.jsx)("circle",{cx:e,cy:o,r:a,stroke:i,fill:s,strokeWidth:l}):(0,N.jsx)("ellipse",{cx:e,cy:o,rx:n,ry:h,stroke:i,fill:s,strokeWidth:l}),n===h?(0,N.jsx)("circle",{cx:e,cy:o,r:.7*a,stroke:i,fill:"none",strokeWidth:ee(0,.7*l)}):(0,N.jsx)("ellipse",{cx:e,cy:o,rx:.7*n,ry:.7*h,stroke:i,fill:"none",strokeWidth:ee(0,.7*l)}),[0,60,120,180,240,300].map(t=>{const r=t*Math.PI/180;return(0,N.jsx)("line",{x1:e+Math.cos(r)*n*.35,y1:o+Math.sin(r)*h*.35,x2:e+Math.cos(r)*n*.85,y2:o+Math.sin(r)*h*.85,stroke:i,strokeWidth:ee(0,.5*l),opacity:.6},t)}),(0,N.jsx)("circle",{cx:e,cy:o,r:Math.min(2,.06*a),fill:i,stroke:"none"})]})}case"conifer":{const e=t/2,o=r/2,n=Math.max(.1,t/2-l),h=Math.max(.1,r/2-l),a=Math.min(n,h),c=[];for(let t=0;t<16;t++){const r=t*Math.PI/8,i=t%2==0?1:.55;c.push(`${e+Math.cos(r)*n*i},${o+Math.sin(r)*h*i}`)}return(0,N.jsxs)("g",{children:[(0,N.jsx)("polygon",{points:c.join(" "),stroke:i,fill:s,strokeWidth:l}),(0,N.jsx)("circle",{cx:e,cy:o,r:Math.min(3,.1*a),fill:i,stroke:"none"})]})}case"palm_tree":{const e=t/2,s=r/2,o=Math.max(.1,t/2-l),n=Math.max(.1,r/2-l),h=Math.min(o,n);return(0,N.jsxs)("g",{children:[[0,72,144,216,288].map(t=>{const r=t*Math.PI/180,h=e+Math.cos(r)*o,a=s+Math.sin(r)*n,c=r+Math.PI/2;return(0,N.jsx)("path",{d:`M ${e} ${s} Q ${e+Math.cos(r)*o*.55+Math.cos(c)*o*.25} ${s+Math.sin(r)*n*.55+Math.sin(c)*n*.25} ${h} ${a}`,stroke:i,fill:"none",strokeWidth:l,strokeLinecap:"round"},t)}),(0,N.jsx)("circle",{cx:e,cy:s,r:Math.min(4,.12*h),fill:i,stroke:"none"})]})}case"bush":{const e=t/2,o=r/2,n=.32*t,h=.32*r;return(0,N.jsxs)("g",{children:[(0,N.jsx)("ellipse",{cx:e-.5*n,cy:o+.1*h,rx:n,ry:h,stroke:i,fill:s,strokeWidth:l}),(0,N.jsx)("ellipse",{cx:e+.5*n,cy:o+.1*h,rx:n,ry:h,stroke:i,fill:s,strokeWidth:l}),(0,N.jsx)("ellipse",{cx:e,cy:o-.4*h,rx:.85*n,ry:.85*h,stroke:i,fill:s,strokeWidth:l})]})}case"hedge":{const e=t>
1=r,o=e?t:r,n=e?r:t,h=Math.max(2,Math.round(o/(.9*n))),a=o/h,c=.45*n;return(0,N.jsxs)("g",{children:[(0,N.jsx)("rect",{x:0,y:0,width:t,height:r,rx:.15*n,stroke:i,fill:s,strokeWidth:l,opacity:.6}),Array.from({length:h}).map((s,o)=>{const n=(o+.5)*a;return(0,N.jsx)("circle",{cx:e?n:t/2,cy:e?r/2:n,r:c,stroke:i,fill:"none",strokeWidth:ee(.6,.6*l)},o)})]})}case"car":{const e=.28*Math.min(t,r),o=.07*Math.min(t,r),n=.13*r,h=.18*t,a=.8*t;return(0,N.jsxs)("g",{children:[(0,N.jsx)("ellipse",{cx:h,cy:0,rx:o,ry:n,fill:i}),(0,N.jsx)("ellipse",{cx:a,cy:0,rx:o,ry:n,fill:i}),(0,N.jsx)("ellipse",{cx:h,cy:r,rx:o,ry:n,fill:i}),(0,N.jsx)("ellipse",{cx:a,cy:r,rx:o,ry:n,fill:i}),(0,N.jsx)("rect",{x:0,y:0,width:t,height:r,rx:e,ry:e,fill:s,stroke:i,strokeWidth:l}),(0,N.jsx)("path",{d:`M ${.3*t} ${.18*r}\n                    L ${.42*t} ${.18*r}\n                    L ${.74*t} ${.22*r}\n                    L ${.74*t} ${.78*r}\n                    L ${.42*t} ${.82*r}\n                    L ${.3*t} ${.82*r} Z`,fill:"none",stroke:i,strokeWidth:ee(0,.7*l),strokeLinejoin:"round"}),(0,N.jsx)("line",{x1:.55*t,y1:.19*r,x2:.55*t,y2:.81*r,stroke:i,strokeWidth:ee(0,.45*l),strokeLinecap:"round"}),(0,N.jsx)("circle",{cx:.05*t,cy:.25*r,r:.025*Math.min(t,r),fill:i,stroke:"none"}),(0,N.jsx)("circle",{cx:.05*t,cy:.75*r,r:.025*Math.min(t,r),fill:i,stroke:"none"}),(0,N.jsx)("line",{x1:.1*t,y1:.18*r,x2:.1*t,y2:.82*r,stroke:i,strokeWidth:ee(0,.5*l),strokeLinecap:"round"})]})}case"motorbike":return(0,N.jsxs)("g",{children:[(0,N.jsx)("rect",{x:.2*t,y:.32*r,width:.6*t,height:.36*r,rx:.18*Math.min(t,r),stroke:i,fill:s,strokeWidth:l}),(0,N.jsx)("rect",{x:.05*t,y:.36*r,width:.15*t,height:.28*r,rx:2,fill:i,stroke:"none"}),(0,N.jsx)("rect",{x:.8*t,y:.36*r,width:.15*t,height:.28*r,rx:2,fill:i,stroke:"none"}),(0,N.jsx)("line",{x1:.78*t,y1:.15*r,x2:.78*t,y2:.85*r,stroke:i,strokeWidth:ee(.6,.8*l),strokeLinecap:"round"})]});case"truck":{const e=.25*t,o=.06*Math.min(t,r),n=.1*Math.min(t,r);return(0,N.jsxs)("g",{children:[(0,N.jsx)("rect",{x:.4*e-o/2,y:-n/2,width:o,height:n,fill:i,stroke:"none",rx:1}),(0,N.jsx)("rect",{x:.4*e-o/2,y:r-n/2,width:o,height:n,fill:i,stroke:"none",rx:1}),(0,N.jsx)("rect",{x:.78*t-o/2,y:-n/2,width:o,height:n,fill:i,stroke:"none",rx:1}),(0,N.jsx)("rect",{x:.78*t-o/2,y:r-n/2,width:o,height:n,fill:i,stroke:"none",rx:1}),(0,N.jsx)("rect",{x:.88*t-o/2,y:-n/2,width:o,height:n,fill:i,stroke:"none",rx:1}),(0,N.jsx)("rect",{x:.88*t-o/2,y:r-n/2,width:o,height:n,fill:i,stroke:"none",rx:1}),(0,N.jsx)("rect",{x:0,y:0,width:e,height:r,rx:.06*Math.min(t,r),stroke:i,fill:s,strokeWidth:l}),(0,N.jsx)("rect",{x:.55*e,y:.15*r,width:.35*e,height:.7*r,stroke:i,fill:"none",strokeWidth:ee(0,.7*l),rx:1}),(0,N.jsx)("rect",{x:e+4,y:.05*r,width:t-e-4,height:.9*r,stroke:i,fill:s,strokeWidth:l})]})}case"pillar":return(0,N.jsxs)("g",{children:[(0,N.jsx)("rect",{x:0,y:0,width:t,height:r,fill:U??s,stroke:"none"}),(0,N.jsx)("rect",{x:0,y:0,width:t,height:r,fill:i,fillOpacity:.1,stroke:i,strokeWidth:l})]});case"pillar_round":{const e=U??s,o=Math.min(t,r)/2-l/2;return(0,N.jsxs)("g",{children:[(0,N.jsx)("circle",{cx:t/2,cy:r/2,r:Math.max(1,o),fill:e,stroke:"none"}),(0,N.jsx)("circle",{cx:t/2,cy:r/2,r:Math.max(1,o),fill:i,fillOpacity:.1,stroke:i,strokeWidth:l})]})}case"pillar_h":case"pillar_i":{const e=U??s,o=Math.max(1,.12*r),n=Math.max(1,.1*t),h=(t-n)/2,a=(t+n)/2,c=[`M 0 0 L ${t} 0 L ${t} ${o} L ${a} ${o}`,`L ${a} ${r-o} L ${t} ${r-o} L ${t} ${r}`,`L 0 ${r} L 0 ${r-o} L ${h} ${r-o}`,`L ${h} ${o} L 0 ${o} Z`].join(" ");return(0,N.jsxs)("g",{children:[(0,N.jsx)("path",{d:c,fill:e,stroke:"none"}),(0,N.jsx)("path",{d:c,fill:i,fillOpacity:.1,stroke:i,strokeWidth:l})]})}case"north_arrow":{const e=t/2,o=r/2,n=Math.min(t,r);if("simple"===ie){const t=.3*r,s=.95*r,o=.24*n,h=.075*n;return(0,N.jsxs)("g",{children:[(0,N.jsx)("line",{x1:e,y1:s,x2:e,y2:t,stroke:i,strokeWidth:l,strokeLinecap:"round"}),(0,N.jsx)("path",{d:`M ${e} ${t} L ${e+h} ${t+o} L ${e-h} ${t+o} Z`,fill:i,stroke:i,strokeWidth:ee(0,.4*l),strokeLinejoin:"round"}),(0,N.jsx)("text",{x:e,y:t-.06*n,fontSize:.28*n,textAnchor:"middle",fontWeight:"bold",fill:i,stroke:"none",dominantBaseline:"text-after-edge",children:"N"})]})}if("quadrant"===ie){const t=n/2-l,r=.8*t,h=.26*t,a=h*Math.SQRT1_2,c=[[e,o-r],[e+r,o],[e,o+r],[e-r,o]],x=[[e+a,o-a],[e+a,o+a],[e-a,o+a],[e-a,o-a]],d=(t,r)=>`M ${t[0]} ${t[1]} L ${r[0]} ${r[1]} L ${e} ${o} Z`;return(0,N.jsxs)("g",{children:[(0,N.jsx)("circle",{cx:e,cy:o,r:t,stroke:i,fill:s,strokeWidth:l}),x.map(([r,s],n)=>(0,N.jsx)("line",{x1:e,y1:o,x2:e+(r-e)/h*t,y2:o+(s-o)/h*t,stroke:i,strokeWidth:ee(0,.5*l)},`q${n}`)),c.map((e,t)=>(0,N.jsxs)("g",{children:[(0,N.jsx)("path",{d:d(e,x[t]),fill:i,stroke:i,strokeWidth:ee(0,.4*l),strokeLinejoin:"round"}),(0,N.jsx)("path",{d:d(e,x[(t+3)%4]),fill:s,stroke:i,strokeWidth:ee(0,.4*l),strokeLinejoin:"round"})]},`p${t}`)),(0,N.jsx)("text",{x:e,y:o-.92*t,fontSize:.2*n,textAnchor:"middle",fontWeight:"bold",fill:i,stroke:"none",dominantBaseline:"text-after-edge",children:"N"})]})}if("minimal"===ie){const t=.26*r,s=.94*r,o=.3*n,h=.17*n;return(0,N.jsxs)("g",{children:[(0,N.jsx)("line",{x1:e,y1:s,x2:e,y2:t,stroke:i,strokeWidth:l,strokeLinecap:"round"}),(0,N.jsx)("path",{d:`M ${e} ${t} L ${e+h} ${t+o} L ${e} ${t+.62*o} Z`,fill:i,stroke:i,strokeWidth:ee(0,.4*l),strokeLinejoin:"round"}),(0,N.jsx)("text",{x:e,y:t-.05*n,fontSize:.24*n,textAnchor:"middle",fontWeight:"bold",fill:i,stroke:"none",dominantBaseline:"text-after-edge",children:"N"})]})}const h=n/2-l;return(0,N.jsxs)("g",{children:[(0,N.jsx)("circle",{cx:e,cy:o,r:h,stroke:i,fill:s,strokeWidth:l}),(0,N.jsx)("path",{d:`M ${e} ${o-.85*h} L ${e+.25*h} ${o} L ${e} ${o+.05*h} Z`,fill:i,stroke:i,strokeWidth:ee(0,.4*l)}),(0,N.jsx)("path",{d:`M ${e} ${o-.85*h} L ${e-.25*h} ${o} L ${e} ${o+.05*h} Z`,fill:"none",stroke:i,strokeWidth:ee(0,.4*l)}),(0,N.jsx)("text",{x:e,y:o-.92*h,fontSize:.18*Math.min(t,r),textAnchor:"middle",fontWeight:"bold",fill:i,stroke:"none",dominantBaseline:"text-after-edge",children:"N"})]})}case"person":{const e=t/2,o=r/2,n=.18*Math.min(t,r),h=.45*Math.min(t,r),a=.18*Math.min(t,r);return(0,N.jsxs)("g",{children:[(0,N.jsx)("ellipse",{cx:e,cy:o+.6*n,rx:h,ry:a,stroke:i,fill:s,strokeWidth:l}),(0,N.jsx)("circle",{cx:e,cy:o-.5*n,r:n,stroke:i,fill:s,strokeWidth:l})]})}case"banco":return(0,N.jsxs)("g",{children:[(0,N.jsx)("rect",{x:0,y:0,width:t,height:r,rx:2,stroke:i,fill:s,strokeWidth:l}),(0,N.jsx)("line",{x1:0,y1:.4*r,x2:t,y2:.4*r,stroke:i,strokeWidth:ee(.3,l/2.5)}),(0,N.jsx)("line",{x1:0,y1:.7*r,x2:t,y2:.7*r,stroke:i,strokeWidth:ee(.3,l/2.5)})]});case"tumbona":{const e=.15*r;return(0,N.jsxs)("g",{children:[(0,N.jsx)("rect",{x:0,y:0,width:t,height:e,rx:2,stroke:i,fill:s,strokeWidth:l}),(0,N.jsx)("rect",{x:0,y:e+1,width:t,height:r-e-1,rx:2,stroke:i,fill:s,strokeWidth:l}),(0,N.jsx)("line",{x1:0,y1:.55*r,x2:t,y2:.55*r,stroke:i,strokeWidth:ee(.3,l/2.5)})]})}case"sombrilla":{const e=t/2,o=r/2,n=Math.min(t,r)/2-2,h=.06*Math.min(t,r),a=Array.from({length:8},(t,r)=>{const i=r*Math.PI*2/8;return{x1:e,y1:o,x2:e+Math.cos(i)*n,y2:o+Math.sin(i)*n}});return(0,N.jsxs)("g",{children:[(0,N.jsx)("circle",{cx:e,cy:o,r:n,stroke:i,fill:s,strokeWidth:l}),a.map((e,t)=>(0,N.jsx)("line",{x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2,stroke:i,strokeWidth:ee(.3,l/2.5)},t)),(0,N.jsx)("rect",{x:e-h/2,y:o-h/2,width:h,height:h,stroke:i,fill:i,strokeWidth:ee(.3,l/2)})]})}case"bbq":{const e=.06*Math.min(t,r);return(0,N.jsxs)("g",{children:[(0,N.jsx)("rect",{x:0,y:0,width:t,height:r,rx:2,stroke:i,fill:s,strokeWidth:l}),(0,N.jsx)("line",{x1:.1*t,y1:.3*r,x2:.78*t,y2:.3*r,stroke:i,strokeWidth:ee(.3,l/2.5)}),(0,N.jsx)("line",{x1:.1*t,y1:.5*r,x2:.78*t,y2:.5*r,stroke:i,strokeWidth:ee(.3,l/2.5)}),(0,N.jsx)("line",{x1:.1*t,y1:.7*r,x2:.78*t,y2:.7*r,stroke:i,strokeWidth:ee(.3,l/2.5)}),(0,N.jsx)("circle",{cx:.88*t,cy:.35*r,r:e,stroke:i,fill:"none",strokeWidth:ee(.3,l/2)}),(0,N.jsx)("circle",{cx:.88*t,cy:.65*r,r:e,stroke:i,fill:"none",strokeWidth:ee(.3,l/2)})]})}case"farola":{const e=t/2,s=r/2,o=Math.min(t,r)/2-1,n=.45*o;return(0,N.jsxs)("g",{children:[(0,N.jsx)("circle",{cx:e,cy:s,r:o,stroke:i,fill:"none",strokeWidth:ee(.4,l/2),strokeDasharray:"3 2",opacity:.7}),(0,N.jsx)("line",{x1:e-n,y1:s,x2:e+n,y2:s,stroke:i,strokeWidth:ee(.5,l/1.8)}),(0,N.jsx)("line",{x1:e,y1:s-n,x2:e,y2:s+n,stroke:i,strokeWidth:ee(.5,l/1.8)}),(0,N.jsx)("circle",{cx:e,cy:s,r:Math.max(1.5,.18*o),stroke:i,fill:i,strokeWidth:ee(.4,l/2)})]})}case"aplique_exterior":{const e=t/2;return(0,N.jsxs)("g",{children:[(0,N.jsx)("rect",{x:0,y:0,width:t,height:r,rx:1.5,stroke:i,fill:s,strokeWidth:l}),(0,N.jsx)("path",{d:`M ${e-.3*t} ${r} Q ${e} ${1.8*r} ${e+.3*t} ${r}`,stroke:i,fill:"none",strokeWidth:ee(.3,l/2.5),strokeDasharray:"2 2",opacity:.6})]})}case"jardinera":{const e=r/2,o=Math.min(.18*r,5),n=3,h=.7*t/n,a=`M ${.15*t} ${e} `+Array.from({length:n},(e,t)=>`q ${h/2} ${t%2==0?-o:o} ${h} 0`).join(" ");return(0,N.jsxs)("g",{children:[(0,N.jsx)("rect",{x:0,y:0,width:t,height:r,rx:1.5,stroke:i,fill:s,strokeWidth:l}),(0,N.jsx)("rect",{x:3,y:3,width:Math.max(0,t-6),height:Math.max(0,r-6),rx:1,stroke:i,fill:"none",strokeWidth:ee(.3,l/2),opacity:.7}),(0,N.jsx)("path",{d:a,stroke:i,fill:"none",strokeWidth:ee(.3,l/2.5),opacity:.65})]})}case"pool":{const e=Math.min(t,r),o=Math.min(.08*e,20),n=Math.max(4,.06*e),h=r/2,a=3,c=.25*Math.min(t,r),x=Math.max(2,.025*e),d=c/a,k=`M ${(t-c)/2} ${h} `+Array.from({length:a},(e,t)=>`q ${d/2} ${t%2==0?-x:x} ${d} 0`).join(" "),y=Q??[{id:"l-default",t:.07}],b=Z??30,j=20,f=[{sx:0,sy:0,ex:t,ey:0,len:t,rot:0},{sx:t,sy:0,ex:t,ey:r,len:r,rot:90},{sx:t,sy:r,ex:0,ey:r,len:t,rot:180},{sx:0,sy:r,ex:0,ey:0,len:r,rot:270}],p=f.reduce((e,t)=>
1e+t.len,0),m=e=>{const t=Math.max(0,Math.min(1,e))*p;let r=0;for(let s=0;s<f.length;s++){const e=f[s];if(r+e.len>=t||s===f.length-1){const i=e.len>0?(t-r)/e.len:0;return{x:e.sx+(e.ex-e.sx)*Math.max(0,Math.min(1,i)),y:e.sy+(e.ey-e.sy)*Math.max(0,Math.min(1,i)),rot:e.rot}}r+=e.len}const i=f[f.length-1];return{x:i.ex,y:i.ey,rot:i.rot}},g=(e,t)=>{const r=m(t),s=r.rot,o=b,n=j;return(0,N.jsxs)("g",{"data-pool-ladder":t,transform:`rotate(${s} ${r.x} ${r.y}) translate(${r.x-o/2} ${r.y})`,opacity:.9,children:[(0,N.jsx)("rect",{x:0,y:0,width:o,height:n,rx:1.5,stroke:i,fill:"none",strokeWidth:ee(.4,l/2)}),(0,N.jsx)("line",{x1:.25*o,y1:0,x2:.25*o,y2:n,stroke:i,strokeWidth:ee(.3,l/2.5)}),(0,N.jsx)("line",{x1:.5*o,y1:0,x2:.5*o,y2:n,stroke:i,strokeWidth:ee(.3,l/2.5)}),(0,N.jsx)("line",{x1:.75*o,y1:0,x2:.75*o,y2:n,stroke:i,strokeWidth:ee(.3,l/2.5)})]},e)};return(0,N.jsxs)("g",{children:[(0,N.jsx)("rect",{x:0,y:0,width:t,height:r,rx:o,stroke:i,fill:s,strokeWidth:l}),(0,N.jsx)("rect",{x:n,y:n,width:Math.max(0,t-2*n),height:Math.max(0,r-2*n),rx:Math.max(0,o-.5*n),stroke:i,fill:"none",strokeWidth:ee(.4,l/2)}),y.map((e,t)=>g(e.id||`ladder-${t}`,e.t)),(0,N.jsx)("path",{d:k,stroke:i,fill:"none",strokeWidth:ee(.3,l/2.5),opacity:.6})]})}default:return(0,N.jsx)("rect",{width:t,height:r,stroke:i,fill:s})}};return(0,N.jsxs)("g",{children:[h?P(ne(),i,s):ne(),oe&&p&&(0,N.jsxs)("g",{transform:`translate(${t}, ${r}) scale(${1/g}) translate(-8, -8)`,opacity:.8,children:[(0,N.jsx)("circle",{cx:3,cy:3,r:6,fill:s,stroke:"none",opacity:.8}),(0,N.jsx)("line",{x1:0,y1:0,x2:6,y2:6,stroke:i,strokeWidth:.8,strokeLinecap:"round"}),(0,N.jsx)("path",{d:"M 3.5 0 L 0 0 L 0 3.5",stroke:i,strokeWidth:.8,fill:"none"}),(0,N.jsx)("path",{d:"M 2.5 6 L 6 6 L 6 2.5",stroke:i,strokeWidth:.8,fill:"none"})]})]})}});export{q as a,I as c,Y as i,F as n,Q as o,Z as r,T as s,E as t};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.