PageSourceSearch

https://kraz.ai/assets/Calculadora-BFaQk1B_.js

js kraz.ai collected 2026-09-29 21:08:40 UTC 42,000 bytes, 6 lines download raw bytes

1import{c as We,r as h,W as A,Y as je,ac as qe,a4 as Ge,a5 as Ye,j as t,a8 as $,aa as q,ad as Ue,a7 as Q,ag as Xe,ae as Qe,ah as Je,ai as Ze,aj as et,ak as tt,f as at,B as me,L as pe,A as xe}from"./index-DPfCkTll.js";import{c as we}from"./index-BdQq_4o_.js";import{r as rt,m as U}from"./proxy-COmNXm-i.js";import{D as nt,a as st,b as it,c as ot,d as lt}from"./dialog-CTWNVj20.js";import{Z as ct}from"./zap-BG5S-lpn.js";import{I as dt}from"./info-BzptA8qE.js";import{B as ut}from"./brain-NQ-HBjmv.js";import{A as mt}from"./activity-8rDcgQMi.js";import{l as T,L as X,F as J,i as H,n as te,A as pt,o as F,q as fe,H as xt,p as he,r as ft,s as ht,G as gt,t as ge,v as ve,f as ne,D as vt,x as bt,y as yt,X as Ne,Y as Se,z as jt,R as wt,T as Nt}from"./generateCategoricalChart-mKqM9amN.js";/**
2 * @license lucide-react v0.462.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */const St=We("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]),At={some:0,all:1};function kt(e,a,{root:n,margin:r,amount:s="some"}={}){const l=rt(e),i=new WeakMap,o=u=>{u.forEach(m=>{const d=i.get(m.target);if(m.isIntersecting!==!!d)if(m.isIntersecting){const p=a(m.target,m);typeof p=="function"?i.set(m.target,p):c.unobserve(m.target)}else typeof d=="function"&&(d(m),i.delete(m.target))})},c=new IntersectionObserver(o,{root:n,rootMargin:r,threshold:typeof s=="number"?s:At[s]});return l.forEach(u=>c.observe(u)),()=>c.disconnect()}function Dt(e,{root:a,margin:n,amount:r,once:s=!1,initial:l=!1}={}){const[i,o]=h.useState(l);return h.useEffect(()=>{if(!e.current||s&&i)return;const c=()=>(o(!0),s?void 0:()=>o(!1)),u={root:a&&a.current||void 0,margin:n,amount:r};return kt(e.current,c,u)},[a,e,n,s,r]),i}var Pt=["layout","type","stroke","connectNulls","isRange","ref"],Et=["key"],Ae;function W(e){"@babel/helpers - typeof";return W=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},W(e)}function ke(e,a){if(e==null)return{};var n=Ct(e,a),r,s;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(s=0;s<l.length;s++)r=l[s],!(a.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ct(e,a){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(a.indexOf(r)>=0)continue;n[r]=e[r]}return n}function B(){return B=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var n=arguments[a];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},B.apply(this,arguments)}function be(e,a){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);a&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function I(e){for(var a=1;a<arguments.length;a++){var n=arguments[a]!=null?arguments[a]:{};a%2?be(Object(n),!0).forEach(function(r){O(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):be(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Rt(e,a){if(!(e instanceof a))throw new TypeError("Cannot call a class as a function")}function ye(e,a){for(var n=0;n<a.length;n++){var r=a[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Pe(r.key),r)}}function Mt(e,a,n){return a&&ye(e.prototype,a),n&&ye(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ot(e,a,n){return a=Z(a),_t(e,De()?Reflect.construct(a,n||[],Z(e).constructor):a.apply(e,n))}function _t(e,a){if(a&&(W(a)==="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Lt(e)}function Lt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function De(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(De=function(){return!!e})()}
vendor: 4,173 bytes, line 6
6function Z(e){return Z=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Z(e)}function It(e,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(a&&a.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),a&&se(e,a)}function se(e,a){return se=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,s){return r.__proto__=s,r},se(e,a)}function O(e,a,n){return a=Pe(a),a in e?Object.defineProperty(e,a,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[a]=n,e}function Pe(e){var a=zt(e,"string");return W(a)=="symbol"?a:a+""}function zt(e,a){if(W(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,a||"default");if(W(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(e)}var _=function(e){function a(){var n;Rt(this,a);for(var r=arguments.length,s=new Array(r),l=0;l<r;l++)s[l]=arguments[l];return n=Ot(this,a,[].concat(s)),O(n,"state",{isAnimationFinished:!0}),O(n,"id",bt("recharts-area-")),O(n,"handleAnimationEnd",function(){var i=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),ne(i)&&i()}),O(n,"handleAnimationStart",function(){var i=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),ne(i)&&i()}),n}return It(a,e),Mt(a,[{key:"renderDots",value:function(r,s,l){var i=this.props.isAnimationActive,o=this.state.isAnimationFinished;if(i&&!o)return null;var c=this.props,u=c.dot,m=c.points,d=c.dataKey,p=T(this.props,!1),y=T(u,!0),x=m.map(function(g,v){var w=I(I(I({key:"dot-".concat(v),r:3},p),y),{},{index:v,cx:g.x,cy:g.y,dataKey:d,value:g.value,payload:g.payload,points:m});return a.renderDotItem(u,w)}),b={clipPath:r?"url(#clipPath-".concat(s?"":"dots-").concat(l,")"):null};return A.createElement(X,B({className:"recharts-area-dots"},b),x)}},{key:"renderHorizontalRect",value:function(r){var s=this.props,l=s.baseLine,i=s.points,o=s.strokeWidth,c=i[0].x,u=i[i.length-1].x,m=r*Math.abs(c-u),d=J(i.map(function(p){return p.y||0}));return H(l)&&typeof l=="number"?d=Math.max(l,d):l&&Array.isArray(l)&&l.length&&(d=Math.max(J(l.map(function(p){return p.y||0})),d)),H(d)?A.createElement("rect",{x:c<u?c:c-m,y:0,width:m,height:Math.floor(d+(o?parseInt("".concat(o),10):1))}):null}},{key:"renderVerticalRect",value:function(r){var s=this.props,l=s.baseLine,i=s.points,o=s.strokeWidth,c=i[0].y,u=i[i.length-1].y,m=r*Math.abs(c-u),d=J(i.map(function(p){return p.x||0}));return H(l)&&typeof l=="number"?d=Math.max(l,d):l&&Array.isArray(l)&&l.length&&(d=Math.max(J(l.map(function(p){return p.x||0})),d)),H(d)?A.createElement("rect",{x:0,y:c<u?c:c-m,width:d+(o?parseInt("".concat(o),10):1),height:Math.floor(m)}):null}},{key:"renderClipRect",value:function(r){var s=this.props.layout;return s==="vertical"?this.renderVerticalRect(r):this.renderHorizontalRect(r)}},{key:"renderAreaStatically",value:function(r,s,l,i){var o=this.props,c=o.layout,u=o.type,m=o.stroke,d=o.connectNulls,p=o.isRange;o.ref;var y=ke(o,Pt);return A.createElement(X,{clipPath:l?"url(#clipPath-".concat(i,")"):null},A.createElement(te,B({},T(y,!0),{points:r,connectNulls:d,type:u,baseLine:s,layout:c,stroke:"none",className:"recharts-area-area"})),m!=="none"&&A.createElement(te,B({},T(this.props,!1),{className:"recharts-area-curve",layout:c,type:u,connectNulls:d,fill:"none",points:r})),m!=="none"&&p&&A.createElement(te,B({},T(this.props,!1),{className:"recharts-area-curve",layout:c,type:u,connectNulls:d,fill:"none",points:s})))}},{key:"renderAreaWithAnimation",value:function(r,s){var l=this,i=this.props,o=i.points,c=i.baseLine,u=i.isAnimationActive,m=i.animationBegin,d=i.animationDuration,p=i.animationEasing,y=i.animationId,x=this.state,b=x.prevPoints,g=x.prevBaseLine;return A.createElement(pt,{begin:m,duration:d,isActive:u,easing:p,from:{t:0},to:{t:1},key:"area-".concat(y),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(v){var w=v.t;if(b){var j=b.length/o.length,f=o.map(function(D,L){var E=Math.floor(L*j);
6if(b[E]){var S=b[E],C=F(S.x,D.x),R=F(S.y,D.y);return I(I({},D),{},{x:C(w),y:R(w)})}return D}),N;if(H(c)&&typeof c=="number"){var k=F(g,c);N=k(w)}else if(fe(c)||xt(c)){var P=F(g,0);N=P(w)}else N=c.map(function(D,L){var E=Math.floor(L*j);if(g[E]){var S=g[E],C=F(S.x,D.x),R=F(S.y,D.y);return I(I({},D),{},{x:C(w),y:R(w)})}return D});return l.renderAreaStatically(f,N,r,s)}return A.createElement(X,null,A.createElement("defs",null,A.createElement("clipPath",{id:"animationClipPath-".concat(s)},l.renderClipRect(w))),A.createElement(X,{clipPath:"url(#animationClipPath-".concat(s,")")},l.renderAreaStatically(o,c,r,s)))})}},{key:"renderArea",value:function(r,s){var l=this.props,i=l.points,o=l.baseLine,c=l.isAnimationActive,u=this.state,m=u.prevPoints,d=u.prevBaseLine,p=u.totalLength;return c&&i&&i.length&&(!m&&p>0||!he(m,i)||!he(d,o))?this.renderAreaWithAnimation(r,s):this.renderAreaStatically(i,o,r,s)}},{key:"render",value:function(){var r,s=this.props,l=s.hide,i=s.dot,o=s.points,c=s.className,u=s.top,m=s.left,d=s.xAxis,p=s.yAxis,y=s.width,x=s.height,b=s.isAnimationActive,g=s.id;if(l||!o||!o.length)return null;var v=this.state.isAnimationFinished,w=o.length===1,j=je("recharts-area",c),f=d&&d.allowDataOverflow,N=p&&p.allowDataOverflow,k=f||N,P=fe(g)?this.id:g,D=(r=T(i,!1))!==null&&r!==void 0?r:{r:3,strokeWidth:2},L=D.r,E=L===void 0?3:L,S=D.strokeWidth,C=S===void 0?2:S,R=ft(i)?i:{},Y=R.clipDot,V=Y===void 0?!0:Y,M=E*2+C;return A.createElement(X,{className:j},f||N?A.createElement("defs",null,A.createElement("clipPath",{id:"clipPath-".concat(P)},A.createElement("rect",{x:f?m:m-y/2,y:N?u:u-x/2,width:f?y:y*2,height:N?x:x*2})),!V&&A.createElement("clipPath",{id:"clipPath-dots-".concat(P)},A.createElement("rect",{x:m-M/2,y:u-M/2,width:y+M,height:x+M}))):null,w?null:this.renderArea(k,P),(i||w)&&this.renderDots(k,V,P),(!b||v)&&ht.renderCallByParent(this.props,o))}}],[{key:"getDerivedStateFromProps",value:function(r,s){return r.animationId!==s.prevAnimationId?{prevAnimationId:r.animationId,curPoints:r.points,curBaseLine:r.baseLine,prevPoints:s.curPoints,prevBaseLine:s.curBaseLine}:r.points!==s.curPoints||r.baseLine!==s.curBaseLine?{curPoints:r.points,curBaseLine:r.baseLine}:null}}])}(h.PureComponent);Ae=_;O(_,"displayName","Area");O(_,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!gt.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});O(_,"getBaseValue",function(e,a,n,r){var s=e.layout,l=e.baseValue,i=a.props.baseValue,o=i??l;if(H(o)&&typeof o=="number")return o;var c=s==="horizontal"?r:n,u=c.scale.domain();if(c.type==="number"){var m=Math.max(u[0],u[1]),d=Math.min(u[0],u[1]);return o==="dataMin"?d:o==="dataMax"||m<0?m:Math.max(Math.min(u[0],u[1]),0)}return o==="dataMin"?u[0]:o==="dataMax"?u[1]:u[0]});O(_,"getComposedData",function(e){var a=e.props,n=e.item,r=e.xAxis,s=e.yAxis,l=e.xAxisTicks,i=e.yAxisTicks,o=e.bandSize,c=e.dataKey,u=e.stackedData,m=e.dataStartIndex,d=e.displayedData,p=e.offset,y=a.layout,x=u&&u.length,b=Ae.getBaseValue(a,n,r,s),g=y==="horizontal",v=!1,w=d.map(function(f,N){var k;x?k=u[m+N]:(k=ge(f,c),Array.isArray(k)?v=!0:k=[b,k]);var P=k[1]==null||x&&ge(f,c)==null;return g?{x:ve({axis:r,ticks:l,bandSize:o,entry:f,index:N}),y:P?null:s.scale(k[1]),value:k,payload:f}:{x:P?null:r.scale(k[1]),y:ve({axis:s,ticks:i,bandSize:o,entry:f,index:N}),value:k,payload:f}}),j;return x||v?j=w.map(function(f){var N=Array.isArray(f.value)?f.value[0]:null;return g?{x:f.x,y:N!=null&&f.y!=null?s.scale(N):null}:{x:N!=null?r.scale(N):null,y:f.y}}):j=g?s.scale(b):r.scale(b),I({points:w,baseLine:j,layout:y,isRange:v},p)});O(_,"renderDotItem",function(e,a){var n;if(A.isValidElement(e))n=A.cloneElement(e,a);else if(ne(e))n=e(a);else{var r=je("recharts-area-dot",typeof e!="boolean"?e.className:""),s=a.key,l=ke(a,Et);n=A.createElement(vt,B({},l,{key:s,className:r}))}return n});var Bt=yt({chartName:"AreaChart",GraphicalChild:_,axisComponents:[{axisType:"xAxis",AxisComp:Ne},{axisType:"yAxis",AxisComp:Se}],formatAxisMap:jt});function Vt(e){const a=h.useRef({value:e,previous:e});return h.useMemo(()=>(a.current.value!==e&&(a.current.previous=a.current.value,a.current.value=e),a.current.previous),[e])}var Ee=["PageUp","PageDown"],Ce=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Re={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},G="Slider",[ie,Kt,Tt]=qe(G),[Me,ha]=Ge(G,[Tt]),[Ft,ee]=Me(G),Oe=h.forwardRef((e,a)=>{const{name:n,min:r=0,max:s=100,step:l=1,orientation:i="horizontal",disabled:o=!1,minStepsBetweenThumbs:c=0,defaultValue:u=[r],value:m,onValueChange:d=()=>{},onValueCommit:p=()=>{},inverted:y=!1,form:x,...b}=e,g=h.useRef(new Set),v=h.useRef(0),j=i==="horizontal"?Ht:$t,[f=[],N]=Ye({prop:m,defaultProp:u,onChange:S=>{var R;(R=[...g.current][v.current])==null||R.focus(),d(S)}}),k=h.useRef(f);function P(S){const C=Ut(f,S);E(S,C)}function D(S){E(S,v.current)}function L(){const S=k.current[v.current];f[v.current]!==S&&p(f)}function E(S,C,{commit:R}={commit:!1}){const Y=Zt(l),V=ea(Math.round((S-r)/l)*l+r,Y),M=we(V,[r,s]);N((K=[])=>{const z=Gt(K,M,C);if(Jt(z,c*l)){v.current=z.indexOf(M);const ue=String(z)!==String(K);return ue&&R&&p(z),ue?z:K}else return K})}return t.jsx(Ft,{scope:e.__scopeSlider,name:n,disabled:o,min:r,max:s,valueIndexToChangeRef:v,thumbs:g.current,values:f,orientation:i,form:x,children:t.jsx(ie.Provider,{scope:e.__scopeSlider,children:t.jsx(ie.Slot,{scope:e.__scopeSlider,children:t.jsx(j,{"aria-disabled":o,"data-disabled":o?"":void 0,...b,ref:a,onPointerDown:$(b.onPointerDown,()=>{o||(k.current=f)}),min:r,max:s,inverted:y,onSlideStart:o?void 0:P,onSlideMove:o?void 0:D,onSlideEnd:o?void 0:L,onHomeKeyDown:()=>!o&&E(r,0,{commit:!0}),onEndKeyDown:()=>!o&&E(s,f.length-1,{commit:!0}),onStepKeyDown:({event:S,direction:C})=>{if(!o){const V=Ee.includes(S.key)||S.shiftKey&&Ce.includes(S.key)?10:1,M=v.current,K=f[M],z=l*V*C;E(K+z,M,{commit:!0})}}})})})})});Oe.displayName=G;var[_e,Le]=Me(G,{startEdge:"left",endEdge:"right",size:"width",direction:1}),Ht=h.forwardRef((e,a)=>{const{min:n,max:r,dir:s,inverted:l,onSlideStart:i,onSlideMove:o,onSlideEnd:c,onStepKeyDown:u,...m}=e,[d,p]=h.useState(null),y=q(a,j=>p(j)),x=h.useRef(void 0),b=Ue(s),g=b==="ltr",v=g&&!l||!g&&l;function w(j){const f=x.current||d.getBoundingClientRect(),N=[0,f.width],P=ce(N,v?[n,r]:[r,n]);return x.current=f,P(j-f.left)}
6return t.jsx(_e,{scope:e.__scopeSlider,startEdge:v?"left":"right",endEdge:v?"right":"left",direction:v?1:-1,size:"width",children:t.jsx(Ie,{dir:b,"data-orientation":"horizontal",...m,ref:y,style:{...m.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:j=>{const f=w(j.clientX);i==null||i(f)},onSlideMove:j=>{const f=w(j.clientX);o==null||o(f)},onSlideEnd:()=>{x.current=void 0,c==null||c()},onStepKeyDown:j=>{const N=Re[v?"from-left":"from-right"].includes(j.key);u==null||u({event:j,direction:N?-1:1})}})})}),$t=h.forwardRef((e,a)=>{const{min:n,max:r,inverted:s,onSlideStart:l,onSlideMove:i,onSlideEnd:o,onStepKeyDown:c,...u}=e,m=h.useRef(null),d=q(a,m),p=h.useRef(void 0),y=!s;function x(b){const g=p.current||m.current.getBoundingClientRect(),v=[0,g.height],j=ce(v,y?[r,n]:[n,r]);return p.current=g,j(b-g.top)}return t.jsx(_e,{scope:e.__scopeSlider,startEdge:y?"bottom":"top",endEdge:y?"top":"bottom",size:"height",direction:y?1:-1,children:t.jsx(Ie,{"data-orientation":"vertical",...u,ref:d,style:{...u.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:b=>{const g=x(b.clientY);l==null||l(g)},onSlideMove:b=>{const g=x(b.clientY);i==null||i(g)},onSlideEnd:()=>{p.current=void 0,o==null||o()},onStepKeyDown:b=>{const v=Re[y?"from-bottom":"from-top"].includes(b.key);c==null||c({event:b,direction:v?-1:1})}})})}),Ie=h.forwardRef((e,a)=>{const{__scopeSlider:n,onSlideStart:r,onSlideMove:s,onSlideEnd:l,onHomeKeyDown:i,onEndKeyDown:o,onStepKeyDown:c,...u}=e,m=ee(G,n);return t.jsx(Q.span,{...u,ref:a,onKeyDown:$(e.onKeyDown,d=>{d.key==="Home"?(i(d),d.preventDefault()):d.key==="End"?(o(d),d.preventDefault()):Ee.concat(Ce).includes(d.key)&&(c(d),d.preventDefault())}),onPointerDown:$(e.onPointerDown,d=>{const p=d.target;p.setPointerCapture(d.pointerId),d.preventDefault(),m.thumbs.has(p)?p.focus():r(d)}),onPointerMove:$(e.onPointerMove,d=>{d.target.hasPointerCapture(d.pointerId)&&s(d)}),onPointerUp:$(e.onPointerUp,d=>{const p=d.target;p.hasPointerCapture(d.pointerId)&&(p.releasePointerCapture(d.pointerId),l(d))})})}),ze="SliderTrack",Be=h.forwardRef((e,a)=>{const{__scopeSlider:n,...r}=e,s=ee(ze,n);return t.jsx(Q.span,{"data-disabled":s.disabled?"":void 0,"data-orientation":s.orientation,...r,ref:a})});Be.displayName=ze;var oe="SliderRange",Ve=h.forwardRef((e,a)=>{const{__scopeSlider:n,...r}=e,s=ee(oe,n),l=Le(oe,n),i=h.useRef(null),o=q(a,i),c=s.values.length,u=s.values.map(p=>Fe(p,s.min,s.max)),m=c>1?Math.min(...u):0,d=100-Math.max(...u);return t.jsx(Q.span,{"data-orientation":s.orientation,"data-disabled":s.disabled?"":void 0,...r,ref:o,style:{...e.style,[l.startEdge]:m+"%",[l.endEdge]:d+"%"}})});Ve.displayName=oe;var le="SliderThumb",Ke=h.forwardRef((e,a)=>{const n=Kt(e.__scopeSlider),[r,s]=h.useState(null),l=q(a,o=>s(o)),i=h.useMemo(()=>r?n().findIndex(o=>o.ref.current===r):-1,[n,r]);return t.jsx(Wt,{...e,ref:l,index:i})}),Wt=h.forwardRef((e,a)=>{const{__scopeSlider:n,index:r,name:s,...l}=e,i=ee(le,n),o=Le(le,n),[c,u]=h.useState(null),m=q(a,w=>u(w)),d=c?i.form||!!c.closest("form"):!0,p=Xe(c),y=i.values[r],x=y===void 0?0:Fe(y,i.min,i.max),b=Yt(r,i.values.length),g=p==null?void 0:p[o.size],v=g?Xt(g,x,o.direction):0;return h.useEffect(()=>{if(c)return i.thumbs.add(c),()=>{i.thumbs.delete(c)}},[c,i.thumbs]),t.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[o.startEdge]:`calc(${x}% + ${v}px)`},children:[t.jsx(ie.ItemSlot,{scope:e.__scopeSlider,children:t.jsx(Q.span,{role:"slider","aria-label":e["aria-label"]||b,"aria-valuemin":i.min,"aria-valuenow":y,"aria-valuemax":i.max,"aria-orientation":i.orientation,"data-orientation":i.orientation,"data-disabled":i.disabled?"":void 0,tabIndex:i.disabled?void 0:0,...l,ref:m,style:y===void 0?{display:"none"}:e.style,onFocus:$(e.onFocus,()=>{i.valueIndexToChangeRef.current=r})})}),d&&t.jsx(Te,{name:s??(i.name?i.name+(i.values.length>1?"[]":""):void 0),form:i.form,value:y},r)]})});Ke.displayName=le;var qt="RadioBubbleInput",Te=h.forwardRef(({__scopeSlider:e,value:a,...n},r)=>{const s=h.useRef(null),l=q(s,r),i=Vt(a);return h.useEffect(()=>{const o=s.current;if(!o)return;const c=window.HTMLInputElement.prototype,m=Object.getOwnPropertyDescriptor(c,"value").set;if(i!==a&&m){const d=new Event("input",{bubbles:!0});m.call(o,a),o.dispatchEvent(d)}},[i,a]),t.jsx(Q.input,{style:{display:"none"},...n,ref:l,defaultValue:a})});Te.displayName=qt;function Gt(e=[],a,n){const r=[...e];return r[n]=a,r.sort((s,l)=>s-l)}function Fe(e,a,n){const l=100/(n-a)*(e-a);return we(l,[0,100])}function Yt(e,a){return a>2?`Value ${e+1} of ${a}
6`:a===2?["Minimum","Maximum"][e]:void 0}function Ut(e,a){if(e.length===1)return 0;const n=e.map(s=>Math.abs(s-a)),r=Math.min(...n);return n.indexOf(r)}function Xt(e,a,n){const r=e/2,l=ce([0,50],[0,r]);return(r-l(a)*n)*n}function Qt(e){return e.slice(0,-1).map((a,n)=>e[n+1]-a)}function Jt(e,a){if(a>0){const n=Qt(e);return Math.min(...n)>=a}return!0}function ce(e,a){return n=>{if(e[0]===e[1]||a[0]===a[1])return a[0];const r=(a[1]-a[0])/(e[1]-e[0]);return a[0]+r*(n-e[0])}}function Zt(e){return(String(e).split(".")[1]||"").length}function ea(e,a){const n=Math.pow(10,a);return Math.round(e*n)/n}var He=Oe,ta=Be,aa=Ve,ra=Ke;const de=h.forwardRef(({className:e,...a},n)=>t.jsxs(He,{ref:n,className:Qe("relative flex w-full touch-none select-none items-center",e),...a,children:[t.jsx(ta,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-secondary",children:t.jsx(aa,{className:"absolute h-full bg-primary"})}),t.jsx(ra,{className:"block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50"})]}));de.displayName=He.displayName;const na=["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"];function sa(e){const a=h.useMemo(()=>{const{revenue:r,margin:s,outDays:l,blindness:i}=e,o=r*12,c=l/30*r*(s/100)*12,u=o*(i/100)*(s/100),m=c+u,d=o>0?m/o*100:0;return{annualRevenue:o,directLoss:c,biasPredictionLoss:u,totalLoss:m,pctLost:d}},[e.revenue,e.margin,e.outDays,e.blindness]),n=h.useMemo(()=>{const{revenue:r,outDays:s,blindness:l,margin:i}=e;return na.map((o,c)=>{const u=1+.08*Math.sin(c/11*Math.PI*2-Math.PI/2),m=Math.round(r*u),d=s/30*r*(i/100)+r*(l/100)*(i/100),p=Math.round(d*u);return{name:o,declared:m,gap:m+p}})},[e.revenue,e.outDays,e.blindness,e.margin]);return{...a,chartData:n}}const $e=e=>new Intl.NumberFormat("es-ES",{style:"currency",currency:"EUR",maximumFractionDigits:0}).format(e),ae=({value:e,className:a,duration:n=650})=>{const[r,s]=h.useState(0),l=h.useRef(null),i=Dt(l,{once:!1}),o=h.useRef(0);return h.useEffect(()=>{if(!i)return;const c=o.current;o.current=e;const u=performance.now();let m;const d=p=>{const y=Math.min((p-u)/n,1),x=1-Math.pow(1-y,3);s(Math.round(c+(e-c)*x)),y<1&&(m=requestAnimationFrame(d))};return m=requestAnimationFrame(d),()=>cancelAnimationFrame(m)},[e,i,n]),t.jsx("span",{ref:l,className:a,children:$e(r)})},ia=({children:e})=>t.jsxs(nt,{children:[t.jsx(st,{asChild:!0,children:e}),t.jsxs(it,{className:"max-w-2xl max-h-[85vh] overflow-y-auto bg-card border-border",children:[t.jsx(ot,{children:t.jsx(lt,{className:"text-xl font-bold text-foreground",children:"Metodología de Normalización de Demanda"})}),t.jsxs("div",{className:"space-y-8 text-sm text-muted-foreground leading-relaxed pt-2",children:[t.jsxs("section",{className:"space-y-3",children:[t.jsx("h3",{className:"text-base font-semibold text-foreground",children:"A · Las dos dimensiones del impacto"}),t.jsxs("div",{className:"rounded-lg bg-muted/30 border border-border p-4 space-y-2 text-xs",children:[t.jsxs("p",{children:[t.jsx("span",{className:"text-accent font-semibold",children:"Impacto por falta de stock"})," = (días_rotura / 30) × facturación × (margen / 100) × 12"]}),t.jsxs("p",{children:[t.jsx("span",{className:"text-primary font-semibold",children:"Mejora potencial en previsión"})," = facturación_anual × (sesgo / 100) × (margen / 100)"]})]}),t.jsxs("p",{children:["El ",t.jsx("strong",{className:"text-foreground",children:"impacto por falta de stock"})," representa el margen bruto no capturado durante los períodos de indisponibilidad de producto."]}),t.jsxs("p",{children:["La ",t.jsx("strong",{className:"text-foreground",children:"mejora potencial en previsión"})," cuantifica la infraestimación de la reposición: cuando tu modelo entrena con datos condicionados por la disponibilidad pasada, proyecta sistemáticamente por debajo de la demanda real."]})]}),t.jsxs("section",{className:"space-y-3",children:[t.jsx("h3",{className:"text-base font-semibold text-foreground",children:"B · Identificación y normalización de datos condicionados"}),t.jsxs("p",{children:[t.jsx("strong",{className:"text-foreground",children:"Detección (IQR):"})," Los períodos con rotura de stock ya los conocemos. Aplicamos el método del rango 
6intercuartílico para identificar valores atípicos — ventas anormalmente altas, es decir, los picos de rebote tras la reposición de stock (demanda acumulada), si los hay."]}),t.jsx("p",{className:"font-semibold text-foreground text-xs uppercase tracking-wider mt-4",children:"Dos métodos de imputación:"}),t.jsxs("div",{className:"grid gap-3 mt-2",children:[t.jsxs("div",{className:"rounded-lg border border-border p-3",children:[t.jsx("p",{className:"font-semibold text-foreground text-xs mb-1",children:"1 · Imputación Estadística"}),t.jsx("p",{children:"La demanda se estima a partir de la probabilidad de ocurrencia de demanda y el tamaño esperado de la demanda cuando esta ocurre. Más fino que un simple reemplazo por mediana o media móvil, manteniendo la interpretabilidad y siendo eficaz cuando el histórico es limitado."})]}),t.jsxs("div",{className:"rounded-lg border border-primary/30 bg-primary/5 p-3",children:[t.jsx("p",{className:"font-semibold text-foreground text-xs mb-1",children:"2 · Algoritmos de Machine Learning"}),t.jsx("p",{children:"Modelos supervisados (Random Forest, XGBoost, LightGBM) o de series temporales (ARIMA, suavizados exponenciales, STL) aprenden las relaciones entre estacionalidad, promociones, precio y demanda para reconstruir la venta que habría ocurrido sin rotura. Mayor precisión con históricos largos y múltiples variables."})]})]})]}),t.jsxs("section",{className:"rounded-lg border border-primary/20 bg-primary/5 p-5 space-y-3",children:[t.jsx("h3",{className:"text-base font-semibold text-foreground",children:"C · Profundiza en la metodología"}),t.jsx("p",{children:"Hemos publicado un artículo técnico detallado explicando paso a paso cómo aplicamos este framework de normalización en entornos reales de producción."}),t.jsxs("a",{href:"https://medium.com/kraz-ai-solutions/c%C3%B3mo-corregir-ventas-afectadas-por-roturas-de-stock-antes-de-predecir-demanda-1b796d4938a6",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 text-primary hover:text-primary/80 font-semibold text-sm transition-colors",children:["Leer artículo completo en Medium",t.jsx(St,{className:"w-3.5 h-3.5"})]})]})]})]})]}),ga=()=>{const[e,a]=h.useState([0]),[n,r]=h.useState([0]),[s,l]=h.useState([0]),[i,o]=h.useState([0]);h.useEffect(()=>{document.title="Calculadora de Demanda Oculta: cuantifica el coste de las roturas de stock | Kraz";const x=(v,w,j="name")=>{let f=document.querySelector(`meta[${j}="${v}"]`);f||(f=document.createElement("meta"),f.setAttribute(j,v),document.head.appendChild(f)),f.setAttribute("content",w)};x("description","Calcula gratis el impacto económico anual de las roturas de stock en tu negocio. Herramienta interactiva para cuantificar la demanda oculta y el margen recuperable con modelos de predicción."),x("robots","index, follow"),x("keywords","calculadora demanda oculta, roturas de stock, predicción de demanda, demand forecasting, coste de oportunidad, normalización de datos"),x("og:title","Calculadora de Demanda Oculta | Kraz","property"),x("og:description","Descubre cuánto margen pierdes al año por roturas de stock. Diagnóstico interactivo gratuito en menos de 1 minuto.","property"),x("og:type","website","property"),x("og:url","https://kraz.ai/recursos/calculadora","property"),x("og:site_name","Kraz AI Solutions","property"),x("og:locale","es_ES","property"),x("twitter:card","summary_large_image"),x("twitter:title","Calculadora de Demanda Oculta | Kraz"),x("twitter:description","Cuantifica en € el impacto anual de las roturas de stock y la mejora potencial con modelos de predicción.");const b=document.querySelector('link[rel="canonical"]')||document.createElement("link");b.setAttribute("rel","canonical"),b.setAttribute("href","https://kraz.ai/recursos/calculadora"),document.querySelector('link[rel="canonical"]')||document.head.appendChild(b);const g=document.createElement("script");return g.type="application/ld+json",g.text=JSON.stringify({"@context":"https://schema.org","@type":"WebApplication",name:"Calculadora de Demanda Oculta",description:"Herramienta interactiva para cuantificar el coste de oportunidad de no normalizar los datos de ventas afectados por roturas de stock.",url:"https://kraz.ai/recursos/calculadora",applicationCategory:"BusinessApplication",operatingSystem:"Web",offers:{"@type":"Offer",price:"0",priceCurrency:"EUR"},provider:{"@type":"Organization",name:"Kraz AI Solutions",url:"https://kraz.ai"}}),document.head.appendChild(g),()=>{var v;(v=document.querySelector('link[rel="canonical"]'))==null||v.remove(),g.remove()}},[]);const{totalLoss:c,directLoss:u,biasPredictionLoss:m,pctLost:d,chartData:p}=sa({revenue:e[0],margin:n[0],outDays:s[0],blindness:i[0]}),y=x=>x>=1e6?`${(x/1e6).toFixed(1)}M`:x>=1e3?`${Math.round(x/1e3)}K`:String(Math.round(x));return t.jsxs("div",{className:"min-h-screen bg-background text-foreground selection:bg-primary/30",children:[t.jsx("div",{className:"fixed inset-0 pointer-events-none overflow-hidden",children:t.jsx("div",{className:"absolute top-[-200px] left-1/2 -translate-x-1/2 w-[800px] h-[500px] bg-primary/[0.03] rounded-full blur-[160px]"})}),t.jsx("section",{className:"relative pt-16 pb-6 md:pt-24 md:pb-10",children:t.jsx("div",{className:"container max-w-5xl mx-auto px-4 relative z-10",children:t.jsxs(U.div,{initial:{opacity:0,y:20}
6,animate:{opacity:1,y:0},transition:{duration:.5},children:[t.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-1.5 rounded-sm border border-white/20 bg-white/5 text-white text-[11px] font-medium uppercase tracking-[0.18em] mb-6",children:[t.jsx(ct,{className:"w-3 h-3"}),"Demand Forecasting · Diagnóstico Estratégico"]}),t.jsxs("h1",{className:"text-2xl sm:text-3xl md:text-5xl lg:text-[3.5rem] font-bold leading-[1.08] tracking-tight mb-6",children:["Optimiza tu predicción"," ",t.jsx("br",{className:"hidden md:block"}),t.jsx("span",{className:"text-primary",children:"revelando la demanda no satisfecha."})]}),t.jsx("div",{className:"border-l-2 border-primary/50 pl-5 mb-4 max-w-2xl",children:t.jsx("p",{className:"text-[15px] md:text-base text-white/70 leading-relaxed",children:"Las roturas de stock tienen un impacto muy importante en el negocio. Los modelos de analítica avanzada permiten mitigar de forma significativa las incidencias de falta de stock. Esta herramienta permite calcular el impacto económico de las roturas de stock."})}),t.jsx("p",{className:"text-sm text-white/40 max-w-xl leading-relaxed",children:"Estimación de impacto en negocio de las roturas de stock."})]})})}),t.jsx("div",{className:"container max-w-5xl mx-auto px-4",children:t.jsx("div",{className:"border-t border-border"})}),t.jsx("section",{className:"py-12 md:py-16 relative z-10",children:t.jsxs("div",{className:"container max-w-5xl mx-auto px-4",children:[t.jsxs("div",{className:"grid lg:grid-cols-2 gap-10 lg:gap-14",children:[t.jsxs(U.div,{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{duration:.5,delay:.1},className:"space-y-8",children:[t.jsx("p",{className:"text-[11px] font-medium text-white/50 uppercase tracking-[0.2em]",children:"// Parámetros de análisis"}),t.jsx(re,{label:"Facturación mensual media (€)",value:e,onChange:a,min:1e4,max:5e6,step:1e4,displayValue:`${y(e[0])} €`,minLabel:"10K €",maxLabel:"5.000K €"}),t.jsx(re,{label:"Margen de beneficio (%)",value:n,onChange:r,min:5,max:70,step:1,displayValue:`${n[0]}%`,minLabel:"5%",maxLabel:"70%"}),t.jsx(re,{label:"Nº de días (promedio mensual) de rotura de stock",value:s,onChange:l,min:1,max:25,step:1,displayValue:`${s[0]} días`,minLabel:"1 día",maxLabel:"25 días"}),t.jsxs("div",{children:[t.jsxs("div",{className:"flex items-center gap-1.5 mb-1",children:[t.jsx("label",{className:"text-[11px] text-white/50 uppercase tracking-wide",children:"Desviación en estimaciones debido a desajuste inicial en la serie"}),t.jsx(Je,{delayDuration:200,children:t.jsxs(Ze,{children:[t.jsx(et,{asChild:!0,children:t.jsx(dt,{className:"w-3.5 h-3.5 text-white/40 cursor-help"})}),t.jsxs(tt,{side:"top",className:"max-w-[300px] text-xs leading-relaxed p-3",children:[t.jsxs("p",{className:"mb-1.5",children:[t.jsx("strong",{children:"¿Qué es esto?"})," Es el error que introducen las roturas de stock en tu modelo predictivo."]}),t.jsxs("p",{className:"mb-1.5",children:["Un modelo entrenado con datos sin corregir suele tener un sesgo de ",t.jsx("strong",{children:"entre el 8% y el 12%"})," en sectores con roturas frecuentes."]}),t.jsxs("p",{className:"text-muted-foreground/70",children:["💡 Si no estás seguro, ",t.jsx("strong",{children:"usa 10%"})," como punto de partida — es el valor más habitual."]})]})]})})]}),t.jsxs("div",{className:"flex items-center gap-4",children:[t.jsxs("div",{className:"flex-1",children:[t.jsx(de,{value:i,onValueChange:o,min:0,max:25,step:1,className:"py-3"}),t.jsxs("div",{className:"flex justify-between mt-1",children:[t.jsx("span",{className:"text-[10px] text-white/30",children:"0%"}),t.jsx("span",{className:"text-[10px] text-white/30",children:"25%"})]})]}),t.jsxs("span",{className:"text-2xl font-bold text-primary min-w-[60px] text-right",children:[i[0],"%"]})]}),i[0]===0&&t.jsx("p",{className:"text-[10px] text-amber-400 mt-1.5 leading-relaxed",children:"⚠️ Con 0% no se calcula mejora potencial. La mayoría de modelos tienen un patrón erróneo entre 8-12%."})]}),t.jsxs("div",{children:[t.jsx("p",{className:"text-[10px] text-white/40 uppercase tracking-[0.15em] mb-3",children:"Desglose del impacto anual"}),t.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:[t.jsxs("div",{className:"rounded-lg border border-accent/20 bg-accent/5 p-4",children:[t.jsx(at,{className:"w-4 h-4 text-accent/70 mb-1.5"}),t.jsx("p",{className:"text-[10px] text-white/50 uppercase tracking-wider mb-1",children:"Impacto por falta de stock"}),t.jsx(ae,{value:u,className:"text-lg font-bold text-accent block"})]}),t.jsxs("div",{className:"rounded-lg border border-primary/20 bg-primary/5 p-4",children:[t.jsx(ut,{className:"w-4 h-4 text-primary/70 mb-1.5"}),t.jsx("p",{className:"text-[10px] text-white/50 uppercase tracking-wider mb-1",children:"Impacto por mejoras en predicción"}),t.jsx(ae,{value:m,className:"text-lg font-bold text-primary block"})]})]}),t.jsx("p",{className:"text-[10px] text-white/40 mt-3 leading-relaxed",children:"La mejora potencial representa el incremento en ventas que un modelo deja de proyectar debido a la falta de corrección de datos históricos que incorporan roturas de stock."})]}),t.jsx(ia,{children:t.jsx("button",{className:"text-xs text-white/50 hover:text-primary transition-colors flex items-center gap-1.5",children:"¿Cómo calculamos esto? → Metodología"})})]}),t.jsxs(U.div,{initial:{opacity:0,x:20}
6,animate:{opacity:1,x:0},transition:{duration:.5,delay:.2},className:"space-y-6",children:[t.jsx("p",{className:"text-[11px] font-medium text-white/50 uppercase tracking-[0.2em]",children:"// Estimación de valor recuperable"}),t.jsxs("div",{children:[t.jsx("p",{className:"text-xs text-white/50 uppercase tracking-[0.15em] mb-3",children:"Margen de mejora anual identificado"}),t.jsx(ae,{value:c,className:"text-4xl sm:text-5xl md:text-7xl lg:text-8xl font-bold text-primary block leading-none"}),t.jsx("p",{className:"text-lg font-semibold text-primary/70 mt-1",children:"€ / AÑO"})]}),t.jsxs("div",{className:"relative rounded-xl border border-accent/30 bg-gradient-to-br from-accent/10 via-accent/5 to-transparent p-6 overflow-hidden",children:[t.jsx("div",{className:"absolute top-0 right-0 w-24 h-24 bg-accent/10 rounded-full blur-2xl pointer-events-none"}),t.jsxs("p",{className:"text-[11px] text-accent font-bold uppercase tracking-[0.18em] mb-3 flex items-center gap-2",children:[t.jsx(mt,{className:"w-3.5 h-3.5"}),"Diagnóstico Kraz"]}),t.jsxs("p",{className:"text-sm text-white/90 leading-relaxed",children:["Bajo un escenario de ",t.jsxs("strong",{className:"text-white",children:[i[0],"%"]})," de sesgo, existe una oportunidad de optimización significativa. Corregir el histórico permite que tu modelo proyecte la demanda real del mercado."]}),t.jsx("p",{className:"text-[13px] text-white/50 leading-relaxed mt-3",children:"Corregir los datos elimina la inercia de la falta de stock en las previsiones futuras."})]}),c>0&&t.jsxs(U.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},className:"flex flex-col sm:flex-row items-center gap-3 rounded-lg border border-primary/15 bg-primary/5 p-4",children:[t.jsxs("p",{className:"text-sm text-white/70 flex-1 text-center sm:text-left",children:[t.jsx("strong",{className:"text-white",children:"¿Quieres recuperar este margen?"})," Analizamos tu caso sin compromiso."]}),t.jsx(me,{variant:"hero",asChild:!0,className:"px-6 py-2.5 rounded-full text-sm shrink-0",children:t.jsxs(pe,{to:"/contacto",children:["Hablar con un especialista",t.jsx(xe,{className:"w-3.5 h-3.5 ml-1.5"})]})})]}),t.jsxs("div",{className:"rounded-xl border border-border bg-card/30 p-5",children:[t.jsx("h3",{className:"text-[10px] text-white/50 uppercase tracking-[0.15em] mb-1",children:"Análisis de Brecha: Demanda Real vs. Histórico Registrado"}),t.jsx("p",{className:"text-[10px] text-white/40 mb-4 leading-relaxed",children:"El área entre ambas curvas representa el potencial de crecimiento que tus datos actuales ocultan a tu modelo."}),t.jsx("div",{className:"h-52 md:h-56",children:t.jsx(wt,{width:"100%",height:"100%",children:t.jsxs(Bt,{data:p,margin:{top:5,right:5,bottom:0,left:-15},children:[t.jsxs("defs",{children:[t.jsxs("linearGradient",{id:"gDeclared",x1:"0",y1:"0",x2:"0",y2:"1",children:[t.jsx("stop",{offset:"0%",stopColor:"hsl(var(--accent))",stopOpacity:.12}),t.jsx("stop",{offset:"100%",stopColor:"hsl(var(--accent))",stopOpacity:0})]}),t.jsxs("linearGradient",{id:"gGap",x1:"0",y1:"0",x2:"0",y2:"1",children:[t.jsx("stop",{offset:"0%",stopColor:"hsl(var(--primary))",stopOpacity:.15}),t.jsx("stop",{offset:"100%",stopColor:"hsl(var(--primary))",stopOpacity:0})]})]}),t.jsx(Ne,{dataKey:"name",tick:{fill:"hsl(var(--muted-foreground))",fontSize:10},axisLine:!1,tickLine:!1}),t.jsx(Se,{tick:{fill:"hsl(var(--muted-foreground))",fontSize:10},axisLine:!1,tickLine:!1,tickFormatter:x=>`${(x/1e3).toFixed(0)}k`}),t.jsx(Nt,{contentStyle:{backgroundColor:"hsl(var(--card))",border:"1px solid hsl(var(--border))",borderRadius:10,color:"hsl(var(--foreground))",fontSize:12},formatter:(x,b)=>[$e(x),b==="declared"?"Ventas registradas":"Demanda real estimada"]}),t.jsx(_,{type:"monotone",dataKey:"declared",stroke:"hsl(var(--accent))",strokeWidth:1.5,fill:"url(#gDeclared)",name:"declared"}),t.jsx(_,{type:"monotone",dataKey:"gap",stroke:"hsl(var(--primary))",strokeWidth:2.5,fill:"url(#gGap)",name:"gap"})]})})}),t.jsxs("div",{className:"flex gap-5 mt-3 justify-center text-[10px] text-white/50",children:[t.jsxs("span",{className:"flex items-center gap-1.5",children:[t.jsx("span",{className:"w-3 h-[2px] rounded bg-accent inline-block"})," Ventas registradas"]}),t.jsxs("span",{className:"flex items-center gap-1.5",children:[t.jsx("span",{className:"w-3 h-[2px] rounded bg-primary inline-block"})," Demanda real estimada"]})]})]})]})]}),t.jsx(U.section,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},className:"mt-20",children:t.jsxs("div",{className:"relative rounded-2xl overflow-hidden max-w-3xl mx-auto",children:[t.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-[hsl(232,97%,15%)] via-[hsl(231,68%,25%)] to-[hsl(214,95%,30%)]"}),t.jsx("div",{className:"absolute inset-0 bg-[radial-gradient(ellipse_at_top_right,transparent_0%,rgba(0,0,0,0.3)_100%)]"}),t.jsxs("div",{className:"relative z-10 p-8 md:p-14 text-center",children:[t.jsxs("div",{className:"flex items-center justify-center gap-6 mb-8 text-white/50 text-[11px] uppercase tracking-[0.15em]",children:[t.jsx("span",{children:"+40 empresas confían en Kraz"}),t.jsx("span",{className:"hidden sm:inline",children:"·"}),t.jsx("span",{className:"hidden sm:inline",children:"Sectores: Retail · FMCG · Industria"})]}),t.jsx("h2",{className:"text-2xl md:text-3xl font-bold text-white mb-4 leading-tight",children:"¿Quieres transformar tus datos en una ventaja competitiva?"}),t.jsx("p",{className:"text-white/80 mb-8 max-w-lg mx-auto leading-relaxed text-sm md:text-base",children:"En Kraz no solo proyectamos el futuro; saneamos el pasado para que tus modelos operen con la máxima precisión. Descubre cómo nuestro framework de corrección de outliers puede optimizar tu inventario y capital circulante."}),t.jsx(me,{variant:"hero",asChild:!0,className:"px-10 py-5 rounded-full shadow-xl",children:t.jsxs(pe,{to:"/contacto",children:["Contacta con un experto",t.jsx(xe,{className:"w-4 h-4 ml-2"})]})}),t.jsx("p",{className:"text-[10px] text-white/30 mt-6 max-w-md mx-auto",children:"Estimación basada en el Framework Kraz de Normalización de Datos. El impacto real varía según la categoría y el historial operativo."})]})]})})]})}),t.jsx("footer",{className:"relative z-10 border-t border-border py-6",children:t.jsx("p",{className:"text-center text-[10px] text-white/30 tracking-[0.15em] uppercase",children:"Un diagnóstico exclusivo de Kraz AI Solutions"})})]})},re=({label:e,value:a,onChange:n,min:r,max:s,step:l,displayValue:i,minLabel:o,maxLabel:c})=>t.jsxs("div",{children:[t.jsxs("div",{className:"flex items-baseline justify-between mb-1",children:[t.jsx("label",{className:"text-[11px] text-white/50 uppercase tracking-wide",children:e}),t.jsx("span",{className:"text-2xl font-bold text-primary",children:i})]}),t.jsx(de,{value:a,onValueChange:n,min:r,max:s,step:l,className:"py-3"}),t.jsxs("div",{className:"flex justify-between mt-1",children:[t.jsx("span",{className:"text-[10px] text-white/30",children:o}),t.jsx("span",{className:"text-[10px] text-white/30",children:c})]})]});
6export{ga as default};

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.