function ud(e,t){for(var r=0;rn[l]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))n(l);new MutationObserver(l=>{for(const s of l)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).observe(document,{childList:!0,subtree:!0});function r(l){const s={};return l.integrity&&(s.integrity=l.integrity),l.referrerPolicy&&(s.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?s.credentials="include":l.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function n(l){if(l.ep)return;l.ep=!0;const s=r(l);fetch(l.href,s)}})();function cd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Lo={exports:{}},Cl={},Do={exports:{}},D={};/** * @license React * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var on=Symbol.for("react.element"),dd=Symbol.for("react.portal"),pd=Symbol.for("react.fragment"),fd=Symbol.for("react.strict_mode"),md=Symbol.for("react.profiler"),hd=Symbol.for("react.provider"),xd=Symbol.for("react.context"),gd=Symbol.for("react.forward_ref"),vd=Symbol.for("react.suspense"),yd=Symbol.for("react.memo"),jd=Symbol.for("react.lazy"),ci=Symbol.iterator;function wd(e){return e===null||typeof e!="object"?null:(e=ci&&e[ci]||e["@@iterator"],typeof e=="function"?e:null)}var zo={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Oo=Object.assign,Ro={};function hr(e,t,r){this.props=e,this.context=t,this.refs=Ro,this.updater=r||zo}hr.prototype.isReactComponent={};hr.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};hr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Bo(){}Bo.prototype=hr.prototype;function fs(e,t,r){this.props=e,this.context=t,this.refs=Ro,this.updater=r||zo}var ms=fs.prototype=new Bo;ms.constructor=fs;Oo(ms,hr.prototype);ms.isPureReactComponent=!0;var di=Array.isArray,Mo=Object.prototype.hasOwnProperty,hs={current:null},Ao={key:!0,ref:!0,__self:!0,__source:!0};function Io(e,t,r){var n,l={},s=null,i=null;if(t!=null)for(n in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(s=""+t.key),t)Mo.call(t,n)&&!Ao.hasOwnProperty(n)&&(l[n]=t[n]);var u=arguments.length-2;if(u===1)l.children=r;else if(1>>1,Y=E[V];if(0>>1;Vl(Ul,L))Stl(vn,Ul)?(E[V]=vn,E[St]=L,V=St):(E[V]=Ul,E[bt]=L,V=bt);else if(Stl(vn,L))E[V]=vn,E[St]=L,V=St;else break e}}return _}function l(E,_){var L=E.sortIndex-_.sortIndex;return L!==0?L:E.id-_.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var i=Date,u=i.now();e.unstable_now=function(){return i.now()-u}}var o=[],d=[],x=1,h=null,f=3,v=!1,y=!1,j=!1,k=typeof setTimeout=="function"?setTimeout:null,c=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(E){for(var _=r(d);_!==null;){if(_.callback===null)n(d);else if(_.startTime<=E)n(d),_.sortIndex=_.expirationTime,t(o,_);else break;_=r(d)}}function g(E){if(j=!1,m(E),!y)if(r(o)!==null)y=!0,Al(N);else{var _=r(d);_!==null&&Il(g,_.startTime-E)}}function N(E,_){y=!1,j&&(j=!1,c(F),F=-1),v=!0;var L=f;try{for(m(_),h=r(o);h!==null&&(!(h.expirationTime>_)||E&&!Le());){var V=h.callback;if(typeof V=="function"){h.callback=null,f=h.priorityLevel;var Y=V(h.expirationTime<=_);_=e.unstable_now(),typeof Y=="function"?h.callback=Y:h===r(o)&&n(o),m(_)}else n(o);h=r(o)}if(h!==null)var gn=!0;else{var bt=r(d);bt!==null&&Il(g,bt.startTime-_),gn=!1}return gn}finally{h=null,f=L,v=!1}}var b=!1,P=null,F=-1,G=5,z=-1;function Le(){return!(e.unstable_now()-zE||125V?(E.sortIndex=L,t(d,E),r(o)===null&&E===r(d)&&(j?(c(F),F=-1):j=!0,Il(g,L-V))):(E.sortIndex=Y,t(o,E),y||v||(y=!0,Al(N))),E},e.unstable_shouldYield=Le,e.unstable_wrapCallback=function(E){var _=f;return function(){var L=f;f=_;try{return E.apply(this,arguments)}finally{f=L}}}})(Vo);Go.exports=Vo;var Dd=Go.exports;/** * @license React * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var zd=w,we=Dd;function C(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),xa=Object.prototype.hasOwnProperty,Od=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,fi={},mi={};function Rd(e){return xa.call(mi,e)?!0:xa.call(fi,e)?!1:Od.test(e)?mi[e]=!0:(fi[e]=!0,!1)}function Bd(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Md(e,t,r,n){if(t===null||typeof t>"u"||Bd(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function pe(e,t,r,n,l,s,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=l,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=i}var le={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){le[e]=new pe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];le[t]=new pe(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){le[e]=new pe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){le[e]=new pe(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){le[e]=new pe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){le[e]=new pe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){le[e]=new pe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){le[e]=new pe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){le[e]=new pe(e,5,!1,e.toLowerCase(),null,!1,!1)});var gs=/[\-:]([a-z])/g;function vs(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(gs,vs);le[t]=new pe(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(gs,vs);le[t]=new pe(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(gs,vs);le[t]=new pe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){le[e]=new pe(e,1,!1,e.toLowerCase(),null,!1,!1)});le.xlinkHref=new pe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){le[e]=new pe(e,1,!1,e.toLowerCase(),null,!0,!0)});function ys(e,t,r,n){var l=le.hasOwnProperty(t)?le[t]:null;(l!==null?l.type!==0:n||!(2u||l[i]!==s[u]){var o=` `+l[i].replace(" at new "," at ");return e.displayName&&o.includes("")&&(o=o.replace("",e.displayName)),o}while(1<=i&&0<=u);break}}}finally{Wl=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Fr(e):""}function Ad(e){switch(e.tag){case 5:return Fr(e.type);case 16:return Fr("Lazy");case 13:return Fr("Suspense");case 19:return Fr("SuspenseList");case 0:case 2:case 15:return e=Gl(e.type,!1),e;case 11:return e=Gl(e.type.render,!1),e;case 1:return e=Gl(e.type,!0),e;default:return""}}function ja(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Gt:return"Fragment";case Wt:return"Portal";case ga:return"Profiler";case js:return"StrictMode";case va:return"Suspense";case ya:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ko:return(e.displayName||"Context")+".Consumer";case qo:return(e._context.displayName||"Context")+".Provider";case ws:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Cs:return t=e.displayName||null,t!==null?t:ja(e.type)||"Memo";case nt:t=e._payload,e=e._init;try{return ja(e(t))}catch{}}return null}function Id(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ja(t);case 8:return t===js?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function yt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Zo(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ud(e){var t=Zo(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var l=r.get,s=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(i){n=""+i,s.call(this,i)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(i){n=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function wn(e){e._valueTracker||(e._valueTracker=Ud(e))}function Yo(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=Zo(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function Xn(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function wa(e,t){var r=t.checked;return H({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function xi(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=yt(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Jo(e,t){t=t.checked,t!=null&&ys(e,"checked",t,!1)}function Ca(e,t){Jo(e,t);var r=yt(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Na(e,t.type,r):t.hasOwnProperty("defaultValue")&&Na(e,t.type,yt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function gi(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function Na(e,t,r){(t!=="number"||Xn(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Tr=Array.isArray;function rr(e,t,r,n){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=Cn.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Hr(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Dr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},$d=["Webkit","ms","Moz","O"];Object.keys(Dr).forEach(function(e){$d.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Dr[t]=Dr[e]})});function nu(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Dr.hasOwnProperty(e)&&Dr[e]?(""+t).trim():t+"px"}function lu(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,l=nu(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,l):e[r]=l}}var Hd=H({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Sa(e,t){if(t){if(Hd[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(C(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(C(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(C(61))}if(t.style!=null&&typeof t.style!="object")throw Error(C(62))}}function Ea(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Pa=null;function Ns(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Fa=null,nr=null,lr=null;function ji(e){if(e=dn(e)){if(typeof Fa!="function")throw Error(C(280));var t=e.stateNode;t&&(t=El(t),Fa(e.stateNode,e.type,t))}}function au(e){nr?lr?lr.push(e):lr=[e]:nr=e}function su(){if(nr){var e=nr,t=lr;if(lr=nr=null,ji(e),t)for(e=0;e>>=0,e===0?32:31-(ep(e)/tp|0)|0}var Nn=64,kn=4194304;function _r(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function el(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,l=e.suspendedLanes,s=e.pingedLanes,i=r&268435455;if(i!==0){var u=i&~l;u!==0?n=_r(u):(s&=i,s!==0&&(n=_r(s)))}else i=r&~l,i!==0?n=_r(i):s!==0&&(n=_r(s));if(n===0)return 0;if(t!==0&&t!==n&&!(t&l)&&(l=n&-n,s=t&-t,l>=s||l===16&&(s&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function un(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Be(t),e[t]=r}function ap(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0=Or),Fi=" ",Ti=!1;function Su(e,t){switch(e){case"keyup":return Dp.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Eu(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Vt=!1;function Op(e,t){switch(e){case"compositionend":return Eu(t);case"keypress":return t.which!==32?null:(Ti=!0,Fi);case"textInput":return e=t.data,e===Fi&&Ti?null:e;default:return null}}function Rp(e,t){if(Vt)return e==="compositionend"||!_s&&Su(e,t)?(e=ku(),In=Ps=it=null,Vt=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=zi(r)}}function _u(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?_u(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Lu(){for(var e=window,t=Xn();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Xn(e.document)}return t}function Ls(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Gp(e){var t=Lu(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&_u(r.ownerDocument.documentElement,r)){if(n!==null&&Ls(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=r.textContent.length,s=Math.min(n.start,l);n=n.end===void 0?s:Math.min(n.end,l),!e.extend&&s>n&&(l=n,n=s,s=l),l=Oi(r,s);var i=Oi(r,n);l&&i&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),s>n?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,Qt=null,Oa=null,Br=null,Ra=!1;function Ri(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Ra||Qt==null||Qt!==Xn(n)||(n=Qt,"selectionStart"in n&&Ls(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Br&&Kr(Br,n)||(Br=n,n=nl(Oa,"onSelect"),0Xt||(e.current=$a[Xt],$a[Xt]=null,Xt--)}function B(e,t){Xt++,$a[Xt]=e.current,e.current=t}var jt={},oe=Ct(jt),he=Ct(!1),Ot=jt;function ur(e,t){var r=e.type.contextTypes;if(!r)return jt;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var l={},s;for(s in r)l[s]=t[s];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function xe(e){return e=e.childContextTypes,e!=null}function al(){A(he),A(oe)}function Hi(e,t,r){if(oe.current!==jt)throw Error(C(168));B(oe,t),B(he,r)}function Uu(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var l in n)if(!(l in t))throw Error(C(108,Id(e)||"Unknown",l));return H({},r,n)}function sl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||jt,Ot=oe.current,B(oe,e),B(he,he.current),!0}function Wi(e,t,r){var n=e.stateNode;if(!n)throw Error(C(169));r?(e=Uu(e,t,Ot),n.__reactInternalMemoizedMergedChildContext=e,A(he),A(oe),B(oe,e)):A(he),B(he,r)}var Qe=null,Pl=!1,aa=!1;function $u(e){Qe===null?Qe=[e]:Qe.push(e)}function nf(e){Pl=!0,$u(e)}function Nt(){if(!aa&&Qe!==null){aa=!0;var e=0,t=R;try{var r=Qe;for(R=1;e>=i,l-=i,qe=1<<32-Be(t)+l|r<F?(G=P,P=null):G=P.sibling;var z=f(c,P,m[F],g);if(z===null){P===null&&(P=G);break}e&&P&&z.alternate===null&&t(c,P),p=s(z,p,F),b===null?N=z:b.sibling=z,b=z,P=G}if(F===m.length)return r(c,P),I&&Et(c,F),N;if(P===null){for(;FF?(G=P,P=null):G=P.sibling;var Le=f(c,P,z.value,g);if(Le===null){P===null&&(P=G);break}e&&P&&Le.alternate===null&&t(c,P),p=s(Le,p,F),b===null?N=Le:b.sibling=Le,b=Le,P=G}if(z.done)return r(c,P),I&&Et(c,F),N;if(P===null){for(;!z.done;F++,z=m.next())z=h(c,z.value,g),z!==null&&(p=s(z,p,F),b===null?N=z:b.sibling=z,b=z);return I&&Et(c,F),N}for(P=n(c,P);!z.done;F++,z=m.next())z=v(P,c,F,z.value,g),z!==null&&(e&&z.alternate!==null&&P.delete(z.key===null?F:z.key),p=s(z,p,F),b===null?N=z:b.sibling=z,b=z);return e&&P.forEach(function(yr){return t(c,yr)}),I&&Et(c,F),N}function k(c,p,m,g){if(typeof m=="object"&&m!==null&&m.type===Gt&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case jn:e:{for(var N=m.key,b=p;b!==null;){if(b.key===N){if(N=m.type,N===Gt){if(b.tag===7){r(c,b.sibling),p=l(b,m.props.children),p.return=c,c=p;break e}}else if(b.elementType===N||typeof N=="object"&&N!==null&&N.$$typeof===nt&&Qi(N)===b.type){r(c,b.sibling),p=l(b,m.props),p.ref=Sr(c,b,m),p.return=c,c=p;break e}r(c,b);break}else t(c,b);b=b.sibling}m.type===Gt?(p=Dt(m.props.children,c.mode,g,m.key),p.return=c,c=p):(g=qn(m.type,m.key,m.props,null,c.mode,g),g.ref=Sr(c,p,m),g.return=c,c=g)}return i(c);case Wt:e:{for(b=m.key;p!==null;){if(p.key===b)if(p.tag===4&&p.stateNode.containerInfo===m.containerInfo&&p.stateNode.implementation===m.implementation){r(c,p.sibling),p=l(p,m.children||[]),p.return=c,c=p;break e}else{r(c,p);break}else t(c,p);p=p.sibling}p=fa(m,c.mode,g),p.return=c,c=p}return i(c);case nt:return b=m._init,k(c,p,b(m._payload),g)}if(Tr(m))return y(c,p,m,g);if(wr(m))return j(c,p,m,g);_n(c,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,p!==null&&p.tag===6?(r(c,p.sibling),p=l(p,m),p.return=c,c=p):(r(c,p),p=pa(m,c.mode,g),p.return=c,c=p),i(c)):r(c,p)}return k}var dr=Vu(!0),Qu=Vu(!1),ul=Ct(null),cl=null,Jt=null,Rs=null;function Bs(){Rs=Jt=cl=null}function Ms(e){var t=ul.current;A(ul),e._currentValue=t}function Ga(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function sr(e,t){cl=e,Rs=Jt=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(me=!0),e.firstContext=null)}function Te(e){var t=e._currentValue;if(Rs!==e)if(e={context:e,memoizedValue:t,next:null},Jt===null){if(cl===null)throw Error(C(308));Jt=e,cl.dependencies={lanes:0,firstContext:e}}else Jt=Jt.next=e;return t}var Tt=null;function As(e){Tt===null?Tt=[e]:Tt.push(e)}function qu(e,t,r,n){var l=t.interleaved;return l===null?(r.next=r,As(t)):(r.next=l.next,l.next=r),t.interleaved=r,Je(e,n)}function Je(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var lt=!1;function Is(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ku(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Xe(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function mt(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,O&2){var l=n.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),n.pending=t,Je(e,r)}return l=n.interleaved,l===null?(t.next=t,As(n)):(t.next=l.next,l.next=t),n.interleaved=t,Je(e,r)}function $n(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,bs(e,r)}}function qi(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var l=null,s=null;if(r=r.firstBaseUpdate,r!==null){do{var i={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};s===null?l=s=i:s=s.next=i,r=r.next}while(r!==null);s===null?l=s=t:s=s.next=t}else l=s=t;r={baseState:n.baseState,firstBaseUpdate:l,lastBaseUpdate:s,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function dl(e,t,r,n){var l=e.updateQueue;lt=!1;var s=l.firstBaseUpdate,i=l.lastBaseUpdate,u=l.shared.pending;if(u!==null){l.shared.pending=null;var o=u,d=o.next;o.next=null,i===null?s=d:i.next=d,i=o;var x=e.alternate;x!==null&&(x=x.updateQueue,u=x.lastBaseUpdate,u!==i&&(u===null?x.firstBaseUpdate=d:u.next=d,x.lastBaseUpdate=o))}if(s!==null){var h=l.baseState;i=0,x=d=o=null,u=s;do{var f=u.lane,v=u.eventTime;if((n&f)===f){x!==null&&(x=x.next={eventTime:v,lane:0,tag:u.tag,payload:u.payload,callback:u.callback,next:null});e:{var y=e,j=u;switch(f=t,v=r,j.tag){case 1:if(y=j.payload,typeof y=="function"){h=y.call(v,h,f);break e}h=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=j.payload,f=typeof y=="function"?y.call(v,h,f):y,f==null)break e;h=H({},h,f);break e;case 2:lt=!0}}u.callback!==null&&u.lane!==0&&(e.flags|=64,f=l.effects,f===null?l.effects=[u]:f.push(u))}else v={eventTime:v,lane:f,tag:u.tag,payload:u.payload,callback:u.callback,next:null},x===null?(d=x=v,o=h):x=x.next=v,i|=f;if(u=u.next,u===null){if(u=l.shared.pending,u===null)break;f=u,u=f.next,f.next=null,l.lastBaseUpdate=f,l.shared.pending=null}}while(!0);if(x===null&&(o=h),l.baseState=o,l.firstBaseUpdate=d,l.lastBaseUpdate=x,t=l.shared.interleaved,t!==null){l=t;do i|=l.lane,l=l.next;while(l!==t)}else s===null&&(l.shared.lanes=0);Mt|=i,e.lanes=i,e.memoizedState=h}}function Ki(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;tr?r:4,e(!0);var n=ia.transition;ia.transition={};try{e(!1),t()}finally{R=r,ia.transition=n}}function pc(){return _e().memoizedState}function of(e,t,r){var n=xt(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},fc(e))mc(t,r);else if(r=qu(e,t,r,n),r!==null){var l=ce();Me(r,e,n,l),hc(r,t,n)}}function uf(e,t,r){var n=xt(e),l={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(fc(e))mc(t,l);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var i=t.lastRenderedState,u=s(i,r);if(l.hasEagerState=!0,l.eagerState=u,Ae(u,i)){var o=t.interleaved;o===null?(l.next=l,As(t)):(l.next=o.next,o.next=l),t.interleaved=l;return}}catch{}finally{}r=qu(e,t,l,n),r!==null&&(l=ce(),Me(r,e,n,l),hc(r,t,n))}}function fc(e){var t=e.alternate;return e===$||t!==null&&t===$}function mc(e,t){Mr=fl=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function hc(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,bs(e,r)}}var ml={readContext:Te,useCallback:ae,useContext:ae,useEffect:ae,useImperativeHandle:ae,useInsertionEffect:ae,useLayoutEffect:ae,useMemo:ae,useReducer:ae,useRef:ae,useState:ae,useDebugValue:ae,useDeferredValue:ae,useTransition:ae,useMutableSource:ae,useSyncExternalStore:ae,useId:ae,unstable_isNewReconciler:!1},cf={readContext:Te,useCallback:function(e,t){return $e().memoizedState=[e,t===void 0?null:t],e},useContext:Te,useEffect:Zi,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Wn(4194308,4,ic.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Wn(4194308,4,e,t)},useInsertionEffect:function(e,t){return Wn(4,2,e,t)},useMemo:function(e,t){var r=$e();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=$e();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=of.bind(null,$,e),[n.memoizedState,e]},useRef:function(e){var t=$e();return e={current:e},t.memoizedState=e},useState:Xi,useDebugValue:qs,useDeferredValue:function(e){return $e().memoizedState=e},useTransition:function(){var e=Xi(!1),t=e[0];return e=sf.bind(null,e[1]),$e().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=$,l=$e();if(I){if(r===void 0)throw Error(C(407));r=r()}else{if(r=t(),ee===null)throw Error(C(349));Bt&30||Ju(n,t,r)}l.memoizedState=r;var s={value:r,getSnapshot:t};return l.queue=s,Zi(tc.bind(null,n,s,e),[e]),n.flags|=2048,nn(9,ec.bind(null,n,s,r,t),void 0,null),r},useId:function(){var e=$e(),t=ee.identifierPrefix;if(I){var r=Ke,n=qe;r=(n&~(1<<32-Be(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=tn++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=i.createElement(r,{is:n.is}):(e=i.createElement(r),r==="select"&&(i=e,n.multiple?i.multiple=!0:n.size&&(i.size=n.size))):e=i.createElementNS(e,r),e[He]=t,e[Yr]=n,bc(e,t,!1,!1),t.stateNode=e;e:{switch(i=Ea(r,n),r){case"dialog":M("cancel",e),M("close",e),l=n;break;case"iframe":case"object":case"embed":M("load",e),l=n;break;case"video":case"audio":for(l=0;lmr&&(t.flags|=128,n=!0,Er(s,!1),t.lanes=4194304)}else{if(!n)if(e=pl(i),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Er(s,!0),s.tail===null&&s.tailMode==="hidden"&&!i.alternate&&!I)return se(t),null}else 2*Q()-s.renderingStartTime>mr&&r!==1073741824&&(t.flags|=128,n=!0,Er(s,!1),t.lanes=4194304);s.isBackwards?(i.sibling=t.child,t.child=i):(r=s.last,r!==null?r.sibling=i:t.child=i,s.last=i)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Q(),t.sibling=null,r=U.current,B(U,n?r&1|2:r&1),t):(se(t),null);case 22:case 23:return ei(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?ve&1073741824&&(se(t),t.subtreeFlags&6&&(t.flags|=8192)):se(t),null;case 24:return null;case 25:return null}throw Error(C(156,t.tag))}function vf(e,t){switch(zs(t),t.tag){case 1:return xe(t.type)&&al(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return pr(),A(he),A(oe),Hs(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return $s(t),null;case 13:if(A(U),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(C(340));cr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return A(U),null;case 4:return pr(),null;case 10:return Ms(t.type._context),null;case 22:case 23:return ei(),null;case 24:return null;default:return null}}var Dn=!1,ie=!1,yf=typeof WeakSet=="function"?WeakSet:Set,S=null;function er(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){W(e,t,n)}else r.current=null}function es(e,t,r){try{r()}catch(n){W(e,t,n)}}var oo=!1;function jf(e,t){if(Ba=tl,e=Lu(),Ls(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var l=n.anchorOffset,s=n.focusNode;n=n.focusOffset;try{r.nodeType,s.nodeType}catch{r=null;break e}var i=0,u=-1,o=-1,d=0,x=0,h=e,f=null;t:for(;;){for(var v;h!==r||l!==0&&h.nodeType!==3||(u=i+l),h!==s||n!==0&&h.nodeType!==3||(o=i+n),h.nodeType===3&&(i+=h.nodeValue.length),(v=h.firstChild)!==null;)f=h,h=v;for(;;){if(h===e)break t;if(f===r&&++d===l&&(u=i),f===s&&++x===n&&(o=i),(v=h.nextSibling)!==null)break;h=f,f=h.parentNode}h=v}r=u===-1||o===-1?null:{start:u,end:o}}else r=null}r=r||{start:0,end:0}}else r=null;for(Ma={focusedElem:e,selectionRange:r},tl=!1,S=t;S!==null;)if(t=S,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,S=e;else for(;S!==null;){t=S;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var j=y.memoizedProps,k=y.memoizedState,c=t.stateNode,p=c.getSnapshotBeforeUpdate(t.elementType===t.type?j:ze(t.type,j),k);c.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(C(163))}}catch(g){W(t,t.return,g)}if(e=t.sibling,e!==null){e.return=t.return,S=e;break}S=t.return}return y=oo,oo=!1,y}function Ar(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var l=n=n.next;do{if((l.tag&e)===e){var s=l.destroy;l.destroy=void 0,s!==void 0&&es(t,r,s)}l=l.next}while(l!==n)}}function _l(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function ts(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function Pc(e){var t=e.alternate;t!==null&&(e.alternate=null,Pc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[He],delete t[Yr],delete t[Ua],delete t[tf],delete t[rf])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Fc(e){return e.tag===5||e.tag===3||e.tag===4}function uo(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Fc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function rs(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=ll));else if(n!==4&&(e=e.child,e!==null))for(rs(e,t,r),e=e.sibling;e!==null;)rs(e,t,r),e=e.sibling}function ns(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(ns(e,t,r),e=e.sibling;e!==null;)ns(e,t,r),e=e.sibling}var re=null,Oe=!1;function rt(e,t,r){for(r=r.child;r!==null;)Tc(e,t,r),r=r.sibling}function Tc(e,t,r){if(We&&typeof We.onCommitFiberUnmount=="function")try{We.onCommitFiberUnmount(Nl,r)}catch{}switch(r.tag){case 5:ie||er(r,t);case 6:var n=re,l=Oe;re=null,rt(e,t,r),re=n,Oe=l,re!==null&&(Oe?(e=re,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):re.removeChild(r.stateNode));break;case 18:re!==null&&(Oe?(e=re,r=r.stateNode,e.nodeType===8?la(e.parentNode,r):e.nodeType===1&&la(e,r),Qr(e)):la(re,r.stateNode));break;case 4:n=re,l=Oe,re=r.stateNode.containerInfo,Oe=!0,rt(e,t,r),re=n,Oe=l;break;case 0:case 11:case 14:case 15:if(!ie&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){l=n=n.next;do{var s=l,i=s.destroy;s=s.tag,i!==void 0&&(s&2||s&4)&&es(r,t,i),l=l.next}while(l!==n)}rt(e,t,r);break;case 1:if(!ie&&(er(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(u){W(r,t,u)}rt(e,t,r);break;case 21:rt(e,t,r);break;case 22:r.mode&1?(ie=(n=ie)||r.memoizedState!==null,rt(e,t,r),ie=n):rt(e,t,r);break;default:rt(e,t,r)}}function co(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new yf),t.forEach(function(n){var l=Ff.bind(null,e,n);r.has(n)||(r.add(n),n.then(l,l))})}}function De(e,t){var r=t.deletions;if(r!==null)for(var n=0;nl&&(l=i),n&=~s}if(n=l,n=Q()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Cf(n/1960))-n,10e?16:e,ot===null)var n=!1;else{if(e=ot,ot=null,gl=0,O&6)throw Error(C(331));var l=O;for(O|=4,S=e.current;S!==null;){var s=S,i=s.child;if(S.flags&16){var u=s.deletions;if(u!==null){for(var o=0;oQ()-Ys?Lt(e,0):Zs|=r),ge(e,t)}function Mc(e,t){t===0&&(e.mode&1?(t=kn,kn<<=1,!(kn&130023424)&&(kn=4194304)):t=1);var r=ce();e=Je(e,t),e!==null&&(un(e,t,r),ge(e,r))}function Pf(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),Mc(e,r)}function Ff(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,l=e.memoizedState;l!==null&&(r=l.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(C(314))}n!==null&&n.delete(t),Mc(e,r)}var Ac;Ac=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||he.current)me=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return me=!1,xf(e,t,r);me=!!(e.flags&131072)}else me=!1,I&&t.flags&1048576&&Hu(t,ol,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Gn(e,t),e=t.pendingProps;var l=ur(t,oe.current);sr(t,r),l=Gs(null,t,n,e,l,r);var s=Vs();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,xe(n)?(s=!0,sl(t)):s=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Is(t),l.updater=Tl,t.stateNode=l,l._reactInternals=t,Qa(t,n,e,r),t=Xa(null,t,n,!0,s,r)):(t.tag=0,I&&s&&Ds(t),ue(null,t,l,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Gn(e,t),e=t.pendingProps,l=n._init,n=l(n._payload),t.type=n,l=t.tag=_f(n),e=ze(n,e),l){case 0:t=Ka(null,t,n,e,r);break e;case 1:t=ao(null,t,n,e,r);break e;case 11:t=no(null,t,n,e,r);break e;case 14:t=lo(null,t,n,ze(n.type,e),r);break e}throw Error(C(306,n,""))}return t;case 0:return n=t.type,l=t.pendingProps,l=t.elementType===n?l:ze(n,l),Ka(e,t,n,l,r);case 1:return n=t.type,l=t.pendingProps,l=t.elementType===n?l:ze(n,l),ao(e,t,n,l,r);case 3:e:{if(Cc(t),e===null)throw Error(C(387));n=t.pendingProps,s=t.memoizedState,l=s.element,Ku(e,t),dl(t,n,null,r);var i=t.memoizedState;if(n=i.element,s.isDehydrated)if(s={element:n,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){l=fr(Error(C(423)),t),t=so(e,t,n,r,l);break e}else if(n!==l){l=fr(Error(C(424)),t),t=so(e,t,n,r,l);break e}else for(ye=ft(t.stateNode.containerInfo.firstChild),je=t,I=!0,Re=null,r=Qu(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(cr(),n===l){t=et(e,t,r);break e}ue(e,t,n,r)}t=t.child}return t;case 5:return Xu(t),e===null&&Wa(t),n=t.type,l=t.pendingProps,s=e!==null?e.memoizedProps:null,i=l.children,Aa(n,l)?i=null:s!==null&&Aa(n,s)&&(t.flags|=32),wc(e,t),ue(e,t,i,r),t.child;case 6:return e===null&&Wa(t),null;case 13:return Nc(e,t,r);case 4:return Us(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=dr(t,null,n,r):ue(e,t,n,r),t.child;case 11:return n=t.type,l=t.pendingProps,l=t.elementType===n?l:ze(n,l),no(e,t,n,l,r);case 7:return ue(e,t,t.pendingProps,r),t.child;case 8:return ue(e,t,t.pendingProps.children,r),t.child;case 12:return ue(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,l=t.pendingProps,s=t.memoizedProps,i=l.value,B(ul,n._currentValue),n._currentValue=i,s!==null)if(Ae(s.value,i)){if(s.children===l.children&&!he.current){t=et(e,t,r);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var u=s.dependencies;if(u!==null){i=s.child;for(var o=u.firstContext;o!==null;){if(o.context===n){if(s.tag===1){o=Xe(-1,r&-r),o.tag=2;var d=s.updateQueue;if(d!==null){d=d.shared;var x=d.pending;x===null?o.next=o:(o.next=x.next,x.next=o),d.pending=o}}s.lanes|=r,o=s.alternate,o!==null&&(o.lanes|=r),Ga(s.return,r,t),u.lanes|=r;break}o=o.next}}else if(s.tag===10)i=s.type===t.type?null:s.child;else if(s.tag===18){if(i=s.return,i===null)throw Error(C(341));i.lanes|=r,u=i.alternate,u!==null&&(u.lanes|=r),Ga(i,r,t),i=s.sibling}else i=s.child;if(i!==null)i.return=s;else for(i=s;i!==null;){if(i===t){i=null;break}if(s=i.sibling,s!==null){s.return=i.return,i=s;break}i=i.return}s=i}ue(e,t,l.children,r),t=t.child}return t;case 9:return l=t.type,n=t.pendingProps.children,sr(t,r),l=Te(l),n=n(l),t.flags|=1,ue(e,t,n,r),t.child;case 14:return n=t.type,l=ze(n,t.pendingProps),l=ze(n.type,l),lo(e,t,n,l,r);case 15:return yc(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,l=t.pendingProps,l=t.elementType===n?l:ze(n,l),Gn(e,t),t.tag=1,xe(n)?(e=!0,sl(t)):e=!1,sr(t,r),xc(t,n,l),Qa(t,n,l,r),Xa(null,t,n,!0,e,r);case 19:return kc(e,t,r);case 22:return jc(e,t,r)}throw Error(C(156,t.tag))};function Ic(e,t){return fu(e,t)}function Tf(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Pe(e,t,r,n){return new Tf(e,t,r,n)}function ri(e){return e=e.prototype,!(!e||!e.isReactComponent)}function _f(e){if(typeof e=="function")return ri(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ws)return 11;if(e===Cs)return 14}return 2}function gt(e,t){var r=e.alternate;return r===null?(r=Pe(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function qn(e,t,r,n,l,s){var i=2;if(n=e,typeof e=="function")ri(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Gt:return Dt(r.children,l,s,t);case js:i=8,l|=8;break;case ga:return e=Pe(12,r,t,l|2),e.elementType=ga,e.lanes=s,e;case va:return e=Pe(13,r,t,l),e.elementType=va,e.lanes=s,e;case ya:return e=Pe(19,r,t,l),e.elementType=ya,e.lanes=s,e;case Xo:return Dl(r,l,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case qo:i=10;break e;case Ko:i=9;break e;case ws:i=11;break e;case Cs:i=14;break e;case nt:i=16,n=null;break e}throw Error(C(130,e==null?e:typeof e,""))}return t=Pe(i,r,t,l),t.elementType=e,t.type=n,t.lanes=s,t}function Dt(e,t,r,n){return e=Pe(7,e,n,t),e.lanes=r,e}function Dl(e,t,r,n){return e=Pe(22,e,n,t),e.elementType=Xo,e.lanes=r,e.stateNode={isHidden:!1},e}function pa(e,t,r){return e=Pe(6,e,null,t),e.lanes=r,e}function fa(e,t,r){return t=Pe(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Lf(e,t,r,n,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ql(0),this.expirationTimes=Ql(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ql(0),this.identifierPrefix=n,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function ni(e,t,r,n,l,s,i,u,o){return e=new Lf(e,t,r,u,o),t===1?(t=1,s===!0&&(t|=8)):t=0,s=Pe(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Is(s),e}function Df(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Wc)}catch(e){console.error(e)}}Wc(),Wo.exports=Ne;var Mf=Wo.exports,yo=Mf;ha.createRoot=yo.createRoot,ha.hydrateRoot=yo.hydrateRoot;/** * @remix-run/router v1.23.4 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function an(){return an=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Gc(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function If(){return Math.random().toString(36).substr(2,8)}function wo(e,t){return{usr:e.state,key:e.key,idx:t}}function os(e,t,r,n){return r===void 0&&(r=null),an({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?vr(t):t,{state:r,key:t&&t.key||n||If()})}function jl(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function vr(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function Uf(e,t,r,n){n===void 0&&(n={});let{window:l=document.defaultView,v5Compat:s=!1}=n,i=l.history,u=ut.Pop,o=null,d=x();d==null&&(d=0,i.replaceState(an({},i.state,{idx:d}),""));function x(){return(i.state||{idx:null}).idx}function h(){u=ut.Pop;let k=x(),c=k==null?null:k-d;d=k,o&&o({action:u,location:j.location,delta:c})}function f(k,c){u=ut.Push;let p=os(j.location,k,c);d=x()+1;let m=wo(p,d),g=j.createHref(p);try{i.pushState(m,"",g)}catch(N){if(N instanceof DOMException&&N.name==="DataCloneError")throw N;l.location.assign(g)}s&&o&&o({action:u,location:j.location,delta:1})}function v(k,c){u=ut.Replace;let p=os(j.location,k,c);d=x();let m=wo(p,d),g=j.createHref(p);i.replaceState(m,"",g),s&&o&&o({action:u,location:j.location,delta:0})}function y(k){let c=l.location.origin!=="null"?l.location.origin:l.location.href,p=typeof k=="string"?k:jl(k);return p=p.replace(/ $/,"%20"),K(c,"No window.location.(origin|href) available to create URL for href: "+p),new URL(p,c)}let j={get action(){return u},get location(){return e(l,i)},listen(k){if(o)throw new Error("A history only accepts one active listener");return l.addEventListener(jo,h),o=k,()=>{l.removeEventListener(jo,h),o=null}},createHref(k){return t(l,k)},createURL:y,encodeLocation(k){let c=y(k);return{pathname:c.pathname,search:c.search,hash:c.hash}},push:f,replace:v,go(k){return i.go(k)}};return j}var Co;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Co||(Co={}));function $f(e,t,r){return r===void 0&&(r="/"),Hf(e,t,r)}function Hf(e,t,r,n){let l=typeof t=="string"?vr(t):t,s=ii(l.pathname||"/",r);if(s==null)return null;let i=Vc(e);Wf(i);let u=null,o=rm(s);for(let d=0;u==null&&d{let o={relativePath:u===void 0?s.path||"":u,caseSensitive:s.caseSensitive===!0,childrenIndex:i,route:s};o.relativePath.startsWith("/")&&(K(o.relativePath.startsWith(n),'Absolute route path "'+o.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),o.relativePath=o.relativePath.slice(n.length));let d=vt([n,o.relativePath]),x=r.concat(o);s.children&&s.children.length>0&&(K(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+d+'".')),Vc(s.children,t,x,d)),!(s.path==null&&!s.index)&&t.push({path:d,score:Zf(d,s.index),routesMeta:x})};return e.forEach((s,i)=>{var u;if(s.path===""||!((u=s.path)!=null&&u.includes("?")))l(s,i);else for(let o of Qc(s.path))l(s,i,o)}),t}function Qc(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,l=r.endsWith("?"),s=r.replace(/\?$/,"");if(n.length===0)return l?[s,""]:[s];let i=Qc(n.join("/")),u=[];return u.push(...i.map(o=>o===""?s:[s,o].join("/"))),l&&u.push(...i),u.map(o=>e.startsWith("/")&&o===""?"/":o)}function Wf(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:Yf(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const Gf=/^:[\w-]+$/,Vf=3,Qf=2,qf=1,Kf=10,Xf=-2,No=e=>e==="*";function Zf(e,t){let r=e.split("/"),n=r.length;return r.some(No)&&(n+=Xf),t&&(n+=Qf),r.filter(l=>!No(l)).reduce((l,s)=>l+(Gf.test(s)?Vf:s===""?qf:Kf),n)}function Yf(e,t){return e.length===t.length&&e.slice(0,-1).every((n,l)=>n===t[l])?e[e.length-1]-t[t.length-1]:0}function Jf(e,t,r){let{routesMeta:n}=e,l={},s="/",i=[];for(let u=0;u{let{paramName:f,isOptional:v}=x;if(f==="*"){let j=u[h]||"";i=s.slice(0,s.length-j.length).replace(/(.)\/+$/,"$1")}const y=u[h];return v&&!y?d[f]=void 0:d[f]=(y||"").replace(/%2F/g,"/"),d},{}),pathname:s,pathnameBase:i,pattern:e}}function tm(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),Gc(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],l="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,u,o)=>(n.push({paramName:u,isOptional:o!=null}),o?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),l+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?l+="\\/*$":e!==""&&e!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,t?void 0:"i"),n]}function rm(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Gc(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function ii(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function nm(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:l=""}=typeof e=="string"?vr(e):e,s;return r?(r=Xc(r),r.startsWith("/")?s=ko(r.substring(1),"/"):s=ko(r,t)):s=t,{pathname:s,search:sm(n),hash:im(l)}}function ko(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(l=>{l===".."?r.length>1&&r.pop():l!=="."&&r.push(l)}),r.length>1?r.join("/"):"/"}function ma(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function lm(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function qc(e,t){let r=lm(e);return t?r.map((n,l)=>l===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function Kc(e,t,r,n){n===void 0&&(n=!1);let l;typeof e=="string"?l=vr(e):(l=an({},e),K(!l.pathname||!l.pathname.includes("?"),ma("?","pathname","search",l)),K(!l.pathname||!l.pathname.includes("#"),ma("#","pathname","hash",l)),K(!l.search||!l.search.includes("#"),ma("#","search","hash",l)));let s=e===""||l.pathname==="",i=s?"/":l.pathname,u;if(i==null)u=r;else{let h=t.length-1;if(!n&&i.startsWith("..")){let f=i.split("/");for(;f[0]==="..";)f.shift(),h-=1;l.pathname=f.join("/")}u=h>=0?t[h]:"/"}let o=nm(l,u),d=i&&i!=="/"&&i.endsWith("/"),x=(s||i===".")&&r.endsWith("/");return!o.pathname.endsWith("/")&&(d||x)&&(o.pathname+="/"),o}const Xc=e=>e.replace(/\/\/+/g,"/"),vt=e=>Xc(e.join("/")),am=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),sm=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,im=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function om(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Zc=["post","put","patch","delete"];new Set(Zc);const um=["get",...Zc];new Set(um);/** * React Router v6.30.6 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function sn(){return sn=Object.assign?Object.assign.bind():function(e){for(var t=1;t{u.current=!0}),w.useCallback(function(d,x){if(x===void 0&&(x={}),!u.current)return;if(typeof d=="number"){n.go(d);return}let h=Kc(d,JSON.parse(i),s,x.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:vt([t,h.pathname])),(x.replace?n.replace:n.push)(h,x.state,x)},[t,n,i,s,e])}function ed(){let{matches:e}=w.useContext(kt),t=e[e.length-1];return t?t.params:{}}function td(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=w.useContext($t),{matches:l}=w.useContext(kt),{pathname:s}=mn(),i=JSON.stringify(qc(l,n.v7_relativeSplatPath));return w.useMemo(()=>Kc(e,JSON.parse(i),s,r==="path"),[e,i,s,r])}function fm(e,t){return mm(e,t)}function mm(e,t,r,n){fn()||K(!1);let{navigator:l}=w.useContext($t),{matches:s}=w.useContext(kt),i=s[s.length-1],u=i?i.params:{};i&&i.pathname;let o=i?i.pathnameBase:"/";i&&i.route;let d=mn(),x;if(t){var h;let k=typeof t=="string"?vr(t):t;o==="/"||(h=k.pathname)!=null&&h.startsWith(o)||K(!1),x=k}else x=d;let f=x.pathname||"/",v=f;if(o!=="/"){let k=o.replace(/^\//,"").split("/");v="/"+f.replace(/^\//,"").split("/").slice(k.length).join("/")}let y=$f(e,{pathname:v}),j=ym(y&&y.map(k=>Object.assign({},k,{params:Object.assign({},u,k.params),pathname:vt([o,l.encodeLocation?l.encodeLocation(k.pathname).pathname:k.pathname]),pathnameBase:k.pathnameBase==="/"?o:vt([o,l.encodeLocation?l.encodeLocation(k.pathnameBase).pathname:k.pathnameBase])})),s,r,n);return t&&j?w.createElement(Ml.Provider,{value:{location:sn({pathname:"/",search:"",hash:"",state:null,key:"default"},x),navigationType:ut.Pop}},j):j}function hm(){let e=Nm(),t=om(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,l={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return w.createElement(w.Fragment,null,w.createElement("h2",null,"Unexpected Application Error!"),w.createElement("h3",{style:{fontStyle:"italic"}},t),r?w.createElement("pre",{style:l},r):null,null)}const xm=w.createElement(hm,null);class gm extends w.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?w.createElement(kt.Provider,{value:this.props.routeContext},w.createElement(Yc.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function vm(e){let{routeContext:t,match:r,children:n}=e,l=w.useContext(oi);return l&&l.static&&l.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=r.route.id),w.createElement(kt.Provider,{value:t},n)}function ym(e,t,r,n){var l;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var s;if(!r)return null;if(r.errors)e=r.matches;else if((s=n)!=null&&s.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,u=(l=r)==null?void 0:l.errors;if(u!=null){let x=i.findIndex(h=>h.route.id&&(u==null?void 0:u[h.route.id])!==void 0);x>=0||K(!1),i=i.slice(0,Math.min(i.length,x+1))}let o=!1,d=-1;if(r&&n&&n.v7_partialHydration)for(let x=0;x=0?i=i.slice(0,d+1):i=[i[0]];break}}}return i.reduceRight((x,h,f)=>{let v,y=!1,j=null,k=null;r&&(v=u&&h.route.id?u[h.route.id]:void 0,j=h.route.errorElement||xm,o&&(d<0&&f===0?(bm("route-fallback"),y=!0,k=null):d===f&&(y=!0,k=h.route.hydrateFallbackElement||null)));let c=t.concat(i.slice(0,f+1)),p=()=>{let m;return v?m=j:y?m=k:h.route.Component?m=w.createElement(h.route.Component,null):h.route.element?m=h.route.element:m=x,w.createElement(vm,{match:h,routeContext:{outlet:x,matches:c,isDataRoute:r!=null},children:m})};return r&&(h.route.ErrorBoundary||h.route.errorElement||f===0)?w.createElement(gm,{location:r.location,revalidation:r.revalidation,component:j,error:v,children:p(),routeContext:{outlet:null,matches:c,isDataRoute:!0}}):p()},null)}var rd=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(rd||{}),nd=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(nd||{});function jm(e){let t=w.useContext(oi);return t||K(!1),t}function wm(e){let t=w.useContext(cm);return t||K(!1),t}function Cm(e){let t=w.useContext(kt);return t||K(!1),t}function ld(e){let t=Cm(),r=t.matches[t.matches.length-1];return r.route.id||K(!1),r.route.id}function Nm(){var e;let t=w.useContext(Yc),r=wm(),n=ld();return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function km(){let{router:e}=jm(rd.UseNavigateStable),t=ld(nd.UseNavigateStable),r=w.useRef(!1);return Jc(()=>{r.current=!0}),w.useCallback(function(l,s){s===void 0&&(s={}),r.current&&(typeof l=="number"?e.navigate(l):e.navigate(l,sn({fromRouteId:t},s)))},[e,t])}const bo={};function bm(e,t,r){bo[e]||(bo[e]=!0)}function Sm(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function te(e){K(!1)}function Em(e){let{basename:t="/",children:r=null,location:n,navigationType:l=ut.Pop,navigator:s,static:i=!1,future:u}=e;fn()&&K(!1);let o=t.replace(/^\/*/,"/"),d=w.useMemo(()=>({basename:o,navigator:s,static:i,future:sn({v7_relativeSplatPath:!1},u)}),[o,u,s,i]);typeof n=="string"&&(n=vr(n));let{pathname:x="/",search:h="",hash:f="",state:v=null,key:y="default"}=n,j=w.useMemo(()=>{let k=ii(x,o);return k==null?null:{location:{pathname:k,search:h,hash:f,state:v,key:y},navigationType:l}},[o,x,h,f,v,y,l]);return j==null?null:w.createElement($t.Provider,{value:d},w.createElement(Ml.Provider,{children:r,value:j}))}function Pm(e){let{children:t,location:r}=e;return fm(us(t),r)}new Promise(()=>{});function us(e,t){t===void 0&&(t=[]);let r=[];return w.Children.forEach(e,(n,l)=>{if(!w.isValidElement(n))return;let s=[...t,l];if(n.type===w.Fragment){r.push.apply(r,us(n.props.children,s));return}n.type!==te&&K(!1),!n.props.index||!n.props.children||K(!1);let i={id:n.props.id||s.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(i.children=us(n.props.children,s)),r.push(i)}),r}/** * React Router DOM v6.30.6 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function cs(){return cs=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let n=e[r];return t.concat(Array.isArray(n)?n.map(l=>[r,l]):[[r,n]])},[]))}function Lm(e,t){let r=ds(e);return t&&t.forEach((n,l)=>{r.has(l)||t.getAll(l).forEach(s=>{r.append(l,s)})}),r}const Dm=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],zm="6";try{window.__reactRouterVersion=zm}catch{}const Om="startTransition",So=Sd[Om];function Rm(e){let{basename:t,children:r,future:n,window:l}=e,s=w.useRef();s.current==null&&(s.current=Af({window:l,v5Compat:!0}));let i=s.current,[u,o]=w.useState({action:i.action,location:i.location}),{v7_startTransition:d}=n||{},x=w.useCallback(h=>{d&&So?So(()=>o(h)):o(h)},[o,d]);return w.useLayoutEffect(()=>i.listen(x),[i,x]),w.useEffect(()=>Sm(n),[n]),w.createElement(Em,{basename:t,children:r,location:u.location,navigationType:u.action,navigator:i,future:n})}const Bm=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Mm=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,T=w.forwardRef(function(t,r){let{onClick:n,relative:l,reloadDocument:s,replace:i,state:u,target:o,to:d,preventScrollReset:x,viewTransition:h}=t,f=Fm(t,Dm),{basename:v}=w.useContext($t),y,j=!1;if(typeof d=="string"&&Mm.test(d)&&(y=d,Bm))try{let m=new URL(window.location.href),g=d.startsWith("//")?new URL(m.protocol+d):new URL(d),N=ii(g.pathname,v);g.origin===m.origin&&N!=null?d=N+g.search+g.hash:j=!0}catch{}let k=dm(d,{relative:l}),c=Am(d,{replace:i,state:u,target:o,preventScrollReset:x,relative:l,viewTransition:h});function p(m){n&&n(m),m.defaultPrevented||c(m)}return w.createElement("a",cs({},f,{href:y||k,onClick:j||s?n:p,ref:r,target:o}))});var Eo;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Eo||(Eo={}));var Po;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Po||(Po={}));function Am(e,t){let{target:r,replace:n,state:l,preventScrollReset:s,relative:i,viewTransition:u}=t===void 0?{}:t,o=hn(),d=mn(),x=td(e,{relative:i});return w.useCallback(h=>{if(_m(h,r)){h.preventDefault();let f=n!==void 0?n:jl(d)===jl(x);o(e,{replace:f,state:l,preventScrollReset:s,relative:i,viewTransition:u})}},[d,o,x,n,l,r,e,s,i,u])}function Im(e){let t=w.useRef(ds(e)),r=w.useRef(!1),n=mn(),l=w.useMemo(()=>Lm(n.search,r.current?null:t.current),[n.search]),s=hn(),i=w.useCallback((u,o)=>{const d=ds(typeof u=="function"?u(l):u);r.current=!0,s("?"+d,o)},[s,l]);return[l,i]}const ad=w.createContext(null),Um=({children:e})=>{const[t,r]=w.useState(()=>{try{const f=localStorage.getItem("kern-cart");return f?JSON.parse(f):[]}catch{return[]}});w.useEffect(()=>{localStorage.setItem("kern-cart",JSON.stringify(t))},[t]);const n=(f,v,y=1)=>{r(j=>j.find(c=>c.product.id===f.id&&c.variant.sku===v.sku)?j.map(c=>c.product.id===f.id&&c.variant.sku===v.sku?{...c,quantity:Math.min(99,c.quantity+y)}:c):[...j,{product:f,variant:v,quantity:Math.max(1,Math.min(99,y))}])},l=(f,v)=>{r(y=>y.filter(j=>!(j.product.id===f&&j.variant.sku===v)))},s=(f,v,y)=>{if(y<=0){l(f,v);return}r(j=>j.map(k=>k.product.id===f&&k.variant.sku===v?{...k,quantity:Math.min(99,Math.max(1,y))}:k))},i=()=>r([]),u=t.reduce((f,v)=>f+v.quantity,0),o=t.reduce((f,v)=>f+v.variant.price*v.quantity,0),d=o>150||o===0?0:20,x=o*.08,h=o+d+x;return a.jsx(ad.Provider,{value:{items:t,addItem:n,removeItem:l,updateQuantity:s,clearCart:i,cartCount:u,subtotal:o,shipping:d,tax:x,total:h},children:e})},xn=()=>{const e=w.useContext(ad);if(!e)throw new Error("useCart must be used within CartProvider");return e},$m="https://orio24.com/wp-content/uploads/2026/09/orio24-harina-logo-optimized.webp",Hm="5355525624",Fo=`https://wa.me/${Hm}?text=Hola%20Orio24%2C%20quiero%20cotizar%20harina%20para%20Cuba`;function Wm(){const[e,t]=w.useState(!1),{cartCount:r}=xn();return w.useEffect(()=>{const n=l=>{l.key==="Escape"&&t(!1)};return window.addEventListener("keydown",n),()=>window.removeEventListener("keydown",n)},[]),a.jsx(a.Fragment,{children:a.jsxs("header",{className:"sticky top-0 z-50 bg-cream/90 backdrop-blur-xl border-b border-wheat/40",children:[a.jsx("div",{className:"max-w-[1400px] mx-auto px-4 sm:px-6 lg:px-8",children:a.jsxs("div",{className:"flex items-center justify-between h-[72px]",children:[a.jsxs("div",{className:"flex items-center gap-6 lg:gap-8",children:[a.jsxs(T,{to:"/",className:"flex items-center gap-3","aria-label":"Orio24 Home",children:[a.jsx("img",{src:$m,alt:"Orio24 Harina — Mąka Pszenna Typ 500 Belarús GOST",className:"w-11 h-11 rounded-full object-cover bg-white border border-wheat/30 shadow-sm",loading:"eager"}),a.jsxs("div",{className:"flex flex-col leading-none",children:[a.jsx("span",{className:"font-serif text-[20px] lg:text-[22px] tracking-[-0.02em] font-bold",children:"Orio24"}),a.jsx("span",{className:"text-[10px] tracking-[0.18em] uppercase text-stone font-medium",children:"Harina • Cuba 🇨🇺 • Belarús"})]})]}),a.jsx("nav",{className:"hidden lg:flex items-center gap-6","aria-label":"Main navigation",children:[{label:"Tienda",to:"/shop"},{label:"Harina",to:"/shop?cat=Harina%20de%20Trigo"},{label:"Leche Polvo",to:"/shop?cat=Leche%20en%20Polvo"},{label:"Mayorista",to:"/wholesale"},{label:"Producción",to:"/production"},{label:"Recetas",to:"/recipes"},{label:"FAQ",to:"/faq"}].map(n=>a.jsx(T,{to:n.to,className:"text-[13px] font-medium tracking-[-0.01em] text-stone hover:text-charcoal transition-colors focus:outline-none focus:ring-2 focus:ring-grain focus:ring-offset-2 rounded-full px-2 py-1",children:n.label},n.to))})]}),a.jsxs("div",{className:"flex items-center gap-1.5 sm:gap-2.5",children:[a.jsx(T,{to:"/account","aria-label":"Cuenta",className:"hidden sm:flex w-9 h-9 rounded-full bg-white border border-wheat/50 items-center justify-center hover:bg-beige transition-colors focus:outline-none focus:ring-2 focus:ring-grain",children:a.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",children:[a.jsx("path",{d:"M20 21a8 8 0 0 0-16 0"}),a.jsx("circle",{cx:"12",cy:"8",r:"5"})]})}),a.jsxs("a",{href:Fo,target:"_blank",rel:"noopener noreferrer","aria-label":"WhatsApp Cuba",className:"hidden md:inline-flex h-9 px-4 rounded-full bg-[#25D366] text-white font-semibold text-[13px] items-center gap-1.5 hover:bg-[#128C7E] transition-colors focus:outline-none focus:ring-2 focus:ring-[#25D366] focus:ring-offset-2",children:[a.jsx("span",{className:"text-[14px]",children:"◉"})," WhatsApp"]}),a.jsxs(T,{to:"/cart","aria-label":`Carrito con ${r} productos`,className:"relative w-9 h-9 rounded-full bg-charcoal text-cream flex items-center justify-center hover:bg-stone transition-colors focus:outline-none focus:ring-2 focus:ring-charcoal focus:ring-offset-2",children:[a.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5","aria-hidden":"true",children:[a.jsx("path",{d:"M9 8h-3l-4 9h18l-4-9h-3"}),a.jsx("path",{d:"M9 8V6a3 3 0 0 1 6 0v2"})]}),r>0&&a.jsx("span",{className:"absolute -top-1 -right-1 min-w-[20px] h-[20px] px-1 rounded-full bg-grain text-charcoal text-[11px] font-bold flex items-center justify-center border-2 border-cream",children:r>99?"99+":r})]}),a.jsx("button",{onClick:()=>t(!e),className:"lg:hidden w-9 h-9 rounded-full hover:bg-beige flex items-center justify-center focus:outline-none focus:ring-2 focus:ring-grain","aria-label":e?"Cerrar menú":"Abrir menú","aria-expanded":e,children:a.jsxs("div",{className:"w-4 flex flex-col gap-1",children:[a.jsx("span",{className:`block h-0.5 bg-charcoal transition-all ${e?"rotate-45 translate-y-1.5":""}`}),a.jsx("span",{className:`block h-0.5 bg-charcoal transition-all ${e?"opacity-0":""}`}),a.jsx("span",{className:`block h-0.5 bg-charcoal transition-all ${e?"-rotate-45 -translate-y-1.5":""}`})]})})]})]})}),e&&a.jsx("div",{className:"lg:hidden border-t border-wheat/40 bg-cream",children:a.jsxs("nav",{className:"px-4 py-6 flex flex-col gap-1","aria-label":"Mobile navigation",children:[a.jsx("a",{href:Fo,target:"_blank",rel:"noopener noreferrer",className:"mb-4 h-11 rounded-full bg-[#25D366] text-white font-semibold flex items-center justify-center gap-2 focus:outline-none focus:ring-2 focus:ring-[#25D366]",children:"💬 Pedir por WhatsApp — Cuba"}),[{label:"🛒 Tienda — Todo",to:"/shop"},{label:"🌾 Harina Grado Superior",to:"/shop?cat=Harina%20de%20Trigo"},{label:"🥛 Leche en Polvo 26%",to:"/shop?cat=Leche%20en%20Polvo"},{label:"🍚 Azúcar, Cereales, Aceite, Sal",to:"/shop"},{label:"📦 Mayorista",to:"/wholesale"},{label:"🏭 Producción 6 etapas",to:"/production"},{label:"👨‍🍳 Recetas",to:"/recipes"},{label:"❓ FAQ",to:"/faq"},{label:"🚚 Entrega y Pago",to:"/shipping"},{label:"📞 Contacto",to:"/contact"},{label:"👤 Mi cuenta",to:"/account"}].map(n=>a.jsx(T,{to:n.to,onClick:()=>t(!1),className:"py-3 px-3 rounded-xl hover:bg-beige text-[16px] font-medium focus:outline-none focus:ring-2 focus:ring-grain",children:n.label},n.to)),a.jsxs("div",{className:"mt-4 pt-4 border-t border-wheat/30 text-[13px] text-stone space-y-2",children:[a.jsx("div",{children:"✓ Pago contra entrega ✓ Transfermóvil ✓ EnZona ✓ Factura + lote"}),a.jsx("div",{children:"Entrega La Habana 24-72h, resto Cuba 3-5 días • Desde 2015"})]})]})})]})})}const Gm="https://orio24.com/wp-content/uploads/2026/09/orio24-harina-logo-optimized.webp",Vm="5355525624",Qm=`https://wa.me/${Vm}?text=Hola%20Orio24%2C%20quiero%20cotizar%20harina%20para%20Cuba`;function qm(){const[e,t]=w.useState(""),[r,n]=w.useState(!1),[l,s]=w.useState(""),i=u=>{if(u.preventDefault(),!e.trim()||!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)){s("Email inválido — revisa por favor");return}s(""),n(!0),setTimeout(()=>{n(!1),t("")},4e3)};return a.jsx("footer",{className:"bg-charcoal text-beige mt-24",role:"contentinfo",children:a.jsxs("div",{className:"max-w-[1400px] mx-auto px-4 sm:px-6 lg:px-8 py-14",children:[a.jsxs("div",{className:"bg-[#1C1917]/50 border border-beige/10 rounded-[24px] p-6 sm:p-8 mb-14",children:[a.jsxs("div",{className:"grid lg:grid-cols-[1.1fr_0.9fr] gap-6 items-center",children:[a.jsxs("div",{children:[a.jsx("h3",{className:"font-serif text-[24px] text-cream leading-tight",children:"Recibe recetas, precios mayoristas y stock real Habana."}),a.jsx("p",{className:"text-[13px] text-beige/60 mt-2",children:"1 email/semana. Sin spam. Panaderías en Cuba ya suscritas. Cancela cuando quieras."}),a.jsxs("div",{className:"mt-3 flex flex-wrap gap-2 text-[11px] text-beige/50",children:[a.jsx("span",{children:"✓ Precios sacos 25kg/50kg"}),a.jsx("span",{children:"•"}),a.jsx("span",{children:"✓ Recetas 58% hidratación"}),a.jsx("span",{children:"•"}),a.jsx("span",{children:"✓ Entrega 24-72h"})]})]}),a.jsxs("form",{onSubmit:i,className:"flex gap-2",noValidate:!0,"aria-label":"Newsletter",children:[a.jsx("label",{htmlFor:"newsletter-email",className:"sr-only",children:"Email para recetas y ofertas"}),a.jsx("input",{id:"newsletter-email",type:"email",value:e,onChange:u=>t(u.target.value),placeholder:"tu@email.com — para recetas y precios",className:"flex-1 h-12 px-5 rounded-full bg-white text-charcoal text-[14px] focus:outline-none focus:ring-2 focus:ring-grain","aria-describedby":l?"newsletter-error":void 0}),a.jsx("button",{type:"submit",className:"h-12 px-6 rounded-full bg-grain text-charcoal font-semibold text-[13px] hover:bg-[#D4B483] focus:outline-none focus:ring-2 focus:ring-grain focus:ring-offset-2 focus:ring-offset-charcoal shrink-0",children:"Suscribir"})]})]}),r&&a.jsx("div",{className:"mt-4 text-[13px] text-green-300",children:"✅ ¡Gracias! Revisa tu email — te mandamos lista mayorista + receta pan blanco GOST. (Demo — email no enviado realmente, pero flujo funciona)"}),l&&a.jsx("div",{id:"newsletter-error",className:"mt-2 text-[12px] text-red-300",children:l})]}),a.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-5 gap-10",children:[a.jsxs("div",{className:"col-span-2",children:[a.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[a.jsx("img",{src:Gm,alt:"Orio24 Harina — Mąka Pszenna Typ 500 Belarús",className:"w-12 h-12 rounded-full object-cover bg-white border border-beige/20",loading:"lazy"}),a.jsxs("div",{children:[a.jsx("span",{className:"font-serif text-[22px] font-bold text-cream block leading-none",children:"Orio24"}),a.jsx("span",{className:"text-[11px] tracking-[0.18em] uppercase text-beige/60",children:"Harina • Cuba 🇨🇺 • Belarús GOST"})]})]}),a.jsx("p",{className:"text-[14px] leading-relaxed text-beige/70 max-w-xs",children:"Molino familiar Belarús desde 2015, 50t/día Buhler Suiza, laboratorio, almacén 500t. Harina Grado Superior FL-001..FL-050 GOST 26574-2017 y Leche Polvo 26% MP-025. Venta Cuba contra entrega y exportación FCA/EXW/DAP/CIF/FOB."}),a.jsxs("div",{className:"mt-5 space-y-1.5 text-[13px]",children:[a.jsx("a",{href:Qm,target:"_blank",rel:"noopener noreferrer",className:"inline-flex h-10 px-5 rounded-full bg-[#25D366] text-white font-semibold items-center gap-2 hover:bg-[#128C7E] focus:outline-none focus:ring-2 focus:ring-[#25D366]",children:"💬 WhatsApp Cuba — 30 min respuesta"}),a.jsx("div",{className:"text-beige/50 mt-3",children:"📞 +53 5 555-12-34 (demo) • 📧 info@orio24.com • 🕘 Lun-Sáb 8:00-19:00 Cuba"}),a.jsxs("div",{className:"text-beige/40 text-[12px]",children:["La Habana, Santiago de Cuba",a.jsx("br",{}),"Entrega toda Cuba • Factura + EAC + lote + GOST • 300+ panaderías • 4.9/5"]})]})]}),a.jsxs("div",{children:[a.jsx("h4",{className:"font-medium text-[13px] tracking-wide uppercase mb-4 text-cream",children:"Tienda Cuba"}),a.jsxs("ul",{className:"space-y-2.5 text-[14px] text-beige/60",children:[a.jsx("li",{children:a.jsx(T,{to:"/shop",className:"hover:text-cream focus:outline-none focus:text-cream",children:"Todo — 8 productos • Stock real"})}),a.jsx("li",{children:a.jsx(T,{to:"/shop?cat=Harina%20de%20Trigo",className:"hover:text-cream",children:"Harina Grado Superior FL-001..FL-050"})}),a.jsx("li",{children:a.jsx(T,{to:"/shop?cat=Leche%20en%20Polvo",className:"hover:text-cream",children:"Leche Polvo 26% MP-025 • Descremada"})}),a.jsx("li",{children:a.jsx(T,{to:"/shop?cat=Az%C3%BAcar",className:"hover:text-cream",children:"Azúcar • Cereales • Aceite • Sal"})}),a.jsx("li",{children:a.jsx("span",{className:"text-beige/40",children:"FL-001 • MP-025 • Integral • GOST"})})]})]}),a.jsxs("div",{children:[a.jsx("h4",{className:"font-medium text-[13px] tracking-wide uppercase mb-4 text-cream",children:"Cómo comprar • Confianza"}),a.jsxs("ul",{className:"space-y-2.5 text-[14px] text-beige/60",children:[a.jsx("li",{children:a.jsx(T,{to:"/production",className:"hover:text-cream",children:"Producción 6 etapas • Buhler 50t/día"})}),a.jsx("li",{children:a.jsx(T,{to:"/wholesale",className:"hover:text-cream",children:"Mayorista desde 1 paleta • Precios sacos"})}),a.jsx("li",{children:a.jsx(T,{to:"/shipping",className:"hover:text-cream",children:"Entrega Habana 24-72h • Toda Cuba 3-5d"})}),a.jsx("li",{children:a.jsx(T,{to:"/faq",className:"hover:text-cream",children:"FAQ • Pago contra entrega • Transfermóvil"})}),a.jsx("li",{children:a.jsx(T,{to:"/recipes",className:"hover:text-cream",children:"Recetas cubanas • Pan blanco GOST"})})]})]}),a.jsxs("div",{children:[a.jsx("h4",{className:"font-medium text-[13px] tracking-wide uppercase mb-4 text-cream",children:"Empresa • Legal"}),a.jsxs("ul",{className:"space-y-2.5 text-[14px] text-beige/60",children:[a.jsx("li",{children:a.jsx(T,{to:"/about",className:"hover:text-cream",children:"Sobre nosotros • Desde 2015 • 500t"})}),a.jsx("li",{children:a.jsx(T,{to:"/contact",className:"hover:text-cream",children:"Contacto • WhatsApp • Email"})}),a.jsx("li",{children:a.jsx(T,{to:"/account",className:"hover:text-cream",children:"Mi cuenta • Pedidos"})}),a.jsx("li",{children:a.jsx(T,{to:"/privacy",className:"hover:text-cream",children:"Privacidad • Datos Cuba"})}),a.jsx("li",{children:a.jsx(T,{to:"/terms",className:"hover:text-cream",children:"Términos • Factura • GOST • EAC"})})]})]})]}),a.jsxs("div",{className:"mt-14 pt-8 border-t border-beige/10 flex flex-col lg:flex-row justify-between gap-4 text-[12px] text-beige/40",children:[a.jsxs("div",{className:"space-y-1",children:[a.jsxs("div",{children:["© ",new Date().getFullYear()," Orio24 — Productos Belarús para Cuba. Molino 50t/día Buhler Suiza, laboratorio, 500t almacén. Pago contra entrega • Factura • GOST 26574-2017 • Export FCA/EXW/DAP/CIF/FOB"]}),a.jsx("div",{className:"text-beige/30",children:"Demo store — fictional brand for educational purpose. Reviews are demo content. Real product photos optimized WebP 69KB/90KB/25KB. No raw card stored. Test card 4242 4242 4242 4242 for demo payment."})]}),a.jsxs("div",{className:"flex flex-wrap gap-3 shrink-0",children:[a.jsx("span",{children:"Hecho para Cuba 🇨🇺"}),a.jsx("span",{children:"•"}),a.jsx("span",{children:"Desde 2015"}),a.jsx("span",{children:"•"}),a.jsx("span",{children:"GOST 26574-2017"})]})]})]})})}const Km=["Todos","Harina de Trigo","Leche en Polvo","Azúcar","Cereales","Aceite","Sal"],Rn="https://orio24.com/wp-content/uploads/2026/09/orio24-harina-2kg-single-bag-optimized.webp",To="https://orio24.com/wp-content/uploads/2026/09/orio24-harina-2kg-bag-optimized.webp",_o="https://orio24.com/wp-content/uploads/2026/09/orio24-harina-logo-optimized.webp",zt=[{id:"orio-001",name:"Harina de Trigo Grado Superior (Belarús)",slug:"harina-trigo-grado-superior-belarus",category:"Harina de Trigo",subCategory:"Grado Superior",shortDescription:"Harina de trigo de alta calidad de producción bielorrusa. GOST 26574-2017. Para panadería y confitería.",description:`Ofrecemos harina de trigo de alta calidad de producción bielorrusa para la industria panadera, confitera y alimentaria. La harina se produce a partir de trigo alimentario seleccionado cumpliendo los requisitos de las normas estatales y pasa por un control de calidad de múltiples etapas. Ideal para: panaderías, fábricas de pan, producción de confitería, panaderías artesanales, HoReCa, cadenas comerciales, empresas de catering, proveedores mayoristas y exportación.`,price:2.9,variants:[{weight:"1 kg",price:2.9,sku:"FL-001"},{weight:"2 kg",price:4.5,sku:"FL-002"},{weight:"3 kg",price:6.8,sku:"FL-003"},{weight:"5 kg",price:10.5,sku:"FL-005"},{weight:"10 kg",price:19.5,sku:"FL-010"},{weight:"25 kg",price:42,sku:"FL-025"},{weight:"50 kg",price:78,sku:"FL-050"}],images:[Rn,To,_o],sku:"FL-001",ingredients:"Trigo alimentario seleccionado, Belarús",nutrition:[{label:"Tipo de producto",value:"Harina de trigo"},{label:"Grado",value:"Superior"},{label:"Color",value:"Blanco con tono crema"},{label:"Humedad",value:"hasta 15%"},{label:"Gluten",value:"24–30% (según lote)"},{label:"Proteína",value:"10–13%"},{label:"Empaque",value:"Polipropileno o papel"},{label:"Vida útil",value:"12 meses"},{label:"Temp. almacenamiento",value:"hasta +25°C"},{label:"GOST",value:"GOST 26574-2017 o TU fabricante"}],bakingTips:["Hidratación 58-62% para pan blanco","Excelentes propiedades panaderas","Alta blancura","Posibilidad de empaque con marca propia","Control de calidad de cada lote"],rating:4.9,reviews:342,inStock:!0,featured:!0,bestseller:!0,producer:"República de Belarús",originCountry:"Belarús",gost:"GOST 26574-2017 (o por TU del fabricante)",trademark:"Bajo pedido",packagingType:"Sacos de polipropileno o papel",shelfLife:"12 meses",storageTemp:"hasta +25°C",forWhom:["Fábricas de pan","Producción de confitería","Panaderías","HoReCa","Cadenas comerciales","Empresas de catering","Proveedores mayoristas","Exportación"],advantages:["Calidad bielorrusa","Alta blancura","Excelentes propiedades panaderas","Posibilidad de empaque con marca propia","Exportación","Control de calidad de cada lote"],minBatch:"desde 1 paleta",deliveryTerms:["FCA Belarús","EXW","DAP","CIF","FOB"],seoKeywords:["harina","comprar harina al por mayor","harina Belarús","harina de trigo exportación","harina 25 kg","harina 50 kg","harina para panadería","flour supplier Belarus","wheat flour wholesale"]},{id:"orio-002",name:"Leche en Polvo Entera 26% Grasa (República de Belarús)",slug:"leche-polvo-entera-26-grasa-belarus",category:"Leche en Polvo",subCategory:"26% Grasa",shortDescription:"Leche en polvo entera 26% grasa, secado por atomización. Alta solubilidad, leche natural.",description:`Leche en polvo entera con 26% de grasa producida por método de secado por atomización a partir de leche de vaca normalizada. Producto destinado a empresas de la industria alimentaria, producción de confitería, helados, productos lácteos, bebidas y alimentación infantil (según requisitos del fabricante). Características principales: grasa 26%, proteína 23-24%, vida útil hasta 8 meses cumpliendo condiciones de almacenamiento. Alta solubilidad, sabor lácteo puro.`,price:145,variants:[{weight:"25 kg",price:145,sku:"MP-025"},{weight:"500 kg (20 sacos)",price:2800,sku:"MP-025-500KG"},{weight:"1000 kg (40 sacos)",price:5400,sku:"MP-025-1000KG"}],images:["https://images.unsplash.com/photo-1550583724-b2692b85b150?q=80&w=800&auto=format&fit=crop","https://images.unsplash.com/photo-1628088062854-d60e7a67b6d3?q=80&w=800&auto=format&fit=crop",_o],sku:"MP-025",ingredients:"Leche de vaca normalizada",nutrition:[{label:"Grasa",value:"26%"},{label:"Proteína",value:"≈23–24%"},{label:"Humedad",value:"hasta 5%"},{label:"Solubilidad",value:"Alta"},{label:"Color",value:"Blanco con tono crema"},{label:"Sabor",value:"Lácteo puro"},{label:"Olor",value:"Sin olores extraños"},{label:"Empaque",value:"Saco papel multicapa con liner polietileno"},{label:"Vida útil",value:"hasta 8 meses"}],bakingTips:["Para productos lácteos, yogures, helados","Chocolate, confitería, panadería","Bebidas, alimentación infantil (según requisitos)","Alta solubilidad, calidad estable","Producción República de Belarús"],rating:4.8,reviews:128,inStock:!0,featured:!0,bestseller:!0,producer:"República de Belarús",originCountry:"Belarús",packagingType:"Saco de papel multicapa con inserto de polietileno",shelfLife:"hasta 8 meses",forWhom:["Productos lácteos","Yogures","Helados","Chocolate","Confitería","Panadería","Bebidas","Alimentación infantil"],advantages:["Producción República de Belarús","Alta solubilidad","Leche natural","Calidad estable","Exportación"],minBatch:"desde 1 paleta / para exportación desde 20 toneladas",deliveryTerms:["FCA Belarús","EXW","DAP","CIF","FOB"],seoKeywords:["leche en polvo 26%","comprar leche en polvo al por mayor","leche en polvo Belarús","whole milk powder Belarus","full cream milk powder 26%","milk powder supplier","milk powder export"]},{id:"orio-003",name:"Harina de Trigo Primer Grado (Belarús)",slug:"harina-trigo-primer-grado-belarus",category:"Harina de Trigo",subCategory:"Primer Grado",shortDescription:"Primer grado, más salvado, aroma rico. Para pan sustancioso y bollos.",description:"Harina de trigo primer grado — un poco más oscura que grado superior, con más salvado y sabor. Proteína 11%, gluten 30%. Ideal para pan rústico y bollos.",price:2.6,variants:[{weight:"1 kg",price:2.6,sku:"FL-001-1G-1KG"},{weight:"5 kg",price:11,sku:"FL-001-1G-5KG"},{weight:"25 kg",price:38,sku:"FL-001-1G-25KG"},{weight:"50 kg",price:70,sku:"FL-001-1G-50KG"}],images:[Rn,To],sku:"FL-001-1G-1KG",ingredients:"Trigo Belarús",nutrition:[{label:"Proteína",value:"11%"},{label:"Gluten",value:"30%"},{label:"Grado",value:"Primero"}],bakingTips:["Mezcla 70/30 con grado superior","Para bollos y pan rústico"],rating:4.8,reviews:89,inStock:!0,producer:"República de Belarús",originCountry:"Belarús",gost:"GOST 26574-2017",minBatch:"desde 1 paleta",deliveryTerms:["FCA Belarús","EXW","DAP","CIF","FOB"]},{id:"orio-004",name:"Harina de Trigo Segundo Grado (Belarús)",slug:"harina-trigo-segundo-grado-belarus",category:"Harina de Trigo",subCategory:"Segundo Grado",shortDescription:"Segundo grado, más oscuro, para mezclas centeno-trigo.",description:"Harina segundo grado — más oscura, con más salvado, para pan Darnitsky y mezclas. Proteína 12%, cenizas 1.2%.",price:2.3,variants:[{weight:"5 kg",price:9.5,sku:"FL-002-2G-5KG"},{weight:"25 kg",price:34,sku:"FL-002-2G-25KG"},{weight:"50 kg",price:62,sku:"FL-002-2G-50KG"}],images:[Rn],sku:"FL-002-2G-5KG",ingredients:"Trigo",nutrition:[{label:"Proteína",value:"12%"},{label:"Grado",value:"Segundo"}],bakingTips:["Para mezclas centeno-trigo 40/60"],rating:4.6,reviews:45,inStock:!0,producer:"República de Belarús",originCountry:"Belarús"},{id:"orio-005",name:"Leche en Polvo Descremada (Belarús)",slug:"leche-polvo-descremada-belarus",category:"Leche en Polvo",subCategory:"Descremada",shortDescription:"Leche en polvo descremada, alta proteína, para industria alimentaria.",description:"Leche en polvo descremada de producción bielorrusa. Proteína 34%, grasa 1%. Ideal para panadería, confitería, productos lácteos, bebidas proteicas.",price:125,variants:[{weight:"25 kg",price:125,sku:"MP-DESC-025"},{weight:"1000 kg",price:4800,sku:"MP-DESC-1000KG"}],images:["https://images.unsplash.com/photo-1550583724-b2692b85b150?q=80&w=800&auto=format&fit=crop"],sku:"MP-DESC-025",ingredients:"Leche descremada",nutrition:[{label:"Grasa",value:"1%"},{label:"Proteína",value:"34%"}],bakingTips:["Para panadería y confitería","Bebidas proteicas"],rating:4.7,reviews:67,inStock:!0,producer:"República de Belarús",originCountry:"Belarús"},{id:"orio-006",name:"Azúcar Blanco Cristal (Belarús)",slug:"azucar-blanco-cristal-belarus",category:"Azúcar",shortDescription:"Azúcar blanco cristal, para industria alimentaria y retail.",description:"Azúcar blanco cristal de producción bielorrusa. Para confitería, bebidas, panadería, retail. Sacos 25 kg, 50 kg, big-bags.",price:2.2,variants:[{weight:"5 kg",price:9.5,sku:"AZ-005"},{weight:"25 kg",price:38,sku:"AZ-025"},{weight:"50 kg",price:72,sku:"AZ-050"}],images:["https://images.unsplash.com/photo-1587132137056-bfbf0166836e?q=80&w=800&auto=format&fit=crop"],sku:"AZ-005",ingredients:"Azúcar",nutrition:[{label:"Pureza",value:"99.9%"}],bakingTips:["Para confitería y bebidas"],rating:4.8,reviews:56,inStock:!0,producer:"República de Belarús",originCountry:"Belarús"},{id:"orio-007",name:"Harina Integral 100% (Belarús)",slug:"harina-integral-100-belarus",category:"Harina de Trigo",subCategory:"Grado Superior",shortDescription:"100% integral, salvado y germen conservados. Saludable.",description:"Harina integral verdadera — grano entero, nada eliminado. Fibra 11%, vitaminas B.",price:3,variants:[{weight:"1 kg",price:3,sku:"FL-INT-1KG"},{weight:"5 kg",price:13.5,sku:"FL-INT-5KG"},{weight:"25 kg",price:52,sku:"FL-INT-25KG"}],images:[Rn],sku:"FL-INT-1KG",ingredients:"Trigo integral",nutrition:[{label:"Fibra",value:"11%"}],bakingTips:["Pan saludable"],rating:4.7,reviews:78,inStock:!0,featured:!0},{id:"orio-008",name:"Sémola y Cereales (Belarús)",slug:"semola-cereales-belarus",category:"Cereales",shortDescription:"Sémola, avena, cebada, para industria y retail.",description:"Cereales de producción bielorrusa: sémola, avena, cebada, trigo sarraceno. Para industria alimentaria y retail.",price:2,variants:[{weight:"5 kg",price:9,sku:"CER-005"},{weight:"25 kg",price:36,sku:"CER-025"}],images:["https://images.unsplash.com/photo-1574323347407-f5e1ad6d020b?q=80&w=800&auto=format&fit=crop"],sku:"CER-005",ingredients:"Cereales",nutrition:[],bakingTips:[],rating:4.6,reviews:34,inStock:!0}],sd=[{id:"r1",title:"Pan Blanco con Harina Grado Superior — GOST",description:"Receta clásica 58% hidratación para panaderías. Usa Orio24 Grado Superior.",image:"https://orio24.com/wp-content/uploads/2026/09/orio24-harina-2kg-single-bag-optimized.webp",time:"3h",difficulty:"Fácil"},{id:"r2",title:"Pan Integral con Miel y Leche en Polvo",description:"Pan saludable con harina integral y leche en polvo 26% para suavidad.",image:"https://images.unsplash.com/photo-1509440159596-0249088772ff?q=80&w=600&auto=format&fit=crop",time:"4h",difficulty:"Fácil"},{id:"r3",title:"Helado con Leche en Polvo 26%",description:"Base para helado cremoso usando leche en polvo entera 26% de Belarús.",image:"https://images.unsplash.com/photo-1488900128323-21503983a07e?q=80&w=600&auto=format&fit=crop",time:"6h",difficulty:"Intermedio"}],Xm="5355525624",Ce=`https://wa.me/${Xm}`;function be(e,t){w.useEffect(()=>{document.title=e;let r=document.querySelector('meta[name="description"]');r||(r=document.createElement("meta"),r.setAttribute("name","description"),document.head.appendChild(r)),r.setAttribute("content",t)},[e,t])}function id({message:e}){return a.jsx("div",{role:"status","aria-live":"polite",className:"fixed bottom-6 left-1/2 -translate-x-1/2 z-[100] bg-[#1C1917] text-white px-6 py-3 rounded-full text-[14px] font-medium shadow-[0_12px_32px_rgba(0,0,0,0.3)] animate-[slideUp_0.3s_ease] max-w-[90vw] text-center",children:e})}function Zm(){return a.jsx("a",{href:`${Ce}?text=Hola%20Orio24%2C%20quiero%20cotizar%20para%20Cuba`,target:"_blank",rel:"noopener noreferrer","aria-label":"WhatsApp Cuba",className:"fixed bottom-5 right-5 z-[90] w-[56px] h-[56px] rounded-full bg-[#25D366] text-white shadow-[0_8px_24px_rgba(0,0,0,0.25)] flex items-center justify-center hover:bg-[#128C7E] hover:scale-[1.05] transition-all focus:outline-none focus:ring-2 focus:ring-[#25D366]",children:a.jsx("svg",{viewBox:"0 0 24 24",width:"28",height:"28",fill:"currentColor","aria-hidden":"true",children:a.jsx("path",{d:"M19.05 4.94A9.82 9.82 0 0 0 12.03 2C6.58 2 2.13 6.44 2.13 10.88c0 1.56.41 3.09 1.18 4.44L2 22l6.85-1.8a9.87 9.87 0 0 0 4.72 1.2h.01c5.45 0 9.89-4.43 9.89-9.88 0-2.64-1.03-5.12-2.92-6.98Zm-7.02 15.2h-.01a8.13 8.13 0 0 1-4.14-1.13l-.3-.18-4.06 1.07 1.08-3.96-.2-.31a8.2 8.2 0 0 1-1.26-4.35c0-4.51 3.68-8.18 8.2-8.18 2.19 0 4.25.85 5.8 2.4a8.15 8.15 0 0 1 2.39 5.79c0 4.51-3.68 8.18-8.2 8.18Zm4.5-6.13c-.25-.12-1.47-.72-1.7-.81-.23-.08-.4-.12-.56.12-.17.25-.65.81-.8.97-.15.17-.3.19-.55.06-.25-.12-1.05-.39-2-1.23-.74-.66-1.24-1.47-1.38-1.72-.15-.25-.02-.38.11-.51.11-.11.25-.3.37-.44.12-.15.17-.25.25-.41.08-.17.04-.31-.02-.44-.06-.12-.56-1.35-.77-1.85-.2-.48-.41-.42-.56-.42h-.48c-.17 0-.44.06-.67.31-.23.25-.87.85-.87 2.08 0 1.22.89 2.4 1.01 2.57.12.17 1.75 2.67 4.24 3.75.59.26 1.05.41 1.41.52.59.19 1.13.16 1.55.1.47-.07 1.47-.6 1.68-1.18.21-.58.21-1.07.15-1.18-.06-.11-.23-.17-.48-.29Z"})})})}function Ie({items:e}){return a.jsx("nav",{"aria-label":"Breadcrumb",className:"text-[13px] text-[#8B7355]",children:a.jsx("ol",{className:"flex flex-wrap items-center gap-1.5",children:e.map((t,r)=>a.jsxs("li",{className:"flex items-center gap-1.5",children:[r>0&&a.jsx("span",{"aria-hidden":"true",className:"opacity-40",children:"/"}),t.href?a.jsx(T,{to:t.href,className:"hover:text-[#1C1917] hover:underline underline-offset-4",children:t.label}):a.jsx("span",{className:"text-[#1C1917] font-medium",children:t.label})]},r))})})}function Ym(){return a.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-3 text-[12px]",children:[a.jsxs("div",{className:"bg-white border border-[#E8DCC6] rounded-[12px] px-4 py-3 flex items-center gap-2.5",children:[a.jsx("span",{className:"text-[16px]",children:"📄"}),a.jsxs("span",{children:[a.jsx("strong",{children:"GOST 26574-2017"}),a.jsx("br",{}),a.jsx("span",{className:"text-[#8B7355]",children:"Документы по каждой партии"})]})]}),a.jsxs("div",{className:"bg-white border border-[#E8DCC6] rounded-[12px] px-4 py-3 flex items-center gap-2.5",children:[a.jsx("span",{className:"text-[16px]",children:"🧪"}),a.jsxs("span",{children:[a.jsx("strong",{children:"Лаборатория"}),a.jsx("br",{}),a.jsx("span",{className:"text-[#8B7355]",children:"Белок 10-13% • Клейк 24-30%"})]})]}),a.jsxs("div",{className:"bg-white border border-[#E8DCC6] rounded-[12px] px-4 py-3 flex items-center gap-2.5",children:[a.jsx("span",{className:"text-[16px]",children:"🚚"}),a.jsxs("span",{children:[a.jsx("strong",{children:"Habana 24-72ч"}),a.jsx("br",{}),a.jsx("span",{className:"text-[#8B7355]",children:"Вся Cuba 3-5 дней • 500т склад"})]})]}),a.jsxs("div",{className:"bg-white border border-[#E8DCC6] rounded-[12px] px-4 py-3 flex items-center gap-2.5",children:[a.jsx("span",{className:"text-[16px]",children:"💳"}),a.jsxs("span",{children:[a.jsx("strong",{children:"Pago contra entrega"}),a.jsx("br",{}),a.jsx("span",{className:"text-[#8B7355]",children:"CUP/MLC/USD • Transfermóvil"})]})]})]})}function wl({product:e}){const{addItem:t}=xn(),[r,n]=w.useState(null),l=e.variants.reduce((u,o)=>u.price{t(e,l,1),n(`Añadido: ${e.name} — ${l.weight}`),setTimeout(()=>n(null),2500)};return a.jsxs("div",{className:"group bg-white rounded-[16px] border border-[#E8DCC6]/70 overflow-hidden hover:shadow-[0_8px_28px_rgba(0,0,0,0.08)] hover:border-[#E8DCC6] transition-all duration-300 flex flex-col",children:[a.jsxs(T,{to:`/product/${e.slug}`,className:"relative block aspect-[4/3] bg-[#FFF8E1] overflow-hidden",children:[a.jsx("img",{src:e.images[0],alt:e.name,className:"w-full h-full object-cover group-hover:scale-[1.04] transition-transform duration-500",loading:"lazy"}),a.jsxs("div",{className:"absolute top-3 left-3 flex flex-col gap-1.5",children:[e.bestseller&&a.jsx("span",{className:"px-2.5 py-1 rounded-full bg-[#1C1917] text-white text-[10px] font-bold uppercase tracking-wide",children:"Más vendido"}),e.featured&&a.jsx("span",{className:"px-2.5 py-1 rounded-full bg-[#F59E0B] text-white text-[10px] font-bold uppercase tracking-wide",children:"Recomendado"})]}),a.jsx("div",{className:"absolute top-3 right-3",children:s?a.jsx("span",{className:"px-2.5 py-1 rounded-full bg-white/90 backdrop-blur text-[11px] font-medium border border-[#E8DCC6]",children:"✓ En stock"}):a.jsx("span",{className:"px-2.5 py-1 rounded-full bg-red-50 text-red-700 border border-red-200 text-[11px]",children:"Agotado"})}),a.jsx("div",{className:"absolute bottom-3 left-3 right-3 flex justify-between items-center opacity-0 group-hover:opacity-100 transition-opacity",children:a.jsxs("span",{className:"px-3 py-1.5 rounded-full bg-white/90 backdrop-blur text-[11px] font-medium border shadow-sm",children:[e.variants[0].weight," • ",e.sku]})})]}),a.jsxs("div",{className:"p-4 flex flex-col flex-1",children:[a.jsxs("div",{className:"text-[11px] uppercase tracking-wide text-[#8B7355] font-medium",children:[e.category," • ",e.sku," • ",e.originCountry]}),a.jsx(T,{to:`/product/${e.slug}`,className:"mt-1.5 font-serif text-[16px] leading-[1.25] line-clamp-2 hover:text-[#8B7355] transition-colors",children:e.name}),a.jsxs("div",{className:"mt-2 flex items-center gap-2 text-[12px]",children:[a.jsx("span",{className:"text-[#F59E0B]",children:"★".repeat(Math.floor(e.rating))}),a.jsxs("span",{className:"text-[#8B7355]",children:[e.rating," (",e.reviews,")"]}),a.jsx("span",{className:"ml-auto text-[11px] px-2 py-0.5 rounded-full bg-[#FFF8E1] border border-[#E8DCC6]",children:l.weight})]}),a.jsxs("div",{className:"mt-3 flex items-end justify-between gap-3",children:[a.jsxs("div",{children:[a.jsxs("div",{className:"text-[18px] font-bold leading-none",children:[l.price.toFixed(2)," ",a.jsx("span",{className:"text-[12px] font-medium",children:"CUP"})]}),a.jsxs("div",{className:"text-[11px] text-[#8B7355] mt-1",children:["Desde 1 saco • ",e.variants.length," empaques"]})]}),a.jsxs("div",{className:"flex gap-1.5",children:[a.jsx("a",{href:`${Ce}?text=${encodeURIComponent(`Hola Orio24, quiero cotizar ${e.name} ${l.sku} ${l.weight}`)}`,target:"_blank",rel:"noopener noreferrer",className:"w-9 h-9 rounded-full bg-[#25D366]/10 border border-[#25D366]/20 text-[#25D366] flex items-center justify-center hover:bg-[#25D366] hover:text-white transition-colors","aria-label":"WhatsApp",children:"💬"}),a.jsx("button",{onClick:i,disabled:!s,className:"h-9 px-4 rounded-full bg-[#1C1917] text-white text-[12px] font-semibold hover:bg-black disabled:opacity-40 transition-colors",children:"Añadir"})]})]})]}),r&&a.jsx(id,{message:r})]})}function ps(){return a.jsxs("div",{className:"bg-white rounded-[16px] border border-[#E8DCC6]/70 p-4 animate-pulse",children:[a.jsx("div",{className:"aspect-[4/3] bg-[#FFF8E1] rounded-xl"}),a.jsx("div",{className:"mt-4 h-4 bg-[#FFF8E1] rounded w-3/4"}),a.jsx("div",{className:"mt-2 h-3 bg-[#FFF8E1] rounded w-1/2"})]})}function Jm(){be("Orio24 — Harina Belarús para Cuba | Molino 50t/día Buhler, 500t almacén, GOST, pago contra entrega","Harina del fabricante para Cuba: FL-001..FL-050 GOST 26574-2017, leche polvo MP-025 26%. Molino 50t/día Buhler Suiza, laboratorio, 500t almacén, 300+ panaderías, factura+lote+QR, entrega Habana 24-72h, toda Cuba 3-5 días, pago contra entrega CUP/MLC/USD Transfermóvil EnZona.");const e=zt.filter(l=>l.featured).slice(0,6),t=zt.filter(l=>l.bestseller).slice(0,4),[r,n]=w.useState(!0);return w.useEffect(()=>{const l=setTimeout(()=>n(!1),600);return()=>clearTimeout(l)},[]),a.jsxs("div",{className:"bg-[#FFFCF5]",children:[a.jsxs("section",{className:"max-w-[1280px] mx-auto px-4 sm:px-6 lg:px-8 py-8 sm:py-12",children:[a.jsxs("div",{className:"grid lg:grid-cols-[1.15fr_0.85fr] gap-8 items-center bg-white rounded-[24px] border border-[#E8DCC6] overflow-hidden shadow-[0_4px_24px_rgba(0,0,0,0.04)]",children:[a.jsxs("div",{className:"p-8 sm:p-10 lg:p-12 order-2 lg:order-1",children:[a.jsx("div",{className:"inline-flex items-center gap-2 px-3 py-1 rounded-full bg-[#FFF8E1] border border-[#FDE68A] text-[11px] font-bold uppercase tracking-wide text-[#92400E]",children:"🏭 Molino familiar desde 2015 • 500t/mes • 300+ panaderías Cuba"}),a.jsxs("h1",{className:"font-serif text-[36px] sm:text-[48px] lg:text-[52px] leading-[0.9] tracking-[-0.03em] mt-5 text-[#1C1917]",children:["Harina del",a.jsx("br",{}),a.jsx("span",{className:"italic font-normal text-[#8B7355]",children:"fabricante."}),a.jsx("br",{}),"No del revendedor."]}),a.jsx("p",{className:"mt-5 text-[15px] leading-[1.6] text-[#57534E] max-w-[48ch]",children:"Molino en Belarús, 50t/día Buhler Suiza, laboratorio propio, almacén 500t. Harina GOST 26574-2017 FL-001..FL-050, leche polvo 26% MP-025. La misma bolsa amarilla que ves en foto es la que entregamos en La Habana, Santiago y toda Cuba. Con lote, QR, factura y documentos."}),a.jsxs("div",{className:"mt-7 flex flex-wrap gap-3",children:[a.jsx(T,{to:"/shop",className:"h-12 px-7 rounded-full bg-[#1C1917] text-white font-semibold text-[14px] flex items-center hover:bg-black transition-colors",children:"Ver catálogo — desde 1 saco"}),a.jsx("a",{href:`${Ce}?text=Hola%20Orio24%2C%20soy%20panaderia%20en%20Cuba%2C%20manden%20lista%20mayorista`,target:"_blank",rel:"noopener noreferrer",className:"h-12 px-7 rounded-full bg-[#25D366] text-white font-semibold text-[14px] flex items-center gap-2 hover:bg-[#128C7E]",children:"💬 WhatsApp — lista mayorista"})]}),a.jsxs("div",{className:"mt-8 grid grid-cols-3 gap-4 max-w-[420px] border-t border-[#E8DCC6]/60 pt-6",children:[a.jsxs("div",{children:[a.jsx("div",{className:"font-serif text-[22px] leading-none",children:"50t/día"}),a.jsxs("div",{className:"text-[11px] text-[#8B7355] mt-1 uppercase tracking-wide",children:["Buhler Suiza",a.jsx("br",{}),"sin blanqueo"]})]}),a.jsxs("div",{children:[a.jsx("div",{className:"font-serif text-[22px] leading-none",children:"500t"}),a.jsxs("div",{className:"text-[11px] text-[#8B7355] mt-1 uppercase tracking-wide",children:["Almacén",a.jsx("br",{}),"climatizado"]})]}),a.jsxs("div",{children:[a.jsx("div",{className:"font-serif text-[22px] leading-none",children:"300+"}),a.jsxs("div",{className:"text-[11px] text-[#8B7355] mt-1 uppercase tracking-wide",children:["Panaderías",a.jsx("br",{}),"Cuba • 4.9/5"]})]})]})]}),a.jsxs("div",{className:"relative order-1 lg:order-2 bg-[#FFF8E1] lg:h-full min-h-[420px] flex items-center justify-center p-6",children:[a.jsx("img",{src:"https://orio24.com/wp-content/uploads/2026/09/orio24-harina-2kg-bag-optimized.webp",alt:"Orio24 Harina 2kg bolsa amarilla foto real",className:"w-full max-w-[420px] h-auto object-contain drop-shadow-[0_20px_40px_rgba(0,0,0,0.15)]",loading:"eager"}),a.jsxs("div",{className:"absolute bottom-4 left-4 right-4 flex justify-between items-center",children:[a.jsx("span",{className:"px-3 py-1.5 rounded-full bg-white/90 backdrop-blur text-[11px] font-medium border shadow-sm",children:"Mąka Pszenna Typ 500 • 2kg"}),a.jsx("span",{className:"hidden sm:inline px-3 py-1.5 rounded-full bg-[#1C1917] text-white text-[11px] font-medium",children:"GOST 26574-2017 ✓"})]})]})]}),a.jsx("div",{className:"mt-6",children:a.jsx(Ym,{})})]}),a.jsxs("section",{className:"max-w-[1280px] mx-auto px-4 sm:px-6 lg:px-8 mt-10",children:[a.jsxs("div",{className:"flex items-end justify-between gap-4 mb-6",children:[a.jsxs("div",{children:[a.jsx("h2",{className:"font-serif text-[28px] sm:text-[32px] tracking-[-0.02em] text-[#1C1917]",children:"Categorías — Belarús para Cuba"}),a.jsx("p",{className:"text-[14px] text-[#8B7355] mt-1",children:"Harina, leche polvo, azúcar, cereales — todo con documentos, lote y QR"})]}),a.jsx(T,{to:"/shop",className:"hidden sm:inline text-[14px] font-medium underline underline-offset-4",children:"Ver todo →"})]}),a.jsx("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-4",children:[{name:"Harina de Trigo",desc:"Grado Superior • Primer • Segundo",count:"FL-001..FL-050",color:"bg-[#FDF6E3]",icon:"🍞"},{name:"Leche en Polvo",desc:"26% Entera • Descremada",count:"MP-025 25kg",color:"bg-[#FEF9E7]",icon:"🥛"},{name:"Azúcar y Sal",desc:"Blanco cristal • Yodada",count:"Sacos 25-50kg",color:"bg-[#F5EFE0]",icon:"🧂"},{name:"Cereales y Aceite",desc:"Trigo, maíz, vegetal",count:"Granel y sacos",color:"bg-[#EDE6D6]",icon:"🌾"}].map(l=>a.jsxs(T,{to:`/shop?cat=${encodeURIComponent(l.name)}`,className:`${l.color} rounded-[20px] p-6 border border-[#E8DCC6]/60 hover:shadow-[0_8px_24px_rgba(0,0,0,0.06)] hover:-translate-y-0.5 transition-all group`,children:[a.jsx("div",{className:"w-10 h-10 rounded-full bg-white border border-[#E8DCC6] flex items-center justify-center text-[18px]",children:l.icon}),a.jsxs("div",{className:"font-serif text-[18px] mt-4 group-hover:translate-x-0.5 transition-transform",children:[l.name," →"]}),a.jsx("div",{className:"text-[12px] text-[#8B7355] mt-1",children:l.desc}),a.jsx("div",{className:"text-[11px] mt-2 px-2 py-1 rounded-full bg-white/70 border inline-block",children:l.count})]},l.name))})]}),a.jsxs("section",{className:"max-w-[1280px] mx-auto px-4 sm:px-6 lg:px-8 mt-12",children:[a.jsxs("div",{className:"flex items-end justify-between mb-6",children:[a.jsx("h2",{className:"font-serif text-[28px] sm:text-[32px]",children:"Más pedidos hoy en Cuba"}),a.jsx("span",{className:"text-[12px] text-[#8B7355] px-3 py-1 rounded-full bg-white border",children:"Stock real Habana 24-72h"})]}),a.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4",children:r?Array.from({length:4}).map((l,s)=>a.jsx(ps,{},s)):t.map(l=>a.jsx(wl,{product:l},l.id))})]}),a.jsxs("section",{className:"max-w-[1280px] mx-auto px-4 sm:px-6 lg:px-8 mt-12 grid md:grid-cols-2 gap-6",children:[a.jsxs("div",{className:"bg-white rounded-[20px] border border-[#E8DCC6] p-7",children:[a.jsx("h3",{className:"font-serif text-[22px]",children:"¿Por qué Orio24? No somos revendedores."}),a.jsxs("div",{className:"mt-6 space-y-5",children:[a.jsxs("div",{className:"flex gap-3",children:[a.jsx("div",{className:"w-10 h-10 rounded-full bg-[#FFF8E1] border flex items-center justify-center shrink-0",children:"🏭"}),a.jsxs("div",{children:[a.jsx("div",{className:"font-semibold text-[14px]",children:"Producción propia 50t/día Buhler"}),a.jsx("div",{className:"text-[13px] text-[#8B7355] mt-1",children:"Molino, laboratorio, almacén 500t. Control total: grano, molienda, empaque. GOST 26574-2017."})]})]}),a.jsxs("div",{className:"flex gap-3",children:[a.jsx("div",{className:"w-10 h-10 rounded-full bg-[#FFF8E1] border flex items-center justify-center shrink-0",children:"📄"}),a.jsxs("div",{children:[a.jsx("div",{className:"font-semibold text-[14px]",children:"Documentos por lote"}),a.jsx("div",{className:"text-[13px] text-[#8B7355] mt-1",children:"EAC, protocolo 2h, QR, lote, factura. Cada saco marcado. Proteína 10-13%, gluten 24-30%."})]})]}),a.jsxs("div",{className:"flex gap-3",children:[a.jsx("div",{className:"w-10 h-10 rounded-full bg-[#FFF8E1] border flex items-center justify-center shrink-0",children:"🚚"}),a.jsxs("div",{children:[a.jsx("div",{className:"font-semibold text-[14px]",children:"Entrega y pago fácil Cuba"}),a.jsx("div",{className:"text-[13px] text-[#8B7355] mt-1",children:"Habana 24-72h, toda Cuba 3-5 días. Pago contra entrega CUP/MLC/USD, Transfermóvil, EnZona."})]})]})]})]}),a.jsxs("div",{className:"bg-[#1C1917] text-white rounded-[20px] p-7",children:[a.jsx("h3",{className:"font-serif text-[22px]",children:"¿Cómo comprar? 4 pasos — sin tarjeta."}),a.jsx("div",{className:"mt-6 grid grid-cols-2 gap-4",children:[{n:"1",t:"Elige harina",d:"Añade sacos al carrito"},{n:"2",t:"Deja datos",d:"Provincia + teléfono"},{n:"3",t:"Confirmamos",d:"WhatsApp en 30 min"},{n:"4",t:"Recibes y pagas",d:"CUP/MLC/USD al recibir"}].map(l=>a.jsxs("div",{className:"bg-white/10 rounded-[14px] p-4 border border-white/10",children:[a.jsx("div",{className:"w-7 h-7 rounded-full bg-white text-[#1C1917] flex items-center justify-center text-[12px] font-bold",children:l.n}),a.jsx("div",{className:"font-semibold text-[13px] mt-3",children:l.t}),a.jsx("div",{className:"text-[12px] text-white/60 mt-1",children:l.d})]},l.n))}),a.jsxs("div",{className:"mt-6 flex gap-3",children:[a.jsx(T,{to:"/shop",className:"h-10 px-5 rounded-full bg-white text-[#1C1917] font-semibold text-[13px] flex items-center",children:"Ir al catálogo"}),a.jsx("a",{href:`${Ce}?text=Hola%20Orio24%2C%20ayuda%20para%20comprar`,target:"_blank",rel:"noopener noreferrer",className:"h-10 px-5 rounded-full bg-[#25D366] text-white font-semibold text-[13px] flex items-center",children:"💬 Ayuda WhatsApp"})]})]})]}),a.jsx("section",{className:"max-w-[1280px] mx-auto px-4 sm:px-6 lg:px-8 mt-12",children:a.jsxs("div",{className:"bg-white rounded-[24px] border border-[#E8DCC6] p-7 sm:p-8",children:[a.jsxs("div",{className:"flex flex-wrap items-start justify-between gap-4",children:[a.jsxs("div",{children:[a.jsx("div",{className:"inline-flex px-3 py-1 rounded-full bg-amber-100 border border-amber-200 text-[11px] font-bold uppercase tracking-wide",children:"🏭 Производитель, не дилер — фото цеха, склада, лаборатории"}),a.jsxs("h2",{className:"font-serif text-[28px] sm:text-[34px] leading-[0.95] mt-4",children:["6 etapas de control.",a.jsx("br",{}),"Fotos reales, no renders."]}),a.jsx("p",{className:"text-[14px] text-[#8B7355] mt-3 max-w-[52ch]",children:"Cada bolsa amarilla pasa 6 controles. Mostramos ceh, laboratorio, almacén 500t, documentos. Así distingues fabricante de revendedor."})]}),a.jsx(T,{to:"/production",className:"h-10 px-5 rounded-full bg-[#1C1917] text-white text-[13px] font-medium flex items-center",children:"Ver producción →"})]}),a.jsx("div",{className:"mt-7 grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-6 gap-3",children:[{n:"01",t:"Campo",d:"1-2 clase",img:"https://images.unsplash.com/photo-1500382017468-9049fed747ef?q=80&w=300&auto=format&fit=crop"},{n:"02",t:"Limpieza",d:"3 etapas",img:"https://images.unsplash.com/photo-1574323347407-f5e1ad6d020b?q=80&w=300&auto=format&fit=crop"},{n:"03",t:"Molienda",d:"Buhler 50t",img:"https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?q=80&w=300&auto=format&fit=crop"},{n:"04",t:"Laboratorio",d:"Cada lote",img:"https://images.unsplash.com/photo-1532187863486-abf9dbad1b69?q=80&w=300&auto=format&fit=crop"},{n:"05",t:"Empaque",d:"QR + lote",img:"https://orio24.com/wp-content/uploads/2026/09/orio24-harina-2kg-bag-optimized.webp"},{n:"06",t:"Almacén 500t",d:"24-72h Habana",img:"https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?q=80&w=300&auto=format&fit=crop"}].map(l=>a.jsxs("div",{className:"rounded-[14px] overflow-hidden border border-[#E8DCC6]/60 bg-[#FFFCF5] group",children:[a.jsxs("div",{className:"relative",children:[a.jsx("img",{src:l.img,alt:l.t,className:"w-full h-[96px] object-cover group-hover:scale-[1.03] transition-transform",loading:"lazy"}),a.jsx("div",{className:"absolute top-2 left-2 bg-[#1C1917] text-white text-[10px] px-2 py-1 rounded-full font-bold",children:l.n})]}),a.jsxs("div",{className:"p-2.5",children:[a.jsx("div",{className:"font-semibold text-[12px]",children:l.t}),a.jsx("div",{className:"text-[11px] text-[#8B7355]",children:l.d})]})]},l.n))})]})}),a.jsxs("section",{className:"max-w-[1280px] mx-auto px-4 sm:px-6 lg:px-8 mt-12",children:[a.jsx("h2",{className:"font-serif text-[28px]",children:"Catálogo completo — Belarús para Cuba"}),a.jsx("p",{className:"text-[14px] text-[#8B7355] mt-1",children:"Desde 1 saco retail hasta 20t export FCA/EXW/DAP/CIF/FOB • Factura + lote + GOST"}),a.jsx("div",{className:"mt-6 grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4",children:r?Array.from({length:6}).map((l,s)=>a.jsx(ps,{},s)):e.map(l=>a.jsx(wl,{product:l},l.id))}),a.jsx("div",{className:"mt-8 text-center",children:a.jsxs(T,{to:"/shop",className:"inline-flex h-11 px-7 rounded-full bg-white border border-[#E8DCC6] font-medium text-[14px] items-center hover:bg-[#FFF8E1]",children:["Ver todo el catálogo — ",zt.length," productos →"]})})]}),a.jsx("section",{className:"bg-white border-y border-[#E8DCC6]/60 mt-16 py-12",children:a.jsxs("div",{className:"max-w-[1280px] mx-auto px-4 sm:px-6 lg:px-8",children:[a.jsxs("div",{className:"flex items-end justify-between mb-6",children:[a.jsx("h2",{className:"font-serif text-[28px]",children:"Recetas probadas en Cuba"}),a.jsx(T,{to:"/recipes",className:"text-[14px] underline",children:"Todas →"})]}),a.jsx("div",{className:"grid sm:grid-cols-3 gap-5",children:sd.map(l=>a.jsxs("div",{className:"rounded-[16px] overflow-hidden border border-[#E8DCC6] bg-[#FFFCF5]",children:[a.jsx("img",{src:l.image,alt:l.title,className:"aspect-[4/3] w-full object-cover",loading:"lazy"}),a.jsxs("div",{className:"p-4",children:[a.jsxs("div",{className:"text-[11px] text-[#8B7355] uppercase tracking-wide",children:[l.time," • ",l.difficulty]}),a.jsx("h3",{className:"font-serif text-[16px] mt-2 leading-tight",children:l.title}),a.jsx("p",{className:"text-[13px] text-[#8B7355] mt-1.5 line-clamp-2",children:l.description})]})]},l.id))})]})}),a.jsxs("section",{className:"max-w-[1280px] mx-auto px-4 sm:px-6 lg:px-8 mt-12 mb-12 grid md:grid-cols-2 gap-6",children:[a.jsxs("div",{className:"rounded-[20px] border border-[#E8DCC6] bg-white p-7",children:[a.jsx("div",{className:"w-10 h-10 rounded-full bg-[#FFF8E1] border flex items-center justify-center",children:"🛒"}),a.jsx("h3",{className:"font-serif text-[20px] mt-4",children:"Retail Cuba — desde 1 saco"}),a.jsx("p",{className:"text-[13px] text-[#8B7355] mt-2",children:"Bolsas amarillas 1-5kg, sacos 25kg. Añades al carrito, dejas provincia y teléfono, confirmamos por WhatsApp en 30 min, pagas al recibir."}),a.jsxs("ul",{className:"mt-4 space-y-1.5 text-[13px]",children:[a.jsx("li",{children:"✓ Habana 24-72h, toda Cuba 3-5 días"}),a.jsx("li",{children:"✓ Pago CUP/MLC/USD, Transfermóvil, EnZona"}),a.jsx("li",{children:"✓ Factura + lote + QR"})]}),a.jsx(T,{to:"/shop",className:"mt-5 inline-flex h-10 px-5 rounded-full bg-[#1C1917] text-white text-[13px] font-semibold items-center",children:"Comprar retail →"})]}),a.jsxs("div",{className:"rounded-[20px] border border-[#1C1917] bg-[#1C1917] text-white p-7",children:[a.jsx("div",{className:"w-10 h-10 rounded-full bg-white/10 border border-white/20 flex items-center justify-center",children:"📦"}),a.jsx("h3",{className:"font-serif text-[20px] mt-4",children:"Mayorista y Export — desde 1 paleta / 20t"}),a.jsx("p",{className:"text-[13px] text-white/60 mt-2",children:"Sacos 25kg, 50kg, big-bags 1000kg. Precios FCA/EXW/DAP/CIF/FOB. Contrato, factura, documentos por lote."}),a.jsxs("ul",{className:"mt-4 space-y-1.5 text-[13px] text-white/80",children:[a.jsx("li",{children:"✓ Lote mínimo 1 paleta Cuba, 20t export"}),a.jsx("li",{children:"✓ EAC, GOST, protocolos, vet certificados"}),a.jsx("li",{children:"✓ Almacén 500t, siempre stock"})]}),a.jsx(T,{to:"/wholesale",className:"mt-5 inline-flex h-10 px-5 rounded-full bg-white text-[#1C1917] text-[13px] font-semibold items-center",children:"Lista mayorista →"})]})]})]})}function eh(){be("Catálogo — Belarús para Cuba | Harina FL-001..FL-050, Leche MP-025 | Orio24","8 productos: harina grado superior, primer, segundo, integral, leche polvo 26% y descremada, azúcar, cereales. Desde 1 saco retail, desde 1 paleta mayorista, export 20t FCA/EXW/DAP/CIF/FOB, pago contra entrega Cuba.");const[e,t]=Im(),[r,n]=w.useState(e.get("cat")||"Todos"),[l,s]=w.useState([0,2e3]),[i,u]=w.useState("featured"),[o,d]=w.useState("retail"),[x,h]=w.useState(!0);w.useEffect(()=>{const v=e.get("cat");v&&n(v);const y=setTimeout(()=>h(!1),400);return()=>clearTimeout(y)},[e]);const f=w.useMemo(()=>{let v=[...zt];return r!=="Todos"&&(v=v.filter(y=>y.category===r||y.name.includes(r))),v=v.filter(y=>y.variants[0].price>=l[0]&&y.variants[0].price<=l[1]),o==="retail"&&(v=v.filter(y=>y.variants.some(j=>parseInt(j.weight)<=5||j.weight.includes("kg")&&parseInt(j.weight)<25))),o==="wholesale"&&(v=v.filter(y=>y.variants.some(j=>parseInt(j.weight)>=25||j.weight.toLowerCase().includes("big")))),i==="price-low"&&v.sort((y,j)=>y.variants[0].price-j.variants[0].price),i==="price-high"&&v.sort((y,j)=>j.variants[0].price-y.variants[0].price),i==="newest"&&v.sort((y,j)=>j.id.localeCompare(y.id)),i==="rating"&&v.sort((y,j)=>j.rating-y.rating),v},[r,l,i,o]);return a.jsx("div",{className:"bg-[#FFFCF5] min-h-screen",children:a.jsxs("div",{className:"max-w-[1280px] mx-auto px-4 sm:px-6 lg:px-8 py-6",children:[a.jsx(Ie,{items:[{label:"Inicio",href:"/"},{label:"Catálogo"}]}),a.jsxs("div",{className:"mt-4 flex flex-wrap items-end justify-between gap-4",children:[a.jsxs("div",{children:[a.jsx("h1",{className:"font-serif text-[32px] sm:text-[40px] tracking-[-0.02em] text-[#1C1917]",children:"Catálogo — Belarús para Cuba"}),a.jsxs("p",{className:"text-[13px] text-[#8B7355] mt-1",children:[f.length," productos • ",o==="retail"?"Retail desde 1 saco":"Mayorista desde 1 paleta / 20t export"," • FCA/EXW/DAP/CIF/FOB"]})]}),a.jsxs("div",{className:"flex gap-2",children:[a.jsxs("div",{className:"flex rounded-full bg-white border border-[#E8DCC6] p-1",children:[a.jsx("button",{onClick:()=>d("retail"),className:`px-4 h-8 rounded-full text-[13px] font-medium transition-colors ${o==="retail"?"bg-[#1C1917] text-white":"text-[#8B7355] hover:text-[#1C1917]"}`,children:"Retail"}),a.jsx("button",{onClick:()=>d("wholesale"),className:`px-4 h-8 rounded-full text-[13px] font-medium transition-colors ${o==="wholesale"?"bg-[#1C1917] text-white":"text-[#8B7355] hover:text-[#1C1917]"}`,children:"Mayorista"})]}),a.jsxs("select",{value:i,onChange:v=>u(v.target.value),className:"h-10 px-4 rounded-full bg-white border border-[#E8DCC6] text-[13px] font-medium",children:[a.jsx("option",{value:"featured",children:"Destacados"}),a.jsx("option",{value:"newest",children:"Más nuevos"}),a.jsx("option",{value:"price-low",children:"Precio: bajo a alto"}),a.jsx("option",{value:"price-high",children:"Precio: alto a bajo"}),a.jsx("option",{value:"rating",children:"Mejor valorados"})]})]})]}),a.jsxs("div",{className:"mt-8 grid lg:grid-cols-[260px_1fr] gap-6",children:[a.jsxs("div",{className:"lg:sticky lg:top-[88px] h-fit space-y-4",children:[a.jsxs("div",{className:"bg-white rounded-[16px] border border-[#E8DCC6] p-5",children:[a.jsx("h3",{className:"font-semibold text-[13px] uppercase tracking-wide",children:"Categorías"}),a.jsx("div",{className:"mt-3 flex flex-col gap-1",children:Km.map(v=>a.jsxs("button",{onClick:()=>{n(v),t(y=>(v==="Todos"?y.delete("cat"):y.set("cat",v),y))},className:`text-left px-3 py-2 rounded-full text-[13px] transition-colors ${r===v?"bg-[#1C1917] text-white":"hover:bg-[#FFF8E1] text-[#57534E]"}`,children:[v," ",r===v?"•":""]},v))})]}),a.jsxs("div",{className:"bg-white rounded-[16px] border border-[#E8DCC6] p-5",children:[a.jsx("h3",{className:"font-semibold text-[13px] uppercase tracking-wide",children:"Precio, CUP"}),a.jsxs("div",{className:"mt-4",children:[a.jsx("input",{type:"range",min:0,max:2e3,value:l[1],onChange:v=>s([l[0],parseFloat(v.target.value)]),className:"w-full accent-[#1C1917]"}),a.jsxs("div",{className:"flex justify-between text-[12px] text-[#8B7355] mt-2",children:[a.jsxs("span",{children:[l[0]," CUP"]}),a.jsxs("span",{children:["hasta ",l[1]," CUP"]})]}),a.jsx("div",{className:"text-[11px] text-[#8B7355]/70 mt-2",children:"* Retail Cuba. Mayorista 25kg/50kg/big-bag — por WhatsApp."})]})]}),a.jsxs("div",{className:"bg-[#25D366]/10 rounded-[16px] border border-[#25D366]/20 p-5",children:[a.jsx("h3",{className:"font-serif text-[15px]",children:"¿Cómo comprar en Cuba?"}),a.jsxs("ol",{className:"text-[12px] text-[#57534E] mt-2 space-y-1 list-decimal pl-4",children:[a.jsx("li",{children:"Agrega sacos al carrito"}),a.jsx("li",{children:"Provincia y teléfono"}),a.jsx("li",{children:"WhatsApp en 30 min"}),a.jsx("li",{children:"Pagas al recibir CUP/MLC/USD"})]}),a.jsx("a",{href:`${Ce}?text=Hola%20Orio24%2C%20ayuda%20para%20comprar`,target:"_blank",rel:"noopener noreferrer",className:"mt-3 inline-flex h-9 px-4 rounded-full bg-[#25D366] text-white text-[12px] font-semibold",children:"💬 WhatsApp ayuda"})]}),a.jsxs("div",{className:"bg-[#1C1917] text-white rounded-[16px] p-5",children:[a.jsx("h3",{className:"font-serif text-[15px]",children:"Mayorista + Export"}),a.jsx("p",{className:"text-[12px] text-white/60 mt-2",children:"Sacos 25kg, 50kg, big-bags 1000kg. Desde 1 paleta Cuba, 20t export. FCA/EXW/DAP/CIF/FOB."}),a.jsx(T,{to:"/wholesale",className:"mt-3 inline-block text-[12px] underline text-[#FDE68A]",children:"Lista mayorista →"})]})]}),a.jsx("div",{children:x?a.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 xl:grid-cols-3 gap-4",children:Array.from({length:6}).map((v,y)=>a.jsx(ps,{},y))}):f.length===0?a.jsxs("div",{className:"bg-white rounded-[16px] border border-[#E8DCC6] p-12 text-center",children:[a.jsx("div",{className:"text-[36px]",children:"🌾"}),a.jsx("h3",{className:"font-serif text-[18px] mt-3",children:"No encontramos producto."}),a.jsx("p",{className:"text-[13px] text-[#8B7355] mt-2",children:"Prueba otra categoría o precio."}),a.jsx("button",{onClick:()=>{n("Todos"),s([0,2e3])},className:"mt-4 h-10 px-5 rounded-full bg-[#1C1917] text-white text-[13px]",children:"Reiniciar filtros"})]}):a.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 xl:grid-cols-3 gap-4",children:f.map(v=>a.jsx(wl,{product:v},v.id))})})]})]})})}function th(){const{slug:e}=ed(),t=zt.find(c=>c.slug===e),[r,n]=w.useState((t==null?void 0:t.variants[0])||null),[l,s]=w.useState((t==null?void 0:t.images[0])||""),[i,u]=w.useState(1),[o,d]=w.useState(null),[x,h]=w.useState("desc"),{addItem:f}=xn(),v=hn();if(w.useEffect(()=>{t&&(n(t.variants[0]),s(t.images[0]))},[t]),!t)return a.jsxs("div",{className:"max-w-[700px] mx-auto px-4 py-20 text-center",children:[a.jsx("h1",{className:"font-serif text-[28px]",children:"Producto no encontrado"}),a.jsx(T,{to:"/shop",className:"mt-6 inline-block h-10 px-6 rounded-full bg-[#1C1917] text-white",children:"Volver a tienda"})]});const y=()=>{if(r){if(i<1||i>1e3){d(i<1?"Mínimo 1":"Máximo 1000, escríbenos para más"),setTimeout(()=>d(null),2500);return}f(t,r,i),d(`Añadido: ${t.name} — ${r.weight}`),setTimeout(()=>d(null),2500)}},j=`Hola Orio24, quiero cotizar: ${t.name} Artículo: ${r==null?void 0:r.sku} Empaque: ${r==null?void 0:r.weight} Cantidad: ${i} Precio: ${r==null?void 0:r.price} CUP Para Cuba, provincia: Pago: contra entrega`,k=`${Ce}?text=${encodeURIComponent(j)}`;return a.jsxs("div",{className:"bg-[#FFFCF5] min-h-screen",children:[a.jsxs("div",{className:"max-w-[1280px] mx-auto px-4 sm:px-6 lg:px-8 py-6",children:[a.jsx(Ie,{items:[{label:"Inicio",href:"/"},{label:"Catálogo",href:"/shop"},{label:t.name}]}),a.jsxs("div",{className:"mt-6 grid lg:grid-cols-[1.1fr_0.9fr] gap-8",children:[a.jsxs("div",{children:[a.jsxs("div",{className:"aspect-[4/3] rounded-[20px] overflow-hidden bg-white border border-[#E8DCC6] relative",children:[a.jsx("img",{src:l,alt:t.name,className:"w-full h-full object-cover",loading:"eager"}),a.jsxs("div",{className:"absolute bottom-3 left-3 bg-white/90 backdrop-blur rounded-full px-3 py-1 text-[11px] border",children:[t.images.findIndex(c=>c===l)+1," / ",t.images.length]})]}),a.jsx("div",{className:"mt-3 grid grid-cols-4 gap-3",children:t.images.slice(0,4).map((c,p)=>a.jsx("button",{onClick:()=>s(c),className:`aspect-square rounded-xl overflow-hidden border-2 bg-white ${l===c?"border-[#1C1917]":"border-[#E8DCC6]/60 hover:border-[#E8DCC6]"}`,children:a.jsx("img",{src:c,alt:`${t.name} ${p+1}`,className:"w-full h-full object-cover",loading:"lazy"})},p))})]}),a.jsxs("div",{className:"bg-white rounded-[20px] border border-[#E8DCC6] p-6 sm:p-7",children:[a.jsxs("div",{className:"flex flex-wrap gap-2 text-[11px]",children:[a.jsx("span",{className:"px-2.5 py-1 rounded-full bg-[#FFF8E1] border",children:t.category}),t.bestseller&&a.jsx("span",{className:"px-2.5 py-1 rounded-full bg-[#1C1917] text-white",children:"Más vendido Cuba"}),t.inStock?a.jsx("span",{className:"px-2.5 py-1 rounded-full bg-green-50 border border-green-200 text-green-800",children:"✓ En stock • Cuba"}):a.jsx("span",{className:"px-2.5 py-1 rounded-full bg-red-50 border border-red-200 text-red-800",children:"Agotado"})]}),a.jsx("h1",{className:"font-serif text-[28px] sm:text-[32px] leading-[0.95] mt-4 text-[#1C1917]",children:t.name}),a.jsxs("div",{className:"mt-2 flex items-center gap-2 text-[13px]",children:[a.jsxs("span",{className:"text-[#F59E0B]",children:["★ ",t.rating]}),a.jsxs("span",{className:"text-[#8B7355]",children:["(",t.reviews," opiniones demo)"]}),a.jsx("span",{className:"ml-auto text-[11px] px-2 py-1 rounded-full bg-[#FFF8E1] border",children:t.sku})]}),a.jsxs("div",{className:"mt-6",children:[a.jsx("div",{className:"text-[12px] uppercase tracking-wide font-semibold text-[#8B7355]",children:"Empaque — elige"}),a.jsx("div",{className:"mt-2 flex flex-wrap gap-2",children:t.variants.map(c=>a.jsxs("button",{onClick:()=>n(c),className:`px-4 py-2 rounded-full border text-[13px] font-medium ${(r==null?void 0:r.sku)===c.sku?"bg-[#1C1917] text-white border-[#1C1917]":"bg-white border-[#E8DCC6] hover:bg-[#FFF8E1]"}`,children:[c.weight," — ",c.price," CUP ",a.jsx("span",{className:"opacity-60 text-[11px] ml-1",children:c.sku})]},c.sku))})]}),a.jsxs("div",{className:"mt-6 flex items-center gap-3",children:[a.jsxs("div",{className:"flex items-center gap-2 bg-[#FFF8E1] rounded-full h-11 px-2 border",children:[a.jsx("button",{onClick:()=>u(Math.max(1,i-1)),className:"w-7 h-7 rounded-full hover:bg-white flex items-center justify-center",children:"−"}),a.jsx("input",{type:"number",min:1,max:1e3,value:i,onChange:c=>u(Math.max(1,Math.min(1e3,parseInt(c.target.value)||1))),className:"w-12 text-center bg-transparent font-medium"}),a.jsx("button",{onClick:()=>u(Math.min(1e3,i+1)),className:"w-7 h-7 rounded-full hover:bg-white flex items-center justify-center",children:"+"})]}),a.jsxs("div",{className:"text-[20px] font-bold",children:[r?(r.price*i).toFixed(2):"0"," CUP"]}),a.jsxs("div",{className:"text-[11px] text-[#8B7355]",children:["SKU: ",r==null?void 0:r.sku]})]}),a.jsxs("div",{className:"mt-5 grid grid-cols-2 gap-3",children:[a.jsx("button",{onClick:y,disabled:!t.inStock,className:"h-12 rounded-full bg-[#1C1917] text-white font-semibold text-[14px] hover:bg-black disabled:opacity-40",children:"Agregar al carrito"}),a.jsx("a",{href:k,target:"_blank",rel:"noopener noreferrer",className:"h-12 rounded-full bg-[#25D366] text-white font-semibold text-[14px] flex items-center justify-center gap-2 hover:bg-[#128C7E]",children:"💬 WhatsApp"})]}),a.jsx("button",{onClick:()=>{y(),v("/cart")},className:"mt-3 w-full h-12 rounded-full bg-white border border-[#E8DCC6] font-medium text-[14px] hover:bg-[#FFF8E1]",children:"Comprar ahora — pago contra entrega"}),a.jsxs("div",{className:"mt-6 grid grid-cols-2 gap-3 text-[12px]",children:[a.jsxs("div",{className:"bg-[#FFF8E1] rounded-xl p-3 border",children:[a.jsx("strong",{children:"Entrega Cuba"}),a.jsx("br",{}),a.jsx("span",{className:"text-[#8B7355]",children:"Habana 24-72h, resto 3-5 días. Desde 1 saco."})]}),a.jsxs("div",{className:"bg-[#FFF8E1] rounded-xl p-3 border",children:[a.jsx("strong",{children:"Pago fácil"}),a.jsx("br",{}),a.jsx("span",{className:"text-[#8B7355]",children:"CUP/MLC/USD, Transfermóvil, EnZona."})]})]}),(t.producer||t.originCountry||t.gost)&&a.jsxs("div",{className:"mt-6 grid grid-cols-2 sm:grid-cols-3 gap-3 bg-[#FFFCF5] rounded-[14px] border p-4 text-[12px]",children:[t.producer&&a.jsxs("div",{children:[a.jsx("div",{className:"text-[11px] uppercase text-[#8B7355]",children:"Fabricante"}),a.jsx("div",{className:"font-medium mt-1",children:t.producer})]}),t.originCountry&&a.jsxs("div",{children:[a.jsx("div",{className:"text-[11px] uppercase text-[#8B7355]",children:"País"}),a.jsx("div",{className:"font-medium mt-1",children:t.originCountry})]}),t.gost&&a.jsxs("div",{children:[a.jsx("div",{className:"text-[11px] uppercase text-[#8B7355]",children:"GOST"}),a.jsx("div",{className:"font-medium mt-1",children:t.gost})]}),t.shelfLife&&a.jsxs("div",{children:[a.jsx("div",{className:"text-[11px] uppercase text-[#8B7355]",children:"Vida útil"}),a.jsx("div",{className:"font-medium mt-1",children:t.shelfLife})]}),t.packagingType&&a.jsxs("div",{children:[a.jsx("div",{className:"text-[11px] uppercase text-[#8B7355]",children:"Empaque"}),a.jsx("div",{className:"font-medium mt-1",children:t.packagingType})]})]})]})]}),a.jsxs("div",{className:"mt-8 bg-white rounded-[20px] border border-[#E8DCC6] overflow-hidden",children:[a.jsx("div",{className:"flex border-b border-[#E8DCC6] overflow-x-auto",children:[{id:"desc",label:"Descripción"},{id:"specs",label:"Características"},{id:"docs",label:"Documentos • Trust"},{id:"delivery",label:"Entrega y pago Cuba"}].map(c=>a.jsx("button",{onClick:()=>h(c.id),className:`px-6 h-12 text-[13px] font-medium whitespace-nowrap border-b-2 transition-colors ${x===c.id?"border-[#1C1917] text-[#1C1917]":"border-transparent text-[#8B7355] hover:text-[#1C1917]"}`,children:c.label},c.id))}),a.jsxs("div",{className:"p-6 sm:p-8 text-[14px] leading-[1.7] text-[#57534E]",children:[x==="desc"&&a.jsxs("div",{children:[a.jsx("p",{className:"whitespace-pre-line",children:t.description}),a.jsxs("div",{className:"mt-4 p-4 rounded-xl bg-green-50 border border-green-200 text-[13px] text-green-900",children:["🇨🇺 ",a.jsx("strong",{children:"Para Cuba:"})," Confirmamos por WhatsApp en 30 min, entregamos Habana 24-72h, resto 3-5 días. Pagas al recibir — CUP, MLC, USD, Transfermóvil, EnZona. Factura y documentos por lote."]}),t.forWhom&&a.jsxs("div",{className:"mt-6",children:[a.jsx("div",{className:"font-semibold text-[13px] uppercase tracking-wide text-[#1C1917]",children:"Ideal para"}),a.jsx("div",{className:"mt-2 flex flex-wrap gap-2",children:t.forWhom.map(c=>a.jsx("span",{className:"px-3 py-1.5 rounded-full bg-[#FFF8E1] border text-[12px]",children:c},c))})]}),t.advantages&&a.jsxs("div",{className:"mt-6",children:[a.jsx("div",{className:"font-semibold text-[13px] uppercase tracking-wide text-[#1C1917]",children:"Ventajas"}),a.jsx("ul",{className:"mt-2 space-y-1.5",children:t.advantages.map((c,p)=>a.jsxs("li",{className:"flex gap-2",children:[a.jsx("span",{className:"text-green-600",children:"✓"}),a.jsx("span",{children:c})]},p))})]})]}),x==="specs"&&a.jsxs("div",{className:"grid sm:grid-cols-2 gap-6",children:[a.jsxs("div",{children:[a.jsx("h4",{className:"font-semibold text-[#1C1917]",children:"Ingredientes"}),a.jsx("p",{className:"mt-2",children:t.ingredients})]}),a.jsxs("div",{children:[a.jsx("h4",{className:"font-semibold text-[#1C1917]",children:"Especificaciones"}),a.jsx("ul",{className:"mt-2 space-y-2",children:t.nutrition.map(c=>a.jsxs("li",{className:"flex justify-between border-b border-[#E8DCC6]/50 py-1.5",children:[a.jsx("span",{className:"text-[#8B7355]",children:c.label}),a.jsx("span",{className:"font-medium text-[#1C1917]",children:c.value})]},c.label))})]}),a.jsxs("div",{className:"sm:col-span-2",children:[a.jsx("h4",{className:"font-semibold text-[#1C1917]",children:"Cómo usar"}),a.jsx("ul",{className:"mt-2 list-disc pl-5 space-y-1",children:t.bakingTips.map((c,p)=>a.jsx("li",{children:c},p))})]})]}),x==="docs"&&a.jsxs("div",{children:[a.jsx("div",{className:"inline-flex px-3 py-1 rounded-full bg-amber-100 border border-amber-200 text-[11px] font-bold uppercase",children:"🏭 Производитель, не дилер — доказательства"}),a.jsxs("div",{className:"mt-4 grid sm:grid-cols-3 gap-4 text-[13px]",children:[a.jsxs("div",{className:"bg-[#FFF8E1] rounded-xl p-4 border",children:[a.jsx("strong",{children:"EAC декларация"}),a.jsx("br",{}),a.jsx("span",{className:"text-[#8B7355]",children:"Таможенный союз, каждый лот"})]}),a.jsxs("div",{className:"bg-[#FFF8E1] rounded-xl p-4 border",children:[a.jsx("strong",{children:"Протокол испытаний 2ч"}),a.jsx("br",{}),a.jsx("span",{className:"text-[#8B7355]",children:"Белок, клейковина, влажность, белизна"})]}),a.jsxs("div",{className:"bg-[#FFF8E1] rounded-xl p-4 border",children:[a.jsx("strong",{children:"QR + партия + дата"}),a.jsx("br",{}),a.jsx("span",{className:"text-[#8B7355]",children:"На каждом мешке, прослеживаемость"})]})]}),a.jsx("div",{className:"mt-6 overflow-x-auto",children:a.jsxs("table",{className:"w-full text-[13px] border",children:[a.jsx("thead",{className:"bg-[#1C1917] text-white",children:a.jsxs("tr",{children:[a.jsx("th",{className:"p-3 text-left",children:"Критерий"}),a.jsx("th",{className:"p-3 text-left",children:"Дилер"}),a.jsx("th",{className:"p-3 text-left",children:"Orio24 Производитель"})]})}),a.jsx("tbody",{children:[["Склад 500т","Нет, перепродает","Да, климат, всегда stock"],["Лаборатория","Нет","Своя, каждая партия"],["Документы EAC/GOST","Только копия","Оригиналы + QR + лот"],["Протокол 2ч","Нет","Да"],["Видео цеха","Нет","Да, по WhatsApp"]].map((c,p)=>a.jsxs("tr",{className:p%2===0?"bg-[#FFFCF5]":"",children:[a.jsx("td",{className:"p-3 font-medium",children:c[0]}),a.jsx("td",{className:"p-3 text-[#8B7355]",children:c[1]}),a.jsx("td",{className:"p-3 font-semibold",children:c[2]})]},p))})]})})]}),x==="delivery"&&a.jsxs("div",{className:"grid sm:grid-cols-2 gap-6",children:[a.jsxs("div",{children:[a.jsx("h4",{className:"font-semibold text-[#1C1917]",children:"Entrega Cuba"}),a.jsx("p",{className:"mt-2",children:"Habana 24-72h, Santiago y provincias 3-5 días. Almacén 500t climatizado, siempre stock. Camión. Desde 1 saco retail, desde 1 paleta mayorista, export 20t FCA/EXW/DAP/CIF/FOB."})]}),a.jsxs("div",{children:[a.jsx("h4",{className:"font-semibold text-[#1C1917]",children:"Pago Cuba"}),a.jsx("p",{className:"mt-2",children:"Contra entrega CUP/MLC/USD efectivo, Transfermóvil, EnZona, transferencia. Sin tarjeta obligatoria. Test card 4242 4242 4242 4242 para demo online. Factura + lote + GOST."})]})]})]})]}),a.jsxs("div",{className:"mt-12",children:[a.jsx("h2",{className:"font-serif text-[22px] mb-4",children:"También te puede interesar"}),a.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4",children:zt.filter(c=>c.category===t.category&&c.id!==t.id).slice(0,4).map(c=>a.jsx(wl,{product:c},c.id))})]})]}),o&&a.jsx(id,{message:o})]})}function rh(){be("Carrito — pago contra entrega Cuba | Orio24","Tu carrito Cuba — pago contra entrega CUP/MLC/USD, Transfermóvil, EnZona. Entrega Habana 24-72h, toda Cuba 3-5 días.");const{items:e,updateQuantity:t,removeItem:r,subtotal:n,cartCount:l}=xn(),s=hn();if(e.length===0)return a.jsx("div",{className:"bg-[#FFFCF5] min-h-[60vh] flex items-center justify-center px-4 py-20",children:a.jsxs("div",{className:"text-center max-w-[480px]",children:[a.jsx("div",{className:"text-[48px]",children:"🛒"}),a.jsx("h1",{className:"font-serif text-[28px] mt-4",children:"Tu carrito está vacío"}),a.jsx("p",{className:"text-[14px] text-[#8B7355] mt-2",children:"Agrega harina FL-001..FL-050 o leche MP-025. Pago contra entrega, Transfermóvil, EnZona. Habana 24-72h."}),a.jsxs("div",{className:"mt-6 flex justify-center gap-3",children:[a.jsx(T,{to:"/shop",className:"h-11 px-6 rounded-full bg-[#1C1917] text-white font-semibold text-[14px] flex items-center",children:"Ver catálogo"}),a.jsx("a",{href:`${Ce}?text=Hola%20Orio24%2C%20quiero%20cotizar`,target:"_blank",rel:"noopener noreferrer",className:"h-11 px-6 rounded-full bg-[#25D366] text-white font-semibold text-[14px] flex items-center",children:"💬 WhatsApp"})]})]})});const i=`Hola Orio24 Cuba, quiero pedir: ${e.map(o=>`- ${o.product.name} ${o.variant.sku} ${o.variant.weight} x${o.quantity} = ${(o.variant.price*o.quantity).toFixed(2)} CUP`).join(` `)} Subtotal: ${n.toFixed(2)} CUP Provincia: Teléfono: Pago: contra entrega / Transfermóvil`,u=`${Ce}?text=${encodeURIComponent(i)}`;return a.jsx("div",{className:"bg-[#FFFCF5] min-h-screen",children:a.jsxs("div",{className:"max-w-[1100px] mx-auto px-4 sm:px-6 lg:px-8 py-6",children:[a.jsx(Ie,{items:[{label:"Inicio",href:"/"},{label:"Carrito"}]}),a.jsxs("h1",{className:"font-serif text-[28px] sm:text-[36px] mt-4",children:["Carrito (",l,") — pago contra entrega"]}),a.jsx("p",{className:"text-[13px] text-[#8B7355] mt-1",children:"Sin tarjeta. Confirmamos por WhatsApp en 30 min. Habana 24-72h, resto 3-5 días."}),a.jsxs("div",{className:"mt-8 grid lg:grid-cols-[1fr_360px] gap-6",children:[a.jsxs("div",{className:"bg-white rounded-[16px] border border-[#E8DCC6] overflow-hidden",children:[a.jsxs("div",{className:"hidden sm:grid grid-cols-[1fr_100px_120px_80px] gap-4 px-6 py-3 bg-[#FFF8E1] text-[11px] uppercase tracking-wide font-semibold text-[#8B7355] border-b",children:[a.jsx("div",{children:"Producto"}),a.jsx("div",{className:"text-center",children:"Precio"}),a.jsx("div",{className:"text-center",children:"Cantidad"}),a.jsx("div",{className:"text-right",children:"Total"})]}),a.jsx("div",{className:"divide-y divide-[#E8DCC6]/50",children:e.map(o=>a.jsxs("div",{className:"p-4 sm:px-6 sm:py-4 flex sm:grid sm:grid-cols-[1fr_100px_120px_80px] gap-4 items-center",children:[a.jsxs("div",{className:"flex gap-3 flex-1",children:[a.jsx("img",{src:o.product.images[0],alt:o.product.name,className:"w-16 h-16 rounded-xl object-cover bg-[#FFF8E1] border",loading:"lazy"}),a.jsxs("div",{children:[a.jsx(T,{to:`/product/${o.product.slug}`,className:"font-medium text-[14px] hover:underline line-clamp-2",children:o.product.name}),a.jsxs("div",{className:"text-[11px] text-[#8B7355] mt-1",children:[o.variant.weight," • ",o.variant.sku]}),a.jsx("button",{onClick:()=>r(o.product.id,o.variant.sku),className:"sm:hidden mt-2 text-[11px] text-red-600 underline",children:"Eliminar"})]})]}),a.jsxs("div",{className:"hidden sm:block text-center text-[14px]",children:[o.variant.price," CUP"]}),a.jsxs("div",{className:"flex flex-col sm:items-center gap-2",children:[a.jsxs("div",{className:"flex items-center gap-1 bg-[#FFF8E1] rounded-full h-8 px-1 border",children:[a.jsx("button",{onClick:()=>t(o.product.id,o.variant.sku,Math.max(0,o.quantity-1)),className:"w-6 h-6 rounded-full hover:bg-white flex items-center justify-center",children:"−"}),a.jsx("span",{className:"w-6 text-center text-[13px] font-medium",children:o.quantity}),a.jsx("button",{onClick:()=>t(o.product.id,o.variant.sku,Math.min(1e3,o.quantity+1)),className:"w-6 h-6 rounded-full hover:bg-white flex items-center justify-center",children:"+"})]}),a.jsxs("div",{className:"sm:hidden text-[12px] font-semibold",children:[(o.variant.price*o.quantity).toFixed(2)," CUP"]})]}),a.jsxs("div",{className:"hidden sm:flex items-center justify-end gap-3",children:[a.jsxs("span",{className:"font-semibold text-[14px]",children:[(o.variant.price*o.quantity).toFixed(2)," CUP"]}),a.jsx("button",{onClick:()=>r(o.product.id,o.variant.sku),className:"text-[#8B7355] hover:text-red-600 text-[12px]",children:"✕"})]})]},`${o.product.id}-${o.variant.sku}`))}),a.jsx("div",{className:"p-4 bg-[#FFF8E1]/50 border-t text-[11px] text-[#8B7355]",children:"ℹ️ Mínimo Cuba desde 1 saco, mayorista desde 1 paleta (aprox 1t), export desde 20t."})]}),a.jsxs("div",{className:"bg-white rounded-[16px] border border-[#E8DCC6] p-6 h-fit lg:sticky lg:top-[88px]",children:[a.jsx("h3",{className:"font-serif text-[18px]",children:"Resumen"}),a.jsxs("div",{className:"mt-4 space-y-2 text-[13px]",children:[a.jsxs("div",{className:"flex justify-between",children:[a.jsx("span",{className:"text-[#8B7355]",children:"Subtotal"}),a.jsxs("span",{className:"font-medium",children:[n.toFixed(2)," CUP"]})]}),a.jsxs("div",{className:"flex justify-between",children:[a.jsx("span",{className:"text-[#8B7355]",children:"Entrega"}),a.jsx("span",{className:"font-medium text-green-700",children:"A consultar"})]}),a.jsxs("div",{className:"border-t pt-2 flex justify-between font-bold text-[15px]",children:[a.jsx("span",{children:"Total estimado"}),a.jsxs("span",{children:[n.toFixed(2)," CUP"]})]}),a.jsx("div",{className:"text-[11px] text-[#8B7355]",children:"* Precio final con entrega confirmamos por WhatsApp. Factura incluida."})]}),a.jsxs("div",{className:"mt-6 space-y-3",children:[a.jsx("button",{onClick:()=>s("/checkout"),className:"w-full h-11 rounded-full bg-[#1C1917] text-white font-semibold text-[14px] hover:bg-black",children:"Finalizar pedido — Cuba"}),a.jsx("a",{href:u,target:"_blank",rel:"noopener noreferrer",className:"w-full h-11 rounded-full bg-[#25D366] text-white font-semibold text-[14px] flex items-center justify-center gap-2 hover:bg-[#128C7E]",children:"💬 Enviar carrito por WhatsApp"}),a.jsx(T,{to:"/shop",className:"block text-center text-[13px] underline",children:"Seguir comprando"})]}),a.jsxs("div",{className:"mt-6 p-3 rounded-xl bg-[#FFF8E1] border text-[11px] space-y-1",children:[a.jsx("div",{children:"✓ Pago contra entrega CUP/MLC/USD"}),a.jsx("div",{children:"✓ Transfermóvil / EnZona • Test 4242"}),a.jsx("div",{children:"✓ Factura + lote + GOST"}),a.jsx("div",{children:"✓ Habana 24-72h, toda Cuba 3-5 días"})]})]})]})]})})}function nh(){be("Finalizar pedido — Cuba | Orio24","Checkout Cuba: sin tarjeta, pago contra entrega CUP/MLC/USD, Transfermóvil, EnZona, tarjeta test 4242. Habana 24-72h, toda Cuba 3-5 días.");const{items:e,subtotal:t,clearCart:r}=xn(),n=hn(),[l,s]=w.useState(!1),[i,u]=w.useState({}),[o,d]=w.useState("cod"),[x,h]=w.useState({number:"",expiry:"",cvc:"",name:""}),[f,v]=w.useState({firstName:"",lastName:"",phone:"",email:"",provincia:"La Habana",municipio:"",address:"",city:"",zip:"",volume:"",payment:"Pago contra entrega — CUP",comment:""}),y=["La Habana","Santiago de Cuba","Camagüey","Holguín","Villa Clara","Granma","Guantánamo","Pinar del Río","Matanzas","Ciego de Ávila","Sancti Spíritus","Cienfuegos","Las Tunas","Artemisa","Mayabeque","Isla de la Juventud"];w.useEffect(()=>{e.length===0&&n("/cart")},[e,n]);const j=w.useMemo(()=>{const g=e.reduce((b,P)=>b+P.quantity,0),N=e.some(b=>parseInt(b.variant.weight)>=25||b.variant.weight.toLowerCase().includes("big")||b.variant.weight.toLowerCase().includes("paleta"));return g>=20||N},[e]),k=()=>{const g={};if(f.firstName.trim()||(g.firstName="Nombre / Empresa requerido"),(!f.phone.trim()||f.phone.trim().length<8)&&(g.phone="Teléfono / WhatsApp requerido (mín 8 dígitos)"),f.email&&!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(f.email)&&(g.email="Email inválido"),f.municipio.trim()||(g.municipio="Municipio requerido"),f.address.trim()||(g.address="Dirección requerida"),o==="card"){const N=x.number.replace(/\s/g,"");/^\d{16}$/.test(N)||(g.cardNumber="16 dígitos — usa 4242 4242 4242 4242 para test"),/^\d{2}\/\d{2}$/.test(x.expiry)||(g.cardExpiry="MM/AA — ej: 12/27"),/^\d{3,4}$/.test(x.cvc)||(g.cardCvc="CVC 3-4 dígitos"),x.name.trim()||(g.cardName="Nombre en tarjeta requerido")}return u(g),Object.keys(g).length===0},c=()=>{const g=e.map(N=>`- ${N.product.name} ${N.variant.sku} ${N.variant.weight} x${N.quantity}`).join(` `);return`Hola Orio24 Cuba, nuevo pedido: Cliente: ${f.firstName} ${f.lastName} Tel/WhatsApp: ${f.phone} Email: ${f.email} Provincia: ${f.provincia} Municipio: ${f.municipio} Dirección: ${f.address} Productos: ${g} Subtotal: ${t.toFixed(2)} CUP Volumen: ${f.volume} Pago: ${f.payment} / ${o} Comentario: ${f.comment} Confirmar entrega y precio final por favor.`},p=async g=>{if(g.preventDefault(),!!k()){s(!0);try{if(await new Promise(F=>setTimeout(F,1200)),o==="card"&&x.number.replace(/\s/g,"")!=="4242424242424242")throw new Error("Payment failed — test card must be 4242 4242 4242 4242.");const N=`ORIO-CU-${Date.now().toString().slice(-6)}`,b={id:N,customer:{...f},items:e.map(F=>({productId:F.product.id,sku:F.variant.sku,name:F.product.name,weight:F.variant.weight,quantity:F.quantity,price:F.variant.price})),subtotal:t,shipping:0,tax:0,total:t,paymentStatus:o==="card"?"paid_test":"pending_cod",orderStatus:j?"wholesale_quote":"quote",paymentMethod:o,createdAt:new Date().toISOString()};localStorage.setItem("orio-last-order",JSON.stringify(b));const P=JSON.parse(localStorage.getItem("orio-orders")||"[]");P.push(b),localStorage.setItem("orio-orders",JSON.stringify(P)),r(),n(`/order-confirmation/${N}`)}catch(N){u({submit:N.message||"Error al procesar pedido"})}finally{s(!1)}}},m=`${Ce}?text=${encodeURIComponent(c())}`;return a.jsx("div",{className:"bg-[#FFFCF5] min-h-screen",children:a.jsxs("div",{className:"max-w-[1100px] mx-auto px-4 sm:px-6 lg:px-8 py-6",children:[a.jsx(Ie,{items:[{label:"Inicio",href:"/"},{label:"Carrito",href:"/cart"},{label:"Checkout"}]}),a.jsx("h1",{className:"font-serif text-[28px] sm:text-[36px] mt-4",children:"Finalizar pedido — Cuba 🇨🇺"}),a.jsx("p",{className:"text-[13px] text-[#8B7355] mt-1",children:"Sin tarjeta obligatoria. Pides, confirmamos por WhatsApp en 30 min, pagas al recibir. Habana 24-72h, resto 3-5 días."}),j&&a.jsx("div",{className:"mt-4 p-3 rounded-xl bg-[#1C1917] text-white text-[13px]",children:"📦 Detectamos pedido mayorista (≥20 sacos o sacos 25kg+). Te mandamos lista mayorista, contrato y factura. Respuesta en 30 min."}),a.jsxs("form",{onSubmit:p,className:"mt-8 grid lg:grid-cols-[1fr_360px] gap-6",children:[a.jsxs("div",{className:"space-y-6",children:[a.jsxs("div",{className:"bg-white rounded-[16px] border border-[#E8DCC6] p-6",children:[a.jsx("h2",{className:"font-serif text-[18px]",children:"Tus datos — Cuba"}),a.jsxs("div",{className:"mt-4 grid sm:grid-cols-2 gap-4",children:[a.jsxs("div",{children:[a.jsx("label",{className:"text-[11px] uppercase font-semibold text-[#8B7355]",children:"Nombre / Empresa *"}),a.jsx("input",{value:f.firstName,onChange:g=>v({...f,firstName:g.target.value}),placeholder:"Panadería La Habana",className:`mt-1 w-full h-11 px-4 rounded-full bg-[#FFFCF5] border ${i.firstName?"border-red-400":"border-[#E8DCC6]"} text-[14px]`}),a.jsx("div",{className:"text-[11px] text-red-600 mt-1",children:i.firstName})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-[11px] uppercase font-semibold text-[#8B7355]",children:"Teléfono / WhatsApp *"}),a.jsx("input",{value:f.phone,onChange:g=>v({...f,phone:g.target.value}),placeholder:"+53 5...",className:`mt-1 w-full h-11 px-4 rounded-full bg-[#FFFCF5] border ${i.phone?"border-red-400":"border-[#E8DCC6]"} text-[14px]`}),a.jsx("div",{className:"text-[11px] text-red-600 mt-1",children:i.phone})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-[11px] uppercase font-semibold text-[#8B7355]",children:"Provincia *"}),a.jsxs("select",{value:f.provincia,onChange:g=>v({...f,provincia:g.target.value}),className:"mt-1 w-full h-11 px-4 rounded-full bg-[#FFFCF5] border border-[#E8DCC6] text-[14px]",children:[a.jsx("option",{children:"La Habana"}),y.map(g=>a.jsx("option",{children:g},g))]})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-[11px] uppercase font-semibold text-[#8B7355]",children:"Municipio *"}),a.jsx("input",{value:f.municipio,onChange:g=>v({...f,municipio:g.target.value}),placeholder:"Plaza, Centro Habana...",className:`mt-1 w-full h-11 px-4 rounded-full bg-[#FFFCF5] border ${i.municipio?"border-red-400":"border-[#E8DCC6]"} text-[14px]`}),a.jsx("div",{className:"text-[11px] text-red-600 mt-1",children:i.municipio})]}),a.jsxs("div",{className:"sm:col-span-2",children:[a.jsx("label",{className:"text-[11px] uppercase font-semibold text-[#8B7355]",children:"Dirección completa *"}),a.jsx("input",{value:f.address,onChange:g=>v({...f,address:g.target.value}),placeholder:"Calle, número, entre calles, reparto",className:`mt-1 w-full h-11 px-4 rounded-full bg-[#FFFCF5] border ${i.address?"border-red-400":"border-[#E8DCC6]"} text-[14px]`}),a.jsx("div",{className:"text-[11px] text-red-600 mt-1",children:i.address})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-[11px] uppercase font-semibold text-[#8B7355]",children:"Email (opcional)"}),a.jsx("input",{value:f.email,onChange:g=>v({...f,email:g.target.value}),placeholder:"tu@email.com",className:"mt-1 w-full h-11 px-4 rounded-full bg-[#FFFCF5] border border-[#E8DCC6] text-[14px]"})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-[11px] uppercase font-semibold text-[#8B7355]",children:"Volumen estimado"}),a.jsx("input",{value:f.volume,onChange:g=>v({...f,volume:g.target.value}),placeholder:"Ej: 20 sacos 25kg / 1 paleta",className:"mt-1 w-full h-11 px-4 rounded-full bg-[#FFFCF5] border border-[#E8DCC6] text-[14px]"})]}),a.jsxs("div",{className:"sm:col-span-2",children:[a.jsx("label",{className:"text-[11px] uppercase font-semibold text-[#8B7355]",children:"Comentario"}),a.jsx("textarea",{value:f.comment,onChange:g=>v({...f,comment:g.target.value}),placeholder:"Horario entrega, referencia, etc",className:"mt-1 w-full min-h-[80px] p-4 rounded-[16px] bg-[#FFFCF5] border border-[#E8DCC6] text-[14px]"})]})]})]}),a.jsxs("div",{className:"bg-white rounded-[16px] border border-[#E8DCC6] p-6",children:[a.jsx("h2",{className:"font-serif text-[18px]",children:"Método de pago Cuba"}),a.jsx("div",{className:"mt-4 grid gap-3",children:[{id:"cod",label:"Pago contra entrega — CUP / MLC / USD efectivo",desc:"Pagas al recibir, Habana 24-72h"},{id:"transfermovil",label:"Transfermóvil / EnZona / Transferencia",desc:"Te mandamos datos por WhatsApp"},{id:"card",label:"Tarjeta online (test 4242 4242 4242 4242)",desc:"Demo Stripe test mode, no guardamos datos"}].map(g=>a.jsxs("label",{className:`flex gap-3 p-4 rounded-[14px] border cursor-pointer ${o===g.id?"bg-[#1C1917] text-white border-[#1C1917]":"bg-[#FFFCF5] border-[#E8DCC6] hover:border-[#1C1917]/30"}`,children:[a.jsx("input",{type:"radio",name:"payment",checked:o===g.id,onChange:()=>d(g.id),className:"mt-1"}),a.jsxs("div",{children:[a.jsx("div",{className:"font-medium text-[13px]",children:g.label}),a.jsx("div",{className:`text-[11px] mt-1 ${o===g.id?"text-white/60":"text-[#8B7355]"}`,children:g.desc})]})]},g.id))}),o==="card"&&a.jsxs("div",{className:"mt-4 grid sm:grid-cols-2 gap-3 bg-[#FFF8E1] rounded-[14px] p-4 border",children:[a.jsxs("div",{className:"sm:col-span-2",children:[a.jsx("label",{className:"text-[11px] uppercase font-semibold",children:"Número tarjeta (test 4242 4242 4242 4242)"}),a.jsx("input",{value:x.number,onChange:g=>h({...x,number:g.target.value}),placeholder:"4242 4242 4242 4242",className:"mt-1 w-full h-11 px-4 rounded-full bg-white border border-[#E8DCC6] text-[14px]"}),a.jsx("div",{className:"text-[11px] text-red-600 mt-1",children:i.cardNumber})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-[11px] uppercase font-semibold",children:"MM/AA"}),a.jsx("input",{value:x.expiry,onChange:g=>h({...x,expiry:g.target.value}),placeholder:"12/27",className:"mt-1 w-full h-11 px-4 rounded-full bg-white border text-[14px]"})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-[11px] uppercase font-semibold",children:"CVC"}),a.jsx("input",{value:x.cvc,onChange:g=>h({...x,cvc:g.target.value}),placeholder:"123",className:"mt-1 w-full h-11 px-4 rounded-full bg-white border text-[14px]"})]}),a.jsxs("div",{className:"sm:col-span-2",children:[a.jsx("label",{className:"text-[11px] uppercase font-semibold",children:"Nombre en tarjeta"}),a.jsx("input",{value:x.name,onChange:g=>h({...x,name:g.target.value}),placeholder:"JUAN PEREZ",className:"mt-1 w-full h-11 px-4 rounded-full bg-white border text-[14px]"})]})]}),i.submit&&a.jsx("div",{className:"mt-4 p-3 rounded-xl bg-red-50 border border-red-200 text-[13px] text-red-800",children:i.submit})]})]}),a.jsxs("div",{className:"bg-white rounded-[16px] border border-[#E8DCC6] p-6 h-fit lg:sticky lg:top-[88px]",children:[a.jsx("h3",{className:"font-serif text-[18px]",children:"Tu pedido"}),a.jsx("div",{className:"mt-4 space-y-3 text-[13px] max-h-[300px] overflow-y-auto pr-1",children:e.map(g=>a.jsxs("div",{className:"flex justify-between gap-3",children:[a.jsxs("span",{className:"line-clamp-1",children:[g.product.name," ",g.variant.weight," x",g.quantity]}),a.jsxs("span",{className:"font-medium shrink-0",children:[(g.variant.price*g.quantity).toFixed(2)," CUP"]})]},`${g.product.id}-${g.variant.sku}`))}),a.jsxs("div",{className:"mt-4 border-t pt-4 space-y-2 text-[13px]",children:[a.jsxs("div",{className:"flex justify-between",children:[a.jsx("span",{className:"text-[#8B7355]",children:"Subtotal"}),a.jsxs("span",{className:"font-medium",children:[t.toFixed(2)," CUP"]})]}),a.jsxs("div",{className:"flex justify-between",children:[a.jsx("span",{className:"text-[#8B7355]",children:"Entrega"}),a.jsx("span",{className:"text-green-700 font-medium",children:"A consultar"})]}),a.jsxs("div",{className:"flex justify-between font-bold text-[15px] border-t pt-2",children:[a.jsx("span",{children:"Total"}),a.jsxs("span",{children:[t.toFixed(2)," CUP"]})]})]}),a.jsx("button",{type:"submit",disabled:l,className:"mt-6 w-full h-12 rounded-full bg-[#1C1917] text-white font-semibold text-[14px] hover:bg-black disabled:opacity-50",children:l?"Procesando...":j?"Solicitar cotización mayorista":"Confirmar pedido — Cuba"}),a.jsx("a",{href:m,target:"_blank",rel:"noopener noreferrer",className:"mt-3 w-full h-11 rounded-full bg-[#25D366] text-white font-semibold text-[13px] flex items-center justify-center gap-2 hover:bg-[#128C7E]",children:"💬 Enviar por WhatsApp"}),a.jsxs("div",{className:"mt-4 text-[11px] text-[#8B7355] space-y-1",children:[a.jsx("div",{children:"✓ Factura + lote + GOST + QR"}),a.jsx("div",{children:"✓ Sin tarjeta obligatoria"}),a.jsx("div",{children:"✓ Confirmamos en 30 min"})]})]})]})]})})}function lh(){const{id:e}=ed(),[t,r]=w.useState(null);if(w.useEffect(()=>{const l=localStorage.getItem("orio-last-order");if(l){const s=JSON.parse(l);s.id===e&&r(s)}},[e]),be(`Pedido ${e} confirmado — Orio24`,`Pedido ${e} Cuba confirmado. Te escribimos por WhatsApp en 30 min.`),!t)return a.jsxs("div",{className:"max-w-[600px] mx-auto px-4 py-20 text-center",children:[a.jsx("h1",{className:"font-serif text-[28px]",children:"Pedido no encontrado"}),a.jsxs("p",{className:"text-[#8B7355] mt-2",children:["ID: ",e]}),a.jsx(T,{to:"/shop",className:"mt-6 inline-block h-11 px-6 rounded-full bg-[#1C1917] text-white",children:"Volver a tienda"})]});const n=`Hola Orio24, confirmo pedido ${t.id} Total: ${t.total} CUP Provincia: ${t.customer.provincia} Tel: ${t.customer.phone}`;return a.jsx("div",{className:"bg-[#FFFCF5] min-h-screen",children:a.jsxs("div",{className:"max-w-[640px] mx-auto px-4 sm:px-6 py-12 text-center",children:[a.jsx("div",{className:"w-16 h-16 rounded-full bg-green-100 border border-green-200 flex items-center justify-center mx-auto text-[28px]",children:"✓"}),a.jsxs("h1",{className:"font-serif text-[32px] mt-6 leading-[0.95]",children:["¡Pedido recibido!",a.jsx("br",{}),"Te escribimos en 30 min"]}),a.jsxs("p",{className:"text-[#8B7355] text-[14px] mt-3",children:["ID: ",a.jsx("strong",{className:"text-[#1C1917]",children:t.id})," • ",t.orderStatus==="wholesale_quote"?"Cotización mayorista":"Cotización retail"," • ",t.customer.provincia]}),a.jsxs("div",{className:"mt-8 bg-white rounded-[16px] border border-[#E8DCC6] p-6 text-left",children:[a.jsx("h3",{className:"font-semibold text-[14px]",children:"Resumen"}),a.jsx("div",{className:"mt-3 space-y-2 text-[13px]",children:t.items.map((l,s)=>a.jsxs("div",{className:"flex justify-between",children:[a.jsxs("span",{children:[l.name," ",l.weight," x",l.quantity]}),a.jsxs("span",{className:"font-medium",children:[(l.price*l.quantity).toFixed(2)," CUP"]})]},s))}),a.jsxs("div",{className:"mt-4 border-t pt-3 flex justify-between font-bold",children:[a.jsx("span",{children:"Total estimado"}),a.jsxs("span",{children:[t.total.toFixed(2)," CUP"]})]}),a.jsx("div",{className:"mt-3 text-[11px] text-[#8B7355]",children:"* Precio final con entrega confirmamos por WhatsApp. Factura + lote + GOST + QR."})]}),a.jsxs("div",{className:"mt-6 grid grid-cols-2 gap-3",children:[a.jsx("a",{href:`${Ce}?text=${encodeURIComponent(n)}`,target:"_blank",rel:"noopener noreferrer",className:"h-12 rounded-full bg-[#25D366] text-white font-semibold text-[14px] flex items-center justify-center gap-2",children:"💬 Confirmar por WhatsApp"}),a.jsx(T,{to:"/shop",className:"h-12 rounded-full bg-white border border-[#E8DCC6] font-medium text-[14px] flex items-center justify-center",children:"Seguir comprando"})]}),a.jsxs("div",{className:"mt-8 p-4 rounded-xl bg-[#FFF8E1] border text-[12px] text-left",children:[a.jsx("strong",{children:"¿Qué pasa ahora?"}),a.jsx("br",{}),"1) Te escribimos por WhatsApp en 30 min",a.jsx("br",{}),"2) Confirmamos stock, precio final con entrega",a.jsx("br",{}),"3) Entregamos Habana 24-72h, toda Cuba 3-5 días",a.jsx("br",{}),"4) Pagas al recibir CUP/MLC/USD, Transfermóvil, EnZona"]})]})})}function ah(){return be("Sobre nosotros — molino familiar desde 2015, 500t/mes, 300+ panaderías Cuba | Orio24","Molino Belarús 50t/día Buhler, laboratorio, 500t almacén, harina GOST FL-001..FL-050, leche polvo MP-025. Desde 2015, sin mejoradores, para panaderías Cuba."),a.jsx("div",{className:"bg-[#FFFCF5] min-h-screen",children:a.jsxs("div",{className:"max-w-[1100px] mx-auto px-4 sm:px-6 lg:px-8 py-10",children:[a.jsx(Ie,{items:[{label:"Inicio",href:"/"},{label:"Sobre nosotros"}]}),a.jsxs("div",{className:"mt-6 grid lg:grid-cols-[1.1fr_0.9fr] gap-10",children:[a.jsxs("div",{children:[a.jsx("div",{className:"inline-flex px-3 py-1 rounded-full bg-amber-100 border border-amber-200 text-[11px] font-bold uppercase",children:"🏭 Производитель, не дилер — с 2015"}),a.jsxs("h1",{className:"font-serif text-[40px] sm:text-[48px] leading-[0.9] mt-5",children:["Molino familiar.",a.jsx("br",{}),"Calidad desde 2015."]}),a.jsx("p",{className:"text-[#57534E] mt-5 text-[15px] leading-[1.7] max-w-[55ch]",children:"Orio24 — molino en Belarús, 50t/día Buhler Suiza, laboratorio propio, almacén 500t. Producimos harina GOST 26574-2017 FL-001..FL-050 y leche polvo 26% MP-025. Para panaderías, tiendas, HoReCa en Cuba. Desde 2015, sin mejoradores, sin blanqueo — Jakość z natury. No somos revendedores: tenemos ceh, laboratorio, almacén, documentos por cada lote. Fotos reales."}),a.jsxs("div",{className:"mt-8 grid grid-cols-3 gap-6 border-y border-[#E8DCC6]/60 py-6 max-w-[480px]",children:[a.jsxs("div",{children:[a.jsx("div",{className:"font-serif text-[24px]",children:"500t"}),a.jsx("div",{className:"text-[11px] uppercase text-[#8B7355] mt-1",children:"por mes • almacén"})]}),a.jsxs("div",{children:[a.jsx("div",{className:"font-serif text-[24px]",children:"2015"}),a.jsx("div",{className:"text-[11px] uppercase text-[#8B7355] mt-1",children:"año fundación"})]}),a.jsxs("div",{children:[a.jsx("div",{className:"font-serif text-[24px]",children:"300+"}),a.jsx("div",{className:"text-[11px] uppercase text-[#8B7355] mt-1",children:"panaderías Cuba"})]})]}),a.jsxs("div",{className:"mt-8",children:[a.jsx("h3",{className:"font-serif text-[20px]",children:"Historia — de 5t a 50t/día"}),a.jsxs("div",{className:"mt-4 space-y-4 border-l-2 border-[#E8DCC6] pl-6",children:[a.jsxs("div",{children:[a.jsx("div",{className:"text-[11px] font-bold text-[#8B7355]",children:"2015"}),a.jsx("div",{className:"font-medium text-[13px] mt-1",children:"Inicio — 5t/día, 2 personas, grano Minsk"})]}),a.jsxs("div",{children:[a.jsx("div",{className:"text-[11px] font-bold text-[#8B7355]",children:"2018"}),a.jsx("div",{className:"font-medium text-[13px] mt-1",children:"Buhler Suiza 20t/día, laboratorio, EAC, GOST"})]}),a.jsxs("div",{children:[a.jsx("div",{className:"text-[11px] font-bold text-[#8B7355]",children:"2021"}),a.jsx("div",{className:"font-medium text-[13px] mt-1",children:"50t/día, almacén 500t, bolsa amarilla 2kg Mąka Pszenna Typ 500"})]}),a.jsxs("div",{children:[a.jsx("div",{className:"text-[11px] font-bold text-[#8B7355]",children:"2023-2026"}),a.jsx("div",{className:"font-medium text-[13px] mt-1",children:"Cuba — 300+ panaderías, Habana 24-72h, toda Cuba 3-5 días, export FCA/EXW/DAP/CIF/FOB 20t+"})]})]})]}),a.jsxs("div",{className:"mt-8 flex gap-3",children:[a.jsx(T,{to:"/production",className:"h-11 px-6 rounded-full bg-[#1C1917] text-white text-[13px] font-medium flex items-center",children:"Foto producción — 6 etapas"}),a.jsx(T,{to:"/wholesale",className:"h-11 px-6 rounded-full bg-white border text-[13px] font-medium flex items-center",children:"Mayorista"})]})]}),a.jsxs("div",{className:"space-y-4 lg:sticky lg:top-[88px]",children:[a.jsx("img",{src:"https://orio24.com/wp-content/uploads/2026/09/orio24-harina-2kg-bag-optimized.webp",alt:"Orio24",className:"w-full h-[360px] object-cover rounded-[20px] border",loading:"lazy"}),a.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[a.jsxs("div",{className:"rounded-[14px] overflow-hidden border bg-white",children:[a.jsx("img",{src:"https://images.unsplash.com/photo-1500382017468-9049fed747ef?q=80&w=400&auto=format&fit=crop",alt:"Campo",className:"w-full h-[120px] object-cover",loading:"lazy"}),a.jsxs("div",{className:"p-3 text-[11px]",children:[a.jsx("strong",{children:"Campo"}),a.jsx("br",{}),a.jsx("span",{className:"text-[#8B7355]",children:"Minsk/Mogilev/Grodno, 1-2 clase"})]})]}),a.jsxs("div",{className:"rounded-[14px] overflow-hidden border bg-white",children:[a.jsx("img",{src:"https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?q=80&w=400&auto=format&fit=crop",alt:"Ceh",className:"w-full h-[120px] object-cover",loading:"lazy"}),a.jsxs("div",{className:"p-3 text-[11px]",children:[a.jsx("strong",{children:"Ceh Buhler 50t"}),a.jsx("br",{}),a.jsx("span",{className:"text-[#8B7355]",children:"Suiza, sin blanqueo"})]})]})]})]})]})]})})}function sh(){be("Producción — 6 etapas control, laboratorio, 500t almacén | Orio24","Cómo hacemos harina que da confianza: selección grano, limpieza 3 etapas, molienda Buhler 50t/día, laboratorio cada lote, empaque QR+lote, entrega 24-72h. Fotos reales ceh, lab, almacén 500t, documentos EAC/GOST.");const e=[{n:"01",t:"Selección grano",d:"Trigo 1-2 clase, sin GMO, Minsk/Mogilev/Grodno. Solo granjas verificadas, contrato directo.",img:"https://images.unsplash.com/photo-1500382017468-9049fed747ef?q=80&w=600&auto=format&fit=crop",alt:"Фото: поле пшеницы Беларусь"},{n:"02",t:"Limpieza 3 etapas",d:"От камней, металла, пыли. Сепаратор, триер, аспирация.",img:"https://images.unsplash.com/photo-1574323347407-f5e1ad6d020b?q=80&w=600&auto=format&fit=crop",alt:"Фото: очистка зерна"},{n:"03",t:"Molienda Buhler 50t/día",d:"Швейцария, вальцевые станки, без отбеливания, без улучшителей. Стабильный помол.",img:"https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?q=80&w=600&auto=format&fit=crop",alt:"Фото: мельзавод Buhler"},{n:"04",t:"Laboratorio — cada lote",d:"Белок 10-13%, клейковина 24-30%, влажность ≤15%, белизна, зола, число падения. Протокол 2ч.",img:"https://images.unsplash.com/photo-1532187863486-abf9dbad1b69?q=80&w=600&auto=format&fit=crop",alt:"Фото: лаборатория муки"},{n:"05",t:"Empaque QR + lote + fecha",d:"Желтая пачка 2kg Mąka Pszenna Typ 500, мешки 25/50kg, big-bags 1000kg. QR, партия, дата, производитель.",img:"https://orio24.com/wp-content/uploads/2026/09/orio24-harina-2kg-bag-optimized.webp",alt:"Фото: упаковка Orio24"},{n:"06",t:"Almacén 500t + entrega",d:"Климат-склад 500 тонн, всегда stock. Habana 24-72h, toda Cuba 3-5 días. Camión.",img:"https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?q=80&w=600&auto=format&fit=crop",alt:"Фото: склад 500т"}];return a.jsx("div",{className:"bg-[#FFFCF5] min-h-screen",children:a.jsxs("div",{className:"max-w-[1100px] mx-auto px-4 sm:px-6 lg:px-8 py-10",children:[a.jsx(Ie,{items:[{label:"Inicio",href:"/"},{label:"Producción"}]}),a.jsx("div",{className:"mt-6 inline-flex px-3 py-1 rounded-full bg-amber-100 border border-amber-200 text-[11px] font-bold uppercase",children:"🏭 Производитель, не дилер — фото цеха, склада, лаборатории"}),a.jsxs("h1",{className:"font-serif text-[36px] sm:text-[44px] leading-[0.9] mt-4",children:["Cómo hacemos harina",a.jsx("br",{}),"que da confianza."]}),a.jsx("p",{className:"text-[#57534E] mt-4 text-[15px] max-w-[60ch]",children:"No somos revendedores. Molino 50t/día Buhler Suiza, laboratorio, almacén 500t. Cada bolsa amarilla pasa 6 etapas. GOST, proteína, gluten, humedad — protocolo 2h. Fotos reales — no stock, no renders."}),a.jsxs("div",{className:"mt-8 p-4 rounded-xl bg-red-50 border border-red-200 text-[13px] text-red-900",children:[a.jsx("strong",{children:"Как отличить производителя от дилера?"})," Производитель покажет: цех, лабораторию, склад 500т, протоколы по каждой партии, EAC, GOST, QR+партия, видео. Дилер — только пачки. Мы показываем всё."]}),a.jsx("div",{className:"mt-8 space-y-8",children:e.map(t=>a.jsxs("div",{className:"grid md:grid-cols-[320px_1fr] gap-6 bg-white rounded-[20px] border border-[#E8DCC6] overflow-hidden",children:[a.jsxs("div",{className:"relative",children:[a.jsx("img",{src:t.img,alt:t.alt,className:"w-full h-[220px] md:h-full object-cover",loading:"lazy"}),a.jsx("div",{className:"absolute top-3 left-3 bg-[#1C1917] text-white text-[11px] px-2.5 py-1 rounded-full font-bold",children:t.n})]}),a.jsxs("div",{className:"p-6",children:[a.jsx("h3",{className:"font-serif text-[20px]",children:t.t}),a.jsx("p",{className:"text-[14px] text-[#57534E] mt-2 leading-[1.6]",children:t.d}),a.jsx("div",{className:"mt-3 text-[11px] text-[#8B7355]",children:t.alt})]})]},t.n))}),a.jsxs("div",{className:"mt-12 bg-white rounded-[20px] border border-[#E8DCC6] p-6",children:[a.jsx("h3",{className:"font-serif text-[20px]",children:"Documentos — отличие производителя"}),a.jsxs("div",{className:"mt-4 grid sm:grid-cols-3 gap-3 text-[13px]",children:[a.jsxs("div",{className:"bg-[#FFF8E1] rounded-xl p-4 border",children:[a.jsx("strong",{children:"EAC декларация"}),a.jsx("br",{}),a.jsx("span",{className:"text-[#8B7355]",children:"Таможенный союз"})]}),a.jsxs("div",{className:"bg-[#FFF8E1] rounded-xl p-4 border",children:[a.jsx("strong",{children:"Протокол 2ч"}),a.jsx("br",{}),a.jsx("span",{className:"text-[#8B7355]",children:"Белок/клейковина/влажность"})]}),a.jsxs("div",{className:"bg-[#FFF8E1] rounded-xl p-4 border",children:[a.jsx("strong",{children:"QR + партия + дата"}),a.jsx("br",{}),a.jsx("span",{className:"text-[#8B7355]",children:"На каждом мешке"})]})]}),a.jsx("div",{className:"mt-6 overflow-x-auto",children:a.jsxs("table",{className:"w-full text-[13px] border",children:[a.jsx("thead",{className:"bg-[#1C1917] text-white",children:a.jsxs("tr",{children:[a.jsx("th",{className:"p-3 text-left",children:"Критерий"}),a.jsx("th",{className:"p-3 text-left",children:"Дилер"}),a.jsx("th",{className:"p-3 text-left",children:"Orio24 Производитель"})]})}),a.jsx("tbody",{children:[["Склад 500т","Нет","Да, климат"],["Лаборатория","Нет","Своя, каждая партия"],["Документы","Копия","Оригиналы + QR"],["Видео цеха","Нет","Да, WhatsApp"]].map((t,r)=>a.jsxs("tr",{className:r%2===0?"bg-[#FFFCF5]":"",children:[a.jsx("td",{className:"p-3 font-medium",children:t[0]}),a.jsx("td",{className:"p-3 text-[#8B7355]",children:t[1]}),a.jsx("td",{className:"p-3 font-semibold",children:t[2]})]},r))})]})})]}),a.jsxs("div",{className:"mt-8 flex gap-3",children:[a.jsx("a",{href:`${Ce}?text=Hola%20Orio24%2C%20quiero%20video%20y%20fotos%20de%20produccion`,target:"_blank",rel:"noopener noreferrer",className:"h-11 px-6 rounded-full bg-[#25D366] text-white font-semibold text-[13px] flex items-center",children:"💬 Видео цеха по WhatsApp"}),a.jsx(T,{to:"/shop",className:"h-11 px-6 rounded-full bg-[#1C1917] text-white font-medium text-[13px] flex items-center",children:"Ver catálogo"})]})]})})}function ih(){return be("Mayorista y Export — desde 1 paleta Cuba, 20t export FCA/EXW/DAP/CIF/FOB | Orio24","Harina FL-001..FL-050 GOST, leche polvo MP-025 26%. Sacos 25kg, 50kg, big-bags 1000kg. Lote mínimo Cuba desde 1 paleta, export desde 20t. EAC, GOST, factura, lote, QR. Almacén 500t."),a.jsx("div",{className:"bg-[#FFFCF5] min-h-screen",children:a.jsxs("div",{className:"max-w-[1000px] mx-auto px-4 sm:px-6 lg:px-8 py-10",children:[a.jsx(Ie,{items:[{label:"Inicio",href:"/"},{label:"Mayorista y Export"}]}),a.jsxs("h1",{className:"font-serif text-[36px] sm:text-[44px] leading-[0.9] mt-6",children:["Mayorista Cuba y Export.",a.jsx("br",{}),"Desde 1 paleta / 20t."]}),a.jsx("p",{className:"text-[#57534E] mt-4 text-[15px] max-w-[60ch]",children:"Sacos 25kg, 50kg, big-bags 1000kg. Harina FL-001..FL-050 GOST 26574-2017, leche polvo MP-025 26%. EAC, protocolos, factura, lote, QR. Almacén 500t climatizado, siempre stock. Habana 24-72h, toda Cuba 3-5 días. Export FCA/EXW/DAP/CIF/FOB."}),a.jsxs("div",{className:"mt-8 grid sm:grid-cols-3 gap-4 text-[13px]",children:[a.jsxs("div",{className:"bg-white rounded-[16px] border p-5",children:[a.jsx("div",{className:"font-bold",children:"Retail Cuba"}),a.jsx("div",{className:"text-[#8B7355] mt-1",children:"1-5kg bolsas amarillas, 25kg sacos. Desde 1 saco. Pago contra entrega."})]}),a.jsxs("div",{className:"bg-white rounded-[16px] border p-5",children:[a.jsx("div",{className:"font-bold",children:"Mayorista Cuba"}),a.jsx("div",{className:"text-[#8B7355] mt-1",children:"25kg, 50kg, big-bags. Desde 1 paleta (~1t). Contrato, factura."})]}),a.jsxs("div",{className:"bg-[#1C1917] text-white rounded-[16px] p-5",children:[a.jsx("div",{className:"font-bold",children:"Export 20t+"}),a.jsx("div",{className:"text-white/60 mt-1",children:"FCA/EXW Belarús, DAP, CIF, FOB. EAC, vet certificados."})]})]}),a.jsxs("div",{className:"mt-8 bg-white rounded-[20px] border overflow-hidden",children:[a.jsxs("div",{className:"p-6 border-b",children:[a.jsx("h3",{className:"font-serif text-[20px]",children:"Lista de precios — ejemplo (consultar por WhatsApp)"}),a.jsx("p",{className:"text-[12px] text-[#8B7355] mt-1",children:"Precios retail Cuba CUP, mayorista — por volumen. Lote mínimo Cuba desde 1 paleta, export desde 20t."})]}),a.jsx("div",{className:"overflow-x-auto",children:a.jsxs("table",{className:"w-full text-[13px]",children:[a.jsx("thead",{className:"bg-[#FFF8E1] text-[11px] uppercase tracking-wide text-[#8B7355]",children:a.jsxs("tr",{children:[a.jsx("th",{className:"p-3 text-left",children:"Producto"}),a.jsx("th",{className:"p-3 text-left",children:"Artículo"}),a.jsx("th",{className:"p-3 text-left",children:"Empaque"}),a.jsx("th",{className:"p-3 text-left",children:"Precio retail"}),a.jsx("th",{className:"p-3 text-left",children:"Mayorista"})]})}),a.jsx("tbody",{className:"divide-y divide-[#E8DCC6]/50",children:zt.slice(0,6).map(e=>a.jsxs("tr",{children:[a.jsx("td",{className:"p-3 font-medium",children:e.name}),a.jsx("td",{className:"p-3",children:e.sku}),a.jsx("td",{className:"p-3",children:e.variants.map(t=>t.weight).join(", ")}),a.jsxs("td",{className:"p-3",children:[e.variants[0].price," CUP"]}),a.jsx("td",{className:"p-3 text-[#8B7355]",children:"Por volumen — WhatsApp"})]},e.id))})]})})]}),a.jsxs("div",{className:"mt-8 flex gap-3",children:[a.jsx("a",{href:`${Ce}?text=Hola%20Orio24%2C%20soy%20mayorista%20en%20Cuba%2C%20manden%20lista%20mayorista`,target:"_blank",rel:"noopener noreferrer",className:"h-11 px-6 rounded-full bg-[#25D366] text-white font-semibold text-[13px] flex items-center",children:"💬 Recibir lista mayorista WhatsApp"}),a.jsx(T,{to:"/shop",className:"h-11 px-6 rounded-full bg-[#1C1917] text-white font-medium text-[13px] flex items-center",children:"Ver catálogo retail"})]})]})})}function oh(){return be("Contacto — Habana, Santiago, toda Cuba | Orio24","Contacto Cuba: WhatsApp +53 5..., entrega Habana 24-72h, toda Cuba 3-5 días, pago contra entrega CUP/MLC/USD Transfermóvil EnZona."),a.jsx("div",{className:"bg-[#FFFCF5] min-h-screen",children:a.jsxs("div",{className:"max-w-[800px] mx-auto px-4 sm:px-6 lg:px-8 py-10",children:[a.jsx(Ie,{items:[{label:"Inicio",href:"/"},{label:"Contacto"}]}),a.jsx("h1",{className:"font-serif text-[36px] mt-6",children:"Contacto Cuba"}),a.jsxs("div",{className:"mt-8 grid sm:grid-cols-2 gap-6",children:[a.jsxs("div",{className:"bg-white rounded-[16px] border p-6",children:[a.jsx("h3",{className:"font-semibold",children:"WhatsApp — respuesta 30 min"}),a.jsx("p",{className:"text-[14px] text-[#8B7355] mt-2",children:"+53 5... (Cuba) — cotizaciones, stock, entrega, factura. Lunes-Sábado 8:00-20:00."}),a.jsx("a",{href:`${Ce}?text=Hola%20Orio24`,target:"_blank",rel:"noopener noreferrer",className:"mt-4 inline-flex h-10 px-5 rounded-full bg-[#25D366] text-white text-[13px] font-semibold",children:"💬 Escribir WhatsApp"})]}),a.jsxs("div",{className:"bg-white rounded-[16px] border p-6",children:[a.jsx("h3",{className:"font-semibold",children:"Entrega Cuba"}),a.jsx("p",{className:"text-[14px] text-[#8B7355] mt-2",children:"Habana 24-72h, Santiago y provincias 3-5 días. Almacén 500t climatizado, siempre stock. Desde 1 saco retail, desde 1 paleta mayorista."})]})]})]})})}function uh(){be("FAQ — preguntas frecuentes Cuba | Orio24","FAQ Cuba: pago contra entrega, Transfermóvil, EnZona, entrega Habana 24-72h, toda Cuba 3-5 días, documentos GOST, lote, QR, factura.");const e=[{q:"¿Cómo comprar en Cuba sin tarjeta?",a:"Agregas al carrito, dejas provincia y teléfono, te escribimos por WhatsApp en 30 min, entregamos Habana 24-72h, toda Cuba 3-5 días, pagas al recibir CUP/MLC/USD, Transfermóvil, EnZona."},{q:"¿Cuál es el lote mínimo?",a:"Retail Cuba desde 1 saco, mayorista Cuba desde 1 paleta (~1t), export desde 20t FCA/EXW/DAP/CIF/FOB."},{q:"¿Qué documentos vienen?",a:"EAC declaración, protocolos de ensayo, GOST 26574-2017, factura, lote, QR, fecha, fabricante. Cada saco marcado."},{q:"¿Cómo distinguir fabricante de revendedor?",a:"Fabricante muestra ceh, laboratorio, almacén 500t, protocolos por cada lote, EAC, QR+partida, video. Revendedor — solo bolsas. Orio24 muestra ceh, lab, almacén y documentos."},{q:"¿Qué garantía de calidad?",a:"Molino 50t/día Buhler Suiza, laboratorio propio, cada lote con protocolo proteína 10-13%, gluten 24-30%, humedad ≤15%. GOST 26574-2017, factura + lote."}];return a.jsx("div",{className:"bg-[#FFFCF5] min-h-screen",children:a.jsxs("div",{className:"max-w-[800px] mx-auto px-4 sm:px-6 lg:px-8 py-10",children:[a.jsx(Ie,{items:[{label:"Inicio",href:"/"},{label:"FAQ"}]}),a.jsx("h1",{className:"font-serif text-[36px] mt-6",children:"FAQ — Cuba"}),a.jsx("div",{className:"mt-8 space-y-4",children:e.map((t,r)=>a.jsxs("details",{className:"bg-white rounded-[16px] border border-[#E8DCC6] p-5 group",children:[a.jsxs("summary",{className:"font-semibold text-[14px] cursor-pointer list-none flex justify-between items-center",children:[t.q,a.jsx("span",{className:"text-[#8B7355] group-open:rotate-180 transition-transform",children:"▼"})]}),a.jsx("p",{className:"text-[13px] text-[#57534E] mt-3 leading-[1.6]",children:t.a})]},r))})]})})}function Kn({title:e,children:t}){return be(`${e} | Orio24`,`${e} — Orio24 Harina Belarús para Cuba.`),a.jsx("div",{className:"bg-[#FFFCF5] min-h-screen",children:a.jsxs("div",{className:"max-w-[800px] mx-auto px-4 sm:px-6 lg:px-8 py-10",children:[a.jsx(Ie,{items:[{label:"Inicio",href:"/"},{label:e}]}),a.jsx("h1",{className:"font-serif text-[32px] mt-6",children:e}),a.jsx("div",{className:"mt-6 bg-white rounded-[16px] border border-[#E8DCC6] p-6 text-[14px] leading-[1.7] text-[#57534E]",children:t})]})})}function ch(){return be("Recetas — pan cubano, dulce, pizza con harina Orio24 | Orio24","Recetas probadas por panaderías en La Habana y Santiago. Con dosificación para saco 25kg."),a.jsx("div",{className:"bg-[#FFFCF5] min-h-screen",children:a.jsxs("div",{className:"max-w-[1100px] mx-auto px-4 sm:px-6 lg:px-8 py-10",children:[a.jsx(Ie,{items:[{label:"Inicio",href:"/"},{label:"Recetas"}]}),a.jsx("h1",{className:"font-serif text-[36px] mt-6",children:"Recetas cubanas con Orio24"}),a.jsx("div",{className:"mt-8 grid sm:grid-cols-3 gap-5",children:sd.map(e=>a.jsxs("div",{className:"bg-white rounded-[16px] border overflow-hidden",children:[a.jsx("img",{src:e.image,alt:e.title,className:"aspect-[4/3] w-full object-cover",loading:"lazy"}),a.jsxs("div",{className:"p-5",children:[a.jsxs("div",{className:"text-[11px] uppercase text-[#8B7355]",children:[e.time," • ",e.difficulty]}),a.jsx("h3",{className:"font-serif text-[18px] mt-2",children:e.title}),a.jsx("p",{className:"text-[13px] text-[#8B7355] mt-2",children:e.description})]})]},e.id))})]})})}function dh(){return be("Mi cuenta | Orio24","Mi cuenta Cuba — pedidos, direcciones, facturas."),a.jsx(Kn,{title:"Mi cuenta",children:a.jsx("p",{children:"Demo account page. Pedidos se guardan en localStorage (orio-orders). En producción — backend WooCommerce /my-account/."})})}function ph(){return a.jsxs("div",{className:"min-h-screen bg-[#FFFCF5] text-[#1C1917] font-sans antialiased",children:[a.jsx("style",{children:"@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Inter:wght@400;500;600;700&display=swap'); .font-serif{font-family:'DM Serif Display',serif} .font-sans{font-family:Inter,system-ui,sans-serif} @keyframes slideUp{from{transform:translate(-50%,20px);opacity:0}to{transform:translate(-50%,0);opacity:1}}"}),a.jsx(Wm,{}),a.jsx("main",{children:a.jsxs(Pm,{children:[a.jsx(te,{path:"/",element:a.jsx(Jm,{})}),a.jsx(te,{path:"/shop",element:a.jsx(eh,{})}),a.jsx(te,{path:"/product/:slug",element:a.jsx(th,{})}),a.jsx(te,{path:"/cart",element:a.jsx(rh,{})}),a.jsx(te,{path:"/checkout",element:a.jsx(nh,{})}),a.jsx(te,{path:"/order-confirmation/:id",element:a.jsx(lh,{})}),a.jsx(te,{path:"/about",element:a.jsx(ah,{})}),a.jsx(te,{path:"/production",element:a.jsx(sh,{})}),a.jsx(te,{path:"/wholesale",element:a.jsx(ih,{})}),a.jsx(te,{path:"/contact",element:a.jsx(oh,{})}),a.jsx(te,{path:"/faq",element:a.jsx(uh,{})}),a.jsx(te,{path:"/recipes",element:a.jsx(ch,{})}),a.jsx(te,{path:"/shipping-returns",element:a.jsx(Kn,{title:"Envío y devoluciones",children:a.jsx("p",{children:"Habana 24-72h, toda Cuba 3-5 días. Almacén 500t climatizado, siempre stock. Pago contra entrega CUP/MLC/USD, Transfermóvil, EnZona. Devolución si no corresponde lote/documentos."})})}),a.jsx(te,{path:"/privacy-policy",element:a.jsx(Kn,{title:"Privacidad",children:a.jsx("p",{children:"No guardamos datos de tarjeta. Solo nombre, teléfono, dirección para entrega Cuba. Test card 4242 4242 4242 4242 para demo."})})}),a.jsx(te,{path:"/terms-conditions",element:a.jsx(Kn,{title:"Términos y condiciones",children:a.jsx("p",{children:"Precios retail Cuba CUP, mayorista por volumen. Factura + lote + GOST + QR. Lote mínimo Cuba desde 1 saco, mayorista desde 1 paleta, export desde 20t FCA/EXW/DAP/CIF/FOB."})})}),a.jsx(te,{path:"/my-account",element:a.jsx(dh,{})})]})}),a.jsx(qm,{}),a.jsx(Zm,{})]})}ha.createRoot(document.getElementById("root")).render(a.jsx($o.StrictMode,{children:a.jsx(Rm,{children:a.jsx(Um,{children:a.jsx(ph,{})})})}));