PageSourceSearch

https://celebrated-gaufre-ac2048.netlify.app/assets/index-BoPctBVe.js

js celebrated-gaufre-ac2048.netlify.app collected 2026-10-03 10:33:41 UTC 576,755 bytes, 561 lines download raw bytes

vendor: 4,895 bytes, lines 1-9
1(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(a){if(a.ep)return;a.ep=!0;const i=n(a);fetch(a.href,i)}})();function Zx(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var km={exports:{}},jo={},Am={exports:{}},ge={};/**
2 * @license React
3 * react.production.min.js
4 *
5 * Copyright (c) Facebook, Inc. and its affiliates.
6 *
7 * This source code is licensed under the MIT license found in the
8 * LICENSE file in the root directory of this source tree.
9 */var $i=Symbol.for("react.element"),Xx=Symbol.for("react.portal"),Qx=Symbol.for("react.fragment"),Yx=Symbol.for("react.strict_mode"),Jx=Symbol.for("react.profiler"),ev=Symbol.for("react.provider"),tv=Symbol.for("react.context"),nv=Symbol.for("react.forward_ref"),rv=Symbol.for("react.suspense"),av=Symbol.for("react.memo"),iv=Symbol.for("react.lazy"),uf=Symbol.iterator;function sv(e){return e===null||typeof e!="object"?null:(e=uf&&e[uf]||e["@@iterator"],typeof e=="function"?e:null)}var Tm={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_m=Object.assign,Em={};function Pa(e,t,n){this.props=e,this.context=t,this.refs=Em,this.updater=n||Tm}Pa.prototype.isReactComponent={};Pa.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")};Pa.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Rm(){}Rm.prototype=Pa.prototype;function yu(e,t,n){this.props=e,this.context=t,this.refs=Em,this.updater=n||Tm}var xu=yu.prototype=new Rm;xu.constructor=yu;_m(xu,Pa.prototype);xu.isPureReactComponent=!0;var df=Array.isArray,Mm=Object.prototype.hasOwnProperty,vu={current:null},Om={key:!0,ref:!0,__self:!0,__source:!0};function Vm(e,t,n){var r,a={},i=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(i=""+t.key),t)Mm.call(t,r)&&!Om.hasOwnProperty(r)&&(a[r]=t[r]);var l=arguments.length-2;if(l===1)a.children=n;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];a.children=c}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)a[r]===void 0&&(a[r]=l[r]);return{$$typeof:$i,type:e,key:i,ref:o,props:a,_owner:vu.current}}function ov(e,t){return{$$typeof:$i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function bu(e){return typeof e=="object"&&e!==null&&e.$$typeof===$i}function lv(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var ff=/\/+/g;function Yo(e,t){return typeof e=="object"&&e!==null&&e.key!=null?lv(""+e.key):t.toString(36)}function bs(e,t,n,r,a){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(i){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case $i:case Xx:o=!0}}if(o)return o=e,a=a(o),e=r===""?"."+Yo(o,0):r,df(a)?(n="",e!=null&&(n=e.replace(ff,"$&/")+"/"),bs(a,t,n,"",function(u){return u})):a!=null&&(bu(a)&&(a=ov(a,n+(!a.key||o&&o.key===a.key?"":(""+a.key).replace(ff,"$&/")+"/")+e)),t.push(a)),1;if(o=0,r=r===""?".":r+":",df(e))for(var l=0;l<e.length;l++){i=e[l];var c=r+Yo(i,l);o+=bs(i,t,n,c,a)}else if(c=sv(e),typeof c=="function")for(e=c.call(e),l=0;!(i=e.next()).done;)i=i.value,c=r+Yo(i,l++),o+=bs(i,t,n,c,a);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function Qi(e,t,n){if(e==null)return e;var r=[],a=0;return bs(e,r,"","",function(i){return t.call(n,i,a++)}),r}function cv(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var vt={current:null},Cs={transition:null},uv={ReactCurrentDispatcher:vt,ReactCurrentBatchConfig:Cs,ReactCurrentOwner:vu};function Fm(){throw Error("act(...) is not supported in production builds of React.")}
vendor: 5,224 bytes, lines 9-25
9ge.Children={map:Qi,forEach:function(e,t,n){Qi(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Qi(e,function(){t++}),t},toArray:function(e){return Qi(e,function(t){return t})||[]},only:function(e){if(!bu(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ge.Component=Pa;ge.Fragment=Qx;ge.Profiler=Jx;ge.PureComponent=yu;ge.StrictMode=Yx;ge.Suspense=rv;ge.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=uv;ge.act=Fm;ge.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=_m({},e.props),a=e.key,i=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,o=vu.current),t.key!==void 0&&(a=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)Mm.call(t,c)&&!Om.hasOwnProperty(c)&&(r[c]=t[c]===void 0&&l!==void 0?l[c]:t[c])}var c=arguments.length-2;if(c===1)r.children=n;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:$i,type:e.type,key:a,ref:i,props:r,_owner:o}};ge.createContext=function(e){return e={$$typeof:tv,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:ev,_context:e},e.Consumer=e};ge.createElement=Vm;ge.createFactory=function(e){var t=Vm.bind(null,e);return t.type=e,t};ge.createRef=function(){return{current:null}};ge.forwardRef=function(e){return{$$typeof:nv,render:e}};ge.isValidElement=bu;ge.lazy=function(e){return{$$typeof:iv,_payload:{_status:-1,_result:e},_init:cv}};ge.memo=function(e,t){return{$$typeof:av,type:e,compare:t===void 0?null:t}};ge.startTransition=function(e){var t=Cs.transition;Cs.transition={};try{e()}finally{Cs.transition=t}};ge.unstable_act=Fm;ge.useCallback=function(e,t){return vt.current.useCallback(e,t)};ge.useContext=function(e){return vt.current.useContext(e)};ge.useDebugValue=function(){};ge.useDeferredValue=function(e){return vt.current.useDeferredValue(e)};ge.useEffect=function(e,t){return vt.current.useEffect(e,t)};ge.useId=function(){return vt.current.useId()};ge.useImperativeHandle=function(e,t,n){return vt.current.useImperativeHandle(e,t,n)};ge.useInsertionEffect=function(e,t){return vt.current.useInsertionEffect(e,t)};ge.useLayoutEffect=function(e,t){return vt.current.useLayoutEffect(e,t)};ge.useMemo=function(e,t){return vt.current.useMemo(e,t)};ge.useReducer=function(e,t,n){return vt.current.useReducer(e,t,n)};ge.useRef=function(e){return vt.current.useRef(e)};ge.useState=function(e){return vt.current.useState(e)};ge.useSyncExternalStore=function(e,t,n){return vt.current.useSyncExternalStore(e,t,n)};ge.useTransition=function(){return vt.current.useTransition()};ge.version="18.3.1";Am.exports=ge;var R=Am.exports;const ue=Zx(R);/**
10 * @license React
11 * react-jsx-runtime.production.min.js
12 *
13 * Copyright (c) Facebook, Inc. and its affiliates.
14 *
15 * This source code is licensed under the MIT license found in the
16 * LICENSE file in the root directory of this source tree.
17 */var dv=R,fv=Symbol.for("react.element"),pv=Symbol.for("react.fragment"),hv=Object.prototype.hasOwnProperty,mv=dv.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,gv={key:!0,ref:!0,__self:!0,__source:!0};function Lm(e,t,n){var r,a={},i=null,o=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)hv.call(t,r)&&!gv.hasOwnProperty(r)&&(a[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)a[r]===void 0&&(a[r]=t[r]);return{$$typeof:fv,type:e,key:i,ref:o,props:a,_owner:mv.current}}jo.Fragment=pv;jo.jsx=Lm;jo.jsxs=Lm;km.exports=jo;var s=km.exports,Wl={},Dm={exports:{}},Lt={},$m={exports:{}},Im={};/**
18 * @license React
19 * scheduler.production.min.js
20 *
21 * Copyright (c) Facebook, Inc. and its affiliates.
22 *
23 * This source code is licensed under the MIT license found in the
24 * LICENSE file in the root directory of this source tree.
25 */(function(e){function t(E,z){var S=E.length;E.push(z);e:for(;0<S;){var w=S-1>>>1,G=E[w];if(0<a(G,z))E[w]=z,E[S]=G,S=w;else break e}}function n(E){return E.length===0?null:E[0]}function r(E){if(E.length===0)return null;var z=E[0],S=E.pop();if(S!==z){E[0]=S;e:for(var w=0,G=E.length,ae=G>>>1;w<ae;){var ie=2*(w+1)-1,ce=E[ie],le=ie+1,ne=E[le];if(0>a(ce,S))le<G&&0>a(ne,ce)?(E[w]=ne,E[le]=S,w=le):(E[w]=ce,E[ie]=S,w=ie);else if(le<G&&0>a(ne,S))E[w]=ne,E[le]=S,w=le;else break e}}return z}function a(E,z){var S=E.sortIndex-z.sortIndex;return S!==0?S:E.id-z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}var c=[],u=[],d=1,f=null,h=3,g=!1,x=!1,b=!1,j=typeof setTimeout=="function"?setTimeout:null,m=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 y(E){for(var z=n(u);z!==null;){if(z.callback===null)r(u);else if(z.startTime<=E)r(u),z.sortIndex=z.expirationTime,t(c,z);else break;z=n(u)}}
vendor: 8,201 bytes, lines 25-33
25function C(E){if(b=!1,y(E),!x)if(n(c)!==null)x=!0,F(N);else{var z=n(u);z!==null&&oe(C,z.startTime-E)}}function N(E,z){x=!1,b&&(b=!1,m(V),V=-1),g=!0;var S=h;try{for(y(z),f=n(c);f!==null&&(!(f.expirationTime>z)||E&&!_());){var w=f.callback;if(typeof w=="function"){f.callback=null,h=f.priorityLevel;var G=w(f.expirationTime<=z);z=e.unstable_now(),typeof G=="function"?f.callback=G:f===n(c)&&r(c),y(z)}else r(c);f=n(c)}if(f!==null)var ae=!0;else{var ie=n(u);ie!==null&&oe(C,ie.startTime-z),ae=!1}return ae}finally{f=null,h=S,g=!1}}var P=!1,O=null,V=-1,B=5,M=-1;function _(){return!(e.unstable_now()-M<B)}function Y(){if(O!==null){var E=e.unstable_now();M=E;var z=!0;try{z=O(!0,E)}finally{z?D():(P=!1,O=null)}}else P=!1}var D;if(typeof p=="function")D=function(){p(Y)};else if(typeof MessageChannel<"u"){var te=new MessageChannel,k=te.port2;te.port1.onmessage=Y,D=function(){k.postMessage(null)}}else D=function(){j(Y,0)};function F(E){O=E,P||(P=!0,D())}function oe(E,z){V=j(function(){E(e.unstable_now())},z)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(E){E.callback=null},e.unstable_continueExecution=function(){x||g||(x=!0,F(N))},e.unstable_forceFrameRate=function(E){0>E||125<E?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):B=0<E?Math.floor(1e3/E):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(E){switch(h){case 1:case 2:case 3:var z=3;break;default:z=h}var S=h;h=z;try{return E()}finally{h=S}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(E,z){switch(E){case 1:case 2:case 3:case 4:case 5:break;default:E=3}var S=h;h=E;try{return z()}finally{h=S}},e.unstable_scheduleCallback=function(E,z,S){var w=e.unstable_now();switch(typeof S=="object"&&S!==null?(S=S.delay,S=typeof S=="number"&&0<S?w+S:w):S=w,E){case 1:var G=-1;break;case 2:G=250;break;case 5:G=1073741823;break;case 4:G=1e4;break;default:G=5e3}return G=S+G,E={id:d++,callback:z,priorityLevel:E,startTime:S,expirationTime:G,sortIndex:-1},S>w?(E.sortIndex=S,t(u,E),n(c)===null&&E===n(u)&&(b?(m(V),V=-1):b=!0,oe(C,S-w))):(E.sortIndex=G,t(c,E),x||g||(x=!0,F(N))),E},e.unstable_shouldYield=_,e.unstable_wrapCallback=function(E){var z=h;return function(){var S=h;h=z;try{return E.apply(this,arguments)}finally{h=S}}}})(Im);$m.exports=Im;var yv=$m.exports;/**
26 * @license React
27 * react-dom.production.min.js
28 *
29 * Copyright (c) Facebook, Inc. and its affiliates.
30 *
31 * This source code is licensed under the MIT license found in the
32 * LICENSE file in the root directory of this source tree.
33 */var xv=R,Ot=yv;function $(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var zm=new Set,pi={};function Lr(e,t){fa(e,t),fa(e+"Capture",t)}function fa(e,t){for(pi[e]=t,e=0;e<t.length;e++)zm.add(t[e])}var Tn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Hl=Object.prototype.hasOwnProperty,vv=/^[: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]*$/,pf={},hf={};function bv(e){return Hl.call(hf,e)?!0:Hl.call(pf,e)?!1:vv.test(e)?hf[e]=!0:(pf[e]=!0,!1)}function Cv(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function jv(e,t,n,r){if(t===null||typeof t>"u"||Cv(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.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 bt(e,t,n,r,a,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var ot={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ot[e]=new bt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ot[t]=new bt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ot[e]=new bt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ot[e]=new bt(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){ot[e]=new bt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ot[e]=new bt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ot[e]=new bt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ot[e]=new bt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ot[e]=new bt(e,5,!1,e.toLowerCase(),null,!1,!1)});var Cu=/[\-:]([a-z])/g;function ju(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(Cu,ju);ot[t]=new bt(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(Cu,ju);ot[t]=new bt(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(Cu,ju);ot[t]=new bt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ot[e]=new bt(e,1,!1,e.toLowerCase(),null,!1,!1)});ot.xlinkHref=new bt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ot[e]=new bt(e,1,!1,e.toLowerCase(),null,!0,!0)});function wu(e,t,n,r){var a=ot.hasOwnProperty(t)?ot[t]:null;(a!==null?a.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(jv(t,n,a,r)&&(n=null),r||a===null?bv(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):a.mustUseProperty?e[a.propertyName]=n===null?a.type===3?!1:"":n:(t=a.attributeName,r=a.attributeNamespace,n===null?e.removeAttribute(t):(a=a.type,n=a===3||a===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}
vendor: 5,401 bytes, lines 33-37
33var Vn=xv.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Yi=Symbol.for("react.element"),Ur=Symbol.for("react.portal"),qr=Symbol.for("react.fragment"),Su=Symbol.for("react.strict_mode"),Gl=Symbol.for("react.profiler"),Bm=Symbol.for("react.provider"),Um=Symbol.for("react.context"),Nu=Symbol.for("react.forward_ref"),Kl=Symbol.for("react.suspense"),Zl=Symbol.for("react.suspense_list"),Pu=Symbol.for("react.memo"),In=Symbol.for("react.lazy"),qm=Symbol.for("react.offscreen"),mf=Symbol.iterator;function Oa(e){return e===null||typeof e!="object"?null:(e=mf&&e[mf]||e["@@iterator"],typeof e=="function"?e:null)}var $e=Object.assign,Jo;function Wa(e){if(Jo===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Jo=t&&t[1]||""}return`
34`+Jo+e}var el=!1;function tl(e,t){if(!e||el)return"";el=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var a=u.stack.split(`
35`),i=r.stack.split(`
36`),o=a.length-1,l=i.length-1;1<=o&&0<=l&&a[o]!==i[l];)l--;for(;1<=o&&0<=l;o--,l--)if(a[o]!==i[l]){if(o!==1||l!==1)do if(o--,l--,0>l||a[o]!==i[l]){var c=`
37`+a[o].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=o&&0<=l);break}}}finally{el=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Wa(e):""}function wv(e){switch(e.tag){case 5:return Wa(e.type);case 16:return Wa("Lazy");case 13:return Wa("Suspense");case 19:return Wa("SuspenseList");case 0:case 2:case 15:return e=tl(e.type,!1),e;case 11:return e=tl(e.type.render,!1),e;case 1:return e=tl(e.type,!0),e;default:return""}}function Xl(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 qr:return"Fragment";case Ur:return"Portal";case Gl:return"Profiler";case Su:return"StrictMode";case Kl:return"Suspense";case Zl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Um:return(e.displayName||"Context")+".Consumer";case Bm:return(e._context.displayName||"Context")+".Provider";case Nu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Pu:return t=e.displayName||null,t!==null?t:Xl(e.type)||"Memo";case In:t=e._payload,e=e._init;try{return Xl(e(t))}catch{}}return null}function Sv(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 Xl(t);case 8:return t===Su?"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 ar(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Wm(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Nv(e){var t=Wm(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var a=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ji(e){e._valueTracker||(e._valueTracker=Nv(e))}function Hm(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Wm(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Fs(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 Ql(e,t){var n=t.checked;return $e({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function gf(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ar(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Gm(e,t){t=t.checked,t!=null&&wu(e,"checked",t,!1)}function Yl(e,t){Gm(e,t);var n=ar(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Jl(e,t.type,n):t.hasOwnProperty("defaultValue")&&Jl(e,t.type,ar
vendor: 4,277 bytes, line 37
37(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function yf(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Jl(e,t,n){(t!=="number"||Fs(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ha=Array.isArray;function sa(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&r&&(e[n].defaultSelected=!0)}else{for(n=""+ar(n),t=null,a=0;a<e.length;a++){if(e[a].value===n){e[a].selected=!0,r&&(e[a].defaultSelected=!0);return}t!==null||e[a].disabled||(t=e[a])}t!==null&&(t.selected=!0)}}function ec(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error($(91));return $e({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function xf(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error($(92));if(Ha(n)){if(1<n.length)throw Error($(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:ar(n)}}function Km(e,t){var n=ar(t.value),r=ar(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function vf(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Zm(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function tc(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Zm(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var es,Xm=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,a){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,a)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(es=es||document.createElement("div"),es.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=es.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function hi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ja={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},Pv=["Webkit","ms","Moz","O"];Object.keys(Ja).forEach(function(e){Pv.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ja[t]=Ja[e]})});function Qm(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ja.hasOwnProperty(e)&&Ja[e]?(""+t).trim():t+"px"}function Ym(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,a=Qm(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,a):e[n]=a}}var kv=$e({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 nc(e,t){if(t){if(kv[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error($(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error($(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error($(61))}if(t.style!=null&&typeof t.style!="object")throw Error($(62))}}function rc(e,t){if(e.indexOf("-")===-1)return typeof t.is=="str
37ing";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 ac=null;function ku(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ic=null,oa=null,la=null;function bf(e){if(e=Bi(e)){if(typeof ic!="function")throw Error($(280));var t=e.stateNode;t&&(t=ko(t),ic(e.stateNode,e.type,t))}}function Jm(e){oa?la?la.push(e):la=[e]:oa=e}function eg(){if(oa){var e=oa,t=la;if(la=oa=null,bf(e),t)for(e=0;e<t.length;e++)bf(t[e])}}function tg(e,t){return e(t)}function ng(){}var nl=!1;function rg(e,t,n){if(nl)return e(t,n);nl=!0;try{return tg(e,t,n)}finally{nl=!1,(oa!==null||la!==null)&&(ng(),eg())}}function mi(e,t){var n=e.stateNode;if(n===null)return null;var r=ko(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error($(231,t,typeof n));return n}var sc=!1;if(Tn)try{var Va={};Object.defineProperty(Va,"passive",{get:function(){sc=!0}}),window.addEventListener("test",Va,Va),window.removeEventListener("test",Va,Va)}catch{sc=!1}function Av(e,t,n,r,a,i,o,l,c){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(d){this.onError(d)}}var ei=!1,Ls=null,Ds=!1,oc=null,Tv={onError:function(e){ei=!0,Ls=e}};function _v(e,t,n,r,a,i,o,l,c){ei=!1,Ls=null,Av.apply(Tv,arguments)}function Ev(e,t,n,r,a,i,o,l,c){if(_v.apply(this,arguments),ei){if(ei){var u=Ls;ei=!1,Ls=null}else throw Error($(198));Ds||(Ds=!0,oc=u)}}function Dr(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function ag(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Cf(e){if(Dr(e)!==e)throw Error($(188))}function Rv(e){var t=e.alternate;if(!t){if(t=Dr(e),t===null)throw Error($(188));return t!==e?null:e}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var i=a.alternate;if(i===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===i.child){for(i=a.child;i;){if(i===n)return Cf(a),e;if(i===r)return Cf(a),t;i=i.sibling}throw Error($(188))}if(n.return!==r.return)n=a,r=i;else{for(var o=!1,l=a.child;l;){if(l===n){o=!0,n=a,r=i;break}if(l===r){o=!0,r=a,n=i;break}l=l.sibling}if(!o){for(l=i.child;l;){if(l===n){o=!0,n=i,r=a;break}if(l===r){o=!0,r=i,n=a;break}l=l.sibling}if(!o)throw Error($(189))}}if(n.alternate!==r)throw Error($(190))}if(n.tag!==3)throw Error($(188));return n.stateNode.current===n?e:t}function ig(e){return e=Rv(e),e!==null?sg(e):null}function sg(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=sg(e);if(t!==null)return t;e=e.sibling}return null}var og=Ot.unstable_scheduleCallback,jf=Ot.unstable_cancelCallback,Mv=Ot.unstable_shouldYield,Ov=Ot.unstable_requestPaint,We=Ot.unstable_now,Vv=Ot.unstable_getCurrentPriorityLevel,Au=Ot.unstable_ImmediatePriority,lg=Ot.unstable_UserBlockingPriority,$s=Ot.unstable_NormalPriority,Fv=Ot.unstable_LowPriority,cg=Ot.unstable_IdlePriority,wo=null,gn=null;function Lv(e){if(gn&&typeof gn.onCommitFiberRoot=="function")try{gn.onCommitFiberRoot(wo,e,void 0,(e.current.flags&128)===128)}catch{}}var on=Math.clz32?Math.clz32:Iv,Dv=Math.log,$v=Math.LN2;function Iv(e){return e>>>=0,e===0?32:31-(Dv(e)/$v|0)|0}var ts=64,ns=4194304;function Ga(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 Is(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,a=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var l=o&~a;
vendor: 4,152 bytes, line 37
37l!==0?r=Ga(l):(i&=o,i!==0&&(r=Ga(i)))}else o=n&~a,o!==0?r=Ga(o):i!==0&&(r=Ga(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&a)&&(a=r&-r,i=t&-t,a>=i||a===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-on(t),a=1<<n,r|=e[n],t&=~a;return r}function zv(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 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 t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Bv(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,a=e.expirationTimes,i=e.pendingLanes;0<i;){var o=31-on(i),l=1<<o,c=a[o];c===-1?(!(l&n)||l&r)&&(a[o]=zv(l,t)):c<=t&&(e.expiredLanes|=l),i&=~l}}function lc(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function ug(){var e=ts;return ts<<=1,!(ts&4194240)&&(ts=64),e}function rl(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ii(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-on(t),e[t]=n}function Uv(e,t){var n=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 r=e.eventTimes;for(e=e.expirationTimes;0<n;){var a=31-on(n),i=1<<a;t[a]=0,r[a]=-1,e[a]=-1,n&=~i}}function Tu(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-on(n),a=1<<r;a&t|e[r]&t&&(e[r]|=t),n&=~a}}var Ne=0;function dg(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var fg,_u,pg,hg,mg,cc=!1,rs=[],Zn=null,Xn=null,Qn=null,gi=new Map,yi=new Map,qn=[],qv="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function wf(e,t){switch(e){case"focusin":case"focusout":Zn=null;break;case"dragenter":case"dragleave":Xn=null;break;case"mouseover":case"mouseout":Qn=null;break;case"pointerover":case"pointerout":gi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":yi.delete(t.pointerId)}}function Fa(e,t,n,r,a,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[a]},t!==null&&(t=Bi(t),t!==null&&_u(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function Wv(e,t,n,r,a){switch(t){case"focusin":return Zn=Fa(Zn,e,t,n,r,a),!0;case"dragenter":return Xn=Fa(Xn,e,t,n,r,a),!0;case"mouseover":return Qn=Fa(Qn,e,t,n,r,a),!0;case"pointerover":var i=a.pointerId;return gi.set(i,Fa(gi.get(i)||null,e,t,n,r,a)),!0;case"gotpointercapture":return i=a.pointerId,yi.set(i,Fa(yi.get(i)||null,e,t,n,r,a)),!0}return!1}function gg(e){var t=jr(e.target);if(t!==null){var n=Dr(t);if(n!==null){if(t=n.tag,t===13){if(t=ag(n),t!==null){e.blockedOn=t,mg(e.priority,function(){pg(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function js(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=uc(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);ac=r,n.target.dispatchEvent(r),ac=null}else return t=Bi(n),t!==null&&_u(t),e.blockedOn=n,!1;t.shift()}return!0}function Sf(e,t,n){js(e)&&n.delete(t)}function Hv(){cc=!1,Zn!==null&&js(Zn)&&(Zn=null),Xn!==null&&js(Xn)&&(Xn=null),Qn!==null&&js(Qn)&&(Qn=null),gi.forEach(Sf),yi.forEach(Sf)}function La(e,t){e.blockedOn===t&&(e.blockedOn=null,cc||(cc=!0,Ot.unstable_scheduleCallback(Ot.unstable_NormalPriority,Hv)))}function xi(e){function t(a){return La(a,e)}if(0<rs.length){La(rs[0],e);for(var n=1;n<rs.length;n++){var r=rs[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Zn!==null&&La(Zn,e),Xn!==null&&La(Xn,e),Qn!==null&&La(Qn,e),gi.forEac
vendor: 11,472 bytes, line 37
37h(t),yi.forEach(t),n=0;n<qn.length;n++)r=qn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<qn.length&&(n=qn[0],n.blockedOn===null);)gg(n),n.blockedOn===null&&qn.shift()}var ca=Vn.ReactCurrentBatchConfig,zs=!0;function Gv(e,t,n,r){var a=Ne,i=ca.transition;ca.transition=null;try{Ne=1,Eu(e,t,n,r)}finally{Ne=a,ca.transition=i}}function Kv(e,t,n,r){var a=Ne,i=ca.transition;ca.transition=null;try{Ne=4,Eu(e,t,n,r)}finally{Ne=a,ca.transition=i}}function Eu(e,t,n,r){if(zs){var a=uc(e,t,n,r);if(a===null)pl(e,t,r,Bs,n),wf(e,r);else if(Wv(a,e,t,n,r))r.stopPropagation();else if(wf(e,r),t&4&&-1<qv.indexOf(e)){for(;a!==null;){var i=Bi(a);if(i!==null&&fg(i),i=uc(e,t,n,r),i===null&&pl(e,t,r,Bs,n),i===a)break;a=i}a!==null&&r.stopPropagation()}else pl(e,t,r,null,n)}}var Bs=null;function uc(e,t,n,r){if(Bs=null,e=ku(r),e=jr(e),e!==null)if(t=Dr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=ag(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Bs=e,null}function yg(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Vv()){case Au:return 1;case lg:return 4;case $s:case Fv:return 16;case cg:return 536870912;default:return 16}default:return 16}}var Hn=null,Ru=null,ws=null;function xg(){if(ws)return ws;var e,t=Ru,n=t.length,r,a="value"in Hn?Hn.value:Hn.textContent,i=a.length;for(e=0;e<n&&t[e]===a[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===a[i-r];r++);return ws=a.slice(e,1<r?1-r:void 0)}function Ss(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function as(){return!0}function Nf(){return!1}function Dt(e){function t(n,r,a,i,o){this._reactName=n,this._targetInst=a,this.type=r,this.nativeEvent=i,this.target=o,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(i):i[l]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?as:Nf,this.isPropagationStopped=Nf,this}return $e(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=as)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=as)},persist:function(){},isPersistent:as}),t}var ka={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Mu=Dt(ka),zi=$e({},ka,{view:0,detail:0}),Zv=Dt(zi),al,il,Da,So=$e({},zi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ou,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Da&&(Da&&e.type==="mousemove"?(al=e.screenX-Da.screenX,il=e.screenY-Da.screenY):il=al=0,Da=e),al)},movementY:function(e){return"movementY"in e?e.movementY:il}}),Pf=Dt(So),Xv=$e({},So,{dataTransfer:0}),Qv=Dt(Xv),Yv=$e({},zi,{relatedTarget:0}),sl=Dt(Yv),Jv=$e({},ka,{animationName:0,elapsedTime:0,pseudoElement:0}),e1=Dt(Jv),t1=$e({},ka,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),n1=Dt(t1),r1=$e({},ka,{data:0}),kf=Dt(r1),a1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},i1={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},s1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function o1(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=s1[e])?!!t[e]:!1}function Ou(){return o1}var l1=$e({},zi,{key:function(e){if(e.key){var t=a1[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ss(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?i1[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ou,charCode:function(e){return e.type==="keypress"?Ss(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ss(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),c1=Dt(l1),u1=$e({},So,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Af=Dt(u1),d1=$e({},zi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ou}),f1=Dt(d1),p1=$e({},ka,{propertyName:0,elapsedTime:0,pseudoElement:0}),h1=Dt(p1),m1=$e({},So,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),g1=Dt(m1),y1=[9,13,27,32],Vu=Tn&&"CompositionEvent"in window,ti=null;Tn&&"documentMode"in document&&(ti=document.documentMode);var x1=Tn&&"TextEvent"in window&&!ti,vg=Tn&&(!Vu||ti&&8<ti&&11>=ti),Tf=" ",_f=!1;function bg(e,t){switch(e){case"keyup":return y1.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Cg(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Wr=!1;function v1(e,t){switch(e){case"compositionend":return Cg(t);case"keypress":return t.which!==32?null:(_f=!0,Tf);case"textInput":return e=t.data,e===Tf&&_f?null:e;default:return null}}function b1(e,t){if(Wr)return e==="compositionend"||!Vu&&bg(e,t)?(e=xg(),ws=Ru=Hn=null,Wr=!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.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return vg&&t.locale!=="ko"?null:t.data;default:return null}}var C1={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Ef(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!C1[e.type]:t==="textarea"}function jg(e,t,n,r){Jm(r),t=Us(t,"onChange"),0<t.length&&(n=new Mu("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var ni=null,vi=null;function j1(e){Mg(e,0)}function No(e){var t=Kr(e);if(Hm(t))return e}function w1(e,t){if(e==="change")return t}var wg=!1;if(Tn){var ol;if(Tn){var ll="oninput"in document;if(!ll){var Rf=document.createElement("div");Rf.setAttribute("oninput","return;"),ll=typeof Rf.oninput=="function"}ol=ll}else ol=!1;wg=ol&&(!document.documentMode||9<document.documentMode)}function Mf(){ni&&(ni.detachEvent("onpropertychange",Sg),vi=ni=null)}function Sg(e){if(e.propertyName==="value"&&No(vi)){var t=[];jg(t,vi,e,ku(e)),rg(j1,t)}}function S1(e,t,n){e==="focusin"?(Mf(),ni=t,vi=n,ni.attachEvent("onpropertychange",Sg)):e==="focusout"&&Mf()}function N1(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return No(vi)}function P1(e,t){if(e==="click")return No(t)}function k1(e,t){if(e==="input"||e==="change")return No(t)}function A1(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var cn=typeof Object.is=="function"?Object.is:A1;function bi(e,t){if(cn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var a=n[r];if(!Hl.call(t,a)||!cn(e[a],t[a]))return!1}return!0}function Of(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Vf(e,t){var n=Of(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Of(n)}}function Ng(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ng(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Pg(){for(var e=window,t=Fs();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Fs(e.document)}return t}function Fu(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 T1(e){var t=Pg(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ng(n.ownerDocument.documentElement,n)){if(r!==null&&Fu(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var a=n.textContent.length,i=Math.min(r.start,a);r=r.end===void 0?i:Math.min(r.end,a),!e.extend&&i>r&&(a=r,r=i,i=a),a=Vf(n,i);var o=Vf(n,r);a&&o&&(e.rangeCount!==1||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(a.node,a.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var _1=Tn&&"documentMode"in document&&11>=document.documentMode,Hr=null,dc=null,ri=null,fc=!1;function Ff(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;fc||Hr==null||Hr!==Fs(r)||(r=Hr,"selectionStart"in r&&Fu(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focu
vendor: 4,501 bytes, line 37
37sNode:r.focusNode,focusOffset:r.focusOffset}),ri&&bi(ri,r)||(ri=r,r=Us(dc,"onSelect"),0<r.length&&(t=new Mu("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Hr)))}function is(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Gr={animationend:is("Animation","AnimationEnd"),animationiteration:is("Animation","AnimationIteration"),animationstart:is("Animation","AnimationStart"),transitionend:is("Transition","TransitionEnd")},cl={},kg={};Tn&&(kg=document.createElement("div").style,"AnimationEvent"in window||(delete Gr.animationend.animation,delete Gr.animationiteration.animation,delete Gr.animationstart.animation),"TransitionEvent"in window||delete Gr.transitionend.transition);function Po(e){if(cl[e])return cl[e];if(!Gr[e])return e;var t=Gr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in kg)return cl[e]=t[n];return e}var Ag=Po("animationend"),Tg=Po("animationiteration"),_g=Po("animationstart"),Eg=Po("transitionend"),Rg=new Map,Lf="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function dr(e,t){Rg.set(e,t),Lr(t,[e])}for(var ul=0;ul<Lf.length;ul++){var dl=Lf[ul],E1=dl.toLowerCase(),R1=dl[0].toUpperCase()+dl.slice(1);dr(E1,"on"+R1)}dr(Ag,"onAnimationEnd");dr(Tg,"onAnimationIteration");dr(_g,"onAnimationStart");dr("dblclick","onDoubleClick");dr("focusin","onFocus");dr("focusout","onBlur");dr(Eg,"onTransitionEnd");fa("onMouseEnter",["mouseout","mouseover"]);fa("onMouseLeave",["mouseout","mouseover"]);fa("onPointerEnter",["pointerout","pointerover"]);fa("onPointerLeave",["pointerout","pointerover"]);Lr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Lr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Lr("onBeforeInput",["compositionend","keypress","textInput","paste"]);Lr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Lr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Lr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ka="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),M1=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ka));function Df(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Ev(r,t,void 0,e),e.currentTarget=null}function Mg(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],a=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var o=r.length-1;0<=o;o--){var l=r[o],c=l.instance,u=l.currentTarget;if(l=l.listener,c!==i&&a.isPropagationStopped())break e;Df(a,l,u),i=c}else for(o=0;o<r.length;o++){if(l=r[o],c=l.instance,u=l.currentTarget,l=l.listener,c!==i&&a.isPropagationStopped())break e;Df(a,l,u),i=c}}}if(Ds)throw e=oc,Ds=!1,oc=null,e}function Te(e,t){var n=t[yc];n===void 0&&(n=t[yc]=new Set);var r=e+"__bubble";n.has(r)||(Og(t,e,2,!1),n.add(r))}function fl(e,t,n){var r=0;t&&(r|=4),Og(n,e,r,t)}var ss="_reactListening"+Math.random().toString(36).slice(2);function Ci(e){if(!e[ss]){e[ss]=!0,zm.forEach(function(n){n!=="selectionchange"&&(M1.has(n)||fl(n,!1,e),fl(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ss]||(t[ss]=!0,fl("selectionchange",!1,t))}}function Og(e,t,n,r){switch(yg(t)){case 1:var a=Gv;break;case 4:a=Kv;break;default:a=Eu}n=a.bind(null,t,n,e),a=void 0,!sc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(a=!0),r?a!==void 0?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):a!==void 0?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function pl(e,t,n,r,a){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var l=r.stateNode.containerInfo;
vendor: 2,527 bytes, line 37
37if(l===a||l.nodeType===8&&l.parentNode===a)break;if(o===4)for(o=r.return;o!==null;){var c=o.tag;if((c===3||c===4)&&(c=o.stateNode.containerInfo,c===a||c.nodeType===8&&c.parentNode===a))return;o=o.return}for(;l!==null;){if(o=jr(l),o===null)return;if(c=o.tag,c===5||c===6){r=i=o;continue e}l=l.parentNode}}r=r.return}rg(function(){var u=i,d=ku(n),f=[];e:{var h=Rg.get(e);if(h!==void 0){var g=Mu,x=e;switch(e){case"keypress":if(Ss(n)===0)break e;case"keydown":case"keyup":g=c1;break;case"focusin":x="focus",g=sl;break;case"focusout":x="blur",g=sl;break;case"beforeblur":case"afterblur":g=sl;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":g=Pf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=Qv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=f1;break;case Ag:case Tg:case _g:g=e1;break;case Eg:g=h1;break;case"scroll":g=Zv;break;case"wheel":g=g1;break;case"copy":case"cut":case"paste":g=n1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=Af}var b=(t&4)!==0,j=!b&&e==="scroll",m=b?h!==null?h+"Capture":null:h;b=[];for(var p=u,y;p!==null;){y=p;var C=y.stateNode;if(y.tag===5&&C!==null&&(y=C,m!==null&&(C=mi(p,m),C!=null&&b.push(ji(p,C,y)))),j)break;p=p.return}0<b.length&&(h=new g(h,x,null,n,d),f.push({event:h,listeners:b}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",g=e==="mouseout"||e==="pointerout",h&&n!==ac&&(x=n.relatedTarget||n.fromElement)&&(jr(x)||x[_n]))break e;if((g||h)&&(h=d.window===d?d:(h=d.ownerDocument)?h.defaultView||h.parentWindow:window,g?(x=n.relatedTarget||n.toElement,g=u,x=x?jr(x):null,x!==null&&(j=Dr(x),x!==j||x.tag!==5&&x.tag!==6)&&(x=null)):(g=null,x=u),g!==x)){if(b=Pf,C="onMouseLeave",m="onMouseEnter",p="mouse",(e==="pointerout"||e==="pointerover")&&(b=Af,C="onPointerLeave",m="onPointerEnter",p="pointer"),j=g==null?h:Kr(g),y=x==null?h:Kr(x),h=new b(C,p+"leave",g,n,d),h.target=j,h.relatedTarget=y,C=null,jr(d)===u&&(b=new b(m,p+"enter",x,n,d),b.target=y,b.relatedTarget=j,C=b),j=C,g&&x)t:{for(b=g,m=x,p=0,y=b;y;y=Ir(y))p++;for(y=0,C=m;C;C=Ir(C))y++;for(;0<p-y;)b=Ir(b),p--;for(;0<y-p;)m=Ir(m),y--;for(;p--;){if(b===m||m!==null&&b===m.alternate)break t;b=Ir(b),m=Ir(m)}b=null}else b=null;g!==null&&$f(f,h,g,b,!1),x!==null&&j!==null&&$f(f,j,x,b,!0)}}
vendor: 4,574 bytes, lines 37-38
37e:{if(h=u?Kr(u):window,g=h.nodeName&&h.nodeName.toLowerCase(),g==="select"||g==="input"&&h.type==="file")var N=w1;else if(Ef(h))if(wg)N=k1;else{N=N1;var P=S1}else(g=h.nodeName)&&g.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(N=P1);if(N&&(N=N(e,u))){jg(f,N,n,d);break e}P&&P(e,h,u),e==="focusout"&&(P=h._wrapperState)&&P.controlled&&h.type==="number"&&Jl(h,"number",h.value)}switch(P=u?Kr(u):window,e){case"focusin":(Ef(P)||P.contentEditable==="true")&&(Hr=P,dc=u,ri=null);break;case"focusout":ri=dc=Hr=null;break;case"mousedown":fc=!0;break;case"contextmenu":case"mouseup":case"dragend":fc=!1,Ff(f,n,d);break;case"selectionchange":if(_1)break;case"keydown":case"keyup":Ff(f,n,d)}var O;if(Vu)e:{switch(e){case"compositionstart":var V="onCompositionStart";break e;case"compositionend":V="onCompositionEnd";break e;case"compositionupdate":V="onCompositionUpdate";break e}V=void 0}else Wr?bg(e,n)&&(V="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(V="onCompositionStart");V&&(vg&&n.locale!=="ko"&&(Wr||V!=="onCompositionStart"?V==="onCompositionEnd"&&Wr&&(O=xg()):(Hn=d,Ru="value"in Hn?Hn.value:Hn.textContent,Wr=!0)),P=Us(u,V),0<P.length&&(V=new kf(V,e,null,n,d),f.push({event:V,listeners:P}),O?V.data=O:(O=Cg(n),O!==null&&(V.data=O)))),(O=x1?v1(e,n):b1(e,n))&&(u=Us(u,"onBeforeInput"),0<u.length&&(d=new kf("onBeforeInput","beforeinput",null,n,d),f.push({event:d,listeners:u}),d.data=O))}Mg(f,t)})}function ji(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Us(e,t){for(var n=t+"Capture",r=[];e!==null;){var a=e,i=a.stateNode;a.tag===5&&i!==null&&(a=i,i=mi(e,n),i!=null&&r.unshift(ji(e,i,a)),i=mi(e,t),i!=null&&r.push(ji(e,i,a))),e=e.return}return r}function Ir(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function $f(e,t,n,r,a){for(var i=t._reactName,o=[];n!==null&&n!==r;){var l=n,c=l.alternate,u=l.stateNode;if(c!==null&&c===r)break;l.tag===5&&u!==null&&(l=u,a?(c=mi(n,i),c!=null&&o.unshift(ji(n,c,l))):a||(c=mi(n,i),c!=null&&o.push(ji(n,c,l)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var O1=/\r\n?/g,V1=/\u0000|\uFFFD/g;function If(e){return(typeof e=="string"?e:""+e).replace(O1,`
38`).replace(V1,"")}function os(e,t,n){if(t=If(t),If(e)!==t&&n)throw Error($(425))}function qs(){}var pc=null,hc=null;function mc(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var gc=typeof setTimeout=="function"?setTimeout:void 0,F1=typeof clearTimeout=="function"?clearTimeout:void 0,zf=typeof Promise=="function"?Promise:void 0,L1=typeof queueMicrotask=="function"?queueMicrotask:typeof zf<"u"?function(e){return zf.resolve(null).then(e).catch(D1)}:gc;function D1(e){setTimeout(function(){throw e})}function hl(e,t){var n=t,r=0;do{var a=n.nextSibling;if(e.removeChild(n),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(r===0){e.removeChild(a),xi(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=a}while(n);xi(t)}function Yn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Bf(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Aa=Math.random().toString(36).slice(2),mn="__reactFiber$"+Aa,wi="__reactProps$"+Aa,_n="__reactContainer$"+Aa,yc="__reactEvents$"+Aa,$1="__reactListeners$"+Aa,I1="__reactHandles$"+Aa;function jr(e){var t=e[mn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[_n]||n[mn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Bf(e);e!==null;){if(n=e[mn])return n;e=Bf(e)}return t}e=n,n=e.parentNode}return null}function Bi(e){return e=e[mn]||e[_n],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Kr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error($(33))}function ko(e){return e[wi]||null}var xc=[],Zr=-1;function fr(e){return{current:e}}function _e(e){0>Zr||(e.current=xc[Zr],xc[Zr]=null,Zr--)}function Ae(e,t){Zr++,xc[Zr]=e.current,e.current=t}var ir={},mt=fr(ir),wt=fr(!1),_r=ir;function pa(e,t){var n=e.type.contextTypes;if(!n)return ir;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var a={},i;for(i in n)a[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a
vendor: 4,275 bytes, line 38
38),a}function St(e){return e=e.childContextTypes,e!=null}function Ws(){_e(wt),_e(mt)}function Uf(e,t,n){if(mt.current!==ir)throw Error($(168));Ae(mt,t),Ae(wt,n)}function Vg(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var a in r)if(!(a in t))throw Error($(108,Sv(e)||"Unknown",a));return $e({},n,r)}function Hs(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ir,_r=mt.current,Ae(mt,e),Ae(wt,wt.current),!0}function qf(e,t,n){var r=e.stateNode;if(!r)throw Error($(169));n?(e=Vg(e,t,_r),r.__reactInternalMemoizedMergedChildContext=e,_e(wt),_e(mt),Ae(mt,e)):_e(wt),Ae(wt,n)}var wn=null,Ao=!1,ml=!1;function Fg(e){wn===null?wn=[e]:wn.push(e)}function z1(e){Ao=!0,Fg(e)}function pr(){if(!ml&&wn!==null){ml=!0;var e=0,t=Ne;try{var n=wn;for(Ne=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}wn=null,Ao=!1}catch(a){throw wn!==null&&(wn=wn.slice(e+1)),og(Au,pr),a}finally{Ne=t,ml=!1}}return null}var Xr=[],Qr=0,Gs=null,Ks=0,Ut=[],qt=0,Er=null,Sn=1,Nn="";function yr(e,t){Xr[Qr++]=Ks,Xr[Qr++]=Gs,Gs=e,Ks=t}function Lg(e,t,n){Ut[qt++]=Sn,Ut[qt++]=Nn,Ut[qt++]=Er,Er=e;var r=Sn;e=Nn;var a=32-on(r)-1;r&=~(1<<a),n+=1;var i=32-on(t)+a;if(30<i){var o=a-a%5;i=(r&(1<<o)-1).toString(32),r>>=o,a-=o,Sn=1<<32-on(t)+a|n<<a|r,Nn=i+e}else Sn=1<<i|n<<a|r,Nn=e}function Lu(e){e.return!==null&&(yr(e,1),Lg(e,1,0))}function Du(e){for(;e===Gs;)Gs=Xr[--Qr],Xr[Qr]=null,Ks=Xr[--Qr],Xr[Qr]=null;for(;e===Er;)Er=Ut[--qt],Ut[qt]=null,Nn=Ut[--qt],Ut[qt]=null,Sn=Ut[--qt],Ut[qt]=null}var Rt=null,Et=null,Oe=!1,an=null;function Dg(e,t){var n=Wt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Wf(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Rt=e,Et=Yn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Rt=e,Et=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Er!==null?{id:Sn,overflow:Nn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Wt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Rt=e,Et=null,!0):!1;default:return!1}}function vc(e){return(e.mode&1)!==0&&(e.flags&128)===0}function bc(e){if(Oe){var t=Et;if(t){var n=t;if(!Wf(e,t)){if(vc(e))throw Error($(418));t=Yn(n.nextSibling);var r=Rt;t&&Wf(e,t)?Dg(r,n):(e.flags=e.flags&-4097|2,Oe=!1,Rt=e)}}else{if(vc(e))throw Error($(418));e.flags=e.flags&-4097|2,Oe=!1,Rt=e}}}function Hf(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Rt=e}function ls(e){if(e!==Rt)return!1;if(!Oe)return Hf(e),Oe=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!mc(e.type,e.memoizedProps)),t&&(t=Et)){if(vc(e))throw $g(),Error($(418));for(;t;)Dg(e,t),t=Yn(t.nextSibling)}if(Hf(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error($(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Et=Yn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Et=null}}else Et=Rt?Yn(e.stateNode.nextSibling):null;return!0}function $g(){for(var e=Et;e;)e=Yn(e.nextSibling)}function ha(){Et=Rt=null,Oe=!1}function $u(e){an===null?an=[e]:an.push(e)}var B1=Vn.ReactCurrentBatchConfig;function $a(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error($(309));var r=n.stateNode}if(!r)throw Error($(147,e));var a=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(o){var l=a.refs;o===null?delete l[i]:l[i]=o},t._stringRef=i,t)}if(typeof e!="string")throw Error($(284));if(!n._owner)throw Error($(290,e))}return e}function cs(e,t){throw e=Object.prototype.toString.call(t),Error($(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Gf(e){var t=e._init;return t(e._payload)}function Ig(e){function t(m,p){if(e){var y=m.deletions;y===null?(m.deletions=[p],m.flags|=16):y.push(p)}}function n(m,p){if(!e)return null;for(;p!==null;)t(m,p),p=p.sibling;return null}function r(m,p){for(m=new Map;p!==null;
vendor: 4,215 bytes, line 38
38)p.key!==null?m.set(p.key,p):m.set(p.index,p),p=p.sibling;return m}function a(m,p){return m=nr(m,p),m.index=0,m.sibling=null,m}function i(m,p,y){return m.index=y,e?(y=m.alternate,y!==null?(y=y.index,y<p?(m.flags|=2,p):y):(m.flags|=2,p)):(m.flags|=1048576,p)}function o(m){return e&&m.alternate===null&&(m.flags|=2),m}function l(m,p,y,C){return p===null||p.tag!==6?(p=jl(y,m.mode,C),p.return=m,p):(p=a(p,y),p.return=m,p)}function c(m,p,y,C){var N=y.type;return N===qr?d(m,p,y.props.children,C,y.key):p!==null&&(p.elementType===N||typeof N=="object"&&N!==null&&N.$$typeof===In&&Gf(N)===p.type)?(C=a(p,y.props),C.ref=$a(m,p,y),C.return=m,C):(C=Es(y.type,y.key,y.props,null,m.mode,C),C.ref=$a(m,p,y),C.return=m,C)}function u(m,p,y,C){return p===null||p.tag!==4||p.stateNode.containerInfo!==y.containerInfo||p.stateNode.implementation!==y.implementation?(p=wl(y,m.mode,C),p.return=m,p):(p=a(p,y.children||[]),p.return=m,p)}function d(m,p,y,C,N){return p===null||p.tag!==7?(p=Ar(y,m.mode,C,N),p.return=m,p):(p=a(p,y),p.return=m,p)}function f(m,p,y){if(typeof p=="string"&&p!==""||typeof p=="number")return p=jl(""+p,m.mode,y),p.return=m,p;if(typeof p=="object"&&p!==null){switch(p.$$typeof){case Yi:return y=Es(p.type,p.key,p.props,null,m.mode,y),y.ref=$a(m,null,p),y.return=m,y;case Ur:return p=wl(p,m.mode,y),p.return=m,p;case In:var C=p._init;return f(m,C(p._payload),y)}if(Ha(p)||Oa(p))return p=Ar(p,m.mode,y,null),p.return=m,p;cs(m,p)}return null}function h(m,p,y,C){var N=p!==null?p.key:null;if(typeof y=="string"&&y!==""||typeof y=="number")return N!==null?null:l(m,p,""+y,C);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Yi:return y.key===N?c(m,p,y,C):null;case Ur:return y.key===N?u(m,p,y,C):null;case In:return N=y._init,h(m,p,N(y._payload),C)}if(Ha(y)||Oa(y))return N!==null?null:d(m,p,y,C,null);cs(m,y)}return null}function g(m,p,y,C,N){if(typeof C=="string"&&C!==""||typeof C=="number")return m=m.get(y)||null,l(p,m,""+C,N);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case Yi:return m=m.get(C.key===null?y:C.key)||null,c(p,m,C,N);case Ur:return m=m.get(C.key===null?y:C.key)||null,u(p,m,C,N);case In:var P=C._init;return g(m,p,y,P(C._payload),N)}if(Ha(C)||Oa(C))return m=m.get(y)||null,d(p,m,C,N,null);cs(p,C)}return null}function x(m,p,y,C){for(var N=null,P=null,O=p,V=p=0,B=null;O!==null&&V<y.length;V++){O.index>V?(B=O,O=null):B=O.sibling;var M=h(m,O,y[V],C);if(M===null){O===null&&(O=B);break}e&&O&&M.alternate===null&&t(m,O),p=i(M,p,V),P===null?N=M:P.sibling=M,P=M,O=B}if(V===y.length)return n(m,O),Oe&&yr(m,V),N;if(O===null){for(;V<y.length;V++)O=f(m,y[V],C),O!==null&&(p=i(O,p,V),P===null?N=O:P.sibling=O,P=O);return Oe&&yr(m,V),N}for(O=r(m,O);V<y.length;V++)B=g(O,m,V,y[V],C),B!==null&&(e&&B.alternate!==null&&O.delete(B.key===null?V:B.key),p=i(B,p,V),P===null?N=B:P.sibling=B,P=B);return e&&O.forEach(function(_){return t(m,_)}),Oe&&yr(m,V),N}function b(m,p,y,C){var N=Oa(y);if(typeof N!="function")throw Error($(150));if(y=N.call(y),y==null)throw Error($(151));for(var P=N=null,O=p,V=p=0,B=null,M=y.next();O!==null&&!M.done;V++,M=y.next()){O.index>V?(B=O,O=null):B=O.sibling;var _=h(m,O,M.value,C);if(_===null){O===null&&(O=B);break}e&&O&&_.alternate===null&&t(m,O),p=i(_,p,V),P===null?N=_:P.sibling=_,P=_,O=B}if(M.done)return n(m,O),Oe&&yr(m,V),N;if(O===null){for(;!M.done;V++,M=y.next())M=f(m,M.value,C),M!==null&&(p=i(M,p,V),P===null?N=M:P.sibling=M,P=M);return Oe&&yr(m,V),N}for(O=r(m,O);!M.done;V++,M=y.next())M=g(O,m,V,M.value,C),M!==null&&(e&&M.alternate!==null&&O.delete(M.key===null?V:M.key),p=i(M,p,V),P===null?N=M:P.sibling=M,P=M);return e&&O.forEach(function(Y){return t(m,Y)}),Oe&&yr(m,V),N}function j(m,p,y,C){if(typeof y=="object"&&y!==null&&y.type===qr&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case Yi:e:{for(var N=y.key,P=p;P!==null;){if(P.key===N){if(N=y.type,N===qr){if(P.tag===7){n(m,P.sibling),p=a(P,y.props.children),p.return=m,m=p;break e}}else if(P.elementType===N||typeof N=="object"&&N!==null&&N.$$typeof===In&&Gf(N)===P.type){n(m,P.sibling),p=a(P,y.props),p.ref=$a(m,P,y),p.return=m,m=p;break e}n(m,P);break}else t(m,P);P=P.sibling}y.type===qr?(p=Ar(y.props.children,m.mode,C,y.key),p.return=m,m=p):(C=Es(y.t
vendor: 17,480 bytes, lines 38-40
38ype,y.key,y.props,null,m.mode,C),C.ref=$a(m,p,y),C.return=m,m=C)}return o(m);case Ur:e:{for(P=y.key;p!==null;){if(p.key===P)if(p.tag===4&&p.stateNode.containerInfo===y.containerInfo&&p.stateNode.implementation===y.implementation){n(m,p.sibling),p=a(p,y.children||[]),p.return=m,m=p;break e}else{n(m,p);break}else t(m,p);p=p.sibling}p=wl(y,m.mode,C),p.return=m,m=p}return o(m);case In:return P=y._init,j(m,p,P(y._payload),C)}if(Ha(y))return x(m,p,y,C);if(Oa(y))return b(m,p,y,C);cs(m,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,p!==null&&p.tag===6?(n(m,p.sibling),p=a(p,y),p.return=m,m=p):(n(m,p),p=jl(y,m.mode,C),p.return=m,m=p),o(m)):n(m,p)}return j}var ma=Ig(!0),zg=Ig(!1),Zs=fr(null),Xs=null,Yr=null,Iu=null;function zu(){Iu=Yr=Xs=null}function Bu(e){var t=Zs.current;_e(Zs),e._currentValue=t}function Cc(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function ua(e,t){Xs=e,Iu=Yr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(jt=!0),e.firstContext=null)}function Kt(e){var t=e._currentValue;if(Iu!==e)if(e={context:e,memoizedValue:t,next:null},Yr===null){if(Xs===null)throw Error($(308));Yr=e,Xs.dependencies={lanes:0,firstContext:e}}else Yr=Yr.next=e;return t}var wr=null;function Uu(e){wr===null?wr=[e]:wr.push(e)}function Bg(e,t,n,r){var a=t.interleaved;return a===null?(n.next=n,Uu(t)):(n.next=a.next,a.next=n),t.interleaved=n,En(e,r)}function En(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var zn=!1;function qu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ug(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 Pn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Jn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ve&2){var a=r.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),r.pending=t,En(e,n)}return a=r.interleaved,a===null?(t.next=t,Uu(r)):(t.next=a.next,a.next=t),r.interleaved=t,En(e,n)}function Ns(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Tu(e,n)}}function Kf(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var a=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?a=i=o:i=i.next=o,n=n.next}while(n!==null);i===null?a=i=t:i=i.next=t}else a=i=t;n={baseState:r.baseState,firstBaseUpdate:a,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Qs(e,t,n,r){var a=e.updateQueue;zn=!1;var i=a.firstBaseUpdate,o=a.lastBaseUpdate,l=a.shared.pending;if(l!==null){a.shared.pending=null;var c=l,u=c.next;c.next=null,o===null?i=u:o.next=u,o=c;var d=e.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==o&&(l===null?d.firstBaseUpdate=u:l.next=u,d.lastBaseUpdate=c))}if(i!==null){var f=a.baseState;o=0,d=u=c=null,l=i;do{var h=l.lane,g=l.eventTime;if((r&h)===h){d!==null&&(d=d.next={eventTime:g,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var x=e,b=l;switch(h=t,g=n,b.tag){case 1:if(x=b.payload,typeof x=="function"){f=x.call(g,f,h);break e}f=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=b.payload,h=typeof x=="function"?x.call(g,f,h):x,h==null)break e;f=$e({},f,h);break e;case 2:zn=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,h=a.effects,h===null?a.effects=[l]:h.push(l))}else g={eventTime:g,lane:h,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(u=d=g,c=f):d=d.next=g,o|=h;if(l=l.next,l===null){if(l=a.shared.pending,l===null)break;h=l,l=h.next,h.next=null,a.lastBaseUpdate=h,a.shared.pending=null}}while(!0);if(d===null&&(c=f),a.baseState=c,a.firstBaseUpdate=u,a.lastBaseUpdate=d,t=a.shared.interleaved,t!==null){a=t;do o|=a.lane,a=a.next;while(a!==t)}else i===null&&(a.shared.lanes=0);Mr|=o,e.lanes=o,e.memoizedState=f}}function Zf(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],a=r.callback;if(a!==null){if(r.callback=null,r=n,typeof a!="function")throw Error($(191,a));a.call(r)}}}var Ui={},yn=fr(Ui),Si=fr(Ui),Ni=fr(Ui);function Sr(e){if(e===Ui)throw Error($(174));return e}function Wu(e,t){switch(Ae(Ni,t),Ae(Si,e),Ae(yn,Ui),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:tc(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=tc(t,e)}_e(yn),Ae(yn,t)}function ga(){_e(yn),_e(Si),_e(Ni)}function qg(e){Sr(Ni.current);var t=Sr(yn.current),n=tc(t,e.type);t!==n&&(Ae(Si,e),Ae(yn,n))}function Hu(e){Si.current===e&&(_e(yn),_e(Si))}var Ve=fr(0);function Ys(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var gl=[];function Gu(){for(var e=0;e<gl.length;e++)gl[e]._workInProgressVersionPrimary=null;gl.length=0}var Ps=Vn.ReactCurrentDispatcher,yl=Vn.ReactCurrentBatchConfig,Rr=0,De=null,Xe=null,tt=null,Js=!1,ai=!1,Pi=0,U1=0;function lt(){throw Error($(321))}function Ku(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!cn(e[n],t[n]))return!1;return!0}function Zu(e,t,n,r,a,i){if(Rr=i,De=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ps.current=e===null||e.memoizedState===null?G1:K1,e=n(r,a),ai){i=0;do{if(ai=!1,Pi=0,25<=i)throw Error($(301));i+=1,tt=Xe=null,t.updateQueue=null,Ps.current=Z1,e=n(r,a)}while(ai)}if(Ps.current=eo,t=Xe!==null&&Xe.next!==null,Rr=0,tt=Xe=De=null,Js=!1,t)throw Error($(300));return e}function Xu(){var e=Pi!==0;return Pi=0,e}function hn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return tt===null?De.memoizedState=tt=e:tt=tt.next=e,tt}function Zt(){if(Xe===null){var e=De.alternate;e=e!==null?e.memoizedState:null}else e=Xe.next;var t=tt===null?De.memoizedState:tt.next;if(t!==null)tt=t,Xe=e;else{if(e===null)throw Error($(310));Xe=e,e={memoizedState:Xe.memoizedState,baseState:Xe.baseState,baseQueue:Xe.baseQueue,queue:Xe.queue,next:null},tt===null?De.memoizedState=tt=e:tt=tt.next=e}return tt}function ki(e,t){return typeof t=="function"?t(e):t}function xl(e){var t=Zt(),n=t.queue;if(n===null)throw Error($(311));n.lastRenderedReducer=e;var r=Xe,a=r.baseQueue,i=n.pending;if(i!==null){if(a!==null){var o=a.next;a.next=i.next,i.next=o}r.baseQueue=a=i,n.pending=null}if(a!==null){i=a.next,r=r.baseState;var l=o=null,c=null,u=i;do{var d=u.lane;if((Rr&d)===d)c!==null&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};c===null?(l=c=f,o=r):c=c.next=f,De.lanes|=d,Mr|=d}u=u.next}while(u!==null&&u!==i);c===null?o=r:c.next=l,cn(r,t.memoizedState)||(jt=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=c,n.lastRenderedState=r}if(e=n.interleaved,e!==null){a=e;do i=a.lane,De.lanes|=i,Mr|=i,a=a.next;while(a!==e)}else a===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function vl(e){var t=Zt(),n=t.queue;if(n===null)throw Error($(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,i=t.memoizedState;if(a!==null){n.pending=null;var o=a=a.next;do i=e(i,o.action),o=o.next;while(o!==a);cn(i,t.memoizedState)||(jt=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Wg(){}function Hg(e,t){var n=De,r=Zt(),a=t(),i=!cn(r.memoizedState,a);if(i&&(r.memoizedState=a,jt=!0),r=r.queue,Qu(Zg.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||tt!==null&&tt.memoizedState.tag&1){if(n.flags|=2048,Ai(9,Kg.bind(null,n,r,a,t),void 0,null),nt===null)throw Error($(349));Rr&30||Gg(n,t,a)}return a}function Gg(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=De.updateQueue,t===null?(t={lastEffect:null,stores:null},De.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Kg(e,t,n,r){t.value=n,t.getSnapshot=r,Xg(t)&&Qg(e)}function Zg(e,t,n){return n(function(){Xg(t)&&Qg(e)})}function Xg(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!cn(e,n)}catch{return!0}}function Qg(e){var t=En(e,1);t!==null&&ln(t,e,1,-1)}function Xf(e){var t=hn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ki,lastRenderedState:e},t.queue=e,e=e.dispatch=H1.bind(null,De,e),[t.memoizedState,e]}function Ai(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=De.updateQueue,t===null?(t={lastEffect:null,stores:null},De.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Yg(){return Zt().memoizedState}function ks(e,t,n,r){var a=hn();De.flags|=e,a.memoizedState=Ai(1|t,n,void 0,r===void 0?null:r)}function To(e,t,n,r){var a=Zt();r=r===void 0?null:r;var i=void 0;if(Xe!==null){var o=Xe.memoizedState;if(i=o.destroy,r!==null&&Ku(r,o.deps)){a.memoizedState=Ai(t,n,i,r);return}}De.flags|=e,a.memoizedState=Ai(1|t,n,i,r)}function Qf(e,t){return ks(8390656,8,e,t)}function Qu(e,t){return To(2048,8,e,t)}function Jg(e,t){return To(4,2,e,t)}function e0(e,t){return To(4,4,e,t)}function t0(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function n0(e,t,n){return n=n!=null?n.concat([e]):null,To(4,4,t0.bind(null,t,e),n)}function Yu(){}function r0(e,t){var n=Zt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Ku(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function a0(e,t){var n=Zt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Ku(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function i0(e,t,n){return Rr&21?(cn(n,t)||(n=ug(),De.lanes|=n,Mr|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,jt=!0),e.memoizedState=n)}function q1(e,t){var n=Ne;Ne=n!==0&&4>n?n:4,e(!0);var r=yl.transition;yl.transition={};try{e(!1),t()}finally{Ne=n,yl.transition=r}}function s0(){return Zt().memoizedState}function W1(e,t,n){var r=tr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},o0(e))l0(t,n);else if(n=Bg(e,t,n,r),n!==null){var a=xt();ln(n,e,r,a),c0(n,t,r)}}function H1(e,t,n){var r=tr(e),a={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(o0(e))l0(t,a);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,l=i(o,n);if(a.hasEagerState=!0,a.eagerState=l,cn(l,o)){var c=t.interleaved;c===null?(a.next=a,Uu(t)):(a.next=c.next,c.next=a),t.interleaved=a;return}}catch{}finally{}n=Bg(e,t,a,r),n!==null&&(a=xt(),ln(n,e,r,a),c0(n,t,r))}}function o0(e){var t=e.alternate;return e===De||t!==null&&t===De}function l0(e,t){ai=Js=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function c0(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Tu(e,n)}}var eo={readContext:Kt,useCallback:lt,useContext:lt,useEffect:lt,useImperativeHandle:lt,useInsertionEffect:lt,useLayoutEffect:lt,useMemo:lt,useReducer:lt,useRef:lt,useState:lt,useDebugValue:lt,useDeferredValue:lt,useTransition:lt,useMutableSource:lt,useSyncExternalStore:lt,useId:lt,unstable_isNewReconciler:!1},G1={readContext:Kt,useCallback:function(e,t){return hn().memoizedState=[e,t===void 0?null:t],e},useContext:Kt,useEffect:Qf,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ks(4194308,4,t0.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ks(4194308,4,e,t)},useInsertionEffect:function(e,t){return ks(4,2,e,t)},useMemo:function(e,t){var n=hn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=hn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=W1.bind(null,De,e),[r.memoizedState,e]},useRef:function(e){var t=hn();return e={current:e},t.memoizedState=e},useState:Xf,useDebugValue:Yu,useDeferredValue:function(e){return hn().memoizedState=e},useTransition:function(){var e=Xf(!1),t=e[0];return e=q1.bind(null,e[1]),hn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=De,a=hn();if(Oe){if(n===void 0)throw Error($(407));n=n()}else{if(n=t(),nt===null)throw Error($(349));Rr&30||Gg(r,t,n)}a.memoizedState=n;var i={value:n,getSnapshot:t};return a.queue=i,Qf(Zg.bind(null,r,i,e),[e]),r.flags|=2048,Ai(9,Kg.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=hn(),t=nt.identifierPrefix;if(Oe){var n=Nn,r=Sn;n=(r&~(1<<32-on(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Pi++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=U1++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},K1={readContext:Kt,useCallback:r0,useContext:Kt,useEffect:Qu,useImperativeHandle:n0,useInsertionEffect:Jg,useLayoutEffect:e0,useMemo:a0,useReducer:xl,useRef:Yg,useState:function(){return xl(ki)},useDebugValue:Yu,useDeferredValue:function(e){var t=Zt();return i0(t,Xe.memoizedState,e)},useTransition:function(){var e=xl(ki)[0],t=Zt().memoizedState;return[e,t]},useMutableSource:Wg,useSyncExternalStore:Hg,useId:s0,unstable_isNewReconciler:!1},Z1={readContext:Kt,useCallback:r0,useContext:Kt,useEffect:Qu,useImperativeHandle:n0,useInsertionEffect:Jg,useLayoutEffect:e0,useMemo:a0,useReducer:vl,useRef:Yg,useState:function(){return vl(ki)},useDebugValue:Yu,useDeferredValue:function(e){var t=Zt();return Xe===null?t.memoizedState=e:i0(t,Xe.memoizedState,e)},useTransition:function(){var e=vl(ki)[0],t=Zt().memoizedState;return[e,t]},useMutableSource:Wg,useSyncExternalStore:Hg,useId:s0,unstable_isNewReconciler:!1};function nn(e,t){if(e&&e.defaultProps){t=$e({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function jc(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:$e({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var _o={isMounted:function(e){return(e=e._reactInternals)?Dr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=xt(),a=tr(e),i=Pn(r,a);i.payload=t,n!=null&&(i.callback=n),t=Jn(e,i,a),t!==null&&(ln(t,e,a,r),Ns(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=xt(),a=tr(e),i=Pn(r,a);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Jn(e,i,a),t!==null&&(ln(t,e,a,r),Ns(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=xt(),r=tr(e),a=Pn(n,r);a.tag=2,t!=null&&(a.callback=t),t=Jn(e,a,r),t!==null&&(ln(t,e,r,n),Ns(t,e,r))}};function Yf(e,t,n,r,a,i,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,o):t.prototype&&t.prototype.isPureReactComponent?!bi(n,r)||!bi(a,i):!0}function u0(e,t,n){var r=!1,a=ir,i=t.contextType;return typeof i=="object"&&i!==null?i=Kt(i):(a=St(t)?_r:mt.current,r=t.contextTypes,i=(r=r!=null)?pa(e,a):ir),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=_o,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=i),t}function Jf(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&_o.enqueueReplaceState(t,t.state,null)}function wc(e,t,n,r){var a=e.stateNode;a.props=n,a.state=e.memoizedState,a.refs={},qu(e);var i=t.contextType;typeof i=="object"&&i!==null?a.context=Kt(i):(i=St(t)?_r:mt.current,a.context=pa(e,i)),a.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(jc(e,t,i,n),a.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof a.getSnapshotBeforeUpdate=="function"||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(t=a.state,typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount(),t!==a.state&&_o.enqueueReplaceState(a,a.state,null),Qs(e,n,a,r),a.state=e.memoizedState),typeof a.componentDidMount=="function"&&(e.flags|=4194308)}function ya(e,t){try{var n="",r=t;do n+=wv(r),r=r.return;while(r);var a=n}catch(i){a=`
39Error generating stack: `+i.message+`
40`+i.stack}return{value:e,source:t,stack:a,digest:null}}function bl(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Sc(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var X1=typeof WeakMap=="function"?WeakMap:Map;function d0(e,t,n){n=Pn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){no||(no=!0,Oc=r),Sc(e,t)},n}
vendor: 10,843 bytes, line 40
40function f0(e,t,n){n=Pn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var a=t.value;n.payload=function(){return r(a)},n.callback=function(){Sc(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Sc(e,t),typeof r!="function"&&(er===null?er=new Set([this]):er.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function ep(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new X1;var a=new Set;r.set(t,a)}else a=r.get(t),a===void 0&&(a=new Set,r.set(t,a));a.has(n)||(a.add(n),e=ub.bind(null,e,t,n),t.then(e,e))}function tp(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function np(e,t,n,r,a){return e.mode&1?(e.flags|=65536,e.lanes=a,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Pn(-1,1),t.tag=2,Jn(n,t,1))),n.lanes|=1),e)}var Q1=Vn.ReactCurrentOwner,jt=!1;function yt(e,t,n,r){t.child=e===null?zg(t,null,n,r):ma(t,e.child,n,r)}function rp(e,t,n,r,a){n=n.render;var i=t.ref;return ua(t,a),r=Zu(e,t,n,r,i,a),n=Xu(),e!==null&&!jt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Rn(e,t,a)):(Oe&&n&&Lu(t),t.flags|=1,yt(e,t,r,a),t.child)}function ap(e,t,n,r,a){if(e===null){var i=n.type;return typeof i=="function"&&!sd(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,p0(e,t,i,r,a)):(e=Es(n.type,null,r,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&a)){var o=i.memoizedProps;if(n=n.compare,n=n!==null?n:bi,n(o,r)&&e.ref===t.ref)return Rn(e,t,a)}return t.flags|=1,e=nr(i,r),e.ref=t.ref,e.return=t,t.child=e}function p0(e,t,n,r,a){if(e!==null){var i=e.memoizedProps;if(bi(i,r)&&e.ref===t.ref)if(jt=!1,t.pendingProps=r=i,(e.lanes&a)!==0)e.flags&131072&&(jt=!0);else return t.lanes=e.lanes,Rn(e,t,a)}return Nc(e,t,n,r,a)}function h0(e,t,n){var r=t.pendingProps,a=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ae(ea,At),At|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ae(ea,At),At|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,Ae(ea,At),At|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,Ae(ea,At),At|=r;return yt(e,t,a,n),t.child}function m0(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Nc(e,t,n,r,a){var i=St(n)?_r:mt.current;return i=pa(t,i),ua(t,a),n=Zu(e,t,n,r,i,a),r=Xu(),e!==null&&!jt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Rn(e,t,a)):(Oe&&r&&Lu(t),t.flags|=1,yt(e,t,n,a),t.child)}function ip(e,t,n,r,a){if(St(n)){var i=!0;Hs(t)}else i=!1;if(ua(t,a),t.stateNode===null)As(e,t),u0(t,n,r),wc(t,n,r,a),r=!0;else if(e===null){var o=t.stateNode,l=t.memoizedProps;o.props=l;var c=o.context,u=n.contextType;typeof u=="object"&&u!==null?u=Kt(u):(u=St(n)?_r:mt.current,u=pa(t,u));var d=n.getDerivedStateFromProps,f=typeof d=="function"||typeof o.getSnapshotBeforeUpdate=="function";f||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==r||c!==u)&&Jf(t,o,r,u),zn=!1;var h=t.memoizedState;o.state=h,Qs(t,r,o,a),c=t.memoizedState,l!==r||h!==c||wt.current||zn?(typeof d=="function"&&(jc(t,n,d,r),c=t.memoizedState),(l=zn||Yf(t,n,l,r,h,c,u))?(f||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),o.props=r,o.state=c,o.context=u,r=l):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,Ug(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:nn(t.type,l),o.props=u,f=t.pendingProps,h=o.context,c=n.contextType,typeof c=="object"&&c!==null?c=Kt(c):(c=St(n)?_r:mt.current,c=pa(t,c));var g=n.getDerivedStateFromProps;(d=typeof g=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==f||h!==c)&&Jf(t,o,r,c),zn=!1,h=t.memoizedState,o.state=h,Qs(t,r,o,a);var x=t.memoizedState;l!==f||h!==x||wt.current||zn?(typeof g=="function"&&(jc(t,n,g,r),x=t.memoizedState),(u=zn||Yf(t,n,u,r,h,x,c)||!1)?(d||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,x,c),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,x,c)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=x),o.props=r,o.state=x,o.context=c,r=u):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return Pc(e,t,n,r,i,a)}function Pc(e,t,n,r,a,i){m0(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return a&&qf(t,n,!1),Rn(e,t,i);r=t.stateNode,Q1.current=t;var l=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=ma(t,e.child,null,i),t.child=ma(t,null,l,i)):yt(e,t,l,i),t.memoizedState=r.state,a&&qf(t,n,!0),t.child}function g0(e){var t=e.stateNode;t.pendingContext?Uf(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Uf(e,t.context,!1),Wu(e,t.containerInfo)}function sp(e,t,n,r,a){return ha(),$u(a),t.flags|=256,yt(e,t,n,r),t.child}var kc={dehydrated:null,treeContext:null,retryLane:0};function Ac(e){return{baseLanes:e,cachePool:null,transitions:null}}function y0(e,t,n){var r=t.pendingProps,a=Ve.current,i=!1,o=(t.flags&128)!==0,l;if((l=o)||(l=e!==null&&e.memoizedState===null?!1:(a&2)!==0),l?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(a|=1),Ae(Ve,a&1),e===null)return bc(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,i?(r=t.mode,i=t.child,o={mode:"hidden",children:o},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=o):i=Mo(o,r,0,null),e=Ar(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Ac(n),t.memoizedState=kc,e):Ju(t,o));if(a=e.memoizedState,a!==null&&(l=a.dehydrated,l!==null))return Y1(e,t,o,r,l,a,n);if(i){i=r.fallback,o=t.mode,a=e.child,l=a.sibling;var c={mode:"hidden",children:r.children};return!(o&1)&&t.child!==a?(r=t.child,r.childLanes=0,r.pendingProps=c,t.deletions=null):(r=nr(a,c),r.subtreeFlags=a.subtreeFlags&14680064),l!==null?i=nr(l,i):(i=Ar(i,o,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,o=e.child.memoizedState,o=o===null?Ac(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},i.memoizedState=o,i.childLanes=e.childLanes&~n,t.memoizedState=kc,r}return i=e.child,e=i.sibling,r=nr(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Ju(e,t){return t=Mo({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function us(e,t,n,r){return r!==null&&$u(r),ma(t,e.child,null,n),e=Ju(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Y1(e,t,n,r,a,i,o){if(n)return t.flags&256?(t.flags&=-257,r=bl(Error($(422))),us(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,a=t.mode,r=Mo({mode:"visible",children:r.children},a,0,null),i=Ar(i,a,o,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&ma(t,e.child,null,o),t.child.memoizedState=Ac(o),t.memoizedState=kc,i);if(!(t.mode&1))return us(e,t,o,null);if(a.data==="$!"){if(r=a.nextSibling&&a.nextSibling.dataset,r)var l=r.dgst;return r=l,i=Error($(419)),r=bl(i,r,void 0),us(e,t,o,r)}if(l=(o&e.childLanes)!==0,jt||l){if(r=nt,r!==null){switch(o&-o){case 4:a=2;break;case 16:a=8;break;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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:a=32;break;case 536870912:a=268435456;break;default:a=0}a=a&(r.suspendedLanes|o)?0:a,a!==0&&a!==i.retryLane&&(i.retryLane=a,En(e,a),ln(r,e,a,-1))}return id(),r=bl(Error($(421))),us(e,t,o,r)}return a.data==="$?"?(t.flags|=128,t.child=e.child,t=db.bind(null,e),a._reactRetry=t,null):(e=i.treeContext,Et=Yn(a.nextSibling),Rt=t,Oe=!0,an=null,e!==null&&(Ut[qt++]=Sn,Ut[qt++]=Nn,Ut[qt++]=Er,Sn=e.id,Nn=e.overflow,Er=t),t=Ju(t,r.children),t.flags|=4096,t)}function op(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Cc(e.return,t,n)}function Cl(e,t,n,r,a){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=a)}function x0(e,t,n){var r=t.pendingProps,a=r.revealOrder,i=r.tail;if(yt(e,t,r.children,n),r=Ve.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&op(e,n,t);else if(e.tag===19)op(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Ae(Ve,r),!(t.mode&1))t.memoizedState=null;else switch(a){case"forwards":for(n=t.child,a=null;n!==null;)e=n.alternate,e!==null&&Ys(e)===null&&(a=n),n=n.sibling;n=a,n===null?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),Cl(t,!1,a,n,i);break;case"backwards":for(n=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&Ys(e)===null){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}Cl(t,!0,n,null,i);break;case"together":Cl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function As(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Rn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Mr|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error($(153));
vendor: 5,451 bytes, line 40
40if(t.child!==null){for(e=t.child,n=nr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=nr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function J1(e,t,n){switch(t.tag){case 3:g0(t),ha();break;case 5:qg(t);break;case 1:St(t.type)&&Hs(t);break;case 4:Wu(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,a=t.memoizedProps.value;Ae(Zs,r._currentValue),r._currentValue=a;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Ae(Ve,Ve.current&1),t.flags|=128,null):n&t.child.childLanes?y0(e,t,n):(Ae(Ve,Ve.current&1),e=Rn(e,t,n),e!==null?e.sibling:null);Ae(Ve,Ve.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return x0(e,t,n);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),Ae(Ve,Ve.current),r)break;return null;case 22:case 23:return t.lanes=0,h0(e,t,n)}return Rn(e,t,n)}var v0,Tc,b0,C0;v0=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Tc=function(){};b0=function(e,t,n,r){var a=e.memoizedProps;if(a!==r){e=t.stateNode,Sr(yn.current);var i=null;switch(n){case"input":a=Ql(e,a),r=Ql(e,r),i=[];break;case"select":a=$e({},a,{value:void 0}),r=$e({},r,{value:void 0}),i=[];break;case"textarea":a=ec(e,a),r=ec(e,r),i=[];break;default:typeof a.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=qs)}nc(n,r);var o;n=null;for(u in a)if(!r.hasOwnProperty(u)&&a.hasOwnProperty(u)&&a[u]!=null)if(u==="style"){var l=a[u];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(pi.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var c=r[u];if(l=a!=null?a[u]:void 0,r.hasOwnProperty(u)&&c!==l&&(c!=null||l!=null))if(u==="style")if(l){for(o in l)!l.hasOwnProperty(o)||c&&c.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in c)c.hasOwnProperty(o)&&l[o]!==c[o]&&(n||(n={}),n[o]=c[o])}else n||(i||(i=[]),i.push(u,n)),n=c;else u==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,l=l?l.__html:void 0,c!=null&&l!==c&&(i=i||[]).push(u,c)):u==="children"?typeof c!="string"&&typeof c!="number"||(i=i||[]).push(u,""+c):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(pi.hasOwnProperty(u)?(c!=null&&u==="onScroll"&&Te("scroll",e),i||l===c||(i=[])):(i=i||[]).push(u,c))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};C0=function(e,t,n,r){n!==r&&(t.flags|=4)};function Ia(e,t){if(!Oe)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ct(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var a=e.child;a!==null;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags&14680064,r|=a.flags&14680064,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags,r|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function eb(e,t,n){var r=t.pendingProps;switch(Du(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ct(t),null;case 1:return St(t.type)&&Ws(),ct(t),null;case 3:return r=t.stateNode,ga(),_e(wt),_e(mt),Gu(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(ls(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,an!==null&&(Lc(an),an=null))),Tc(e,t),ct(t),null;case 5:Hu(t);var a=Sr(Ni.current);if(n=t.type,e!==null&&t.stateNode!=null)b0(e,t,n,r,a),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error($(166));return ct(t),null}if(e=Sr(yn.current),ls(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[mn]=t,r[wi]=i,e=(t.mode&1)!==0,n){case"dialog":Te("cancel",r),Te("close",r);break;case"iframe":case"object":case"embed":Te("load",r);break;case"video":case"audio":for(a=0;a<Ka.length;a++)Te(Ka[a],r);break;case"source":Te("error",r);break;case"img":case"image":case"link":Te("error",r),Te("load",r);break;case"details":Te("toggle",r);break;case"input":gf(r,i),Te("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},Te("invalid",r);break;case"textarea":xf(r,i),Te("invalid",r)}nc(n,i),a=null;for(var o in i)if(i.hasOwnProperty(o)){var l=i[o];o==="children"?typeof l=="string"?r.textContent!==l&&(i.suppressHydrationWarning!==!0&&os(r.textContent,l,e),a=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(i.suppressHydrationWarning!==!0&&os(r.textContent,l,e),a=["children",""+l]):pi.hasOwnProperty(o)&&l!=null&&o==="onScroll"&&Te("scroll",r)}switch(n){case"input":Ji(r),yf(r,i,!0);break;case"textarea":Ji(r),vf(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=qs)}r=a,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=a.nodeType===9?a:a.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Zm(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>
40",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[mn]=t,e[wi]=r,v0(e,t,!1,!1),t.stateNode=e;e:{switch(o=rc(n,r),n){case"dialog":Te("cancel",e),Te("close",e),a=r;break;case"iframe":case"object":case"embed":Te("load",e),a=r;break;case"video":case"audio":for(a=0;a<Ka.length;a++)Te(Ka[a],e);a=r;break;case"source":Te("error",e),a=r;break;case"img":case"image":case"link":Te("error",e),Te("load",e),a=r;break;case"details":Te("toggle",e),a=r;break;case"input":gf(e,r),a=Ql(e,r),Te("invalid",e);break;case"option":a=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},a=$e({},r,{value:void 0}),Te("invalid",e);break;case"textarea":xf(e,r),a=ec(e,r),Te("invalid",e);break;default:a=r}nc(n,a),l=a;for(i in l)if(l.hasOwnProperty(i)){var c=l[i];i==="style"?Ym(e,c):i==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&Xm(e,c)):i==="children"?typeof c=="string"?(n!=="textarea"||c!=="")&&hi(e,c):typeof c=="number"&&hi(e,""+c):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(pi.hasOwnProperty(i)?c!=null&&i==="onScroll"&&Te("scroll",e):c!=null&&wu(e,i,c,o))}switch(n){case"input":Ji(e),yf(e,r,!1);break;case"textarea":Ji(e),vf(e);break;case"option":r.value!=null&&e.setAttribute("value",""+ar(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?sa(e,!!r.multiple,i,!1):r.defaultValue!=null&&sa(e,!!r.multiple,r.defaultValue,!0);break;default:typeof a.onClick=="function"&&(e.onclick=qs)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return ct(t),null;case 6:if(e&&t.stateNode!=null)C0(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error($(166));if(n=Sr(Ni.current),Sr(yn.current),ls(t)){if(r=t.stateNode,n=t.memoizedProps,r[mn]=t,(i=r.nodeValue!==n)&&(e=Rt,e!==null))switch(e.tag){case 3:os(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&os(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[mn]=t,t.stateNode=r}return ct(t),null;case 13:if(_e(Ve),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Oe&&Et!==null&&t.mode&1&&!(t.flags&128))$g(),ha(),t.flags|=98560,i=!1;else if(i=ls(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error($(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error($(317));i[mn]=t}else ha(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ct(t),i=!1}else an!==null&&(Lc(an),an=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||Ve.current&1?Ye===0&&(Ye=3):id())),t.updateQueue!==null&&(t.flags|=4),ct(t),null);case 4:return ga(),Tc(e,t),e===null&&Ci(t.stateNode.containerInfo),ct(t),null;case 10:return Bu(t.type._context),ct(t),null;case 17:return St(t.type)&&Ws(),ct(t),null;case 19:if(_e(Ve),i=t.memoizedState,i===null)return ct(t),null;if(r=(t.flags&128)!==0,o=i.rendering,o===null)if(r)Ia(i,!1);else{if(Ye!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Ys(e),o!==null){for(t.flags|=128,Ia(i,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,o=i.alternate,o===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=o.childLanes,i.lanes=o.lanes,i.child=o.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=o.memoizedProps,i.memoizedState=o.memoizedState,i.updateQueue=o.updateQueue,i.type=o.type,e=o.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ae(Ve,Ve.current&1|2),t.child}e=e.sibling}i.tail!==null&&We()>xa&&(t.flags|=128,r=!0,Ia(i,!1),t.lanes=4194304)}else{if(!r)if(e=Ys(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ia(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!Oe)return ct(t),null}else 2*We()-i.renderingStartTime>xa&&n!==1073741824&&(t.flags|=128,r=!0,Ia(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=We(),t.sibling=null,n=Ve.current,Ae(Ve,r?n&1|2:n&1),t):(ct(t),null);case 22:case 23:return ad(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?At&1073741824&&(ct(t),t.subtreeFlags&6&&(t.flags|=8192)):ct(t),null;case 24:return null;case 25:return null}throw Error($(156,t.tag))}function tb(e,t){switch(Du(t),t.tag){case 1:return St(t.type)&&Ws(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;
vendor: 25,347 bytes, line 40
40case 3:return ga(),_e(wt),_e(mt),Gu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Hu(t),null;case 13:if(_e(Ve),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error($(340));ha()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return _e(Ve),null;case 4:return ga(),null;case 10:return Bu(t.type._context),null;case 22:case 23:return ad(),null;case 24:return null;default:return null}}var ds=!1,dt=!1,nb=typeof WeakSet=="function"?WeakSet:Set,X=null;function Jr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Be(e,t,r)}else n.current=null}function _c(e,t,n){try{n()}catch(r){Be(e,t,r)}}var lp=!1;function rb(e,t){if(pc=zs,e=Pg(),Fu(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,l=-1,c=-1,u=0,d=0,f=e,h=null;t:for(;;){for(var g;f!==n||a!==0&&f.nodeType!==3||(l=o+a),f!==i||r!==0&&f.nodeType!==3||(c=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(g=f.firstChild)!==null;)h=f,f=g;for(;;){if(f===e)break t;if(h===n&&++u===a&&(l=o),h===i&&++d===r&&(c=o),(g=f.nextSibling)!==null)break;f=h,h=f.parentNode}f=g}n=l===-1||c===-1?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(hc={focusedElem:e,selectionRange:n},zs=!1,X=t;X!==null;)if(t=X,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,X=e;else for(;X!==null;){t=X;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var b=x.memoizedProps,j=x.memoizedState,m=t.stateNode,p=m.getSnapshotBeforeUpdate(t.elementType===t.type?b:nn(t.type,b),j);m.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error($(163))}}catch(C){Be(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,X=e;break}X=t.return}return x=lp,lp=!1,x}function ii(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var a=r=r.next;do{if((a.tag&e)===e){var i=a.destroy;a.destroy=void 0,i!==void 0&&_c(t,n,i)}a=a.next}while(a!==r)}}function Eo(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Ec(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function j0(e){var t=e.alternate;t!==null&&(e.alternate=null,j0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[mn],delete t[wi],delete t[yc],delete t[$1],delete t[I1])),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 w0(e){return e.tag===5||e.tag===3||e.tag===4}function cp(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||w0(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 Rc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=qs));else if(r!==4&&(e=e.child,e!==null))for(Rc(e,t,n),e=e.sibling;e!==null;)Rc(e,t,n),e=e.sibling}function Mc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Mc(e,t,n),e=e.sibling;e!==null;)Mc(e,t,n),e=e.sibling}var rt=null,rn=!1;function Fn(e,t,n){for(n=n.child;n!==null;)S0(e,t,n),n=n.sibling}function S0(e,t,n){if(gn&&typeof gn.onCommitFiberUnmount=="function")try{gn.onCommitFiberUnmount(wo,n)}catch{}switch(n.tag){case 5:dt||Jr(n,t);case 6:var r=rt,a=rn;rt=null,Fn(e,t,n),rt=r,rn=a,rt!==null&&(rn?(e=rt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):rt.removeChild(n.stateNode));break;case 18:rt!==null&&(rn?(e=rt,n=n.stateNode,e.nodeType===8?hl(e.parentNode,n):e.nodeType===1&&hl(e,n),xi(e)):hl(rt,n.stateNode));break;case 4:r=rt,a=rn,rt=n.stateNode.containerInfo,rn=!0,Fn(e,t,n),rt=r,rn=a;break;case 0:case 11:case 14:case 15:if(!dt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){a=r=r.next;do{var i=a,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&_c(n,t,o),a=a.next}while(a!==r)}Fn(e,t,n);break;case 1:if(!dt&&(Jr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Be(n,t,l)}Fn(e,t,n);break;case 21:Fn(e,t,n);break;case 22:n.mode&1?(dt=(r=dt)||n.memoizedState!==null,Fn(e,t,n),dt=r):Fn(e,t,n);break;default:Fn(e,t,n)}}function up(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new nb),t.forEach(function(r){var a=fb.bind(null,e,r);n.has(r)||(n.add(r),r.then(a,a))})}}function Jt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var a=n[r];try{var i=e,o=t,l=o;e:for(;l!==null;){switch(l.tag){case 5:rt=l.stateNode,rn=!1;break e;case 3:rt=l.stateNode.containerInfo,rn=!0;break e;case 4:rt=l.stateNode.containerInfo,rn=!0;break e}l=l.return}if(rt===null)throw Error($(160));S0(i,o,a),rt=null,rn=!1;var c=a.alternate;c!==null&&(c.return=null),a.return=null}catch(u){Be(a,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)N0(t,e),t=t.sibling}function N0(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Jt(t,e),pn(e),r&4){try{ii(3,e,e.return),Eo(3,e)}catch(b){Be(e,e.return,b)}try{ii(5,e,e.return)}catch(b){Be(e,e.return,b)}}break;case 1:Jt(t,e),pn(e),r&512&&n!==null&&Jr(n,n.return);break;case 5:if(Jt(t,e),pn(e),r&512&&n!==null&&Jr(n,n.return),e.flags&32){var a=e.stateNode;try{hi(a,"")}catch(b){Be(e,e.return,b)}}if(r&4&&(a=e.stateNode,a!=null)){var i=e.memoizedProps,o=n!==null?n.memoizedProps:i,l=e.type,c=e.updateQueue;if(e.updateQueue=null,c!==null)try{l==="input"&&i.type==="radio"&&i.name!=null&&Gm(a,i),rc(l,o);var u=rc(l,i);for(o=0;o<c.length;o+=2){var d=c[o],f=c[o+1];d==="style"?Ym(a,f):d==="dangerouslySetInnerHTML"?Xm(a,f):d==="children"?hi(a,f):wu(a,d,f,u)}switch(l){case"input":Yl(a,i);break;case"textarea":Km(a,i);break;case"select":var h=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!i.multiple;var g=i.value;g!=null?sa(a,!!i.multiple,g,!1):h!==!!i.multiple&&(i.defaultValue!=null?sa(a,!!i.multiple,i.defaultValue,!0):sa(a,!!i.multiple,i.multiple?[]:"",!1))}a[wi]=i}catch(b){Be(e,e.return,b)}}break;case 6:if(Jt(t,e),pn(e),r&4){if(e.stateNode===null)throw Error($(162));a=e.stateNode,i=e.memoizedProps;try{a.nodeValue=i}catch(b){Be(e,e.return,b)}}break;case 3:if(Jt(t,e),pn(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{xi(t.containerInfo)}catch(b){Be(e,e.return,b)}break;case 4:Jt(t,e),pn(e);break;case 13:Jt(t,e),pn(e),a=e.child,a.flags&8192&&(i=a.memoizedState!==null,a.stateNode.isHidden=i,!i||a.alternate!==null&&a.alternate.memoizedState!==null||(nd=We())),r&4&&up(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(dt=(u=dt)||d,Jt(t,e),dt=u):Jt(t,e),pn(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(X=e,d=e.child;d!==null;){for(f=X=d;X!==null;){switch(h=X,g=h.child,h.tag){case 0:case 11:case 14:case 15:ii(4,h,h.return);break;case 1:Jr(h,h.return);var x=h.stateNode;if(typeof x.componentWillUnmount=="function"){r=h,n=h.return;try{t=r,x.props=t.memoizedProps,x.state=t.memoizedState,x.componentWillUnmount()}catch(b){Be(r,n,b)}}break;case 5:Jr(h,h.return);break;case 22:if(h.memoizedState!==null){fp(f);continue}}g!==null?(g.return=h,X=g):fp(f)}d=d.sibling}e:for(d=null,f=e;;){if(f.tag===5){if(d===null){d=f;try{a=f.stateNode,u?(i=a.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(l=f.stateNode,c=f.memoizedProps.style,o=c!=null&&c.hasOwnProperty("display")?c.display:null,l.style.display=Qm("display",o))}catch(b){Be(e,e.return,b)}}}else if(f.tag===6){if(d===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(b){Be(e,e.return,b)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:Jt(t,e),pn(e),r&4&&up(e);break;case 21:break;default:Jt(t,e),pn(e)}}function pn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(w0(n)){var r=n;break e}n=n.return}throw Error($(160))}switch(r.tag){case 5:var a=r.stateNode;r.flags&32&&(hi(a,""),r.flags&=-33);var i=cp(e);Mc(e,i,a);break;case 3:case 4:var o=r.stateNode.containerInfo,l=cp(e);Rc(e,l,o);break;default:throw Error($(161))}}catch(c){Be(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function ab(e,t,n){X=e,P0(e)}function P0(e,t,n){for(var r=(e.mode&1)!==0;X!==null;){var a=X,i=a.child;if(a.tag===22&&r){var o=a.memoizedState!==null||ds;if(!o){var l=a.alternate,c=l!==null&&l.memoizedState!==null||dt;l=ds;var u=dt;if(ds=o,(dt=c)&&!u)for(X=a;X!==null;)o=X,c=o.child,o.tag===22&&o.memoizedState!==null?pp(a):c!==null?(c.return=o,X=c):pp(a);for(;i!==null;)X=i,P0(i),i=i.sibling;X=a,ds=l,dt=u}dp(e)}else a.subtreeFlags&8772&&i!==null?(i.return=a,X=i):dp(e)}}function dp(e){for(;X!==null;){var t=X;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:dt||Eo(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!dt)if(n===null)r.componentDidMount();else{var a=t.elementType===t.type?n.memoizedProps:nn(t.type,n.memoizedProps);r.componentDidUpdate(a,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&Zf(t,i,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Zf(t,o,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var f=d.dehydrated;f!==null&&xi(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error($(163))}dt||t.flags&512&&Ec(t)}catch(h){Be(t,t.return,h)}}if(t===e){X=null;break}if(n=t.sibling,n!==null){n.return=t.return,X=n;break}X=t.return}}function fp(e){for(;X!==null;){var t=X;if(t===e){X=null;break}var n=t.sibling;if(n!==null){n.return=t.return,X=n;break}X=t.return}}function pp(e){for(;X!==null;){var t=X;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Eo(4,t)}catch(c){Be(t,n,c)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var a=t.return;try{r.componentDidMount()}catch(c){Be(t,a,c)}}var i=t.return;try{Ec(t)}catch(c){Be(t,i,c)}break;case 5:var o=t.return;try{Ec(t)}catch(c){Be(t,o,c)}}}catch(c){Be(t,t.return,c)}if(t===e){X=null;break}var l=t.sibling;if(l!==null){l.return=t.return,X=l;break}X=t.return}}var ib=Math.ceil,to=Vn.ReactCurrentDispatcher,ed=Vn.ReactCurrentOwner,Gt=Vn.ReactCurrentBatchConfig,ve=0,nt=null,Ze=null,st=0,At=0,ea=fr(0),Ye=0,Ti=null,Mr=0,Ro=0,td=0,si=null,Ct=null,nd=0,xa=1/0,jn=null,no=!1,Oc=null,er=null,fs=!1,Gn=null,ro=0,oi=0,Vc=null,Ts=-1,_s=0;function xt(){return ve&6?We():Ts!==-1?Ts:Ts=We()}function tr(e){return e.mode&1?ve&2&&st!==0?st&-st:B1.transition!==null?(_s===0&&(_s=ug()),_s):(e=Ne,e!==0||(e=window.event,e=e===void 0?16:yg(e.type)),e):1}function ln(e,t,n,r){if(50<oi)throw oi=0,Vc=null,Error($(185));Ii(e,n,r),(!(ve&2)||e!==nt)&&(e===nt&&(!(ve&2)&&(Ro|=n),Ye===4&&Wn(e,st)),Nt(e,r),n===1&&ve===0&&!(t.mode&1)&&(xa=We()+500,Ao&&pr()))}function Nt(e,t){var n=e.callbackNode;Bv(e,t);var r=Is(e,e===nt?st:0);if(r===0)n!==null&&jf(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&jf(n),t===1)e.tag===0?z1(hp.bind(null,e)):Fg(hp.bind(null,e)),L1(function(){!(ve&6)&&pr()}),n=null;else{switch(dg(r)){case 1:n=Au;break;case 4:n=lg;break;case 16:n=$s;break;case 536870912:n=cg;break;default:n=$s}n=O0(n,k0.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function k0(e,t){if(Ts=-1,_s=0,ve&6)throw Error($(327));var n=e.callbackNode;if(da()&&e.callbackNode!==n)return null;var r=Is(e,e===nt?st:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=ao(e,r);else{t=r;var a=ve;ve|=2;var i=T0();(nt!==e||st!==t)&&(jn=null,xa=We()+500,kr(e,t));do try{lb();break}catch(l){A0(e,l)}while(!0);zu(),to.current=i,ve=a,Ze!==null?t=0:(nt=null,st=0,t=Ye)}if(t!==0){if(t===2&&(a=lc(e),a!==0&&(r=a,t=Fc(e,a))),t===1)throw n=Ti,kr(e,0),Wn(e,r),Nt(e,We()),n;if(t===6)Wn(e,r);else{if(a=e.current.alternate,!(r&30)&&!sb(a)&&(t=ao(e,r),t===2&&(i=lc(e),i!==0&&(r=i,t=Fc(e,i))),t===1))throw n=Ti,kr(e,0),Wn(e,r),Nt(e,We()),n;switch(e.finishedWork=a,e.finishedLanes=r,t){case 0:case 1:throw Error($(345));case 2:xr(e,Ct,jn);break;case 3:if(Wn(e,r),(r&130023424)===r&&(t=nd+500-We(),10<t)){if(Is(e,0)!==0)break;if(a=e.suspendedLanes,(a&r)!==r){xt(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=gc(xr.bind(null,e,Ct,jn),t);break}xr(e,Ct,jn);break;case 4:if(Wn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,a=-1;0<r;){var o=31-on(r);i=1<<o,o=t[o],o>a&&(a=o),r&=~i}if(r=a,r=We()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*ib(r/1960))-r,10<r){e.timeoutHandle=gc(xr.bind(null,e,Ct,jn),r);break}xr(e,Ct,jn);break;case 5:xr(e,Ct,jn);break;default:throw Error($(329))}}}return Nt(e,We()),e.callbackNode===n?k0.bind(null,e):null}function Fc(e,t){var n=si;return e.current.memoizedState.isDehydrated&&(kr(e,t).flags|=256),e=ao(e,t),e!==2&&(t=Ct,Ct=n,t!==null&&Lc(t)),e}function Lc(e){Ct===null?Ct=e:Ct.push.apply(Ct,e)}function sb(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var a=n[r],i=a.getSnapshot;a=a.value;try{if(!cn(i(),a))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Wn(e,t){for(t&=~td,t&=~Ro,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-on(t),r=1<<n;e[n]=-1,t&=~r}}function hp(e){if(ve&6)throw Error($(327));da();var t=Is(e,0);if(!(t&1))return Nt(e,We()),null;var n=ao(e,t);if(e.tag!==0&&n===2){var r=lc(e);r!==0&&(t=r,n=Fc(e,r))}if(n===1)throw n=Ti,kr(e,0),Wn(e,t),Nt(e,We()),n;if(n===6)throw Error($(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,xr(e,Ct,jn),Nt(e,We()),null}function rd(e,t){var n=ve;ve|=1;try{return e(t)}finally{ve=n,ve===0&&(xa=We()+500,Ao&&pr())}}function Or(e){Gn!==null&&Gn.tag===0&&!(ve&6)&&da();var t=ve;ve|=1;var n=Gt.transition,r=Ne;try{if(Gt.transition=null,Ne=1,e)return e()}finally{Ne=r,Gt.transition=n,ve=t,!(ve&6)&&pr()}}function ad(){At=ea.current,_e(ea)}function kr(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,F1(n)),Ze!==null)for(n=Ze.return;n!==null;){var r=n;switch(Du(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Ws();break;case 3:ga(),_e(wt),_e(mt),Gu();break;case 5:Hu(r);break;case 4:ga();break;case 13:_e(Ve);break;case 19:_e(Ve);break;case 10:Bu(r.type._context);break;case 22:case 23:ad()}n=n.return}if(nt=e,Ze=e=nr(e.current,null),st=At=t,Ye=0,Ti=null,td=Ro=Mr=0,Ct=si=null,wr!==null){for(t=0;t<wr.length;t++)if(n=wr[t],r=n.interleaved,r!==null){n.interleaved=null;var a=r.next,i=n.pending;if(i!==null){var o=i.next;i.next=a,r.next=o}n.pending=r}wr=null}return e}function A0(e,t){do{var n=Ze;try{if(zu(),Ps.current=eo,Js){for(var r=De.memoizedState;r!==null;){var a=r.queue;a!==null&&(a.pending=null),r=r.next}Js=!1}if(Rr=0,tt=Xe=De=null,ai=!1,Pi=0,ed.current=null,n===null||n.return===null){Ye=1,Ti=t,Ze=null;break}e:{var i=e,o=n.return,l=n,c=t;if(t=st,l.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var u=c,d=l,f=d.tag;if(!(d.mode&1)&&(f===0||f===11||f===15)){var h=d.alternate;h?(d.updateQueue=h.updateQueue,d.memoizedState=h.memoizedState,d.lanes=h.lanes):(d.updateQueue=null,d.memoizedState=null)}var g=tp(o);if(g!==null){g.flags&=-257,np(g,o,l,i,t),g.mode&1&&ep(i,u,t),t=g,c=u;var x=t.updateQueue;if(x===null){var b=new Set;b.add(c),t.updateQueue=b}else x.add(c);break e}else{if(!(t&1)){ep(i,u,t),id();break e}c=Error($(426))}}else if(Oe&&l.mode&1){var j=tp(o);if(j!==null){!(j.flags&65536)&&(j.flags|=256),np(j,o,l,i,t),$u(ya(c,l));break e}}i=c=ya(c,l),Ye!==4&&(Ye=2),si===null?si=[i]:si.push(i),i=o;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var m=d0(i,c,t);Kf(i,m);break e;case 1:l=c;var p=i.type,y=i.stateNode;if(!(i.flags&128)&&(typeof p.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(er===null||!er.has(y)))){i.flags|=65536,t&=-t,i.lanes|=t;var C=f0(i,l,t);Kf(i,C);break e}}i=i.return}while(i!==null)}E0(n)}catch(N){t=N,Ze===n&&n!==null&&(Ze=n=n.return);continue}break}while(!0)}function T0(){var e=to.current;return to.current=eo,e===null?eo:e}function id(){(Ye===0||Ye===3||Ye===2)&&(Ye=4),nt===null||!(Mr&268435455)&&!(Ro&268435455)||Wn(nt,st)}function ao(e,t){var n=ve;ve|=2;var r=T0();(nt!==e||st!==t)&&(jn=null,kr(e,t));do try{ob();break}catch(a){A0(e,a)}while(!0);if(zu(),ve=n,to.current=r,Ze!==null)throw Error($(261));return nt=null,st=0,Ye}function ob(){for(;Ze!==null;)_0(Ze)}function lb(){for(;Ze!==null&&!Mv();)_0(Ze)}function _0(e){var t=M0(e.alternate,e,At);e.memoizedProps=e.pendingProps,t===null?E0(e):Ze=t,ed.current=null}function E0(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=tb(n,t),n!==null){n.flags&=32767,Ze=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ye=6,Ze=null;return}}else if(n=eb(n,t,At),n!==null){Ze=n;return}if(t=t.sibling,t!==null){Ze=t;return}Ze=t=e}while(t!==null);Ye===0&&(Ye=5)}function xr(e,t,n){var r=Ne,a=Gt.transition;try{Gt.transition=null,Ne=1,cb(e,t,n,r)}finally{Gt.transition=a,Ne=r}return null}function cb(e,t,n,r){do da();while(Gn!==null);if(ve&6)throw Error($(327));n=e.finishedWork;var a=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error($(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(Uv(e,i),e===nt&&(Ze=nt=null,st=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||fs||(fs=!0,O0($s,function(){return da(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=Gt.transition,Gt.transition=null;var o=Ne;Ne=1;var l=ve;ve|=4,ed.current=null,rb(e,n),N0(n,e),T1(hc),zs=!!pc,hc=pc=null,e.current=n,ab(n),Ov(),ve=l,Ne=o,Gt.transition=i}else e.current=n;if(fs&&(fs=!1,Gn=e,ro=a),i=e.pendingLanes,i===0&&(er=null),Lv(n.stateNode),Nt(e,We()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)a=t[n],r(a.value,{componentStack:a.stack,digest:a.digest});if(no)throw no=!1,e=Oc,Oc=null,e;return ro&1&&e.tag!==0&&da(),i=e.pendingLanes,i&1?e===Vc?oi++:(oi=0,Vc=e):oi=0,pr(),null}function da(){if(Gn!==null){var e=dg(ro),t=Gt.transition,n=Ne;try{if(Gt.transition=null,Ne=16>e?16:e,Gn===null)var r=!1;else{if(e=Gn,Gn=null,ro=0,ve&6)throw Error($(331));var a=ve;for(ve|=4,X=e.current;X!==null;){var i=X,o=i.child;if(X.flags&16){var l=i.deletions;if(l!==null){for(var c=0;c<l.length;c++){var u=l[c];for(X=u;X!==null;){var d=X;switch(d.tag){case 0:case 11:case 15:ii(8,d,i)}var f=d.child;if(f!==null)f.return=d,X=f;else for(;X!==null;){d=X;var h=d.sibling,g=d.return;if(j0(d),d===u){X=null;break}if(h!==null){h.return=g,X=h;break}X=g}}}var x=i.alternate;if(x!==null){var b=x.child;if(b!==null){x.child=null;do{var j=b.sibling;b.sibling=null,b=j}while(b!==null)}}X=i}}if(i.subtreeFlags&2064&&o!==null)o.return=i,X=o;else e:for(;X!==null;){if(i=X,i.flags&2048)switch(i.tag){case 0:case 11:case 15:ii(9,i,i.return)}var m=i.sibling;if(m!==null){m.return=i.return,X=m;break e}X=i.return}}var p=e.current;for(X=p;X!==null;){o=X;var y=o.child;if(o.subtreeFlags&2064&&y!==null)y.return=o,X=y;else e:for(o=p;X!==null;){if(l=X,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:Eo(9,l)}}catch(N){Be(l,l.return,N)}if(l===o){X=null;break e}var C=l.sibling;if(C!==null){C.return=l.return,X=C;break e}X=l.return}}if(ve=a,pr(),gn&&typeof gn.onPostCommitFiberRoot=="function")try{gn.onPostCommitFiberRoot(wo,e)}catch{}r=!0}return r}finally{Ne=n,Gt.transition=t}}return!1}function mp(e,t,n){t=ya(n,t),t=d0(e,t,1),e=Jn(e,t,1),t=xt(),e!==null&&(Ii(e,1,t),Nt(e,t))}function Be(e,t,n){if(e.tag===3)mp(e,e,n);else for(;t!==null;){if(t.tag===3){mp(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(er===null||!er.has(r))){e=ya(n,e),e=f0(t,e,1),t=Jn(t,e,1),e=xt(),t!==null&&(Ii(t,1,e),Nt(t,e));break}}t=t.return}}function ub(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=xt(),e.pingedLanes|=e.suspendedLanes&n,nt===e&&(st&n)===n&&(Ye===4||Ye===3&&(st&130023424)===st&&500>We()-nd?kr(e,0):td|=n),Nt(e,t)}function R0(e,t){t===0&&(e.mode&1?(t=ns,ns<<=1,!(ns&130023424)&&(ns=4194304)):t=1);var n=xt();e=En(e,t),e!==null&&(Ii(e,t,n),Nt(e,n))}function db(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),R0(e,n)}function fb(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;default:throw Error($(314))}r!==null&&r.delete(t),R0(e,n)}var M0;M0=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||wt.current)jt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return jt=!1,J1(e,t,n);jt=!!(e.flags&131072)}else jt=!1,Oe&&t.flags&1048576&&Lg(t,Ks,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;As(e,t),e=t.pendingProps;var a=pa(t,mt.current);ua(t,n),a=Zu(null,t,r,e,a,n);var i=Xu();return t.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,St(r)?(i=!0,Hs(t)):i=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,qu(t),a.updater=_o,t.stateNode=a,a._reactInternals=t,wc(t,r,e,n),t=Pc(null,t,r,!0,i,n)):(t.tag=0,Oe&&i&&Lu(t),yt(null,t,a,n),t=t.child),t;case 16:r=t.elementType;e:{switch(As(e,t),e=t.pendingProps,a=r._init,r=a(r._payload),t.type=r,a=t.tag=hb(r),e=nn(r,e),a){case 0:t=Nc(null,t,r,e,n);break e;case 1:t=ip(null,t,r,e,n);break e;case 11:t=rp(null,t,r,e,n);break e;case 14:t=ap(null,t,r,nn(r.type,e),n);break e}throw Error($(306,r,""))}return t;case 0:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:nn(r,a),Nc(e,t,r,a,n);case 1:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:nn(r,a),ip(e,t,r,a,n);case 3:e:{if(g0(t),e===null)throw Error($(387));r=t.pendingProps,i=t.memoizedState,a=i.element,Ug(e,t),Qs(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){a=ya(Error($(423)),t),t=sp(e,t,r,n,a);break e}else if(r!==a){a=ya(Error($(424)),t),t=sp(e,t,r,n,a);break e}else for(Et=Yn(t.stateNode.containerInfo.firstChild),Rt=t,Oe=!0,an=null,n=zg(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ha(),r===a){t=Rn(e,t,n);break e}yt(e,t,r,n)}t=t.child}return t;case 5:return qg(t),e===null&&bc(t),r=t.type,a=t.pendingProps,i=e!==null?e.memoizedProps:null,o=a.children,mc(r,a)?o=null:i!==null&&mc(r,i)&&(t.flags|=32),m0(e,t),yt(e,t,o,n),t.child;case 6:return e===null&&bc(t),null;case 13:return y0(e,t,n);case 4:return Wu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ma(t,null,r,n):yt(e,t,r,n),t.child;case 11:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:nn(r,a),rp(e,t,r,a,n);case 7:return yt(e,t,t.pendingProps,n),t.child;case 8:return yt(e,t,t.pendingProps.children,n),t.child;case 12:return yt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,a=t.pendingProps,i=t.memoizedProps,o=a.value,Ae(Zs,r._currentValue),r._currentValue=o,i!==null)if(cn(i.value,o)){if(i.children===a.children&&!wt.current){t=Rn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){o=i.child;for(var c=l.firstContext;c!==null;){if(c.context===r){if(i.tag===1){c=Pn(-1,n&-n),c.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}i.lanes|=n,c=i.alternate,c!==null&&(c.lanes|=n),Cc(i.return,n,t),l.lanes|=n;break}c=c.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error($(341));o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),Cc(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}yt(e,t,a.children,n),t=t.child}return t;
vendor: 10,494 bytes, line 40
40case 9:return a=t.type,r=t.pendingProps.children,ua(t,n),a=Kt(a),r=r(a),t.flags|=1,yt(e,t,r,n),t.child;case 14:return r=t.type,a=nn(r,t.pendingProps),a=nn(r.type,a),ap(e,t,r,a,n);case 15:return p0(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:nn(r,a),As(e,t),t.tag=1,St(r)?(e=!0,Hs(t)):e=!1,ua(t,n),u0(t,r,a),wc(t,r,a,n),Pc(null,t,r,!0,e,n);case 19:return x0(e,t,n);case 22:return h0(e,t,n)}throw Error($(156,t.tag))};function O0(e,t){return og(e,t)}function pb(e,t,n,r){this.tag=e,this.key=n,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=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Wt(e,t,n,r){return new pb(e,t,n,r)}function sd(e){return e=e.prototype,!(!e||!e.isReactComponent)}function hb(e){if(typeof e=="function")return sd(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Nu)return 11;if(e===Pu)return 14}return 2}function nr(e,t){var n=e.alternate;return n===null?(n=Wt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Es(e,t,n,r,a,i){var o=2;if(r=e,typeof e=="function")sd(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case qr:return Ar(n.children,a,i,t);case Su:o=8,a|=8;break;case Gl:return e=Wt(12,n,t,a|2),e.elementType=Gl,e.lanes=i,e;case Kl:return e=Wt(13,n,t,a),e.elementType=Kl,e.lanes=i,e;case Zl:return e=Wt(19,n,t,a),e.elementType=Zl,e.lanes=i,e;case qm:return Mo(n,a,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Bm:o=10;break e;case Um:o=9;break e;case Nu:o=11;break e;case Pu:o=14;break e;case In:o=16,r=null;break e}throw Error($(130,e==null?e:typeof e,""))}return t=Wt(o,n,t,a),t.elementType=e,t.type=r,t.lanes=i,t}function Ar(e,t,n,r){return e=Wt(7,e,r,t),e.lanes=n,e}function Mo(e,t,n,r){return e=Wt(22,e,r,t),e.elementType=qm,e.lanes=n,e.stateNode={isHidden:!1},e}function jl(e,t,n){return e=Wt(6,e,null,t),e.lanes=n,e}function wl(e,t,n){return t=Wt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function mb(e,t,n,r,a){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=rl(0),this.expirationTimes=rl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=rl(0),this.identifierPrefix=r,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function od(e,t,n,r,a,i,o,l,c){return e=new mb(e,t,n,l,c),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Wt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},qu(i),e}function gb(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Ur,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function V0(e){if(!e)return ir;e=e._reactInternals;e:{if(Dr(e)!==e||e.tag!==1)throw Error($(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(St(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error($(171))}if(e.tag===1){var n=e.type;if(St(n))return Vg(e,n,t)}return t}function F0(e,t,n,r,a,i,o,l,c){return e=od(n,r,!0,e,a,i,o,l,c),e.context=V0(null),n=e.current,r=xt(),a=tr(n),i=Pn(r,a),i.callback=t??null,Jn(n,i,a),e.current.lanes=a,Ii(e,a,r),Nt(e,r),e}function Oo(e,t,n,r){var a=t.current,i=xt(),o=tr(a);return n=V0(n),t.context===null?t.context=n:t.pendingContext=n,t=Pn(i,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Jn(a,t,o),e!==null&&(ln(e,a,o,i),Ns(e,a,o)),o}function io(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function gp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ld(e,t){gp(e,t),(e=e.alternate)&&gp(e,t)}function yb(){return null}var L0=typeof reportError=="function"?reportError:function(e){console.error(e)};function cd(e){this._internalRoot=e}Vo.prototype.render=cd.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error($(409));Oo(e,t,null,null)};Vo.prototype.unmount=cd.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Or(function(){Oo(null,e,null,null)}),t[_n]=null}};function Vo(e){this._internalRoot=e}Vo.prototype.unstable_scheduleHydration=function(e){if(e){var t=hg();e={blockedOn:null,target:e,priority:t};for(var n=0;n<qn.length&&t!==0&&t<qn[n].priority;n++);qn.splice(n,0,e),n===0&&gg(e)}};function ud(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Fo(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function yp(){}function xb(e,t,n,r,a){if(a){if(typeof r=="function"){var i=r;r=function(){var u=io(o);i.call(u)}}var o=F0(t,r,e,0,null,!1,!1,"",yp);return e._reactRootContainer=o,e[_n]=o.current,Ci(e.nodeType===8?e.parentNode:e),Or(),o}for(;a=e.lastChild;)e.removeChild(a);if(typeof r=="function"){var l=r;r=function(){var u=io(c);l.call(u)}}var c=od(e,0,!1,null,null,!1,!1,"",yp);return e._reactRootContainer=c,e[_n]=c.current,Ci(e.nodeType===8?e.parentNode:e),Or(function(){Oo(t,c,n,r)}),c}function Lo(e,t,n,r,a){var i=n._reactRootContainer;if(i){var o=i;if(typeof a=="function"){var l=a;a=function(){var c=io(o);l.call(c)}}Oo(t,o,e,a)}else o=xb(n,t,e,a,r);return io(o)}fg=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Ga(t.pendingLanes);n!==0&&(Tu(t,n|1),Nt(t,We()),!(ve&6)&&(xa=We()+500,pr()))}break;case 13:Or(function(){var r=En(e,1);if(r!==null){var a=xt();ln(r,e,1,a)}}),ld(e,1)}};_u=function(e){if(e.tag===13){var t=En(e,134217728);if(t!==null){var n=xt();ln(t,e,134217728,n)}ld(e,134217728)}};pg=function(e){if(e.tag===13){var t=tr(e),n=En(e,t);if(n!==null){var r=xt();ln(n,e,t,r)}ld(e,t)}};hg=function(){return Ne};mg=function(e,t){var n=Ne;try{return Ne=e,t()}finally{Ne=n}};ic=function(e,t,n){switch(t){case"input":if(Yl(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=ko(r);if(!a)throw Error($(90));Hm(r),Yl(r,a)}}}break;case"textarea":Km(e,n);break;case"select":t=n.value,t!=null&&sa(e,!!n.multiple,t,!1)}};tg=rd;ng=Or;var vb={usingClientEntryPoint:!1,Events:[Bi,Kr,ko,Jm,eg,rd]},za={findFiberByHostInstance:jr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},bb={bundleType:za.bundleType,version:za.version,rendererPackageName:za.rendererPackageName,rendererConfig:za.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Vn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=ig(e),e===null?null:e.stateNode},findFiberByHostInstance:za.findFiberByHostInstance||yb,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ps=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ps.isDisabled&&ps.supportsFiber)try{wo=ps.inject(bb),gn=ps}catch{}}Lt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=vb;Lt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ud(t))throw Error($(200));return gb(e,t,null,n)};Lt.createRoot=function(e,t){if(!ud(e))throw Error($(299));var n=!1,r="",a=L0;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(a=t.onRecoverableError)),t=od(e,1,!1,null,null,n,!1,r,a),e[_n]=t.current,Ci(e.nodeType===8?e.parentNode:e),new cd(t)};Lt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error($(188)):(e=Object.keys(e).join(","),Error($(268,e)));return e=ig(t),e=e===null?null:e.stateNode,e};Lt.flushSync=function(e){return Or(e)};Lt.hydrate=function(e,t,n){if(!Fo(t))throw Error($(200));return Lo(null,e,t,!0,n)};Lt.hydrateRoot=function(e,t,n){if(!ud(e))throw Error($(405));var r=n!=null&&n.hydratedSources||null,a=!1,i="",o=L0;if(n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=F0(t,null,e,1,n??null,a,!1,i,o),e[_n]=t.current,Ci(e),r)for(e=0;e<r.length;e++)n=r[e],a=n._getVersion,a=a(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,a]:t.mutableSourceEagerHydrationData.push(n,a);return new Vo(t)};Lt.render=function(e,t,n){if(!Fo(t))throw Error($(200));return Lo(null,e,t,!1,n)};Lt.unmountComponentAtNode=function(e){if(!Fo(e))throw Error($(40));return e._reactRootContainer?(Or(function(){Lo(null,null,e,!1,function(){e._reactRootContainer=null,e[_n]=null})}),!0):!1};Lt.unstable_batchedUpdates=rd;Lt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Fo(n))throw Error($(200));if(e==null||e._reactInternals===void 0)throw Error($(38));return Lo(e,t,n,!1,r)};Lt.version="18.3.1-next-f1338f8080-20240426";function D0(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(D0)}catch(e){console.error(e)}}D0(),Dm.exports=Lt;
vendor: 32,725 bytes, lines 40-48
40var Cb=Dm.exports,xp=Cb;Wl.createRoot=xp.createRoot,Wl.hydrateRoot=xp.hydrateRoot;const dd=R.createContext({});function fd(e){const t=R.useRef(null);return t.current===null&&(t.current=e()),t.current}const Do=R.createContext(null),pd=R.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class jb extends R.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function wb({children:e,isPresent:t}){const n=R.useId(),r=R.useRef(null),a=R.useRef({width:0,height:0,top:0,left:0}),{nonce:i}=R.useContext(pd);return R.useInsertionEffect(()=>{const{width:o,height:l,top:c,left:u}=a.current;if(t||!r.current||!o||!l)return;r.current.dataset.motionPopId=n;const d=document.createElement("style");return i&&(d.nonce=i),document.head.appendChild(d),d.sheet&&d.sheet.insertRule(`
41          [data-motion-pop-id="${n}"] {
42            position: absolute !important;
43            width: ${o}px !important;
44            height: ${l}px !important;
45            top: ${c}px !important;
46            left: ${u}px !important;
47          }
48        `),()=>{document.head.removeChild(d)}},[t]),s.jsx(jb,{isPresent:t,childRef:r,sizeRef:a,children:R.cloneElement(e,{ref:r})})}const Sb=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:a,presenceAffectsLayout:i,mode:o})=>{const l=fd(Nb),c=R.useId(),u=R.useCallback(f=>{l.set(f,!0);for(const h of l.values())if(!h)return;r&&r()},[l,r]),d=R.useMemo(()=>({id:c,initial:t,isPresent:n,custom:a,onExitComplete:u,register:f=>(l.set(f,!1),()=>l.delete(f))}),i?[Math.random(),u]:[n,u]);return R.useMemo(()=>{l.forEach((f,h)=>l.set(h,!1))},[n]),R.useEffect(()=>{!n&&!l.size&&r&&r()},[n]),o==="popLayout"&&(e=s.jsx(wb,{isPresent:n,children:e})),s.jsx(Do.Provider,{value:d,children:e})};function Nb(){return new Map}function $0(e=!0){const t=R.useContext(Do);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:a}=t,i=R.useId();R.useEffect(()=>{e&&a(i)},[e]);const o=R.useCallback(()=>e&&r&&r(i),[i,r,e]);return!n&&r?[!1,o]:[!0]}const hs=e=>e.key||"";function vp(e){const t=[];return R.Children.forEach(e,n=>{R.isValidElement(n)&&t.push(n)}),t}const hd=typeof window<"u",I0=hd?R.useLayoutEffect:R.useEffect,he=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:a=!0,mode:i="sync",propagate:o=!1})=>{const[l,c]=$0(o),u=R.useMemo(()=>vp(e),[e]),d=o&&!l?[]:u.map(hs),f=R.useRef(!0),h=R.useRef(u),g=fd(()=>new Map),[x,b]=R.useState(u),[j,m]=R.useState(u);I0(()=>{f.current=!1,h.current=u;for(let C=0;C<j.length;C++){const N=hs(j[C]);d.includes(N)?g.delete(N):g.get(N)!==!0&&g.set(N,!1)}},[j,d.length,d.join("-")]);const p=[];if(u!==x){let C=[...u];for(let N=0;N<j.length;N++){const P=j[N],O=hs(P);d.includes(O)||(C.splice(N,0,P),p.push(P))}i==="wait"&&p.length&&(C=p),m(vp(C)),b(u);return}const{forceRender:y}=R.useContext(dd);return s.jsx(s.Fragment,{children:j.map(C=>{const N=hs(C),P=o&&!l?!1:u===j||d.includes(N),O=()=>{if(g.has(N))g.set(N,!0);else return;let V=!0;g.forEach(B=>{B||(V=!1)}),V&&(y==null||y(),m(h.current),o&&(c==null||c()),r&&r())};return s.jsx(Sb,{isPresent:P,initial:!f.current||n?void 0:!1,custom:P?void 0:t,presenceAffectsLayout:a,mode:i,onExitComplete:P?void 0:O,children:C},N)})})},Mt=e=>e;let z0=Mt;function md(e){let t;return()=>(t===void 0&&(t=e()),t)}const va=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},kn=e=>e*1e3,An=e=>e/1e3,Pb={useManualTiming:!1};function kb(e){let t=new Set,n=new Set,r=!1,a=!1;const i=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function l(u){i.has(u)&&(c.schedule(u),e()),u(o)}const c={schedule:(u,d=!1,f=!1)=>{const g=f&&r?t:n;return d&&i.add(u),g.has(u)||g.add(u),u},cancel:u=>{n.delete(u),i.delete(u)},process:u=>{if(o=u,r){a=!0;return}r=!0,[t,n]=[n,t],t.forEach(l),t.clear(),r=!1,a&&(a=!1,c.process(u))}};return c}const ms=["read","resolveKeyframes","update","preRender","render","postRender"],Ab=40;function B0(e,t){let n=!1,r=!0;const a={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,o=ms.reduce((m,p)=>(m[p]=kb(i),m),{}),{read:l,resolveKeyframes:c,update:u,preRender:d,render:f,postRender:h}=o,g=()=>{const m=performance.now();n=!1,a.delta=r?1e3/60:Math.max(Math.min(m-a.timestamp,Ab),1),a.timestamp=m,a.isProcessing=!0,l.process(a),c.process(a),u.process(a),d.process(a),f.process(a),h.process(a),a.isProcessing=!1,n&&t&&(r=!1,e(g))},x=()=>{n=!0,r=!0,a.isProcessing||e(g)};return{schedule:ms.reduce((m,p)=>{const y=o[p];return m[p]=(C,N=!1,P=!1)=>(n||x(),y.schedule(C,N,P)),m},{}),cancel:m=>{for(let p=0;p<ms.length;p++)o[ms[p]].cancel(m)},state:a,steps:o}}const{schedule:Ee,cancel:sr,state:at,steps:Sl}=B0(typeof requestAnimationFrame<"u"?requestAnimationFrame:Mt,!0),U0=R.createContext({strict:!1}),bp={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},ba={};for(const e in bp)ba[e]={isEnabled:t=>bp[e].some(n=>!!t[n])};function Tb(e){for(const t in e)ba[t]={...ba[t],...e[t]}}const _b=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function so(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||_b.has(e)}let q0=e=>!so(e);function Eb(e){e&&(q0=t=>t.startsWith("on")?!so(t):e(t))}try{Eb(require("@emotion/is-prop-valid").default)}catch{}function Rb(e,t,n){const r={};for(const a in e)a==="values"&&typeof e.values=="object"||(q0(a)||n===!0&&so(a)||!t&&!so(a)||e.draggable&&a.startsWith("onDrag"))&&(r[a]=e[a]);return r}function Mb(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,a)=>a==="create"?e:(t.has(a)||t.set(a,e(a)),t.get(a))})}const $o=R.createContext({});function _i(e){return typeof e=="string"||Array.isArray(e)}function Io(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const gd=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],yd=["initial",...gd];function zo(e){return Io(e.animate)||yd.some(t=>_i(e[t]))}function W0(e){return!!(zo(e)||e.variants)}function Ob(e,t){if(zo(e)){const{initial:n,animate:r}=e;return{initial:n===!1||_i(n)?n:void 0,animate:_i(r)?r:void 0}}return e.inherit!==!1?t:{}}function Vb(e){const{initial:t,animate:n}=Ob(e,R.useContext($o));return R.useMemo(()=>({initial:t,animate:n}),[Cp(t),Cp(n)])}function Cp(e){return Array.isArray(e)?e.join(" "):e}const Fb=Symbol.for("motionComponentSymbol");function ta(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Lb(e,t,n){return R.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):ta(n)&&(n.current=r))},[t])}const xd=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Db="framerAppearId",H0="data-"+xd(Db),{schedule:vd}=B0(queueMicrotask,!1),G0=R.createContext({});function $b(e,t,n,r,a){var i,o;const{visualElement:l}=R.useContext($o),c=R.useContext(U0),u=R.useContext(Do),d=R.useContext(pd).reducedMotion,f=R.useRef(null);r=r||c.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:l,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:d}));const h=f.current,g=R.useContext(G0);h&&!h.projection&&a&&(h.type==="html"||h.type==="svg")&&Ib(f.current,n,a,g);const x=R.useRef(!1);R.useInsertionEffect(()=>{h&&x.current&&h.update(n,u)});const b=n[H0],j=R.useRef(!!b&&!(!((i=window.MotionHandoffIsComplete)===null||i===void 0)&&i.call(window,b))&&((o=window.MotionHasOptimisedAnimation)===null||o===void 0?void 0:o.call(window,b)));return I0(()=>{h&&(x.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),vd.render(h.render),j.current&&h.animationState&&h.animationState.animateChanges())}),R.useEffect(()=>{h&&(!j.current&&h.animationState&&h.animationState.animateChanges(),j.current&&(queueMicrotask(()=>{var m;(m=window.MotionHandoffMarkAsComplete)===null||m===void 0||m.call(window,b)}),j.current=!1))}),h}function Ib(e,t,n,r){const{layoutId:a,layout:i,drag:o,dragConstraints:l,layoutScroll:c,layoutRoot:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:K0(e.parent)),e.projection.setOptions({layoutId:a,layout:i,alwaysMeasureLayout:!!o||l&&ta(l),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,layoutScroll:c,layoutRoot:u})}function K0(e){if(e)return e.options.allowProjection!==!1?e.projection:K0(e.parent)}function zb({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:a}){var i,o;e&&Tb(e);function l(u,d){let f;const h={...R.useContext(pd),...u,layoutId:Bb(u)},{isStatic:g}=h,x=Vb(u),b=r(u,g);if(!g&&hd){Ub();const j=qb(h);f=j.MeasureLayout,x.visualElement=$b(a,b,h,t,j.ProjectionNode)}return s.jsxs($o.Provider,{value:x,children:[f&&x.visualElement?s.jsx(f,{visualElement:x.visualElement,...h}):null,n(a,u,Lb(b,x.visualElement,d),b,g,x.visualElement)]})}l.displayName=`motion.${typeof a=="string"?a:`create(${(o=(i=a.displayName)!==null&&i!==void 0?i:a.name)!==null&&o!==void 0?o:""})`}`;const c=R.forwardRef(l);return c[Fb]=a,c}function Bb({layoutId:e}){const t=R.useContext(dd).id;return t&&e!==void 0?t+"-"+e:e}function Ub(e,t){R.useContext(U0).strict}function qb(e){const{drag:t,layout:n}=ba;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const Wb=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function bd(e){return typeof e!="string"||e.includes("-")?!1:!!(Wb.indexOf(e)>-1||/[A-Z]/u.test(e))}function jp(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Cd(e,t,n,r){if(typeof t=="function"){const[a,i]=jp(r);t=t(n!==void 0?n:e.custom,a,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[a,i]=jp(r);t=t(n!==void 0?n:e.custom,a,i)}return t}const Dc=e=>Array.isArray(e),Hb=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),Gb=e=>Dc(e)?e[e.length-1]||0:e,ht=e=>!!(e&&e.getVelocity);function Rs(e){const t=ht(e)?e.get():e;return Hb(t)?t.toValue():t}function Kb({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,a,i){const o={latestValues:Zb(r,a,i,e),renderState:t()};return n&&(o.onMount=l=>n({props:r,current:l,...o}),o.onUpdate=l=>n(l)),o}const Z0=e=>(t,n)=>{const r=R.useContext($o),a=R.useContext(Do),i=()=>Kb(e,t,r,a);return n?i():fd(i)};function Zb(e,t,n,r){const a={},i=r(e,{});for(const h in i)a[h]=Rs(i[h]);let{initial:o,animate:l}=e;const c=zo(e),u=W0(e);t&&u&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),l===void 0&&(l=t.animate));let d=n?n.initial===!1:!1;d=d||o===!1;const f=d?l:o;if(f&&typeof f!="boolean"&&!Io(f)){const h=Array.isArray(f)?f:[f];for(let g=0;g<h.length;g++){const x=Cd(e,h[g]);if(x){const{transitionEnd:b,transition:j,...m}=x;for(const p in m){let y=m[p];if(Array.isArray(y)){const C=d?y.length-1:0;y=y[C]}y!==null&&(a[p]=y)}for(const p in b)a[p]=b[p]}}}return a}const Ta=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],$r=new Set(Ta),X0=e=>t=>typeof t=="string"&&t.startsWith(e),Q0=X0("--"),Xb=X0("var(--"),jd=e=>Xb(e)?Qb.test(e.split("/*")[0].trim()):!1,Qb=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Y0=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Mn=(e,t,n)=>n>t?t:n<e?e:n,_a={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Ei={..._a,transform:e=>Mn(0,1,e)},gs={..._a,default:1},qi=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),$n=qi("deg"),xn=qi("%"),se=qi("px"),Yb=qi("vh"),Jb=qi("vw"),wp={...xn,parse:e=>xn.parse(e)/100,transform:e=>xn.transform(e*100)},e2={borderWidth:se,borderTopWidth:se,borderRightWidth:se,borderBottomWidth:se,borderLeftWidth:se,borderRadius:se,radius:se,borderTopLeftRadius:se,borderTopRightRadius:se,borderBottomRightRadius:se,borderBottomLeftRadius:se,width:se,maxWidth:se,height:se,maxHeight:se,top:se,right:se,bottom:se,left:se,padding:se,paddingTop:se,paddingRight:se,paddingBottom:se,paddingLeft:se,margin:se,marginTop:se,marginRight:se,marginBottom:se,marginLeft:se,backgroundPositionX:se,backgroundPositionY:se},t2={rotate:$n,rotateX:$n,rotateY:$n,rotateZ:$n,scale:gs,scaleX:gs,scaleY:gs,scaleZ:gs,skew:$n,skewX:$n,skewY:$n,distance:se,translateX:se,translateY:se,translateZ:se,x:se,y:se,z:se,perspective:se,transformPerspective:se,opacity:Ei,originX:wp,originY:wp,originZ:se},Sp={..._a,transform:Math.round},wd={...e2,...t2,zIndex:Sp,size:se,fillOpacity:Ei,strokeOpacity:Ei,numOctaves:Sp},n2={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},r2=Ta.length;function a2(e,t,n){let r="",a=!0;for(let i=0;i<r2;i++){const o=Ta[i],l=e[o];if(l===void 0)continue;let c=!0;if(typeof l=="number"?c=l===(o.startsWith("scale")?1:0):c=parseFloat(l)===0,!c||n){const u=Y0(l,wd[o]);if(!c){a=!1;const d=n2[o]||o;r+=`${d}(${u}) `}n&&(t[o]=u)}}return r=r.trim(),n?r=n(t,a?"":r):a&&(r="none"),r}function Sd(e,t,n){const{style:r,vars:a,transformOrigin:i}=e;let o=!1,l=!1;for(const c in t){const u=t[c];if($r.has(c)){o=!0;continue}else if(Q0(c)){a[c]=u;continue}else{const d=Y0(u,wd[c]);c.startsWith("origin")?(l=!0,i[c]=d):r[c]=d}}if(t.transform||(o||n?r.transform=a2(t,e.transform,n):r.transform&&(r.transform="none")),l){const{originX:c="50%",originY:u="50%",originZ:d=0}=i;r.transformOrigin=`${c} ${u} ${d}`}}const i2={offset:"stroke-dashoffset",array:"stroke-dasharray"},s2={offset:"strokeDashoffset",array:"strokeDasharray"};function o2(e,t,n=1,r=0,a=!0){e.pathLength=1;const i=a?i2:s2;e[i.offset]=se.transform(-r);const o=se.transform(t),l=se.transform(n);e[i.array]=`${o} ${l}`}function Np(e,t,n){return typeof e=="string"?e:se.transform(t+n*e)}function l2(e,t,n){const r=Np(t,e.x,e.width),a=Np(n,e.y,e.height);return`${r} ${a}`}function Nd(e,{attrX:t,attrY:n,attrScale:r,originX:a,originY:i,pathLength:o,pathSpacing:l=1,pathOffset:c=0,...u},d,f){if(Sd(e,u,f),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:h,style:g,dimensions:x}=e;h.transform&&(x&&(g.transform=h.transform),delete h.transform),x&&(a!==void 0||i!==void 0||g.transform)&&(g.transformOrigin=l2(x,a!==void 0?a:.5,i!==void 0?i:.5)),t!==void 0&&(h.x=t),n!==void 0&&(h.y=n),r!==void 0&&(h.scale=r),o!==void 0&&o2(h,o,l,c,!1)}const Pd=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),J0=()=>({...Pd(),attrs:{}}),kd=e=>typeof e=="string"&&e.toLowerCase()==="svg";function ey(e,{style:t,vars:n},r,a){Object.assign(e.style,t,a&&a.getProjectionStyles(r));for(const i in n)e.style.setProperty(i,n[i])}const ty=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function ny(e,t,n,r){ey(e,t,void 0,r);for(const a in t.attrs)e.setAttribute(ty.has(a)?a:xd(a),t.attrs[a])}const oo={};function c2(e){Object.assign(oo,e)}function ry(e,{layout:t,layoutId:n}){return $r.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!oo[e]||e==="opacity")}function Ad(e,t,n){var r;const{style:a}=e,i={};for(const o in a)(ht(a[o])||t.style&&ht(t.style[o])||ry(o,e)||((r=n==null?void 0:n.getValue(o))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(i[o]=a[o]);return i}function ay(e,t,n){const r=Ad(e,t,n);for(const a in e)if(ht(e[a])||ht(t[a])){const i=Ta.indexOf(a)!==-1?"attr"+a.charAt(0).toUpperCase()+a.substring(1):a;r[i]=e[a]}return r}function u2(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}const Pp=["x","y","width","height","cx","cy","r"],d2={useVisualState:Z0({scrapeMotionValuesFromProps:ay,createRenderState:J0,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:a})=>{if(!n)return;let i=!!e.drag;if(!i){for(const l in a)if($r.has(l)){i=!0;break}}if(!i)return;let o=!t;if(t)for(let l=0;l<Pp.length;l++){const c=Pp[l];e[c]!==t[c]&&(o=!0)}o&&Ee.read(()=>{u2(n,r),Ee.render(()=>{Nd(r,a,kd(n.tagName),e.transformTemplate),ny(n,r)})})}})},f2={useVisualState:Z0({scrapeMotionValuesFromProps:Ad,createRenderState:Pd})};function iy(e,t,n){for(const r in t)!ht(t[r])&&!ry(r,n)&&(e[r]=t[r])}function p2({transformTemplate:e},t){return R.useMemo(()=>{const n=Pd();return Sd(n,t,e),Object.assign({},n.vars,n.style)},[t])}function h2(e,t){const n=e.style||{},r={};return iy(r,n,e),Object.assign(r,p2(e,t)),r}function m2(e,t){const n={},r=h2(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}function g2(e,t,n,r){const a=R.useMemo(()=>{const i=J0();return Nd(i,t,kd(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};iy(i,e.style,e),a.style={...i,...a.style}}return a}function y2(e=!1){return(n,r,a,{latestValues:i},o)=>{const c=(bd(n)?g2:m2)(r,i,o,n),u=Rb(r,typeof n=="string",e),d=n!==R.Fragment?{...u,...c,ref:a}:{},{children:f}=r,h=R.useMemo(()=>ht(f)?f.get():f,[f]);return R.createElement(n,{...d,children:h})}}function x2(e,t){return function(r,{forwardMotionProps:a}={forwardMotionProps:!1}){const o={...bd(r)?d2:f2,preloadedFeatures:e,useRender:y2(a),createVisualElement:t,Component:r};return zb(o)}}function sy(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function Bo(e,t,n){const r=e.getProps();return Cd(r,t,n!==void 0?n:r.custom,e)}const v2=md(()=>window.ScrollTimeline!==void 0);class b2{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(a=>{if(v2()&&a.attachTimeline)return a.attachTimeline(t);if(typeof n=="function")return n(a)});return()=>{r.forEach((a,i)=>{a&&a(),this.animations[i].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class C2 extends b2{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function Td(e,t){return e?e[t]||e.default||e:void 0}const $c=2e4;function oy(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<$c;)t+=n,r=e.next(t);return t>=$c?1/0:t}function _d(e){return typeof e=="function"}function kp(e,t){e.timeline=t,e.onfinish=null}const Ed=e=>Array.isArray(e)&&typeof e[0]=="number",j2={linearEasing:void 0};function w2(e,t){const n=md(e);return()=>{var r;return(r=j2[t])!==null&&r!==void 0?r:n()}}const lo=w2(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),ly=(e,t,n=10)=>{let r="";const a=Math.max(Math.round(t/n),2);for(let i=0;i<a;i++)r+=e(va(0,a-1,i))+", ";return`linear(${r.substring(0,r.length-2)})`};function cy(e){return!!(typeof e=="function"&&lo()||!e||typeof e=="string"&&(e in Ic||lo())||Ed(e)||Array.isArray(e)&&e.every(cy))}const Za=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Ic={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Za([0,.65,.55,1]),circOut:Za([.55,0,1,.45]),backIn:Za([.31,.01,.66,-.59]),backOut:Za([.33,1.53,.69,.99])};function uy(e,t){if(e)return typeof e=="function"&&lo()?ly(e,t):Ed(e)?Za(e):Array.isArray(e)?e.map(n=>uy(n,t)||Ic.easeOut):Ic[e]}const en={x:!1,y:!1};function dy(){return en.x||en.y}function S2(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let a=document;const i=(r=void 0)!==null&&r!==void 0?r:a.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}function fy(e,t){const n=S2(e),r=new AbortController,a={passive:!0,...t,signal:r.signal};return[n,a,()=>r.abort()]}function Ap(e){return t=>{t.pointerType==="touch"||dy()||e(t)}}function N2(e,t,n={}){const[r,a,i]=fy(e,n),o=Ap(l=>{const{target:c}=l,u=t(l);if(typeof u!="function"||!c)return;const d=Ap(f=>{u(f),c.removeEventListener("pointerleave",d)});c.addEventListener("pointerleave",d,a)});return r.forEach(l=>{l.addEventListener("pointerenter",o,a)}),i}const py=(e,t)=>t?e===t?!0:py(e,t.parentElement):!1,Rd=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,P2=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function k2(e){return P2.has(e.tagName)||e.tabIndex!==-1}const Xa=new WeakSet;function Tp(e){return t=>{t.key==="Enter"&&e(t)}}function Nl(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const A2=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Tp(()=>{if(Xa.has(n))return;Nl(n,"down");const a=Tp(()=>{Nl(n,"up")}),i=()=>Nl(n,"cancel");n.addEventListener("keyup",a,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function _p(e){return Rd(e)&&!dy()}function T2(e,t,n={}){const[r,a,i]=fy(e,n),o=l=>{const c=l.currentTarget;if(!_p(l)||Xa.has(c))return;Xa.add(c);const u=t(l),d=(g,x)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",h),!(!_p(g)||!Xa.has(c))&&(Xa.delete(c),typeof u=="function"&&u(g,{success:x}))},f=g=>{d(g,n.useGlobalTarget||py(c,g.target))},h=g=>{d(g,!1)};window.addEventListener("pointerup",f,a),window.addEventListener("pointercancel",h,a)};return r.forEach(l=>{!k2(l)&&l.getAttribute("tabindex")===null&&(l.tabIndex=0),(n.useGlobalTarget?window:l).addEventListener("pointerdown",o,a),l.addEventListener("focus",u=>A2(u,a),a)}),i}function _2(e){return e==="x"||e==="y"?en[e]?null:(en[e]=!0,()=>{en[e]=!1}):en.x||en.y?null:(en.x=en.y=!0,()=>{en.x=en.y=!1})}const hy=new Set(["width","height","top","left","right","bottom",...Ta]);let Ms;function E2(){Ms=void 0}const vn={now:()=>(Ms===void 0&&vn.set(at.isProcessing||Pb.useManualTiming?at.timestamp:performance.now()),Ms),set:e=>{Ms=e,queueMicrotask(E2)}};function Md(e,t){e.indexOf(t)===-1&&e.push(t)}function Od(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Vd{constructor(){this.subscriptions=[]}add(t){return Md(this.subscriptions,t),()=>Od(this.subscriptions,t)}notify(t,n,r){const a=this.subscriptions.length;if(a)if(a===1)this.subscriptions[0](t,n,r);else for(let i=0;i<a;i++){const o=this.subscriptions[i];o&&o(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function my(e,t){return t?e*(1e3/t):0}const Ep=30,R2=e=>!isNaN(parseFloat(e));class M2{constructor(t,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,a=!0)=>{const i=vn.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),a&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=vn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=R2(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Vd);const r=this.events[t].add(n);return t==="change"?()=>{r(),Ee.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=vn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Ep)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Ep);return my(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Ri(e,t){return new M2(e,t)}function O2(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Ri(n))}function V2(e,t){const n=Bo(e,t);let{transitionEnd:r={},transition:a={},...i}=n||{};i={...i,...r};for(const o in i){const l=Gb(i[o]);O2(e,o,l)}}function F2(e){return!!(ht(e)&&e.add)}function zc(e,t){const n=e.getValue("willChange");if(F2(n))return n.add(t)}function gy(e){return e.props[H0]}const yy=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,L2=1e-7,D2=12;function $2(e,t,n,r,a){let i,o,l=0;do o=t+(n-t)/2,i=yy(o,r,a)-e,i>0?n=o:t=o;while(Math.abs(i)>L2&&++l<D2);return o}function Wi(e,t,n,r){if(e===t&&n===r)return Mt;const a=i=>$2(i,0,1,e,n);return i=>i===0||i===1?i:yy(a(i),t,r)}const xy=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,vy=e=>t=>1-e(1-t),by=Wi(.33,1.53,.69,.99),Fd=vy(by),Cy=xy(Fd),jy=e=>(e*=2)<1?.5*Fd(e):.5*(2-Math.pow(2,-10*(e-1))),Ld=e=>1-Math.sin(Math.acos(e)),wy=vy(Ld),Sy=xy(Ld),Ny=e=>/^0[^.\s]+$/u.test(e);function I2(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Ny(e):!0}const li=e=>Math.round(e*1e5)/1e5,Dd=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function z2(e){return e==null}const B2=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,$d=(e,t)=>n=>!!(typeof n=="string"&&B2.test(n)&&n.startsWith(e)||t&&!z2(n)&&Object.prototype.hasOwnProperty.call(n,t)),Py=(e,t,n)=>r=>{if(typeof r!="string")return r;const[a,i,o,l]=r.match(Dd);return{[e]:parseFloat(a),[t]:parseFloat(i),[n]:parseFloat(o),alpha:l!==void 0?parseFloat(l):1}},U2=e=>Mn(0,255,e),Pl={..._a,transform:e=>Math.round(U2(e))},Nr={test:$d("rgb","red"),parse:Py("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Pl.transform(e)+", "+Pl.transform(t)+", "+Pl.transform(n)+", "+li(Ei.transform(r))+")"};function q2(e){let t="",n="",r="",a="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),a=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),a=e.substring(4,5),t+=t,n+=n,r+=r,a+=a),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:a?parseInt(a,16)/255:1}}const Bc={test:$d("#"),parse:q2,transform:Nr.transform},na={test:$d("hsl","hue"),parse:Py("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+xn.transform(li(t))+", "+xn.transform(li(n))+", "+li(Ei.transform(r))+")"},ut={test:e=>Nr.test(e)||Bc.test(e)||na.test(e),parse:e=>Nr.test(e)?Nr.parse(e):na.test(e)?na.parse(e):Bc.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Nr.transform(e):na.transform(e)},W2=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function H2(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Dd))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(W2))===null||n===void 0?void 0:n.length)||0)>0}const ky="number",Ay="color",G2="var",K2="var(",Rp="${}",Z2=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Mi(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},a=[];let i=0;const l=t.replace(Z2,c=>(ut.test(c)?(r.color.push(i),a.push(Ay),n.push(ut.parse(c))):c.startsWith(K2)?(r.var.push(i),a.push(G2),n.push(c)):(r.number.push(i),a.push(ky),n.push(parseFloat(c))),++i,Rp)).split(Rp);return{values:n,split:l,indexes:r,types:a}}function Ty(e){return Mi(e).values}function _y(e){const{split:t,types:n}=Mi(e),r=t.length;return a=>{let i="";for(let o=0;o<r;o++)if(i+=t[o],a[o]!==void 0){const l=n[o];l===ky?i+=li(a[o]):l===Ay?i+=ut.transform(a[o]):i+=a[o]}return i}}const X2=e=>typeof e=="number"?0:e;function Q2(e){const t=Ty(e);return _y(e)(t.map(X2))}const or={test:H2,parse:Ty,createTransformer:_y,getAnimatableNone:Q2},Y2=new Set(["brightness","contrast","saturate","opacity"]);function J2(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Dd)||[];if(!r)return e;const a=n.replace(r,"");let i=Y2.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+a+")"}const eC=/\b([a-z-]*)\(.*?\)/gu,Uc={...or,getAnimatableNone:e=>{const t=e.match(eC);return t?t.map(J2).join(" "):e}},tC={...wd,color:ut,backgroundColor:ut,outlineColor:ut,fill:ut,stroke:ut,borderColor:ut,borderTopColor:ut,borderRightColor:ut,borderBottomColor:ut,borderLeftColor:ut,filter:Uc,WebkitFilter:Uc},Id=e=>tC[e];function Ey(e,t){let n=Id(e);return n!==Uc&&(n=or),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const nC=new Set(["auto","none","0"]);function rC(e,t,n){let r=0,a;for(;r<e.length&&!a;){const i=e[r];typeof i=="string"&&!nC.has(i)&&Mi(i).values.length&&(a=e[r]),r++}if(a&&n)for(const i of t)e[i]=Ey(n,a)}const Mp=e=>e===_a||e===se,Op=(e,t)=>parseFloat(e.split(", ")[t]),Vp=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const a=r.match(/^matrix3d\((.+)\)$/u);if(a)return Op(a[1],t);{const i=r.match(/^matrix\((.+)\)$/u);return i?Op(i[1],e):0}},aC=new Set(["x","y","z"]),iC=Ta.filter(e=>!aC.has(e));function sC(e){const t=[];return iC.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Ca={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:Vp(4,13),y:Vp(5,14)};Ca.translateX=Ca.x;Ca.translateY=Ca.y;const Tr=new Set;let qc=!1,Wc=!1;function Ry(){if(Wc){const e=Array.from(Tr).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const a=sC(r);a.length&&(n.set(r,a),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const a=n.get(r);a&&a.forEach(([i,o])=>{var l;(l=r.getValue(i))===null||l===void 0||l.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}
vendor: 14,956 bytes, line 48
48Wc=!1,qc=!1,Tr.forEach(e=>e.complete()),Tr.clear()}function My(){Tr.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Wc=!0)})}function oC(){My(),Ry()}class zd{constructor(t,n,r,a,i,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=a,this.element=i,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Tr.add(this),qc||(qc=!0,Ee.read(My),Ee.resolveKeyframes(Ry))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:a}=this;for(let i=0;i<t.length;i++)if(t[i]===null)if(i===0){const o=a==null?void 0:a.get(),l=t[t.length-1];if(o!==void 0)t[0]=o;else if(r&&n){const c=r.readValue(n,l);c!=null&&(t[0]=c)}t[0]===void 0&&(t[0]=l),a&&o===void 0&&a.set(t[0])}else t[i]=t[i-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Tr.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Tr.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Oy=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),lC=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function cC(e){const t=lC.exec(e);if(!t)return[,];const[,n,r,a]=t;return[`--${n??r}`,a]}function Vy(e,t,n=1){const[r,a]=cC(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const o=i.trim();return Oy(o)?parseFloat(o):o}return jd(a)?Vy(a,t,n+1):a}const Fy=e=>t=>t.test(e),uC={test:e=>e==="auto",parse:e=>e},Ly=[_a,se,xn,$n,Jb,Yb,uC],Fp=e=>Ly.find(Fy(e));class Dy extends zd{constructor(t,n,r,a,i){super(t,n,r,a,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let u=t[c];if(typeof u=="string"&&(u=u.trim(),jd(u))){const d=Vy(u,n.current);d!==void 0&&(t[c]=d),c===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!hy.has(r)||t.length!==2)return;const[a,i]=t,o=Fp(a),l=Fp(i);if(o!==l)if(Mp(o)&&Mp(l))for(let c=0;c<t.length;c++){const u=t[c];typeof u=="string"&&(t[c]=parseFloat(u))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let a=0;a<t.length;a++)I2(t[a])&&r.push(a);r.length&&rC(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Ca[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const a=n[n.length-1];a!==void 0&&t.getValue(r,a).jump(a,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:a}=this;if(!n||!n.current)return;const i=n.getValue(r);i&&i.jump(this.measuredOrigin,!1);const o=a.length-1,l=a[o];a[o]=Ca[r](n.measureViewportBox(),window.getComputedStyle(n.current)),l!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=l),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([c,u])=>{n.getValue(c).set(u)}),this.resolveNoneKeyframes()}}const Lp=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(or.test(e)||e==="0")&&!e.startsWith("url("));function dC(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function fC(e,t,n,r){const a=e[0];if(a===null)return!1;if(t==="display"||t==="visibility")return!0;const i=e[e.length-1],o=Lp(a,t),l=Lp(i,t);return!o||!l?!1:dC(e)||(n==="spring"||_d(n))&&r}const pC=e=>e!==null;function Uo(e,{repeat:t,repeatType:n="loop"},r){const a=e.filter(pC),i=t&&n!=="loop"&&t%2===1?0:a.length-1;return!i||r===void 0?a[i]:r}const hC=40;class $y{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:a=0,repeatDelay:i=0,repeatType:o="loop",...l}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=vn.now(),this.options={autoplay:t,delay:n,type:r,repeat:a,repeatDelay:i,repeatType:o,...l},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>hC?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&oC(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=vn.now(),this.hasAttemptedResolve=!0;const{name:r,type:a,velocity:i,delay:o,onComplete:l,onUpdate:c,isGenerator:u}=this.options;if(!u&&!fC(t,r,a,i))if(o)this.options.duration=0;else{c&&c(Uo(t,this.options,n)),l&&l(),this.resolveFinishedPromise();return}const d=this.initPlayback(t,n);d!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...d},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const Fe=(e,t,n)=>e+(t-e)*n;function kl(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function mC({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let a=0,i=0,o=0;if(!t)a=i=o=n;else{const l=n<.5?n*(1+t):n+t-n*t,c=2*n-l;a=kl(c,l,e+1/3),i=kl(c,l,e),o=kl(c,l,e-1/3)}return{red:Math.round(a*255),green:Math.round(i*255),blue:Math.round(o*255),alpha:r}}function co(e,t){return n=>n>0?t:e}const Al=(e,t,n)=>{const r=e*e,a=n*(t*t-r)+r;return a<0?0:Math.sqrt(a)},gC=[Bc,Nr,na],yC=e=>gC.find(t=>t.test(e));function Dp(e){const t=yC(e);if(!t)return!1;let n=t.parse(e);return t===na&&(n=mC(n)),n}const $p=(e,t)=>{const n=Dp(e),r=Dp(t);if(!n||!r)return co(e,t);const a={...n};return i=>(a.red=Al(n.red,r.red,i),a.green=Al(n.green,r.green,i),a.blue=Al(n.blue,r.blue,i),a.alpha=Fe(n.alpha,r.alpha,i),Nr.transform(a))},xC=(e,t)=>n=>t(e(n)),Hi=(...e)=>e.reduce(xC),Hc=new Set(["none","hidden"]);function vC(e,t){return Hc.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function bC(e,t){return n=>Fe(e,t,n)}function Bd(e){return typeof e=="number"?bC:typeof e=="string"?jd(e)?co:ut.test(e)?$p:wC:Array.isArray(e)?Iy:typeof e=="object"?ut.test(e)?$p:CC:co}function Iy(e,t){const n=[...e],r=n.length,a=e.map((i,o)=>Bd(i)(i,t[o]));return i=>{for(let o=0;o<r;o++)n[o]=a[o](i);return n}}function CC(e,t){const n={...e,...t},r={};for(const a in n)e[a]!==void 0&&t[a]!==void 0&&(r[a]=Bd(e[a])(e[a],t[a]));return a=>{for(const i in r)n[i]=r[i](a);return n}}function jC(e,t){var n;const r=[],a={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const o=t.types[i],l=e.indexes[o][a[o]],c=(n=e.values[l])!==null&&n!==void 0?n:0;r[i]=c,a[o]++}return r}const wC=(e,t)=>{const n=or.createTransformer(t),r=Mi(e),a=Mi(t);return r.indexes.var.length===a.indexes.var.length&&r.indexes.color.length===a.indexes.color.length&&r.indexes.number.length>=a.indexes.number.length?Hc.has(e)&&!a.values.length||Hc.has(t)&&!r.values.length?vC(e,t):Hi(Iy(jC(r,a),a.values),n):co(e,t)};function zy(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Fe(e,t,n):Bd(e)(e,t)}const SC=5;function By(e,t,n){const r=Math.max(t-SC,0);return my(n-e(r),t-r)}const ze={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Tl=.001;function NC({duration:e=ze.duration,bounce:t=ze.bounce,velocity:n=ze.velocity,mass:r=ze.mass}){let a,i,o=1-t;o=Mn(ze.minDamping,ze.maxDamping,o),e=Mn(ze.minDuration,ze.maxDuration,An(e)),o<1?(a=u=>{const d=u*o,f=d*e,h=d-n,g=Gc(u,o),x=Math.exp(-f);return Tl-h/g*x},i=u=>{const f=u*o*e,h=f*n+n,g=Math.pow(o,2)*Math.pow(u,2)*e,x=Math.exp(-f),b=Gc(Math.pow(u,2),o);return(-a(u)+Tl>0?-1:1)*((h-g)*x)/b}):(a=u=>{const d=Math.exp(-u*e),f=(u-n)*e+1;return-Tl+d*f},i=u=>{const d=Math.exp(-u*e),f=(n-u)*(e*e);return d*f});const l=5/e,c=kC(a,i,l);if(e=kn(e),isNaN(c))return{stiffness:ze.stiffness,damping:ze.damping,duration:e};{const u=Math.pow(c,2)*r;return{stiffness:u,damping:o*2*Math.sqrt(r*u),duration:e}}}const PC=12;function kC(e,t,n){let r=n;for(let a=1;a<PC;a++)r=r-e(r)/t(r);return r}function Gc(e,t){return e*Math.sqrt(1-t*t)}const AC=["duration","bounce"],TC=["stiffness","damping","mass"];function Ip(e,t){return t.some(n=>e[n]!==void 0)}function _C(e){let t={velocity:ze.velocity,stiffness:ze.stiffness,damping:ze.damping,mass:ze.mass,isResolvedFromDuration:!1,...e};if(!Ip(e,TC)&&Ip(e,AC))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),a=r*r,i=2*Mn(.05,1,1-(e.bounce||0))*Math.sqrt(a);t={...t,mass:ze.mass,stiffness:a,damping:i}}else{const n=NC(e);t={...t,...n,mass:ze.mass},t.isResolvedFromDuration=!0}return t}function Uy(e=ze.visualDuration,t=ze.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:a}=n;const i=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],l={done:!1,value:i},{stiffness:c,damping:u,mass:d,duration:f,velocity:h,isResolvedFromDuration:g}=_C({...n,velocity:-An(n.velocity||0)}),x=h||0,b=u/(2*Math.sqrt(c*d)),j=o-i,m=An(Math.sqrt(c/d)),p=Math.abs(j)<5;r||(r=p?ze.restSpeed.granular:ze.restSpeed.default),a||(a=p?ze.restDelta.granular:ze.restDelta.default);let y;if(b<1){const N=Gc(m,b);y=P=>{const O=Math.exp(-b*m*P);return o-O*((x+b*m*j)/N*Math.sin(N*P)+j*Math.cos(N*P))}}else if(b===1)y=N=>o-Math.exp(-m*N)*(j+(x+m*j)*N);else{const N=m*Math.sqrt(b*b-1);y=P=>{const O=Math.exp(-b*m*P),V=Math.min(N*P,300);return o-O*((x+b*m*j)*Math.sinh(V)+N*j*Math.cosh(V))/N}}const C={calculatedDuration:g&&f||null,next:N=>{const P=y(N);if(g)l.done=N>=f;else{let O=0;b<1&&(O=N===0?kn(x):By(y,N,P));const V=Math.abs(O)<=r,B=Math.abs(o-P)<=a;l.done=V&&B}return l.value=l.done?o:P,l},toString:()=>{const N=Math.min(oy(C),$c),P=ly(O=>C.next(N*O).value,N,30);return N+"ms "+P}};return C}function zp({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:a=10,bounceStiffness:i=500,modifyTarget:o,min:l,max:c,restDelta:u=.5,restSpeed:d}){const f=e[0],h={done:!1,value:f},g=V=>l!==void 0&&V<l||c!==void 0&&V>c,x=V=>l===void 0?c:c===void 0||Math.abs(l-V)<Math.abs(c-V)?l:c;let b=n*t;const j=f+b,m=o===void 0?j:o(j);m!==j&&(b=m-f);const p=V=>-b*Math.exp(-V/r),y=V=>m+p(V),C=V=>{const B=p(V),M=y(V);h.done=Math.abs(B)<=u,h.value=h.done?m:M};let N,P;const O=V=>{g(h.value)&&(N=V,P=Uy({keyframes:[h.value,x(h.value)],velocity:By(y,V,h.value),damping:a,stiffness:i,restDelta:u,restSpeed:d}))};return O(0),{calculatedDuration:null,next:V=>{let B=!1;return!P&&N===void 0&&(B=!0,C(V),O(V)),N!==void 0&&V>=N?P.next(V-N):(!B&&C(V),h)}}}const EC=Wi(.42,0,1,1),RC=Wi(0,0,.58,1),qy=Wi(.42,0,.58,1),MC=e=>Array.isArray(e)&&typeof e[0]!="number",OC={linear:Mt,easeIn:EC,easeInOut:qy,easeOut:RC,circIn:Ld,circInOut:Sy,circOut:wy,backIn:Fd,backInOut:Cy,backOut:by,anticipate:jy},Bp=e=>{if(Ed(e)){z0(e.length===4);const[t,n,r,a]=e;return Wi(t,n,r,a)}else if(typeof e=="string")return OC[e];return e};function VC(e,t,n){const r=[],a=n||zy,i=e.length-1;for(let o=0;o<i;o++){let l=a(e[o],e[o+1]);if(t){const c=Array.isArray(t)?t[o]||Mt:t;l=Hi(c,l)}r.push(l)}return r}function FC(e,t,{clamp:n=!0,ease:r,mixer:a}={}){const i=e.length;if(z0(i===t.length),i===1)return()=>t[0];if(i===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const l=VC(t,r,a),c=l.length,u=d=>{if(o&&d<e[0])return t[0];let f=0;if(c>1)for(;f<e.length-2&&!(d<e[f+1]);f++);const h=va(e[f],e[f+1],d);return l[f](h)};return n?d=>u(Mn(e[0],e[i-1],d)):u}function LC(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const a=va(0,t,r);e.push(Fe(n,1,a))}}function DC(e){const t=[0];return LC(t,e.length-1),t}function $C(e,t){return e.map(n=>n*t)}function IC(e,t){return e.map(()=>t||qy).splice(0,e.length-1)}function uo({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const a=MC(r)?r.map(Bp):Bp(r),i={done:!1,value:t[0]},o=$C(n&&n.length===t.length?n:DC(t),e),l=FC(o,t,{ease:Array.isArray(a)?a:IC(t,a)});return{calculatedDuration:e,next:c=>(i.value=l(c),i.done=c>=e,i)}}const zC=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Ee.update(t,!0),stop:()=>sr(t),now:()=>at.isProcessing?at.timestamp:vn.now()}},BC={decay:zp,inertia:zp,tween:uo,keyframes:uo,spring:Uy},UC=e=>e/100;class Ud extends $y{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:c}=this.options;c&&c()};const{name:n,motionValue:r,element:a,keyframes:i}=this.options,o=(a==null?void 0:a.KeyframeResolver)||zd,l=(c,u)=>this.onKeyframesResolved(c,u);this.resolver=new o(i,l,n,r,a),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:a=0,repeatType:i,velocity:o=0}=this.options,l=_d(n)?n:BC[n]||uo;let c,u;l!==uo&&typeof t[0]!="number"&&(c=Hi(UC,zy(t[0],t[1])),t=[0,100]);const d=l({...this.options,keyframes:t});i==="mirror"&&(u=l({...this.options,keyframes:[...t].reverse(),velocity:-o})),d.calculatedDuration===null&&(d.calculatedDuration=oy(d));const{calculatedDuration:f}=d,h=f+a,g=h*(r+1)-a;return{generator:d,mirroredGenerator:u,mapPercentToKeyframes:c,calculatedDuration:f,resolvedDuration:h,totalDuration:g}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:V}=this.options;return{done:!0,value:V[V.length-1]}}const{finalKeyframe:a,generator:i,mirroredGenerator:o,mapPercentToKeyframes:l,keyframes:c,calculatedDuration:u,totalDuration:d,resolvedDuration:f}=r;if(this.startTime===null)return i.next(0);const{delay:h,repeat:g,repeatType:x,repeatDelay:b,onUpdate:j}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-d/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const m=this.currentTime-h*(this.speed>=0?1:-1),p=this.speed>=0?m<0:m>d;this.currentTime=Math.max(m,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=d);let y=this.currentTime,C=i;if(g){const V=Math.min(this.currentTime,d)/f;let B=Math.floor(V),M=V%1;!M&&V>=1&&(M=1),M===1&&B--,B=Math.min(B,g+1),!!(B%2)&&(x==="reverse"?(M=1-M,b&&(M-=b/f)):x==="mirror"&&(C=o)),y=Mn(0,1,M)*f}const N=p?{done:!1,value:c[0]}:C.next(y);l&&(N.value=l(N.value));let{done:P}=N;!p&&u!==null&&(P=this.speed>=0?this.currentTime>=d:this.currentTime<=0);const O=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&P);return O&&a!==void 0&&(N.value=Uo(c,this.options,a)),j&&j(N.value),O&&this.finish(),N}get duration(){const{resolved:t}=this;return t?An(t.calculatedDuration):0}
vendor: 54,424 bytes, line 48
48get time(){return An(this.currentTime)}set time(t){t=kn(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=An(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=zC,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),n&&n();const a=this.driver.now();this.holdTime!==null?this.startTime=a-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=a):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const qC=new Set(["opacity","clipPath","filter","transform"]);function WC(e,t,n,{delay:r=0,duration:a=300,repeat:i=0,repeatType:o="loop",ease:l="easeInOut",times:c}={}){const u={[t]:n};c&&(u.offset=c);const d=uy(l,a);return Array.isArray(d)&&(u.easing=d),e.animate(u,{delay:r,duration:a,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:i+1,direction:o==="reverse"?"alternate":"normal"})}const HC=md(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),fo=10,GC=2e4;function KC(e){return _d(e.type)||e.type==="spring"||!cy(e.ease)}function ZC(e,t){const n=new Ud({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const a=[];let i=0;for(;!r.done&&i<GC;)r=n.sample(i),a.push(r.value),i+=fo;return{times:void 0,keyframes:a,duration:i-fo,ease:"linear"}}const Wy={anticipate:jy,backInOut:Cy,circInOut:Sy};function XC(e){return e in Wy}class Up extends $y{constructor(t){super(t);const{name:n,motionValue:r,element:a,keyframes:i}=this.options;this.resolver=new Dy(i,(o,l)=>this.onKeyframesResolved(o,l),n,r,a),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:a,ease:i,type:o,motionValue:l,name:c,startTime:u}=this.options;if(!l.owner||!l.owner.current)return!1;if(typeof i=="string"&&lo()&&XC(i)&&(i=Wy[i]),KC(this.options)){const{onComplete:f,onUpdate:h,motionValue:g,element:x,...b}=this.options,j=ZC(t,b);t=j.keyframes,t.length===1&&(t[1]=t[0]),r=j.duration,a=j.times,i=j.ease,o="keyframes"}const d=WC(l.owner.current,c,t,{...this.options,duration:r,times:a,ease:i});return d.startTime=u??this.calcStartTime(),this.pendingTimeline?(kp(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:f}=this.options;l.set(Uo(t,this.options,n)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:r,times:a,type:o,ease:i,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return An(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return An(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=kn(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Mt;const{animation:r}=n;kp(r,t)}return Mt}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:a,type:i,ease:o,times:l}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:d,onComplete:f,element:h,...g}=this.options,x=new Ud({...g,keyframes:r,duration:a,type:i,ease:o,times:l,isGenerator:!0}),b=kn(this.time);u.setWithVelocity(x.sample(b-fo).value,x.sample(b).value,fo)}const{onStop:c}=this.options;c&&c(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:a,repeatType:i,damping:o,type:l}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:u}=n.owner.getProps();return HC()&&r&&qC.has(r)&&!c&&!u&&!a&&i!=="mirror"&&o!==0&&l!=="inertia"}}const QC={type:"spring",stiffness:500,damping:25,restSpeed:10},YC=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),JC={type:"keyframes",duration:.8},ej={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},tj=(e,{keyframes:t})=>t.length>2?JC:$r.has(e)?e.startsWith("scale")?YC(t[1]):QC:ej;function nj({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:a,repeat:i,repeatType:o,repeatDelay:l,from:c,elapsed:u,...d}){return!!Object.keys(d).length}const qd=(e,t,n,r={},a,i)=>o=>{const l=Td(r,e)||{},c=l.delay||r.delay||0;let{elapsed:u=0}=r;u=u-kn(c);let d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-u,onUpdate:h=>{t.set(h),l.onUpdate&&l.onUpdate(h)},onComplete:()=>{o(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:i?void 0:a};nj(l)||(d={...d,...tj(e,d)}),d.duration&&(d.duration=kn(d.duration)),d.repeatDelay&&(d.repeatDelay=kn(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let f=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(d.duration=0,d.delay===0&&(f=!0)),f&&!i&&t.get()!==void 0){const h=Uo(d.keyframes,l);if(h!==void 0)return Ee.update(()=>{d.onUpdate(h),d.onComplete()}),new C2([])}return!i&&Up.supports(d)?new Up(d):new Ud(d)};function rj({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Hy(e,t,{delay:n=0,transitionOverride:r,type:a}={}){var i;let{transition:o=e.getDefaultTransition(),transitionEnd:l,...c}=t;r&&(o=r);const u=[],d=a&&e.animationState&&e.animationState.getState()[a];for(const f in c){const h=e.getValue(f,(i=e.latestValues[f])!==null&&i!==void 0?i:null),g=c[f];if(g===void 0||d&&rj(d,f))continue;const x={delay:n,...Td(o||{},f)};let b=!1;if(window.MotionHandoffAnimation){const m=gy(e);if(m){const p=window.MotionHandoffAnimation(m,f,Ee);p!==null&&(x.startTime=p,b=!0)}}zc(e,f),h.start(qd(f,h,g,e.shouldReduceMotion&&hy.has(f)?{type:!1}:x,e,b));const j=h.animation;j&&u.push(j)}return l&&Promise.all(u).then(()=>{Ee.update(()=>{l&&V2(e,l)})}),u}function Kc(e,t,n={}){var r;const a=Bo(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=a||{};n.transitionOverride&&(i=n.transitionOverride);const o=a?()=>Promise.all(Hy(e,a,n)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:d=0,staggerChildren:f,staggerDirection:h}=i;return aj(e,t,d+u,f,h,n)}:()=>Promise.resolve(),{when:c}=i;if(c){const[u,d]=c==="beforeChildren"?[o,l]:[l,o];return u().then(()=>d())}else return Promise.all([o(),l(n.delay)])}function aj(e,t,n=0,r=0,a=1,i){const o=[],l=(e.variantChildren.size-1)*r,c=a===1?(u=0)=>u*r:(u=0)=>l-u*r;return Array.from(e.variantChildren).sort(ij).forEach((u,d)=>{u.notify("AnimationStart",t),o.push(Kc(u,t,{...i,delay:n+c(d)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(o)}function ij(e,t){return e.sortNodePosition(t)}function sj(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const a=t.map(i=>Kc(e,i,n));r=Promise.all(a)}else if(typeof t=="string")r=Kc(e,t,n);else{const a=typeof t=="function"?Bo(e,t,n.custom):t;r=Promise.all(Hy(e,a,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const oj=yd.length;function Gy(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Gy(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<oj;n++){const r=yd[n],a=e.props[r];(_i(a)||a===!1)&&(t[r]=a)}return t}const lj=[...gd].reverse(),cj=gd.length;function uj(e){return t=>Promise.all(t.map(({animation:n,options:r})=>sj(e,n,r)))}function dj(e){let t=uj(e),n=qp(),r=!0;const a=c=>(u,d)=>{var f;const h=Bo(e,d,c==="exit"?(f=e.presenceContext)===null||f===void 0?void 0:f.custom:void 0);if(h){const{transition:g,transitionEnd:x,...b}=h;u={...u,...b,...x}}return u};function i(c){t=c(e)}function o(c){const{props:u}=e,d=Gy(e.parent)||{},f=[],h=new Set;let g={},x=1/0;for(let j=0;j<cj;j++){const m=lj[j],p=n[m],y=u[m]!==void 0?u[m]:d[m],C=_i(y),N=m===c?p.isActive:null;N===!1&&(x=j);let P=y===d[m]&&y!==u[m]&&C;if(P&&r&&e.manuallyAnimateOnMount&&(P=!1),p.protectedKeys={...g},!p.isActive&&N===null||!y&&!p.prevProp||Io(y)||typeof y=="boolean")continue;const O=fj(p.prevProp,y);let V=O||m===c&&p.isActive&&!P&&C||j>x&&C,B=!1;const M=Array.isArray(y)?y:[y];let _=M.reduce(a(m),{});N===!1&&(_={});const{prevResolvedValues:Y={}}=p,D={...Y,..._},te=oe=>{V=!0,h.has(oe)&&(B=!0,h.delete(oe)),p.needsAnimating[oe]=!0;const E=e.getValue(oe);E&&(E.liveStyle=!1)};for(const oe in D){const E=_[oe],z=Y[oe];if(g.hasOwnProperty(oe))continue;let S=!1;Dc(E)&&Dc(z)?S=!sy(E,z):S=E!==z,S?E!=null?te(oe):h.add(oe):E!==void 0&&h.has(oe)?te(oe):p.protectedKeys[oe]=!0}p.prevProp=y,p.prevResolvedValues=_,p.isActive&&(g={...g,..._}),r&&e.blockInitialAnimation&&(V=!1),V&&(!(P&&O)||B)&&f.push(...M.map(oe=>({animation:oe,options:{type:m}})))}if(h.size){const j={};h.forEach(m=>{const p=e.getBaseTarget(m),y=e.getValue(m);y&&(y.liveStyle=!0),j[m]=p??null}),f.push({animation:j})}let b=!!f.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(b=!1),r=!1,b?t(f):Promise.resolve()}function l(c,u){var d;if(n[c].isActive===u)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(h=>{var g;return(g=h.animationState)===null||g===void 0?void 0:g.setActive(c,u)}),n[c].isActive=u;const f=o(c);for(const h in n)n[h].protectedKeys={};return f}return{animateChanges:o,setActive:l,setAnimateFunction:i,getState:()=>n,reset:()=>{n=qp(),r=!0}}}function fj(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!sy(t,e):!1}function gr(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function qp(){return{animate:gr(!0),whileInView:gr(),whileHover:gr(),whileTap:gr(),whileDrag:gr(),whileFocus:gr(),exit:gr()}}class hr{constructor(t){this.isMounted=!1,this.node=t}update(){}}class pj extends hr{constructor(t){super(t),t.animationState||(t.animationState=dj(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Io(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let hj=0;class mj extends hr{constructor(){super(...arguments),this.id=hj++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const a=this.node.animationState.setActive("exit",!t);n&&!t&&a.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const gj={animation:{Feature:pj},exit:{Feature:mj}};function Oi(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Gi(e){return{point:{x:e.pageX,y:e.pageY}}}const yj=e=>t=>Rd(t)&&e(t,Gi(t));function ci(e,t,n,r){return Oi(e,t,yj(n),r)}const Wp=(e,t)=>Math.abs(e-t);function xj(e,t){const n=Wp(e.x,t.x),r=Wp(e.y,t.y);return Math.sqrt(n**2+r**2)}class Ky{constructor(t,n,{transformPagePoint:r,contextWindow:a,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=El(this.lastMoveEventInfo,this.history),h=this.startEvent!==null,g=xj(f.offset,{x:0,y:0})>=3;if(!h&&!g)return;const{point:x}=f,{timestamp:b}=at;this.history.push({...x,timestamp:b});const{onStart:j,onMove:m}=this.handlers;h||(j&&j(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),m&&m(this.lastMoveEvent,f)},this.handlePointerMove=(f,h)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=_l(h,this.transformPagePoint),Ee.update(this.updatePoint,!0)},this.handlePointerUp=(f,h)=>{this.end();const{onEnd:g,onSessionEnd:x,resumeAnimation:b}=this.handlers;if(this.dragSnapToOrigin&&b&&b(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const j=El(f.type==="pointercancel"?this.lastMoveEventInfo:_l(h,this.transformPagePoint),this.history);this.startEvent&&g&&g(f,j),x&&x(f,j)},!Rd(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.contextWindow=a||window;const o=Gi(t),l=_l(o,this.transformPagePoint),{point:c}=l,{timestamp:u}=at;this.history=[{...c,timestamp:u}];const{onSessionStart:d}=n;d&&d(t,El(l,this.history)),this.removeListeners=Hi(ci(this.contextWindow,"pointermove",this.handlePointerMove),ci(this.contextWindow,"pointerup",this.handlePointerUp),ci(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),sr(this.updatePoint)}}function _l(e,t){return t?{point:t(e.point)}:e}function Hp(e,t){return{x:e.x-t.x,y:e.y-t.y}}function El({point:e},t){return{point:e,delta:Hp(e,Zy(t)),offset:Hp(e,vj(t)),velocity:bj(t,.1)}}function vj(e){return e[0]}function Zy(e){return e[e.length-1]}function bj(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const a=Zy(e);for(;n>=0&&(r=e[n],!(a.timestamp-r.timestamp>kn(t)));)n--;if(!r)return{x:0,y:0};const i=An(a.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const o={x:(a.x-r.x)/i,y:(a.y-r.y)/i};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}const Xy=1e-4,Cj=1-Xy,jj=1+Xy,Qy=.01,wj=0-Qy,Sj=0+Qy;function Vt(e){return e.max-e.min}function Nj(e,t,n){return Math.abs(e-t)<=n}function Gp(e,t,n,r=.5){e.origin=r,e.originPoint=Fe(t.min,t.max,e.origin),e.scale=Vt(n)/Vt(t),e.translate=Fe(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Cj&&e.scale<=jj||isNaN(e.scale))&&(e.scale=1),(e.translate>=wj&&e.translate<=Sj||isNaN(e.translate))&&(e.translate=0)}function ui(e,t,n,r){Gp(e.x,t.x,n.x,r?r.originX:void 0),Gp(e.y,t.y,n.y,r?r.originY:void 0)}function Kp(e,t,n){e.min=n.min+t.min,e.max=e.min+Vt(t)}function Pj(e,t,n){Kp(e.x,t.x,n.x),Kp(e.y,t.y,n.y)}function Zp(e,t,n){e.min=t.min-n.min,e.max=e.min+Vt(t)}function di(e,t,n){Zp(e.x,t.x,n.x),Zp(e.y,t.y,n.y)}function kj(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Fe(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Fe(n,e,r.max):Math.min(e,n)),e}function Xp(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function Aj(e,{top:t,left:n,bottom:r,right:a}){return{x:Xp(e.x,n,a),y:Xp(e.y,t,r)}}function Qp(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function Tj(e,t){return{x:Qp(e.x,t.x),y:Qp(e.y,t.y)}}function _j(e,t){let n=.5;const r=Vt(e),a=Vt(t);return a>r?n=va(t.min,t.max-r,e.min):r>a&&(n=va(e.min,e.max-a,t.min)),Mn(0,1,n)}function Ej(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Zc=.35;function Rj(e=Zc){return e===!1?e=0:e===!0&&(e=Zc),{x:Yp(e,"left","right"),y:Yp(e,"top","bottom")}}function Yp(e,t,n){return{min:Jp(e,t),max:Jp(e,n)}}function Jp(e,t){return typeof e=="number"?e:e[t]||0}const eh=()=>({translate:0,scale:1,origin:0,originPoint:0}),ra=()=>({x:eh(),y:eh()}),th=()=>({min:0,max:0}),qe=()=>({x:th(),y:th()});function Bt(e){return[e("x"),e("y")]}function Yy({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Mj({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Oj(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Rl(e){return e===void 0||e===1}function Xc({scale:e,scaleX:t,scaleY:n}){return!Rl(e)||!Rl(t)||!Rl(n)}function vr(e){return Xc(e)||Jy(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Jy(e){return nh(e.x)||nh(e.y)}function nh(e){return e&&e!=="0%"}function po(e,t,n){const r=e-n,a=t*r;return n+a}function rh(e,t,n,r,a){return a!==void 0&&(e=po(e,a,r)),po(e,n,r)+t}function Qc(e,t=0,n=1,r,a){e.min=rh(e.min,t,n,r,a),e.max=rh(e.max,t,n,r,a)}function ex(e,{x:t,y:n}){Qc(e.x,t.translate,t.scale,t.originPoint),Qc(e.y,n.translate,n.scale,n.originPoint)}const ah=.999999999999,ih=1.0000000000001;function Vj(e,t,n,r=!1){const a=n.length;if(!a)return;t.x=t.y=1;let i,o;for(let l=0;l<a;l++){i=n[l],o=i.projectionDelta;const{visualElement:c}=i.options;c&&c.props.style&&c.props.style.display==="contents"||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&ia(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,ex(e,o)),r&&vr(i.latestValues)&&ia(e,i.latestValues))}t.x<ih&&t.x>ah&&(t.x=1),t.y<ih&&t.y>ah&&(t.y=1)}function aa(e,t){e.min=e.min+t,e.max=e.max+t}function sh(e,t,n,r,a=.5){const i=Fe(e.min,e.max,a);Qc(e,t,n,i,r)}function ia(e,t){sh(e.x,t.x,t.scaleX,t.scale,t.originX),sh(e.y,t.y,t.scaleY,t.scale,t.originY)}function tx(e,t){return Yy(Oj(e.getBoundingClientRect(),t))}function Fj(e,t,n){const r=tx(e,n),{scroll:a}=t;return a&&(aa(r.x,a.offset.x),aa(r.y,a.offset.y)),r}const nx=({current:e})=>e?e.ownerDocument.defaultView:null,Lj=new WeakMap;class Dj{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=qe(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const a=d=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Gi(d).point)},i=(d,f)=>{const{drag:h,dragPropagation:g,onDragStart:x}=this.getProps();if(h&&!g&&(this.openDragLock&&this.openDragLock(),this.openDragLock=_2(h),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Bt(j=>{let m=this.getAxisMotionValue(j).get()||0;if(xn.test(m)){const{projection:p}=this.visualElement;if(p&&p.layout){const y=p.layout.layoutBox[j];y&&(m=Vt(y)*(parseFloat(m)/100))}}this.originPoint[j]=m}),x&&Ee.postRender(()=>x(d,f)),zc(this.visualElement,"transform");const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},o=(d,f)=>{const{dragPropagation:h,dragDirectionLock:g,onDirectionLock:x,onDrag:b}=this.getProps();if(!h&&!this.openDragLock)return;const{offset:j}=f;if(g&&this.currentDirection===null){this.currentDirection=$j(j),this.currentDirection!==null&&x&&x(this.currentDirection);return}this.updateAxis("x",f.point,j),this.updateAxis("y",f.point,j),this.visualElement.render(),b&&b(d,f)},l=(d,f)=>this.stop(d,f),c=()=>Bt(d=>{var f;return this.getAnimationState(d)==="paused"&&((f=this.getAxisMotionValue(d).animation)===null||f===void 0?void 0:f.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new Ky(t,{onSessionStart:a,onStart:i,onMove:o,onSessionEnd:l,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:nx(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:a}=n;this.startAnimation(a);const{onDragEnd:i}=this.getProps();i&&Ee.postRender(()=>i(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:a}=this.getProps();if(!r||!ys(t,a,this.currentDirection))return;const i=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=kj(o,this.constraints[t],this.elastic[t])),i.set(o)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),a=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,i=this.constraints;n&&ta(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&a?this.constraints=Aj(a.layoutBox,n):this.constraints=!1,this.elastic=Rj(r),i!==this.constraints&&a&&this.constraints&&!this.hasMutatedConstraints&&Bt(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=Ej(a.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!ta(t))return!1;const r=t.current,{projection:a}=this.visualElement;if(!a||!a.layout)return!1;const i=Fj(r,a.root,this.visualElement.getTransformPagePoint());let o=Tj(a.layout.layoutBox,i);if(n){const l=n(Mj(o));this.hasMutatedConstraints=!!l,l&&(o=Yy(l))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:a,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:l}=this.getProps(),c=this.constraints||{},u=Bt(d=>{if(!ys(d,n,this.currentDirection))return;let f=c&&c[d]||{};o&&(f={min:0,max:0});const h=a?200:1e6,g=a?40:1e7,x={type:"inertia",velocity:r?t[d]:0,bounceStiffness:h,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10,...i,...f};return this.startAxisValueAnimation(d,x)});return Promise.all(u).then(l)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return zc(this.visualElement,t),r.start(qd(t,r,0,n,this.visualElement,!1))}stopAnimation(){Bt(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Bt(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),a=r[n];return a||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Bt(n=>{const{drag:r}=this.getProps();if(!ys(n,r,this.currentDirection))return;const{projection:a}=this.visualElement,i=this.getAxisMotionValue(n);if(a&&a.layout){const{min:o,max:l}=a.layout.layoutBox[n];i.set(t[n]-Fe(o,l,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!ta(n)||!r||!this.constraints)return;this.stopAnimation();const a={x:0,y:0};Bt(o=>{const l=this.getAxisMotionValue(o);if(l&&this.constraints!==!1){const c=l.get();a[o]=_j({min:c,max:c},this.constraints[o])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Bt(o=>{if(!ys(o,t,null))return;const l=this.getAxisMotionValue(o),{min:c,max:u}=this.constraints[o];l.set(Fe(c,u,a[o]))})}addListeners(){if(!this.visualElement.current)return;Lj.set(this.visualElement,this);const t=this.visualElement.current,n=ci(t,"pointerdown",c=>{const{drag:u,dragListener:d=!0}=this.getProps();u&&d&&this.start(c)}),r=()=>{const{dragConstraints:c}=this.getProps();ta(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:a}=this.visualElement,i=a.addEventListener("measure",r);a&&!a.layout&&(a.root&&a.root.updateScroll(),a.updateLayout()),Ee.read(r);const o=Oi(window,"resize",()=>this.scalePositionWithinConstraints()),l=a.addEventListener("didUpdate",({delta:c,hasLayoutChanged:u})=>{this.isDragging&&u&&(Bt(d=>{const f=this.getAxisMotionValue(d);f&&(this.originPoint[d]+=c[d].translate,f.set(f.get()+c[d].translate))}),this.visualElement.render())});return()=>{o(),n(),i(),l&&l()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:a=!1,dragConstraints:i=!1,dragElastic:o=Zc,dragMomentum:l=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:a,dragConstraints:i,dragElastic:o,dragMomentum:l}}}function ys(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function $j(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class Ij extends hr{constructor(t){super(t),this.removeGroupControls=Mt,this.removeListeners=Mt,this.controls=new Dj(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Mt}unmount(){this.removeGroupControls(),this.removeListeners()}}const oh=e=>(t,n)=>{e&&Ee.postRender(()=>e(t,n))};class zj extends hr{constructor(){super(...arguments),this.removePointerDownListener=Mt}onPointerDown(t){this.session=new Ky(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:nx(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:a}=this.node.getProps();return{onSessionStart:oh(t),onStart:oh(n),onMove:r,onEnd:(i,o)=>{delete this.session,a&&Ee.postRender(()=>a(i,o))}}}mount(){this.removePointerDownListener=ci(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Os={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function lh(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Ba={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(se.test(e))e=parseFloat(e);else return e;const n=lh(e,t.target.x),r=lh(e,t.target.y);return`${n}% ${r}%`}},Bj={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,a=or.parse(e);if(a.length>5)return r;const i=or.createTransformer(e),o=typeof a[0]!="number"?1:0,l=n.x.scale*t.x,c=n.y.scale*t.y;a[0+o]/=l,a[1+o]/=c;const u=Fe(l,c,.5);return typeof a[2+o]=="number"&&(a[2+o]/=u),typeof a[3+o]=="number"&&(a[3+o]/=u),i(a)}};class Uj extends R.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:a}=this.props,{projection:i}=t;c2(qj),i&&(n.group&&n.group.add(i),r&&r.register&&a&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),Os.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:a,isPresent:i}=this.props,o=r.projection;return o&&(o.isPresent=i,a||t.layoutDependency!==n||n===void 0?o.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?o.promote():o.relegate()||Ee.postRender(()=>{const l=o.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),vd.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:a}=t;a&&(a.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(a),r&&r.deregister&&r.deregister(a))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function rx(e){const[t,n]=$0(),r=R.useContext(dd);return s.jsx(Uj,{...e,layoutGroup:r,switchLayoutGroup:R.useContext(G0),isPresent:t,safeToRemove:n})}const qj={borderRadius:{...Ba,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ba,borderTopRightRadius:Ba,borderBottomLeftRadius:Ba,borderBottomRightRadius:Ba,boxShadow:Bj};function Wj(e,t,n){const r=ht(e)?e:Ri(e);return r.start(qd("",r,t,n)),r.animation}function Hj(e){return e instanceof SVGElement&&e.tagName!=="svg"}const Gj=(e,t)=>e.depth-t.depth;class Kj{constructor(){this.children=[],this.isDirty=!1}add(t){Md(this.children,t),this.isDirty=!0}remove(t){Od(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Gj),this.isDirty=!1,this.children.forEach(t)}}function Zj(e,t){const n=vn.now(),r=({timestamp:a})=>{const i=a-n;i>=t&&(sr(r),e(i-t))};return Ee.read(r,!0),()=>sr(r)}const ax=["TopLeft","TopRight","BottomLeft","BottomRight"],Xj=ax.length,ch=e=>typeof e=="string"?parseFloat(e):e,uh=e=>typeof e=="number"||se.test(e);function Qj(e,t,n,r,a,i){a?(e.opacity=Fe(0,n.opacity!==void 0?n.opacity:1,Yj(r)),e.opacityExit=Fe(t.opacity!==void 0?t.opacity:1,0,Jj(r))):i&&(e.opacity=Fe(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let o=0;o<Xj;o++){const l=`border${ax[o]}Radius`;let c=dh(t,l),u=dh(n,l);if(c===void 0&&u===void 0)continue;c||(c=0),u||(u=0),c===0||u===0||uh(c)===uh(u)?(e[l]=Math.max(Fe(ch(c),ch(u),r),0),(xn.test(u)||xn.test(c))&&(e[l]+="%")):e[l]=u}(t.rotate||n.rotate)&&(e.rotate=Fe(t.rotate||0,n.rotate||0,r))}function dh(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Yj=ix(0,.5,wy),Jj=ix(.5,.95,Mt);function ix(e,t,n){return r=>r<e?0:r>t?1:n(va(e,t,r))}function fh(e,t){e.min=t.min,e.max=t.max}function zt(e,t){fh(e.x,t.x),fh(e.y,t.y)}function ph(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function hh(e,t,n,r,a){return e-=t,e=po(e,1/n,r),a!==void 0&&(e=po(e,1/a,r)),e}function ew(e,t=0,n=1,r=.5,a,i=e,o=e){if(xn.test(t)&&(t=parseFloat(t),t=Fe(o.min,o.max,t/100)-o.min),typeof t!="number")return;let l=Fe(i.min,i.max,r);e===i&&(l-=t),e.min=hh(e.min,t,n,l,a),e.max=hh(e.max,t,n,l,a)}function mh(e,t,[n,r,a],i,o){ew(e,t[n],t[r],t[a],t.scale,i,o)}const tw=["x","scaleX","originX"],nw=["y","scaleY","originY"];function gh(e,t,n,r){mh(e.x,t,tw,n?n.x:void 0,r?r.x:void 0),mh(e.y,t,nw,n?n.y:void 0,r?r.y:void 0)}function yh(e){return e.translate===0&&e.scale===1}function sx(e){return yh(e.x)&&yh(e.y)}function xh(e,t){return e.min===t.min&&e.max===t.max}function rw(e,t){return xh(e.x,t.x)&&xh(e.y,t.y)}function vh(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function ox(e,t){return vh(e.x,t.x)&&vh(e.y,t.y)}function bh(e){return Vt(e.x)/Vt(e.y)}function Ch(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class aw{constructor(){this.members=[]}add(t){Md(this.members,t),t.scheduleRender()}remove(t){if(Od(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(a=>t===a);if(n===0)return!1;let r;for(let a=n;a>=0;a--){const i=this.members[a];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:a}=t.options;a===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function iw(e,t,n){let r="";const a=e.x.translate/t.x,i=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((a||i||o)&&(r=`translate3d(${a}px, ${i}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:d,rotateX:f,rotateY:h,skewX:g,skewY:x}=n;u&&(r=`perspective(${u}px) ${r}`),d&&(r+=`rotate(${d}deg) `),f&&(r+=`rotateX(${f}deg) `),h&&(r+=`rotateY(${h}deg) `),g&&(r+=`skewX(${g}deg) `),x&&(r+=`skewY(${x}deg) `)}const l=e.x.scale*t.x,c=e.y.scale*t.y;return(l!==1||c!==1)&&(r+=`scale(${l}, ${c})`),r||"none"}const br={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Qa=typeof window<"u"&&window.MotionDebug!==void 0,Ml=["","X","Y","Z"],sw={visibility:"hidden"},jh=1e3;let ow=0;function Ol(e,t,n,r){const{latestValues:a}=t;a[e]&&(n[e]=a[e],t.setStaticValue(e,0),r&&(r[e]=0))}function lx(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=gy(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:a,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Ee,!(a||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&lx(r)}function cx({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:a}){return class{constructor(o={},l=t==null?void 0:t()){this.id=ow++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Qa&&(br.totalNodes=br.resolvedTargetDeltas=br.recalculatedProjection=0),this.nodes.forEach(uw),this.nodes.forEach(mw),this.nodes.forEach(gw),this.nodes.forEach(dw),Qa&&window.MotionDebug.record(br)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new Kj)}addEventListener(o,l){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new Vd),this.eventHandlers.get(o).add(l)}notifyListeners(o,...l){const c=this.eventHandlers.get(o);c&&c.notify(...l)}hasListeners(o){return this.eventHandlers.has(o)}mount(o,l=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=Hj(o),this.instance=o;const{layoutId:c,layout:u,visualElement:d}=this.options;if(d&&!d.current&&d.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),l&&(u||c)&&(this.isLayoutDirty=!0),e){let f;const h=()=>this.root.updateBlockedByResize=!1;e(o,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=Zj(h,250),Os.hasAnimatedSinceResize&&(Os.hasAnimatedSinceResize=!1,this.nodes.forEach(Sh))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&d&&(c||u)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:h,hasRelativeTargetChanged:g,layout:x})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const b=this.options.transition||d.getDefaultTransition()||Cw,{onLayoutAnimationStart:j,onLayoutAnimationComplete:m}=d.getProps(),p=!this.targetLayout||!ox(this.targetLayout,x)||g,y=!h&&g;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||y||h&&(p||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,y);const C={...Td(b,"layout"),onPlay:j,onComplete:m};(d.shouldReduceMotion||this.options.layoutRoot)&&(C.delay=0,C.type=!1),this.startAnimation(C)}else h||Sh(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=x})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,sr(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(yw),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&lx(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){const f=this.path[d];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:l,layout:c}=this.options;if(l===void 0&&!c)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(wh);return}this.isUpdating||this.nodes.forEach(pw),this.isUpdating=!1,this.nodes.forEach(hw),this.nodes.forEach(lw),this.nodes.forEach(cw),this.clearAllSnapshots();const l=vn.now();at.delta=Mn(0,1e3/60,l-at.timestamp),at.timestamp=l,at.isProcessing=!0,Sl.update.process(at),Sl.preRender.process(at),Sl.render.process(at),at.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,vd.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(fw),this.sharedNodes.forEach(xw)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ee.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ee.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c<this.path.length;c++)this.path[c].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutCorrected=qe(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:l}=this.options;l&&l.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let l=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(l=!1),l){const c=r(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:c,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!a)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,l=this.projectionDelta&&!sx(this.projectionDelta),c=this.getTransformTemplate(),u=c?c(this.latestValues,""):void 0,d=u!==this.prevTransformTemplateValue;o&&(l||vr(this.latestValues)||d)&&(a(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const l=this.measurePageBox();let c=this.removeElementScroll(l);return o&&(c=this.removeTransform(c)),jw(c),{animationId:this.root.animationId,measuredBox:l,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){var o;const{visualElement:l}=this.options;if(!l)return qe();const c=l.measureViewportBox();if(!(((o=this.scroll)===null||o===void 0?void 0:o.wasRoot)||this.path.some(ww))){const{scroll:d}=this.root;d&&(aa(c.x,d.offset.x),aa(c.y,d.offset.y))}return c}removeElementScroll(o){var l;const c=qe();if(zt(c,o),!((l=this.scroll)===null||l===void 0)&&l.wasRoot)return c;for(let u=0;u<this.path.length;u++){const d=this.path[u],{scroll:f,options:h}=d;d!==this.root&&f&&h.layoutScroll&&(f.wasRoot&&zt(c,o),aa(c.x,f.offset.x),aa(c.y,f.offset.y))}return c}applyTransform(o,l=!1){const c=qe();zt(c,o);for(let u=0;u<this.path.length;u++){const d=this.path[u];!l&&d.options.layoutScroll&&d.scroll&&d!==d.root&&ia(c,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),vr(d.latestValues)&&ia(c,d.latestValues)}return vr(this.latestValues)&&ia(c,this.latestValues),c}removeTransform(o){const l=qe();zt(l,o);for(let c=0;c<this.path.length;c++){const u=this.path[c];if(!u.instance||!vr(u.latestValues))continue;Xc(u.latestValues)&&u.updateSnapshot();const d=qe(),f=u.measurePageBox();zt(d,f),gh(l,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,d)}return vr(this.latestValues)&&gh(l,this.latestValues),l}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==at.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var l;const c=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=c.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=c.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=c.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==c;if(!(o||u&&this.isSharedProjectionDirty||this.isProjectionDirty||!((l=this.parent)===null||l===void 0)&&l.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:f,layoutId:h}=this.options;if(!(!this.layout||!(f||h))){if(this.resolvedRelativeTargetAt=at.timestamp,!this.targetDelta&&!this.relativeTarget){const g=this.getClosestProjectingParent();g&&g.layout&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=qe(),this.relativeTargetOrigin=qe(),di(this.relativeTargetOrigin,this.layout.layoutBox,g.layout.layoutBox),zt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=qe(),this.targetWithTransforms=qe()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Pj(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):zt(this.target,this.layout.layoutBox),ex(this.target,this.targetDelta)):zt(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const g=this.getClosestProjectingParent();g&&!!g.resumingFrom==!!this.resumingFrom&&!g.options.layoutScroll&&g.target&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=qe(),this.relativeTargetOrigin=qe(),di(this.relativeTargetOrigin,this.target,g.target),zt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Qa&&br.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Xc(this.parent.latestValues)||Jy(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var o;const l=this.getLead(),c=!!this.resumingFrom||this!==l;let u=!0;if((this.isProjectionDirty||!((o=this.parent)===null||o===void 0)&&o.isProjectionDirty)&&(u=!1),c&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===at.timestamp&&(u=!1),u)return;const{layout:d,layoutId:f}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(d||f))return;zt(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,g=this.treeScale.y;Vj(this.layoutCorrected,this.treeScale,this.path,c),l.layout&&!l.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(l.target=l.layout.layoutBox,l.targetWithTransforms=qe());const{target:x}=l;if(!x){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(ph(this.prevProjectionDelta.x,this.projectionDelta.x),ph(this.prevProjectionDelta.y,this.projectionDelta.y)),ui(this.projectionDelta,this.layoutCorrected,x,this.latestValues),(this.treeScale.x!==h||this.treeScale.y!==g||!Ch(this.projectionDelta.x,this.prevProjectionDelta.x)||!Ch(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",x)),Qa&&br.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var l;if((l=this.options.visualElement)===null||l===void 0||l.scheduleRender(),o){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ra(),this.projectionDelta=ra(),this.projectionDeltaWithTransform=ra()}setAnimationOrigin(o,l=!1){const c=this.snapshot,u=c?c.latestValues:{},d={...this.latestValues},f=ra();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const h=qe(),g=c?c.source:void 0,x=this.layout?this.layout.source:void 0,b=g!==x,j=this.getStack(),m=!j||j.members.length<=1,p=!!(b&&!m&&this.options.crossfade===!0&&!this.path.some(bw));this.animationProgress=0;let y;this.mixTargetDelta=C=>{const N=C/1e3;Nh(f.x,o.x,N),Nh(f.y,o.y,N),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(di(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),vw(this.relativeTarget,this.relativeTargetOrigin,h,N),y&&rw(this.relativeTarget,y)&&(this.isProjectionDirty=!1),y||(y=qe()),zt(y,this.relativeTarget)),b&&(this.animationValues=d,Qj(d,u,this.latestValues,N,p,m)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=N},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(sr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ee.update(()=>{Os.hasAnimatedSinceResize=!0,this.currentAnimation=Wj(0,jh,{...o,onUpdate:l=>{this.mixTargetDelta(l),o.onUpdate&&o.onUpdate(l)},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(jh),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:l,target:c,layout:u,latestValues:d}=o;if(!(!l||!c||!u)){if(this!==o&&this.layout&&u&&ux(this.options.animationType,this.layout.layoutBox,u.layoutBox)){c=this.target||qe();const f=Vt(this.layout.layoutBox.x);c.x.min=o.target.x.min,c.x.max=c.x.min+f;const h=Vt(this.layout.layoutBox.y);c.y.min=o.target.y.min,c.y.max=c.y.min+h}zt(l,c),ia(l,d),ui(this.projectionDeltaWithTransform,this.layoutCorrected,l,d)}}registerSharedNode(o,l){this.sharedNodes.has(o)||this.sharedNodes.set(o,new aw),this.sharedNodes.get(o).add(l);const u=l.options.initialPromotionConfig;l.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(l):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:l}=this.options;return l?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:l}=this.options;return l?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:l,preserveFollowOpacity:c}={}){const u=this.getStack();u&&u.promote(this,c),o&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let l=!1;const{latestValues:c}=o;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(l=!0),!l)return;const u={};c.z&&Ol("z",o,u,this.animationValues);for(let d=0;d<Ml.length;d++)Ol(`rotate${Ml[d]}`,o,u,this.animationValues),Ol(`skew${Ml[d]}`,o,u,this.animationValues);o.render();for(const d in u)o.setStaticValue(d,u[d]),this.animationValues&&(this.animationValues[d]=u[d]);o.scheduleRender()}getProjectionStyles(o){var l,c;if(!this.instance||this.isSVG)return;if(!this.isVisible)return sw;const u={visibility:""},d=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=Rs(o==null?void 0:o.pointerEvents)||"",u.transform=d?d(this.latestValues,""):"none",u;const f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){const b={};return this.options.layoutId&&(b.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,b.pointerEvents=Rs(o==null?void 0:o.pointerEvents)||""),this.hasProjected&&!vr(this.latestValues)&&(b.transform=d?d({},""):"none",this.hasProjected=!1),b}const h=f.animationValues||f.latestValues;this.applyTransformsToTarget(),u.transform=iw(this.projectionDeltaWithTransform,this.treeScale,h),d&&(u.transform=d(h,u.transform));const{x:g,y:x}=this.projectionDelta;u.transformOrigin=`${g.origin*100}% ${x.origin*100}% 0`,f.animationValues?u.opacity=f===this?(c=(l=h.opacity)!==null&&l!==void 0?l:this.latestValues.opacity)!==null&&c!==void 0?c:1:this.preserveOpacity?this.latestValues.opacity:h.opacityExit:u.opacity=f===this?h.opacity!==void 0?h.opacity:"":h.opacityExit!==void 0?h.opacityExit:0;for(const b in oo){if(h[b]===void 0)continue;const{correct:j,applyTo:m}=oo[b],p=u.transform==="none"?h[b]:j(h[b],f);if(m){const y=m.length;for(let C=0;C<y;C++)u[m[C]]=p}else u[b]=p}return this.options.layoutId&&(u.pointerEvents=f===this?Rs(o==null?void 0:o.pointerEvents)||"":"none"),u}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var l;return(l=o.currentAnimation)===null||l===void 0?void 0:l.stop()}),this.root.nodes.forEach(wh),this.root.sharedNodes.clear()}}}function lw(e){e.updateLayout()}function cw(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:a}=e.layout,{animationType:i}=e.options,o=n.source!==e.layout.source;i==="size"?Bt(f=>{const h=o?n.measuredBox[f]:n.layoutBox[f],g=Vt(h);h.min=r[f].min,h.max=h.min+g}):ux(i,n.layoutBox,r)&&Bt(f=>{const h=o?n.measuredBox[f]:n.layoutBox[f],g=Vt(r[f]);h.max=h.min+g,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+g)});const l=ra();ui(l,r,n.layoutBox);const c=ra();o?ui(c,e.applyTransform(a,!0),n.measuredBox):ui(c,r,n.layoutBox);const u=!sx(l);let d=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:h,layout:g}=f;if(h&&g){const x=qe();di(x,n.layoutBox,h.layoutBox);const b=qe();di(b,r,g.layoutBox),ox(x,b)||(d=!0),f.options.layoutRoot&&(e.relativeTarget=b,e.relativeTargetOrigin=x,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:c,layoutDelta:l,hasLayoutChanged:u,hasRelativeTargetChanged:d})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function uw(e){Qa&&br.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function dw(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function fw(e){e.clearSnapshot()}function wh(e){e.clearMeasurements()}function pw(e){e.isLayoutDirty=!1}function hw(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Sh(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function mw(e){e.resolveTargetDelta()}function gw(e){e.calcProjection()}
vendor: 6,595 bytes, line 48
48function yw(e){e.resetSkewAndRotation()}function xw(e){e.removeLeadSnapshot()}function Nh(e,t,n){e.translate=Fe(t.translate,0,n),e.scale=Fe(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Ph(e,t,n,r){e.min=Fe(t.min,n.min,r),e.max=Fe(t.max,n.max,r)}function vw(e,t,n,r){Ph(e.x,t.x,n.x,r),Ph(e.y,t.y,n.y,r)}function bw(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Cw={duration:.45,ease:[.4,0,.1,1]},kh=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Ah=kh("applewebkit/")&&!kh("chrome/")?Math.round:Mt;function Th(e){e.min=Ah(e.min),e.max=Ah(e.max)}function jw(e){Th(e.x),Th(e.y)}function ux(e,t,n){return e==="position"||e==="preserve-aspect"&&!Nj(bh(t),bh(n),.2)}function ww(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const Sw=cx({attachResizeListener:(e,t)=>Oi(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Vl={current:void 0},dx=cx({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Vl.current){const e=new Sw({});e.mount(window),e.setOptions({layoutScroll:!0}),Vl.current=e}return Vl.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Nw={pan:{Feature:zj},drag:{Feature:Ij,ProjectionNode:dx,MeasureLayout:rx}};function _h(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const a="onHover"+n,i=r[a];i&&Ee.postRender(()=>i(t,Gi(t)))}class Pw extends hr{mount(){const{current:t}=this.node;t&&(this.unmount=N2(t,n=>(_h(this.node,n,"Start"),r=>_h(this.node,r,"End"))))}unmount(){}}class kw extends hr{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Hi(Oi(this.node.current,"focus",()=>this.onFocus()),Oi(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Eh(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const a="onTap"+(n==="End"?"":n),i=r[a];i&&Ee.postRender(()=>i(t,Gi(t)))}class Aw extends hr{mount(){const{current:t}=this.node;t&&(this.unmount=T2(t,n=>(Eh(this.node,n,"Start"),(r,{success:a})=>Eh(this.node,r,a?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Yc=new WeakMap,Fl=new WeakMap,Tw=e=>{const t=Yc.get(e.target);t&&t(e)},_w=e=>{e.forEach(Tw)};function Ew({root:e,...t}){const n=e||document;Fl.has(n)||Fl.set(n,{});const r=Fl.get(n),a=JSON.stringify(t);return r[a]||(r[a]=new IntersectionObserver(_w,{root:e,...t})),r[a]}function Rw(e,t,n){const r=Ew(t);return Yc.set(e,n),r.observe(e),()=>{Yc.delete(e),r.unobserve(e)}}const Mw={some:0,all:1};class Ow extends hr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:a="some",once:i}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof a=="number"?a:Mw[a]},l=c=>{const{isIntersecting:u}=c;if(this.isInView===u||(this.isInView=u,i&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:d,onViewportLeave:f}=this.node.getProps(),h=u?d:f;h&&h(c)};return Rw(this.node.current,o,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Vw(t,n))&&this.startObserver()}unmount(){}}function Vw({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Fw={inView:{Feature:Ow},tap:{Feature:Aw},focus:{Feature:kw},hover:{Feature:Pw}},Lw={layout:{ProjectionNode:dx,MeasureLayout:rx}},Jc={current:null},fx={current:!1};function Dw(){if(fx.current=!0,!!hd)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Jc.current=e.matches;e.addListener(t),t()}else Jc.current=!1}const $w=[...Ly,ut,or],Iw=e=>$w.find(Fy(e)),Rh=new WeakMap;function zw(e,t,n){for(const r in t){const a=t[r],i=n[r];if(ht(a))e.addValue(r,a);else if(ht(i))e.addValue(r,Ri(a,{owner:e}));else if(i!==a)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(a):o.hasAnimated||o.set(a)}else{const o=e.getStaticValue(r);e.addValue(r,Ri(o!==void 0?o:a,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Mh=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Bw{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:a,blockInitialAnimation:i,visualState:o},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=zd,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const g=vn.now();this.renderScheduledAt<g&&(this.renderScheduledAt=g,Ee.render(this.render,!1,!0))};const{latestValues:c,renderState:u,onUpdate:d}=o;this.onUpdate=d,this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=a,this.options=l,this.blockInitialAnimation=!!i,this.isControllingVariants=zo(n),this.isVariantNode=W0(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:f,...h}=this.scrapeMotionValuesFromProps(n,{},this);for(const g in h){const x=h[g];c[g]!==void 0&&ht(x)&&x.set(c[g],!1)}}mount(t){this.current=t,Rh.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEac
vendor: 5,235 bytes, line 48
48h((n,r)=>this.bindToMotionValue(r,n)),fx.current||Dw(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Jc.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Rh.delete(this.current),this.projection&&this.projection.unmount(),sr(this.notifyUpdate),sr(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=$r.has(t),a=n.on("change",l=>{this.latestValues[t]=l,this.props.onUpdate&&Ee.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{a(),i(),o&&o(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in ba){const n=ba[t];if(!n)continue;const{isEnabled:r,Feature:a}=n;if(!this.features[t]&&a&&r(this.props)&&(this.features[t]=new a(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):qe()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<Mh.length;r++){const a=Mh[r];this.propEventSubscriptions[a]&&(this.propEventSubscriptions[a](),delete this.propEventSubscriptions[a]);const i="on"+a,o=t[i];o&&(this.propEventSubscriptions[a]=this.on(a,o))}this.prevMotionValues=zw(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Ri(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let a=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return a!=null&&(typeof a=="string"&&(Oy(a)||Ny(a))?a=parseFloat(a):!Iw(a)&&or.test(n)&&(a=Ey(t,n)),this.setBaseTarget(t,ht(a)?a.get():a)),ht(a)?a.get():a}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let a;if(typeof r=="string"||typeof r=="object"){const o=Cd(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);o&&(a=o[t])}if(r&&a!==void 0)return a;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!ht(i)?i:this.initialValues[t]!==void 0&&a===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Vd),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class px extends Bw{constructor(){super(...arguments),this.KeyframeResolver=Dy}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;ht(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Uw(e){return window.getComputedStyle(e)}class qw extends px{constructor(){super(...arguments),this.type="html",this.renderInstance=ey}readValueFromInstance(t,n){if($r.has(n)){const r=Id(n);return r&&r.default||0}else{const r=Uw(t),a=(Q0(n)?r.getPropertyValue(n):r[n])||0;
vendor: 4,990 bytes, lines 48-49
48return typeof a=="string"?a.trim():a}}measureInstanceViewportBox(t,{transformPagePoint:n}){return tx(t,n)}build(t,n,r){Sd(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Ad(t,n,r)}}class Ww extends px{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=qe}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if($r.has(n)){const r=Id(n);return r&&r.default||0}return n=ty.has(n)?n:xd(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return ay(t,n,r)}build(t,n,r){Nd(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,a){ny(t,n,r,a)}mount(t){this.isSVGTag=kd(t.tagName),super.mount(t)}}const Hw=(e,t)=>bd(e)?new Ww(t):new qw(t,{allowProjection:e!==R.Fragment}),Gw=x2({...gj,...Fw,...Nw,...Lw},Hw),ee=Mb(Gw);var Wd={};(function e(t,n,r,a){var i=!!(t.Worker&&t.Blob&&t.Promise&&t.OffscreenCanvas&&t.OffscreenCanvasRenderingContext2D&&t.HTMLCanvasElement&&t.HTMLCanvasElement.prototype.transferControlToOffscreen&&t.URL&&t.URL.createObjectURL),o=typeof Path2D=="function"&&typeof DOMMatrix=="function",l=function(){if(!t.OffscreenCanvas)return!1;try{var S=new OffscreenCanvas(1,1),w=S.getContext("2d");w.fillRect(0,0,1,1);var G=S.transferToImageBitmap();w.createPattern(G,"no-repeat")}catch{return!1}return!0}();function c(){}function u(S){var w=n.exports.Promise,G=w!==void 0?w:t.Promise;return typeof G=="function"?new G(S):(S(c,c),null)}var d=function(S,w){return{transform:function(G){if(S)return G;if(w.has(G))return w.get(G);var ae=new OffscreenCanvas(G.width,G.height),ie=ae.getContext("2d");return ie.drawImage(G,0,0),w.set(G,ae),ae},clear:function(){w.clear()}}}(l,new Map),f=function(){var S=Math.floor(16.666666666666668),w,G,ae={},ie=0;return typeof requestAnimationFrame=="function"&&typeof cancelAnimationFrame=="function"?(w=function(ce){var le=Math.random();return ae[le]=requestAnimationFrame(function ne(pe){ie===pe||ie+S-1<pe?(ie=pe,delete ae[le],ce()):ae[le]=requestAnimationFrame(ne)}),le},G=function(ce){ae[ce]&&cancelAnimationFrame(ae[ce])}):(w=function(ce){return setTimeout(ce,S)},G=function(ce){return clearTimeout(ce)}),{frame:w,cancel:G}}(),h=function(){var S,w,G={};function ae(ie){function ce(le,ne){ie.postMessage({options:le||{},callback:ne})}ie.init=function(ne){var pe=ne.transferControlToOffscreen();ie.postMessage({canvas:pe},[pe])},ie.fire=function(ne,pe,je){if(w)return ce(ne,null),w;var Re=Math.random().toString(36).slice(2);return w=u(function(Pe){function Me(Ue){Ue.data.callback===Re&&(delete G[Re],ie.removeEventListener("message",Me),w=null,d.clear(),je(),Pe())}ie.addEventListener("message",Me),ce(ne,Re),G[Re]=Me.bind(null,{data:{callback:Re}})}),w},ie.reset=function(){ie.postMessage({reset:!0});for(var ne in G)G[ne](),delete G[ne]}}return function(){if(S)return S;if(!r&&i){var ie=["var CONFETTI, SIZE = {}, module = {};","("+e.toString()+")(this, module, true, SIZE);","onmessage = function(msg) {","  if (msg.data.options) {","    CONFETTI(msg.data.options).then(function () {","      if (msg.data.callback) {","        postMessage({ callback: msg.data.callback });","      }","    });","  } else if (msg.data.reset) {","    CONFETTI && CONFETTI.reset();","  } else if (msg.data.resize) {","    SIZE.width = msg.data.resize.width;","    SIZE.height = msg.data.resize.height;","  } else if (msg.data.canvas) {","    SIZE.width = msg.data.canvas.width;","    SIZE.height = msg.data.canvas.height;","    CONFETTI = module.exports.create(msg.data.canvas);","  }","}"].join(`
49`);try{S=new Worker(URL.createObjectURL(new Blob([ie])))}catch(ce){return typeof console<"u"&&typeof console.warn=="function"&&console.warn("🎊 Could not load worker",ce),null}ae(S)}return S}}(),g={particleCount:50,angle:90,spread:45,startVelocity:45,decay:.9,gravity:1,drift:0,ticks:200,x:.5,y:.5,shapes:["square","circle"],zIndex:100,colors:["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff"],disableForReducedMotion:!1,scalar:1};function x(S,w){return w?w(S):S}function b(S){return S!=null}function j(S,w,G){return x(S&&b(S[w])?S[w]:g[w],G)}function m(S){return S<0?0:Math.floor(S)}function p(S,w){return Math.floor(Math.random()*(w-S))+S}function y(S){return parseInt(S,16)}function C(S){return S.map(N)}function N(S){var w=String(S).replace(/[^0-9a-f]/gi,"");return w.length<6&&(w=w[0]+w[0]+w[1]+w[1]+w[2]+w[2]),{r:y(w.substring(0,2)),g:y(w.substring(2,4)),b:y(w.substring(4,6))}}function P(S){var w=j(S,"origin",Object);return w.x=j(w,"x",Number),w.y=j(w,"y",Number),w}function O(S){S.width=document.documentElement.clientWidth,S.height=document.documentElement.clientHeight}function V(S){var w=S.getBoundingClientRect();S.width=w.width,S.height=w.height}function B(S){var w=document.createElement("canvas");return w.style.position="fixed",w.style.top="0px",w.style.left="0px",w.style.pointerEvents="none",w.style.zIndex=S,w}function M(S,w,G,ae,ie,ce,le,ne,pe){S.save(),S.translate(w,G),S.rotate(ce),S.scale(ae,ie),S.arc(0,0,1,le,ne,pe),S.restore(
vendor: 6,479 bytes, line 49
49)}function _(S){var w=S.angle*(Math.PI/180),G=S.spread*(Math.PI/180);return{x:S.x,y:S.y,wobble:Math.random()*10,wobbleSpeed:Math.min(.11,Math.random()*.1+.05),velocity:S.startVelocity*.5+Math.random()*S.startVelocity,angle2D:-w+(.5*G-Math.random()*G),tiltAngle:(Math.random()*(.75-.25)+.25)*Math.PI,color:S.color,shape:S.shape,tick:0,totalTicks:S.ticks,decay:S.decay,drift:S.drift,random:Math.random()+2,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:S.gravity*3,ovalScalar:.6,scalar:S.scalar,flat:S.flat}}function Y(S,w){w.x+=Math.cos(w.angle2D)*w.velocity+w.drift,w.y+=Math.sin(w.angle2D)*w.velocity+w.gravity,w.velocity*=w.decay,w.flat?(w.wobble=0,w.wobbleX=w.x+10*w.scalar,w.wobbleY=w.y+10*w.scalar,w.tiltSin=0,w.tiltCos=0,w.random=1):(w.wobble+=w.wobbleSpeed,w.wobbleX=w.x+10*w.scalar*Math.cos(w.wobble),w.wobbleY=w.y+10*w.scalar*Math.sin(w.wobble),w.tiltAngle+=.1,w.tiltSin=Math.sin(w.tiltAngle),w.tiltCos=Math.cos(w.tiltAngle),w.random=Math.random()+2);var G=w.tick++/w.totalTicks,ae=w.x+w.random*w.tiltCos,ie=w.y+w.random*w.tiltSin,ce=w.wobbleX+w.random*w.tiltCos,le=w.wobbleY+w.random*w.tiltSin;if(S.fillStyle="rgba("+w.color.r+", "+w.color.g+", "+w.color.b+", "+(1-G)+")",S.beginPath(),o&&w.shape.type==="path"&&typeof w.shape.path=="string"&&Array.isArray(w.shape.matrix))S.fill(oe(w.shape.path,w.shape.matrix,w.x,w.y,Math.abs(ce-ae)*.1,Math.abs(le-ie)*.1,Math.PI/10*w.wobble));else if(w.shape.type==="bitmap"){var ne=Math.PI/10*w.wobble,pe=Math.abs(ce-ae)*.1,je=Math.abs(le-ie)*.1,Re=w.shape.bitmap.width*w.scalar,Pe=w.shape.bitmap.height*w.scalar,Me=new DOMMatrix([Math.cos(ne)*pe,Math.sin(ne)*pe,-Math.sin(ne)*je,Math.cos(ne)*je,w.x,w.y]);Me.multiplySelf(new DOMMatrix(w.shape.matrix));var Ue=S.createPattern(d.transform(w.shape.bitmap),"no-repeat");Ue.setTransform(Me),S.globalAlpha=1-G,S.fillStyle=Ue,S.fillRect(w.x-Re/2,w.y-Pe/2,Re,Pe),S.globalAlpha=1}else if(w.shape==="circle")S.ellipse?S.ellipse(w.x,w.y,Math.abs(ce-ae)*w.ovalScalar,Math.abs(le-ie)*w.ovalScalar,Math.PI/10*w.wobble,0,2*Math.PI):M(S,w.x,w.y,Math.abs(ce-ae)*w.ovalScalar,Math.abs(le-ie)*w.ovalScalar,Math.PI/10*w.wobble,0,2*Math.PI);else if(w.shape==="star")for(var ye=Math.PI/2*3,Je=4*w.scalar,gt=8*w.scalar,Pt=w.x,$t=w.y,Cn=5,kt=Math.PI/Cn;Cn--;)Pt=w.x+Math.cos(ye)*gt,$t=w.y+Math.sin(ye)*gt,S.lineTo(Pt,$t),ye+=kt,Pt=w.x+Math.cos(ye)*Je,$t=w.y+Math.sin(ye)*Je,S.lineTo(Pt,$t),ye+=kt;else S.moveTo(Math.floor(w.x),Math.floor(w.y)),S.lineTo(Math.floor(w.wobbleX),Math.floor(ie)),S.lineTo(Math.floor(ce),Math.floor(le)),S.lineTo(Math.floor(ae),Math.floor(w.wobbleY));return S.closePath(),S.fill(),w.tick<w.totalTicks}function D(S,w,G,ae,ie){var ce=w.slice(),le=S.getContext("2d"),ne,pe,je=u(function(Re){function Pe(){ne=pe=null,le.clearRect(0,0,ae.width,ae.height),d.clear(),ie(),Re()}function Me(){r&&!(ae.width===a.width&&ae.height===a.height)&&(ae.width=S.width=a.width,ae.height=S.height=a.height),!ae.width&&!ae.height&&(G(S),ae.width=S.width,ae.height=S.height),le.clearRect(0,0,ae.width,ae.height),ce=ce.filter(function(Ue){return Y(le,Ue)}),ce.length?ne=f.frame(Me):Pe()}ne=f.frame(Me),pe=Pe});return{addFettis:function(Re){return ce=ce.concat(Re),je},canvas:S,promise:je,reset:function(){ne&&f.cancel(ne),pe&&pe()}}}function te(S,w){var G=!S,ae=!!j(w||{},"resize"),ie=!1,ce=j(w,"disableForReducedMotion",Boolean),le=i&&!!j(w||{},"useWorker"),ne=le?h():null,pe=G?O:V,je=S&&ne?!!S.__confetti_initialized:!1,Re=typeof matchMedia=="function"&&matchMedia("(prefers-reduced-motion)").matches,Pe;function Me(ye,Je,gt){for(var Pt=j(ye,"particleCount",m),$t=j(ye,"angle",Number),Cn=j(ye,"spread",Number),kt=j(ye,"startVelocity",Number),Xi=j(ye,"decay",Number),Ko=j(ye,"gravity",Number),Zo=j(ye,"drift",Number),Xo=j(ye,"colors",C),of=j(ye,"ticks",Number),Ra=j(ye,"shapes"),v=j(ye,"scalar"),A=!!j(ye,"flat"),T=P(ye),I=Pt,W=[],H=S.width*T.x,U=S.height*T.y;I--;)W.push(_({x:H,y:U,angle:$t,spread:Cn,startVelocity:kt,color:Xo[I%Xo.length],shape:Ra[p(0,Ra.length)],ticks:of,decay:Xi,gravity:Ko,drift:Zo,scalar:v,flat:A}));return Pe?Pe.addFettis(W):(Pe=D(S,W,pe,Je,gt),Pe.promise)}function Ue(ye){var Je=ce||j(ye,"disableForReducedMotion",Boolean),gt=j(ye,"zIndex",Number);if(Je&&Re)return u(function(kt){kt()});G&&Pe?S=Pe.canvas:G&&!S&&(S=B(gt),document.body.appendChild(S)),ae&&!je&&pe(S);var Pt={width:S.width,height:S.height};ne&&!je&&ne.init(S),je=!0,ne&&(S.__confetti_initialized=!0);function $t(){if(ne){var kt={getBoundingClientRect:function(){if(!G)return S.getBoundingClientRect()}};pe(kt),ne.postMessage({resize:{width:kt.width,height:kt.height}});return}Pt.width=Pt.height=null}function Cn(){Pe=null,ae&&(ie=!1,t.removeEventListener("resize",$t)),G&&S&&(document.body.contains(S)&&document.body.removeChild(S),S=null,je=!1)}return ae&&!ie&&(ie=!0,t.addEventListener("resize",$t,!1)),ne?ne.fire(ye,Pt,Cn):Me(ye,Pt,Cn)}return Ue.reset=function(){ne&&ne.reset(),Pe&&Pe.reset()},Ue}var k;function F(){return k||(k=te(null,{useWorker:!0,resize:!0})),k}function oe(S,w,G,ae,ie,ce,le){var ne=new Path2D(S),pe=new Path2D;pe.addPath(ne,new DOMMatrix(w));var je=new Path2D;return je.addPath(pe,new DOMMatrix([Math.cos(le)*ie,Math.sin(le)*ie,-Math.sin(le)*ce,Math.cos(le)*ce,G,ae])),je}function E(S){if(!o)throw new Error("path confetti are not supported in this browser");var w,G;typeof S=="string"?w=S:(w=S.path,G=S.matrix);var ae=new Path2D(w),ie=document.createElement("canvas"),ce=ie.getContext("2d");if(!G){for(var le=1e3,ne=le,pe=le,je=0,Re=0,Pe,Me,Ue=0;Ue<le;Ue+=2)for(var ye=0;ye<le;ye+=2)ce.isPointInPath(ae,Ue,ye,"nonzero")&&(ne=Math.min(ne,Ue),pe=Math.min(pe,ye),je=Math.max(je,Ue),Re=Math.max(Re,ye));Pe=je-ne,Me=Re-pe;var Je=10,gt=Math.min(Je/Pe,Je/Me);G=[gt,0,0,gt,-Math.round(Pe/2+ne)*gt,-Math.round(Me/2+pe)*gt]}return{type:"path",path:w,matrix:G}}function z(S){var w,G=1,ae="#000000",ie='"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", "EmojiOne Color", "Android Emoji", "Twemoji Mozilla", "system emoji", sans-serif';typeof S=="string"?w=S:(w=S.text,G="scalar"in S?S.scalar:G,ie="fontFamily"in S?S.fontFamily:ie,ae="color"in S?S.color:ae);var ce=10*G,le=""+ce+"px "+ie,ne=new OffscreenCanvas(ce,ce),pe=ne.getContext("2d");pe.font=le;var je=pe.measureText(w),Re=Math.ceil(je.actualBoundingBoxRight+je.actualBoundingBoxLeft),Pe=Math.ceil(je.actualBoundingBoxAscent+je.actualBoundingBoxDescent),Me=2,Ue=je.actualBoundingBoxLeft+Me,ye=je.actualBoundingBoxAscent+Me;Re+=Me+Me,Pe+=Me+Me,ne=new OffscreenCanvas(Re,Pe),pe=ne.getContext("2d"),pe.font=le,pe.f
49illStyle=ae,pe.fillText(w,Ue,ye);var Je=1/G;return{type:"bitmap",bitmap:ne.transferToImageBitmap(),matrix:[Je,0,0,Je,-Re*Je/2,-Pe*Je/2]}}n.exports=function(){return F().apply(this,arguments)},n.exports.reset=function(){F().reset()},n.exports.create=te,n.exports.shapeFromPath=E,n.exports.shapeFromText=z})(function(){return typeof window<"u"?window:typeof self<"u"?self:this||{}}(),Wd,!1);const Ea=Wd.exports;Wd.exports.create;/**
50 * @license lucide-react v0.344.0 - ISC
51 *
52 * This source code is licensed under the ISC license.
53 * See the LICENSE file in the root directory of this source tree.
54 */var Kw={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
55 * @license lucide-react v0.344.0 - ISC
56 *
57 * This source code is licensed under the ISC license.
58 * See the LICENSE file in the root directory of this source tree.
59 */const Zw=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),hx=(e,t)=>{const n=R.forwardRef(({color:r="currentColor",size:a=24,strokeWidth:i=2,absoluteStrokeWidth:o,className:l="",children:c,...u},d)=>R.createElement("svg",{ref:d,...Kw,width:a,height:a,stroke:r,strokeWidth:o?Number(i)*24/Number(a):i,className:["lucide",`lucide-${Zw(e)}`,l].join(" "),...u},[...t.map(([f,h])=>R.createElement(f,h)),...Array.isArray(c)?c:[c]]));return n.displayName=`${e}`,n};/**
60 * @license lucide-react v0.344.0 - ISC
61 *
62 * This source code is licensed under the ISC license.
63 * See the LICENSE file in the root directory of this source tree.
64 */const Xw=hx("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
65 * @license lucide-react v0.344.0 - ISC
66 *
67 * This source code is licensed under the ISC license.
68 * See the LICENSE file in the root directory of this source tree.
69 */const Qw=hx("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),Yw=[{id:1,label:"Datos Personales",short:"Datos"},{id:2,label:"Tu Vehículo",short:"Vehículo"},{id:3,label:"Cobertura y Pago",short:"Cobertura"},{id:4,label:"Contacto",short:"Contacto"}];function lr({current:e,steps:t}){const n=t||Yw;return s.jsx("div",{className:"flex items-start w-full",children:n.map((r,a)=>{const i=e>
69r.id,o=e===r.id;return s.jsxs(R.Fragment,{children:[s.jsxs("div",{className:"flex flex-col items-center flex-shrink-0",children:[s.jsx(ee.div,{initial:!1,animate:{backgroundColor:i||o?"#ffffff":"rgba(255,255,255,0.2)",scale:o?1.08:1},transition:{duration:.3},className:"w-7 h-7 sm:w-9 sm:h-9 rounded-full flex items-center justify-center font-bold text-xs sm:text-sm shadow-sm",style:{color:i||o?"#7B3FE4":"rgba(255,255,255,0.45)"},children:i?s.jsx(Xw,{size:14,strokeWidth:3}):r.id}),s.jsxs("span",{className:"text-[11px] sm:text-xs mt-1 text-center leading-tight max-w-[52px] sm:max-w-none sm:whitespace-nowrap",style:{color:o?"#ffffff":i?"rgba(255,255,255,0.8)":"rgba(255,255,255,0.4)",fontWeight:o?700:500},children:[s.jsx("span",{className:"sm:hidden",children:r.short}),s.jsx("span",{className:"hidden sm:inline",children:r.label})]})]}),a<n.length-1&&s.jsx("div",{className:"flex-1 flex items-center",style:{paddingBottom:"22px"},children:s.jsx(ee.div,{initial:!1,animate:{backgroundColor:i?"rgba(255,255,255,0.7)":"rgba(255,255,255,0.2)"},transition:{duration:.4},className:"w-full h-0.5 mx-1 sm:mx-2"})})]},r.id)})})}var Ki=e=>e.type==="checkbox",Pr=e=>e instanceof Date,it=e=>e==null;const mx=e=>typeof e=="object";var Le=e=>!it(e)&&!Array.isArray(e)&&mx(e)&&!Pr(e),eu=e=>Le(e)&&e.target?Ki(e.target)?e.target.checked:e.target.value:e,gx=(e,t)=>t.split(".").some((n,r,a)=>!isNaN(Number(n))&&e.has(a.slice(0,r).join("."))),yx=e=>{const t=e.constructor&&e.constructor.prototype;return Le(t)&&t.hasOwnProperty("isPrototypeOf")},qo=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Ie(e){if(e instanceof Date)return new Date(e);const t=typeof FileList<"u"&&e instanceof FileList;if(qo&&(e instanceof Blob||t))return e;const n=Array.isArray(e);if(!n&&!(Le(e)&&yx(e)))return e;const r=n?[]:Object.create(Object.getPrototypeOf(e));for(const a in e)Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=Ie(e[a]));return r}const Bn={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change",SUBMIT:"submit",TRIGGER:"trigger",VALID:"valid"},sn={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},tn={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Ll="form",xx="root",vx=["__proto__","constructor","prototype"];var Zi=e=>/^\w*$/.test(e),ke=e=>e===void 0,Wo=e=>e.split(/[.[\]'"]/g).filter(Boolean),q=(e,t,n)=>{if(!t||!Le(e))return n;const r=Zi(t)?[t]:Wo(t);if(r.some(i=>vx.includes(i)))return n;const a=r.reduce((i,o)=>it(i)?void 0:i[o],e);return ke(a)||a===e?ke(e[t])?n:e[t]:a},Tt=e=>typeof e=="boolean",ft=e=>typeof e=="function",we=(e,t,n)=>{let r=-1;const a=Zi(t)?[t]:Wo(t),i=a.length,o=i-1;for(;++r<i;){const l=a[r];let c=n;if(r!==o){const u=e[l];c=Le(u)||Array.isArray(u)?u:isNaN(+a[r+1])?{}:[]}if(vx.includes(l))return;e[l]=c,e=e[l]}};const bx=ue.createContext(null);bx.displayName="HookFormControlContext";const Hd=()=>ue.useContext(bx);var Cx=(e,t,n,r=!0)=>{const a={};for(const i in e)Object.defineProperty(a,i,{get:()=>{const o=i;return t._proxyFormState[o]!==sn.all&&(t._proxyFormState[o]=!r||sn.all),n&&(n[o]=!0),e[o]}});return a};const Gd=qo?ue.useLayoutEffect:ue.useEffect;function Jw(e){const t=Hd(),{control:n=t,disabled:r,name:a,exact:i}=e||{},[o,l]=ue.useState(()=>({...n._formState,defaultValues:n._defaultValues})),c=ue.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return Gd(()=>n._subscribe({name:a,formState:c.current,exact:i,callback:u=>{!r&&l({...n._formState,...u,defaultValues:n._defaultValues})}}),[a,r,i]),ue.useEffect(()=>{c.current.isValid&&n._setValid(!0)},[n]),ue.useMemo(()=>Cx(o,n,c.current,!1),[o,n])}var pt=e=>typeof e=="string",tu=(e,t,n,r,a)=>pt(e)?(r&&t.watch.add(e),q(n,e,a)):Array.isArray(e)?e.map(i=>(r&&t.watch.add(i),q(n,i))):(r&&(t.watchAll=!0),n),nu=e=>it(e)||!mx(e);const Oh=(e,t)=>t.length===0&&!Array.isArray(e)&&!yx(e);function _t(e,t,n=new WeakMap){if(e===t)return!0;if(nu(e)||nu(t))return Object.is(e,t);if(Pr(e)&&Pr(t))return Object.is(e.getTime(),t.getTime());const r=Object.keys(e),a=Object.keys(t);if(r.length!==a.length)return!1;if(Oh(e,r)||Oh(t,a))return Object.is(e,t);const i=n.get(e);if(i&&i.has(t))return!0;
69i?i.add(t):n.set(e,new WeakSet([t]));for(const o of r){const l=e[o];if(!(o in t))return!1;if(o!=="ref"){const c=t[o];if(Pr(l)&&Pr(c)||(Le(l)||Array.isArray(l))&&(Le(c)||Array.isArray(c))?!_t(l,c,n):!Object.is(l,c))return!1}}return!0}function eS(e){const t=Hd(),{control:n=t,name:r,defaultValue:a,disabled:i,exact:o,compute:l}=e||{},c=ue.useRef(a),u=ue.useRef(l),d=ue.useRef(void 0),f=ue.useRef(n),h=ue.useRef(r);u.current=l;const[g,x]=ue.useState(()=>{const C=n._getWatch(r,c.current);return u.current?u.current(C):C}),b=ue.useCallback(C=>{const N=tu(r,n._names,C||n._formValues,!1,c.current);return u.current?u.current(N):N},[n._formValues,n._names,r]),j=ue.useCallback(C=>{if(!i){const N=tu(r,n._names,C||n._formValues,!1,c.current);if(u.current){const P=u.current(N);_t(P,d.current)||(x(P),d.current=P)}else x(N)}},[n._formValues,n._names,i,r]);Gd(()=>((f.current!==n||!_t(h.current,r))&&(f.current=n,h.current=r,j()),n._subscribe({name:r,formState:{values:!0},exact:o,callback:C=>{j(C.values)}})),[n,o,r,j]),ue.useEffect(()=>n._removeUnmounted());const m=f.current!==n,p=h.current,y=ue.useMemo(()=>{if(i)return null;const C=!m&&!_t(p,r);return m||C?b():null},[i,m,r,p,b]);return y!==null?y:g}function tS(e){const t=Hd(),{name:n,disabled:r,control:a=t,shouldUnregister:i,defaultValue:o,exact:l=!0}=e,c=gx(a._names.array,n),u=ue.useMemo(()=>q(a._formValues,n,q(a._defaultValues,n,o)),[a,n,o]),d=eS({control:a,name:n,defaultValue:u,exact:l}),f=Jw({control:a,name:n,exact:l}),h=ue.useRef(e),g=ue.useRef(null),x=ue.useRef(a.register(n,{...e.rules,value:d,...Tt(e.disabled)?{disabled:e.disabled}:{}}));h.current=e;const b=ue.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!q(f.errors,n)},isDirty:{enumerable:!0,get:()=>!!q(f.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!q(f.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!q(f.validatingFields,n)},error:{enumerable:!0,get:()=>q(f.errors,n)}}),[f,n]),j=ue.useCallback(C=>{const N=eu(C);return q(a._fields,n)||(x.current=a.register(n,{...h.current.rules,value:N})),x.current.onChange({target:{value:eu(C),name:n},type:Bn.CHANGE})},[n,a]),m=ue.useCallback(()=>x.current.onBlur({target:{value:q(a._formValues,n),name:n},type:Bn.BLUR}),[n,a._formValues]),p=ue.useCallback(C=>{C&&(g.current={focus:()=>ft(C.focus)&&C.focus(),select:()=>ft(C.select)&&C.select(),setCustomValidity:P=>ft(C.setCustomValidity)&&C.setCustomValidity(P),reportValidity:()=>ft(C.reportValidity)&&C.reportValidity()});const N=q(a._fields,n);N&&N._f&&C&&(N._f.ref=g.current)},[a._fields,n]),y=ue.useMemo(()=>({name:n,value:d,...Tt(r)||f.disabled?{disabled:f.disabled||r}:{},onChange:j,onBlur:m,ref:p}),[n,r,f.disabled,j,m,p,d]);return ue.useEffect(()=>{const C=a._options.shouldUnregister||i;a.register(n,{...h.current.rules,...Tt(h.current.disabled)?{disabled:h.current.disabled}:{}});const N=(P,O)=>{const V=q(a._fields,P);V&&V._f&&(V._f.mount=O)};if(N(n,!0),C){const P=Ie(q(i?a._defaultValues:a._options.values||a._defaultValues,n,q(a._options.defaultValues,n,h.current.defaultValue)));we(a._defaultValues,n,P),ke(q(a._formValues,n))&&we(a._formValues,n,P)}if(!c&&a.register(n),g.current){const P=q(a._fields,n);P&&P._f&&(P._f.ref=g.current)}return()=>{(c?C&&!a._state.action:C)?a.unregister(n):N(n,!1)}},[n,a,c,i]),ue.useEffect(()=>{a._setDisabledField({disabled:r,name:n})},[r,n,a]),ue.useMemo(()=>({field:y,formState:f,fieldState:b}),[y,f,b])}const jx=e=>e.render(tS(e)),nS=ue.createContext(null);nS.displayName="HookFormContext";var wx=(e,t,n,r,a)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:a||!0}}:{},Sx=e=>Array.isArray(e)?e.filter(Boolean):[],Vs=e=>Array.isArray(e)?e:[e],Vh=()=>{let e=[];return{get observers(){return e},next:a=>{for(const i of e)i.next&&i.next(a)},subscribe:a=>(e.push(a),{unsubscribe:()=>{e=e.filter(i=>i!==a)}}),unsubscribe:()=>{e=[]}}};function Nx(e,t){const n={};for(const r in e)if(e.hasOwnProperty(r)){const a=e[r],i=t[r];if(a&&Le(a)&&i){const o=Nx(a,i);Le(o)&&(n[r]=o)}else e[r]&&(n[r]=i)}return n}var et=e=>Le(e)&&!Object.keys(e).length,Kd=e=>e.type==="file",ho=e=>{if(!qo)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Px=e=>e.type==="select-multiple",Zd=e=>e.type==="radio",rS=e=>Zd(e)||Ki(e),Dl=e=>ho(e)&&e.isConnected;function aS(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;){if(it(e)){e=void 0;break}e=e[t[r]],r++}return e}function iS(e){for(const t in e)if(e.hasOwnProperty(t)&&!ke(e[t]))return!1;return!0}function Ge(e,t){if(pt(t)&&Object.prototype.hasOwnProperty.call(e,t))return delete e[t],e;const n=Array.isArray(t)?t:Zi(t)?[t]:Wo(t),r=n.length===1?e:aS(e,n),a=n.length-1,i=n[a];return r&&delete r[i],a!==0&&(Le(r)&&et(r)||Array.isArray(r)&&iS(r))&&Ge(e,n.slice(0,-1)),e}var sS=e=>{for(const t in e)if(ft(e[t]))return!0;return!1};function kx(e){return Array.isArray(e)||Le(e)&&!sS(e)}function ru(e,t={}){for(const n in e){const r=e[n];kx(r)?(t[n]=Array.isArray(r)?[]:{},ru(r,t[n])):ke(r)||(t[n]=!0)}return t}function au(e){if(e!==!1){if(e===!0)return!0;
vendor: 5,554 bytes, line 69
69if(Array.isArray(e)){const t=e.map(n=>au(n));return t.some(n=>n!==void 0)?t:void 0}if(Le(e)){const t={};for(const n in e){const r=au(e[n]);ke(r)||(t[n]=r)}return Object.keys(t).length?t:void 0}}}function Cr(e,t,n){n||(n=ru(t));for(const r in e){const a=e[r];if(kx(a))ke(t)||nu(n[r])?n[r]=ru(a,Array.isArray(a)?[]:{}):Cr(a,it(t)?{}:t[r],n[r]);else{const i=t[r];n[r]=!_t(a,i)}}return au(n)||{}}const Fh={value:!1,isValid:!1},Lh={value:!0,isValid:!0};var Ax=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!ke(e[0].attributes.value)?ke(e[0].value)||e[0].value===""?Lh:{value:e[0].value,isValid:!0}:Lh:Fh}return Fh},Tx=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>ke(e)?e:t?e===""?NaN:e&&+e:n&&pt(e)?new Date(e):r?r(e):e;const Dh={isValid:!1,value:null};var _x=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,Dh):Dh;function $h(e){const t=e.ref;return Kd(t)?t.files:Zd(t)?_x(e.refs).value:Px(t)?[...t.selectedOptions].map(({value:n})=>n):Ki(t)?Ax(e.refs).value:Tx(ke(t.value)?e.ref.value:t.value,e)}var oS=(e,t,n,r)=>{const a={};for(const i of e){const o=q(t,i);o&&we(a,i,o._f)}return{criteriaMode:n,names:[...e],fields:a,shouldUseNativeValidation:r}},mo=e=>e instanceof RegExp,Ua=e=>ke(e)?e:mo(e)?e.source:Le(e)?mo(e.value)?e.value.source:e.value:e,Ih=e=>({isOnSubmit:!e||e===sn.onSubmit,isOnBlur:e===sn.onBlur,isOnChange:e===sn.onChange,isOnAll:e===sn.all,isOnTouch:e===sn.onTouched});const zh="AsyncFunction";var lS=e=>!!e&&!!e.validate&&!!(ft(e.validate)&&e.validate.constructor.name===zh||Le(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===zh)),cS=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),$l=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(`${r}.`)));const fi=(e,t,n,r)=>{for(const a of n||Object.keys(e)){const i=q(e,a);if(i){const{_f:o,...l}=i;if(o){if(o.refs&&o.refs[0]&&t(o.refs[0],a)&&!r)return!0;if(o.ref&&t(o.ref,o.name)&&!r)return!0;if(fi(l,t))break}else if(Le(l)&&fi(l,t))break}}};function Bh(e,t,n){const r=q(e,n);if(r||Zi(n))return{error:r,name:n};const a=n.split(".");for(;a.length;){const i=a.join("."),o=q(t,i),l=q(e,i);if(o&&!Array.isArray(o)&&n!==i)return{name:n};if(l&&l.type)return{name:i,error:l};if(l&&l.root&&l.root.type)return{name:`${i}.root`,error:l.root};a.pop()}return{name:n}}var uS=(e,t,n,r)=>{n(e);const{name:a,...i}=e;return et(i)||r&&Object.keys(i).length>=Object.keys(t).length||Object.keys(i).find(o=>t[o]===(!r||sn.all))},dS=(e,t,n)=>!e||!t||e===t||Vs(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r))),fS=(e,t,n,r,a)=>a.isOnAll?!1:!n&&a.isOnTouch?!(t||e):(n?r.isOnBlur:a.isOnBlur)?!e:(n?r.isOnChange:a.isOnChange)?e:!0,pS=(e,t)=>!Sx(q(e,t)).length&&Ge(e,t),Uh=(e,t,n)=>{const r=q(e,n),a=Array.isArray(r)?r:[];return we(a,xx,t[n]),we(e,n,a),e};function qh(e,t,n="validate"){if(pt(e)||Array.isArray(e)&&e.every(pt)||Tt(e)&&!e)return{type:n,message:pt(e)?e:"",ref:t}}var zr=e=>Le(e)&&!mo(e)?e:{value:e,message:""},Wh=async(e,t,n,r,a,i)=>{const{ref:o,refs:l,required:c,maxLength:u,minLength:d,min:f,max:h,pattern:g,validate:x,name:b,valueAsNumber:j,mount:m}=e._f,p=q(n,b);if(!m||t.has(b))return{};const y=l?l[0]:o,C=Y=>{if(a&&y.reportValidity){const D=Tt(Y)?"":Y||"";l?l.forEach(te=>te.setCustomValidity(D)):y.setCustomValidity(D),y.reportValidity()}},N={},P=Zd(o),O=Ki(o),V=P||O,B=(j||Kd(o))&&ke(o.value)&&ke(p)||ho(o)&&o.value===""||p===""||Array.isArray(p)&&!p.length,M=wx.bind(null,b,r,N),_=(Y,D,te,k=tn.maxLength,F=tn.minLength)=>{const oe=Y?D:te;N[b]={type:Y?k:F,message:oe,ref:o,...M(Y?k:F,oe)}};if(i?!Array.isArray(p)||!p.length:c&&(!V&&(B||it(p))||Tt(p)&&!p||O&&!Ax(l).isValid||P&&!_x(l).isValid)){const{value:Y,message:D}=pt(c)?{value:!!c,message:c}:zr(c);if(Y&&(N[b]={type:tn.required,message:D,ref:y,...M(tn.required,D)},!r))return C(D),N}if(!B&&(!it(f)||!it(h))){let Y,D;const te=zr(h),k=zr(f);if(!it(p)&&!isNaN(p)){const F=o.valueAsNumber||p&&+p;it(te.value)||(Y=F>te.value),it(k.value)||(D=F<k.value)}else{const F=o.valueAsDate||new Date(p),oe=S=>new Date(new Date().toDateString()+" "+S),E=o.type=="time",z=o.type=="week";pt(te.value)&&p&&(Y=E?oe(p)>oe(te.value):z?p>te.value:F>new Date(te.value)),pt(k.value)&&p&&(D=E?oe(p)<oe(k.value):z?p<k.value:F<new Date(k.value))}if((Y||D)&&(_(!!Y,te.message,k.message,tn.max,tn.min),!r))return C(N[b].message),N}if((u||d)&&!B&&(pt(p)||i&&Array.isArray(p))){const Y=zr(u),D=zr(d),te=!it(Y.value)&&p.length>+Y.value,k=!it(D.value)&&p.length<+D.value;if((te||k)&&(_(te,Y.message,D.message),!r))return C(N[b].message),N}if(g&&!B&&pt(p)){const{value:Y,message:D}=zr(g);if(mo(Y)&&!p.match(Y)&&(N[b]={type:tn.pattern,message:D,ref:o,...M(tn.pattern,D)},!r))return C(D),N}if(x){if(ft(x)){const Y=await x(p,n),D=qh(Y,y);if(D&&(N[b]={...D,...M(tn.validate,D.message)},!r))return C(D.message),N}else if(Le(x)){let Y={};for(const D in x){if(!et(Y)&&!r)break;const te=qh(await x[D](p,n),y,D);te&&(Y={...te,...M(D,te.message)},C(te.message),r&&(N[b]=Y))}if(!et(Y)&&(N[b]={ref:y,...Y},!r))return N}}return C(!0),N};const hS={mode:sn.onSubmit,reValidateMode:sn.onChange,shouldFocusError:!0},Ex={submitCount:0,isDirty:!1,isReady:!1,isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{}};function mS(e={}){let t={...hS,...e},n={...Ie(Ex),isLoading:ft(t.defaultValues),errors:t.errors||{},disabled:t.disabled||!1}
69,r={},a=Le(t.defaultValues)||Le(t.values)?Ie(t.defaultValues||t.values)||{}:{},i=t.shouldUnregister?{}:Ie(a),o={action:!1,mount:!1,watch:!1,keepIsValid:!1},l={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set,registerName:new Set},c,u=0;const d={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},f={...d};let h={...f};const g={array:Vh(),state:Vh()},x=t.criteriaMode===sn.all,b=v=>A=>{clearTimeout(u),u=setTimeout(v,A)},j=async v=>{if(!o.keepIsValid&&!t.disabled&&(f.isValid||h.isValid||v)){let A;t.resolver?(A=et((await M()).errors),m()):A=await D({fields:r,onlyCheckValid:!0,eventType:Bn.VALID}),A!==n.isValid&&g.state.next({isValid:A})}},m=(v,A)=>{!t.disabled&&(f.isValidating||f.validatingFields||h.isValidating||h.validatingFields)&&((v||Array.from(l.mount)).forEach(T=>{T&&(A?we(n.validatingFields,T,A):Ge(n.validatingFields,T))}),g.state.next({validatingFields:n.validatingFields,isValidating:!et(n.validatingFields)}))},p=()=>{n.dirtyFields=Cr(a,i)},y=(v,A=[],T,I,W=!0,H=!0)=>{if(I&&T&&!t.disabled){if(o.action=!0,H&&Array.isArray(q(r,v))){const U=T(q(r,v),I.argA,I.argB);W&&we(r,v,U)}if(H&&Array.isArray(q(n.errors,v))){const U=T(q(n.errors,v),I.argA,I.argB);W&&we(n.errors,v,U),pS(n.errors,v)}if((f.touchedFields||h.touchedFields)&&H&&Array.isArray(q(n.touchedFields,v))){const U=T(q(n.touchedFields,v),I.argA,I.argB);W&&we(n.touchedFields,v,U)}(f.dirtyFields||h.dirtyFields)&&p(),g.state.next({name:v,isDirty:k(v,A),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else we(i,v,A)},C=(v,A)=>{we(n.errors,v,A),n.errors={...n.errors},g.state.next({errors:n.errors})},N=v=>{n.errors=v,g.state.next({errors:n.errors,isValid:!1})},P=v=>{const A=Zi(v)?[v]:Wo(v);let T=i,I=a;for(let W=0;W<A.length-1;W++){const H=A[W];if(T=it(T)?T:T[H],I=it(I)?I:I[H],T===null&&I!==null)return!0}return!1},O=(v,A,T,I)=>{const W=q(r,v);if(W){if(P(v))return;const H=ke(q(i,v)),U=q(i,v,ke(T)?q(a,v):T);ke(U)||I&&I.defaultChecked||A?we(i,v,A?U:$h(W._f)):E(v,U),o.mount&&!o.action&&(j(),H&&n.isDirty&&(f.isDirty||h.isDirty)&&(k()||(n.isDirty=!1,g.state.next({...n}))),e.shouldUnregister&&H&&!ke(q(i,v))&&$l(v,l)&&(o.watch=!0))}},V=(v,A,T,I,W)=>{let H=!1,U=!1;const re={name:v};if(!t.disabled){if(!T||I){(f.isDirty||h.isDirty)&&(U=n.isDirty,n.isDirty=re.isDirty=k(),H=U!==re.isDirty);const xe=_t(q(a,v),A);U=!!q(n.dirtyFields,v),xe!==n.isDirty?n.dirtyFields=Cr(a,i):xe?Ge(n.dirtyFields,v):we(n.dirtyFields,v,!0),re.dirtyFields=n.dirtyFields,H=H||(f.dirtyFields||h.dirtyFields)&&U!==!xe}if(T){const xe=q(n.touchedFields,v);xe||(we(n.touchedFields,v,T),re.touchedFields=n.touchedFields,H=H||(f.touchedFields||h.touchedFields)&&xe!==T)}H&&W&&g.state.next(re)}return H?re:{}},B=(v,A,T,I)=>{const W=q(n.errors,v),H=(f.isValid||h.isValid)&&Tt(A)&&n.isValid!==A;if(t.delayError&&T?(c=b(()=>C(v,T)),c(t.delayError)):(clearTimeout(u),c=null,T?we(n.errors,v,T):Ge(n.errors,v),n.errors={...n.errors}),(T?!_t(W,T):W)||!et(I)||H){const U={...I,...H&&Tt(A)?{isValid:A}:{},errors:n.errors,name:v};n={...n,...U},g.state.next(U)}},M=async v=>(m(v,!0),await t.resolver(i,t.context,oS(v||l.mount,r,t.criteriaMode,t.shouldUseNativeValidation))),_=async v=>{const{errors:A}=await M(v);if(m(v),v){for(const T of v){const I=q(A,T);I?l.array.has(T)&&Le(I)&&!Object.keys(I).some(W=>!Number.isNaN(Number(W)))?Uh(n.errors,{[T]:I},T):we(n.errors,T,I):Ge(n.errors,T)}n.errors={...n.errors}}else n.errors=A;return A},Y=async({name:v,eventType:A})=>
69{if(e.validate){const T=await e.validate({formValues:i,formState:n,name:v,eventType:A});if(Le(T))for(const I in T){const W=T[I];W&&je(`${Ll}.${I}`,{message:pt(W.message)?W.message:"",type:W.type||tn.validate})}else pt(T)||!T?je(Ll,{message:T||"",type:tn.validate}):pe(Ll);return T}return!0},D=async({fields:v,onlyCheckValid:A,name:T,eventType:I,context:W={valid:!0,runRootValidation:!1}})=>{if(e.validate&&(W.runRootValidation=!0,!await Y({name:T,eventType:I})&&(W.valid=!1,A)))return W.valid;for(const H in v){const U=v[H];if(U){const{_f:re,...xe}=U;if(re){const He=l.array.has(re.name),It=U._f&&lS(U._f),Yt=f.validatingFields||f.isValidating||h.validatingFields||h.isValidating;It&&Yt&&m([re.name],!0);const mr=await Wh(U,l.disabled,i,x,t.shouldUseNativeValidation&&!A,He);if(It&&Yt&&m([re.name]),mr[re.name]&&(W.valid=!1,A)||(!A&&(q(mr,re.name)?He?Uh(n.errors,mr,re.name):we(n.errors,re.name,mr[re.name]):Ge(n.errors,re.name)),e.shouldUseNativeValidation&&mr[re.name]))break}!et(xe)&&await D({context:W,onlyCheckValid:A,fields:xe,name:H,eventType:I})}}return W.valid},te=()=>{for(const v of l.unMount){const A=q(r,v);A&&(A._f.refs?A._f.refs.every(T=>!Dl(T)):!Dl(A._f.ref))&&Ue(v)}l.unMount=new Set},k=(v,A)=>!t.disabled&&(v&&A&&we(i,v,A),!_t(le(),a)),F=(v,A,T)=>tu(v,l,{...o.mount?i:ke(A)?a:pt(v)?{[v]:A}:A},T,A),oe=v=>Sx(q(o.mount?i:a,v,t.shouldUnregister?q(a,v,[]):[])),E=(v,A,T={},I=!1)=>{const W=q(r,v);let H=A;if(W){const U=W._f;U&&(!U.disabled&&we(i,v,Tx(A,U)),H=ho(U.ref)&&it(A)?"":A,Px(U.ref)?[...U.ref.options].forEach(re=>re.selected=H.includes(re.value)):U.refs?Ki(U.ref)?U.refs.forEach(re=>{(!re.defaultChecked||!re.disabled)&&(Array.isArray(H)?re.checked=!!H.find(xe=>xe===re.value):re.checked=H===re.value||!!H)}):U.refs.forEach(re=>re.checked=re.value===H):Kd(U.ref)?U.ref.value="":(U.ref.value=H,U.ref.type||g.state.next({name:v,values:I?i:Ie(i)})))}(T.shouldDirty||T.shouldTouch)&&V(v,H,T.shouldTouch,T.shouldDirty,!0),T.shouldValidate&&ce(v)},z=(v,A,T,I=!1)=>{for(const W in A){if(!A.hasOwnProperty(W))return;const H=A[W],U=v+"."+W,re=q(r,U);(l.array.has(v)||Le(H)||re&&!re._f)&&!Pr(H)?z(U,H,T,I):E(U,H,T,I)}},S=(v,A,T,I)=>{const W=q(r,v),H=l.array.has(v),U=I?A:Ie(A),re=q(i,v),xe=_t(re,U);if(xe||we(i,v,U),H)g.array.next({name:v,values:I?i:Ie(i)}),(f.isDirty||f.dirtyFields||h.isDirty||h.dirtyFields)&&T.shouldDirty&&(p(),g.state.next({name:v,dirtyFields:n.dirtyFields,isDirty:k(v,U)}));else{const He=Array.isArray(U)&&!U.length||et(U);!W||W._f||it(U)||He?E(v,U,T,I):z(v,U,T,I)}if(!xe){const He=$l(v,l),It=I?i:Ie(i);g.state.next({...He&&n,name:o.mount||He?v:void 0,values:It})}},w=(v,A,T={})=>S(v,A,T,!1),G=(v,A={})=>{const T=ft(v)?v(i):v;if(!_t(i,T)){i={...i,...T};for(const I of l.mount)S(I,q(T,I),A,!0);g.state.next({...n,name:void 0,type:void 0,values:i}),A.shouldValidate&&j()}},ae=async v=>{o.mount=!0;const A=v.target;let T=A.name,I=!0;const W=q(r,T),H=xe=>{I=Number.isNaN(xe)||Pr(xe)&&isNaN(xe.getTime())||_t(xe,q(i,T,xe))},U=Ih(t.mode),re=Ih(t.reValidateMode);if(W){let xe,He;const It=A.type?$h(W._f):eu(v),Yt=v.type===Bn.BLUR||v.type===Bn.FOCUS_OUT,mr=!cS(W._f)&&!e.validate&&!t.resolver&&!q(n.errors,T)&&!W._f.deps||fS(Yt,q(n.touchedFields,T),n.isSubmitted,re,U),Qo=$l(T,l,Yt);we(i,T,It),Yt?(!A||!A.readOnly)&&(W._f.onBlur&&W._f.onBlur(v),c&&c(0)):W._f.onChange&&W._f.onChange(v);const Ma=V(T,It,Yt),Gx=!et(Ma)||Qo;if(!Yt&&g.state.next({name:T,type:v.type,values:Ie(i)}),mr)return(f.isValid||h.isValid)&&(t.mode==="onBlur"?Yt&&j():Yt||j()),Gx&&g.state.next({name:T,...Qo?{}:Ma});if(!t.resolver&&e.validate&&await Y({name:T,eventType:v.type}),!Yt&&Qo&&g.state.next({...n}),t.resolver){const{errors:lf}=await M([T]);if(m([T]),H(It),!I){!et(Ma)&&g.state.next(Ma);return}const Kx=Bh(n.errors,r,T),cf=Bh(lf,r,Kx.name||T);xe=cf.error,T=cf.name,He=et(lf)}else m([T],!0),xe=(await Wh(W,l.disabled,i,x,t.shouldUseNativeValidation))[T],m([T]),H(It),I&&(xe?He=!1:(f.isValid||h.isValid)&&(He=await D({fields:r,onlyCheckValid:!0,name:T,eventType:v.type})));I&&(W._f.deps&&(!Array.isArray(W._f.deps)||W._f.deps.length>0)&&ce(W._f.deps),B(T,He,xe,Ma))}},ie=(v,A)=>{if(q(n.errors,A)&&v.focus)return v.focus(),1},ce=async(v,A={})=>{let T,I;const W=Vs(v);if(t.resolver){const H=await _(ke(v)?v:W);T=et(H),I=v?!W.some(U=>q(H,U)):T}else v?(I=(await Promise.all(W.map(async H=>{const U=q(r,H);return await D({fields:U&&U._f?{[H]:U}:U,eventType:Bn.TRIGGER})}))).every(Boolean),!(!I&&!n.isValid)&&j()):I=T=await D({fields:r,name:v,eventType:Bn.TRIGGER});return g.state.next({...!pt(v)||(f.isValid||h.isValid)&&T!==n.isValid?{}:{name:v},...t.resolver||!v?{isValid:T}:{},errors:n.errors}),A.shouldFocus&&!I&&fi(r,ie,v?W:l.mount),I},le=(v,A)=>{let T={...o.mount?i:a};return A&&(T=Nx(A.dirtyFields?n.dirtyFields:n.touchedFields,T)),ke(v)?T:pt(v)?q(T,v):v.map(I=>q(T,I))},ne=(v,A)=>({invalid:!!q((A||n).errors,v),isDirty:!!q((A||n).dirtyFields,v),error:q((A||n).errors,v),isValidating:!!q(n.validatingFields,v),isTouched:!!q((A||n).touchedFields,v)}),pe=v=>{const A=v?Vs(v):void 0;A==null||A.forEach(T=>Ge(n.errors,T)),A?A.forEach(T=>{g.state.next({name:T,errors:n.errors})}):g.state.next({errors:{}})},je=(v,A,T)=>{const I=(q(r,v,{_f:{}})._f||{}).ref,W=q(n.errors,v)||{}
vendor: 5,952 bytes, line 69
69,{ref:H,message:U,type:re,...xe}=W;we(n.errors,v,{...xe,...A,ref:I}),g.state.next({name:v,errors:n.errors,isValid:!1}),T&&T.shouldFocus&&I&&I.focus&&I.focus()},Re=(v,A)=>ft(v)?g.state.subscribe({next:T=>"values"in T&&v(T.values||F(void 0,A),T)}):F(v,A,!0),Pe=v=>g.state.subscribe({next:A=>{if(dS(v.name,A.name,v.exact)&&uS(A,v.formState||f,Zo,v.reRenderRoot)){const T={...i};v.callback({values:T,...n,...A,defaultValues:a})}}}).unsubscribe,Me=v=>(o.mount=!0,h={...h,...v.formState},Pe({...v,formState:{...d,...v.formState}})),Ue=(v,A={})=>{for(const T of v?Vs(v):l.mount)l.mount.delete(T),l.array.delete(T),A.keepValue||(Ge(r,T),Ge(i,T)),!A.keepError&&Ge(n.errors,T),!A.keepDirty&&Ge(n.dirtyFields,T),!A.keepTouched&&Ge(n.touchedFields,T),!A.keepIsValidating&&Ge(n.validatingFields,T),!t.shouldUnregister&&!A.keepDefaultValue&&Ge(a,T);g.state.next({values:Ie(i)}),g.state.next({...n,...A.keepDirty?{isDirty:k()}:{}}),!A.keepIsValid&&j()},ye=({disabled:v,name:A})=>{if(Tt(v)&&o.mount||v||l.disabled.has(A)){const W=l.disabled.has(A)!==!!v;v?l.disabled.add(A):l.disabled.delete(A),W&&o.mount&&!o.action&&j()}},Je=(v,A={})=>{let T=q(r,v);const I=Tt(A.disabled)||Tt(t.disabled),W=!l.registerName.has(v)&&T&&T._f&&!T._f.mount;return we(r,v,{...T||{},_f:{...T&&T._f?T._f:{ref:{name:v}},name:v,mount:!0,...A}}),l.mount.add(v),T&&!W?ye({disabled:Tt(A.disabled)?A.disabled:t.disabled,name:v}):O(v,!0,A.value),{...I?{disabled:A.disabled||t.disabled}:{},...t.progressive?{required:!!A.required,min:Ua(A.min),max:Ua(A.max),minLength:Ua(A.minLength),maxLength:Ua(A.maxLength),pattern:Ua(A.pattern)}:{},name:v,onChange:ae,onBlur:ae,ref:H=>{if(H){l.registerName.add(v),Je(v,A),l.registerName.delete(v),T=q(r,v);const U=ke(H.value)&&H.querySelectorAll&&H.querySelectorAll("input,select,textarea")[0]||H,re=rS(U),xe=T._f.refs||[];if(re?xe.find(He=>He===U):U===T._f.ref)return;we(r,v,{_f:{...T._f,...re?{refs:[...xe.filter(Dl),U,...Array.isArray(q(a,v))?[{}]:[]],ref:{type:U.type,name:v}}:{ref:U}}}),O(v,!1,void 0,U)}else T=q(r,v,{}),T._f&&(T._f.mount=!1),(t.shouldUnregister||A.shouldUnregister)&&!(gx(l.array,v)&&o.action)&&l.unMount.add(v)}}},gt=()=>t.shouldFocusError&&!t.shouldUseNativeValidation&&fi(r,ie,l.mount),Pt=v=>{Tt(v)&&(g.state.next({disabled:v}),fi(r,(A,T)=>{const I=q(r,T);I&&(A.disabled=I._f.disabled||v,Array.isArray(I._f.refs)&&I._f.refs.forEach(W=>{W.disabled=I._f.disabled||v}))},0,!1))},$t=(v,A)=>async T=>{let I;T&&(T.preventDefault&&T.preventDefault(),T.persist&&T.persist());let W=Ie(i);if(g.state.next({isSubmitting:!0}),t.resolver){const{errors:H,values:U}=await M();m(),n.errors=H,W=Ie(U)}else await D({fields:r,eventType:Bn.SUBMIT});if(l.disabled.size)for(const H of l.disabled)Ge(W,H);if(Ge(n.errors,xx),et(n.errors)){g.state.next({errors:{}});try{await v(W,T)}catch(H){I=H}}else A&&await A({...n.errors},T),gt(),setTimeout(gt);if(g.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:et(n.errors)&&!I,submitCount:n.submitCount+1,errors:n.errors}),I)throw I},Cn=(v,A={})=>{q(r,v)&&(ke(A.defaultValue)?w(v,Ie(q(a,v))):(w(v,A.defaultValue),we(a,v,Ie(A.defaultValue))),A.keepTouched||Ge(n.touchedFields,v),A.keepDirty||(Ge(n.dirtyFields,v),n.isDirty=A.defaultValue?k(v,Ie(q(a,v))):k()),A.keepError||(Ge(n.errors,v),f.isValid&&j()),g.state.next({...n}))},kt=(v,A={})=>{const T=v?Ie(v):a,I=Ie(T),W=et(v),H=I;if(A.keepDefaultValues||(a=T),!A.keepValues){if(A.keepDirtyValues){const U=new Set([...l.mount,...Object.keys(Cr(a,i))]);for(const re of Array.from(U)){const xe=q(n.dirtyFields,re),He=q(i,re),It=q(H,re);xe&&!ke(He)?we(H,re,He):!xe&&!ke(It)&&w(re,It)}}else{if(qo&&ke(v))for(const U of l.mount){const re=q(r,U);if(re&&re._f){const xe=Array.isArray(re._f.refs)?re._f.refs[0]:re._f.ref;if(ho(xe)){const He=xe.closest("form");if(He){He.reset();break}}}}if(A.keepFieldsRef)for(const U of l.mount)w(U,q(H,U));else r={}}if(t.shouldUnregister){if(i=A.keepDefaultValues?Ie(a):{},A.keepFieldsRef)for(const U of l.mount)we(i,U,q(H,U))}else i=Ie(H);g.array.next({values:{...H}}),g.state.next({values:{...H}})}l={mount:A.keepDirtyValues?l.mount:new Set,unMount:new Set,array:new Set,registerName:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},o.mount=!f.isValid||!!A.keepIsValid||!!A.keepDirtyValues||!t.shouldUnregister&&!et(H),o.watch=!!t.shouldUnregister,o.keepIsValid=!!A.keepIsValid,o.action=!1,A.keepErrors||(n.errors={}),g.state.next({submitCount:A.keepSubmitCount?n.submitCount:0,isDirty:W?!1:A.keepDirty?n.isDirty:A.keepValues?k():!!(A.keepDefaultValues&&!_t(v,a)),isSubmitted:A.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:W?{}:A.keepDirtyValues?A.keepDefaultValues&&i?Cr(a,i):n.dirtyFields:A.keepDefaultValues&&v?Cr(a,v):A.keepDirty?n.dirtyFields:{},touchedFields:A.keepTouched?n.touchedFields:{},errors:A.keepErrors?n.errors:{},isSubmitSuccessful:A.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:a})},Xi=(v,A)=>kt(ft(v)?v(i):v,{...t.resetOptions,...A}),Ko=(v,A={})=>{const T=q(r,v),I=T&&T._f;if(I){const W=I.refs?I.refs[0]:I.ref;W.focus&&setTimeout(()=>{W.focus(),A.shouldSelect&&ft(W.select)&&W.select()})}},Zo=v=>{n={...n,...v}},Ra={control:{register:Je,unregister:Ue,getFieldState:ne,handleSubmit:$t,setError:je,_subscribe:Pe,_runSchema:M,_updateIsValidating:m,_focusError:gt,_getWatch:F,_getDirty:k,_setValid:j,_setFieldArray:y,_setDisabledField:ye,_setErrors:N,_getFieldArray:oe,_reset:kt,_resetDefaultValues:()=>ft(t.defaultValues)&&t.defaultValues().then(v=>{Xi(v,t.resetOptions),g.state.next({isLoading:!1})}),_removeUnmounted:te,_disableForm:Pt,_subjects:g,_proxyFormState:f,get _fields(){return r},get _formValues(){return i},get _state(){return o},set _state(v){o=v},get _defaultValues(){return a},get _names(){return l},set _names(v){l=v},get _formState(){return n},get _options(){return t},set _options(v){t={...t,...v}}},subscribe:Me,trigger:ce,register:Je,handleSubmit:$t,watch:Re,setValue:w,setValues:G,getValues:le,reset:Xi,resetField:Cn,resetDefaultValues:(v,A={})=>
69{if(a=Ie(v),!A.keepDirty){const T=Cr(a,i);n.dirtyFields=T,n.isDirty=!et(T)}A.keepIsValid||j(),g.state.next({...n,defaultValues:a})},clearErrors:pe,unregister:Ue,setError:je,setFocus:Ko,getFieldState:ne};return{...Ra,formControl:Ra}}function un(e={}){const t=ue.useRef(void 0),n=ue.useRef(void 0),r=ue.useRef(e.formControl),[a,i]=ue.useState(()=>({...Ie(Ex),isLoading:ft(e.defaultValues),errors:e.errors||{},disabled:e.disabled||!1,defaultValues:ft(e.defaultValues)?void 0:e.defaultValues}));if(!t.current||e.formControl&&r.current!==e.formControl)if(r.current=e.formControl,e.formControl)t.current={...e.formControl,formState:a},e.defaultValues&&!ft(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:l,...c}=mS(e);t.current={...c,formState:a}}const o=t.current.control;return o._options=e,Gd(()=>{const l=o._subscribe({formState:o._proxyFormState,callback:()=>i({...o._formState,defaultValues:o._defaultValues}),reRenderRoot:!0});return i(c=>({...c,isReady:!0})),o._formState.isReady=!0,l},[o]),ue.useEffect(()=>o._disableForm(e.disabled),[o,e.disabled]),ue.useEffect(()=>{e.mode&&(o._options.mode=e.mode),e.reValidateMode&&(o._options.reValidateMode=e.reValidateMode)},[o,e.mode,e.reValidateMode]),ue.useEffect(()=>{e.errors&&(o._setErrors(e.errors),o._focusError())},[o,e.errors]),ue.useEffect(()=>{e.shouldUnregister&&o._subjects.state.next({values:o._getWatch()})},[o,e.shouldUnregister]),ue.useEffect(()=>{if(o._proxyFormState.isDirty){const l=o._getDirty();l!==a.isDirty&&o._subjects.state.next({isDirty:l})}},[o,a.isDirty]),ue.useEffect(()=>{var l;e.values&&!_t(e.values,n.current)?(o._reset(e.values,{keepFieldsRef:!0,...o._options.resetOptions}),!((l=o._options.resetOptions)===null||l===void 0)&&l.keepIsValid||o._setValid(),n.current=e.values,i(c=>({...c}))):o._resetDefaultValues()},[o,e.values]),ue.useEffect(()=>{o._state.mount||(o._setValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()}),t.current.formState=ue.useMemo(()=>Cx(a,o),[o,a]),t.current}const Hh=(e,t,n)=>{if(e&&"reportValidity"in e){const r=q(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},Rx=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?Hh(r.ref,n,e):r.refs&&r.refs.forEach(a=>Hh(a,n,e))}},gS=(e,t)=>{t.shouldUseNativeValidation&&Rx(e,t);const n={};for(const r in e){const a=q(t.fields,r),i=Object.assign(e[r]||{},{ref:a&&a.ref});if(yS(t.names||Object.keys(e),r)){const o=Object.assign({},q(n,r));we(o,"root",i),we(n,r,o)}else we(n,r,i)}return n},yS=(e,t)=>e.some(n=>n.startsWith(t+"."));var xS=function(e,t){for(var n={};e.length;){var r=e[0],a=r.code,i=r.message,o=r.path.join(".");if(!n[o])if("unionErrors"in r){var l=r.unionErrors[0].errors[0];n[o]={message:l.message,type:l.code}}else n[o]={message:i,type:a};if("unionErrors"in r&&r.unionErrors.forEach(function(d){return d.errors.forEach(function(f){return e.push(f)})}),t){var c=n[o].types,u=c&&c[r.code];n[o]=wx(o,t,n,a,u?[].concat(u,r.message):r.message)}e.shift()}return n},dn=function(e,t,n){return n===void 0&&(n={}),function(r,a,i){try{return Promise.resolve(function(o,l){try{var c=Promise.resolve(e[n.mode==="sync"?"parse":"parseAsync"](r,t)).then(function(u){return i.shouldUseNativeValidation&&Rx({},i),{errors:{},values:n.raw?r:u}})}catch(u){return l(u)}return c&&c.then?c.then(void 0,l):c}(0,function(o){if(function(l){return Array.isArray(l==null?void 0:l.errors)}(o))return{values:{},errors:gS(xS(o.errors,!i.shouldUseNativeValidation&&i.criteriaMode==="all"),i)};throw o}))}catch(o){return Promise.reject(o)}}},Ce;(function(e){e.assertEqual=a=>{};function t(a){}e.assertIs=t;function n(a){throw new Error}e.assertNever=n,e.arrayToEnum=a=>{const i={};for(const o of a)i[o]=o;return i},e.getValidEnumValues=a=>{const i=e.objectKeys(a).filter(l=>typeof a[a[l]]!="number"),o={};for(const l of i)o[l]=a[l];return e.objectValues(o)},e.objectValues=a=>e.objectKeys(a).map(function(i){return a[i]}),e.objectKeys=typeof Object.keys=="function"?a=>Object.keys(a):a=>{const i=[];for(const o in a)Object.prototype.hasOwnProperty.call(a,o)&&i.push(o);return i},e.find=(a,i)=>{for(const o of a)if(i(o))return o}
vendor: 5,815 bytes, line 69
69,e.isInteger=typeof Number.isInteger=="function"?a=>Number.isInteger(a):a=>typeof a=="number"&&Number.isFinite(a)&&Math.floor(a)===a;function r(a,i=" | "){return a.map(o=>typeof o=="string"?`'${o}'`:o).join(i)}e.joinValues=r,e.jsonStringifyReplacer=(a,i)=>typeof i=="bigint"?i.toString():i})(Ce||(Ce={}));var Gh;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(Gh||(Gh={}));const Q=Ce.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Un=e=>{switch(typeof e){case"undefined":return Q.undefined;case"string":return Q.string;case"number":return Number.isNaN(e)?Q.nan:Q.number;case"boolean":return Q.boolean;case"function":return Q.function;case"bigint":return Q.bigint;case"symbol":return Q.symbol;case"object":return Array.isArray(e)?Q.array:e===null?Q.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?Q.promise:typeof Map<"u"&&e instanceof Map?Q.map:typeof Set<"u"&&e instanceof Set?Q.set:typeof Date<"u"&&e instanceof Date?Q.date:Q.object;default:return Q.unknown}},L=Ce.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class On extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){const n=t||function(i){return i.message},r={_errors:[]},a=i=>{for(const o of i.issues)if(o.code==="invalid_union")o.unionErrors.map(a);else if(o.code==="invalid_return_type")a(o.returnTypeError);else if(o.code==="invalid_arguments")a(o.argumentsError);else if(o.path.length===0)r._errors.push(n(o));else{let l=r,c=0;for(;c<o.path.length;){const u=o.path[c];c===o.path.length-1?(l[u]=l[u]||{_errors:[]},l[u]._errors.push(n(o))):l[u]=l[u]||{_errors:[]},l=l[u],c++}}};return a(this),r}static assert(t){if(!(t instanceof On))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Ce.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},r=[];for(const a of this.issues)if(a.path.length>0){const i=a.path[0];n[i]=n[i]||[],n[i].push(t(a))}else r.push(t(a));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}On.create=e=>new On(e);const iu=(e,t)=>{let n;switch(e.code){case L.invalid_type:e.received===Q.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case L.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,Ce.jsonStringifyReplacer)}`;break;case L.unrecognized_keys:n=`Unrecognized key(s) in object: ${Ce.joinValues(e.keys,", ")}`;break;case L.invalid_union:n="Invalid input";break;case L.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${Ce.joinValues(e.options)}`;break;case L.invalid_enum_value:n=`Invalid enum value. Expected ${Ce.joinValues(e.options)}, received '${e.received}'`;break;case L.invalid_arguments:n="Invalid function arguments";break;case L.invalid_return_type:n="Invalid function return type";break;case L.invalid_date:n="Invalid date";break;case L.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:Ce.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case L.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case L.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case L.custom:n="Invalid input";break;case L.invalid_intersection_types:n="Intersection results could not be merged";break;case L.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case L.not_finite:n="Number must be finite";break;default:n=t.defaultError,Ce.assertNever(e)}return{message:n}};let vS=iu;function bS(){return vS}const CS=e=>
vendor: 17,771 bytes, line 69
69{const{data:t,path:n,errorMaps:r,issueData:a}=e,i=[...n,...a.path||[]],o={...a,path:i};if(a.message!==void 0)return{...a,path:i,message:a.message};let l="";const c=r.filter(u=>!!u).slice().reverse();for(const u of c)l=u(o,{data:t,defaultError:l}).message;return{...a,path:i,message:l}};function Z(e,t){const n=bS(),r=CS({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===iu?void 0:iu].filter(a=>!!a)});e.common.issues.push(r)}class Ft{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const r=[];for(const a of n){if(a.status==="aborted")return de;a.status==="dirty"&&t.dirty(),r.push(a.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const a of n){const i=await a.key,o=await a.value;r.push({key:i,value:o})}return Ft.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const a of n){const{key:i,value:o}=a;if(i.status==="aborted"||o.status==="aborted")return de;i.status==="dirty"&&t.dirty(),o.status==="dirty"&&t.dirty(),i.value!=="__proto__"&&(typeof o.value<"u"||a.alwaysSet)&&(r[i.value]=o.value)}return{status:t.value,value:r}}}const de=Object.freeze({status:"aborted"}),Ya=e=>({status:"dirty",value:e}),Xt=e=>({status:"valid",value:e}),Kh=e=>e.status==="aborted",Zh=e=>e.status==="dirty",ja=e=>e.status==="valid",go=e=>typeof Promise<"u"&&e instanceof Promise;var J;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(J||(J={}));class cr{constructor(t,n,r,a){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=a}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Xh=(e,t)=>{if(ja(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new On(e.common.issues);return this._error=n,this._error}}};function me(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:a}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:a}:{errorMap:(o,l)=>{const{message:c}=e;return o.code==="invalid_enum_value"?{message:c??l.defaultError}:typeof l.data>"u"?{message:c??r??l.defaultError}:o.code!=="invalid_type"?{message:l.defaultError}:{message:c??n??l.defaultError}},description:a}}class be{get description(){return this._def.description}_getType(t){return Un(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Un(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Ft,ctx:{common:t.parent.common,data:t.data,parsedType:Un(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(go(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){const r={common:{issues:[],async:(n==null?void 0:n.async)??!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Un(t)},a=this._parseSync({data:t,path:r.path,parent:r});return Xh(r,a)}"~validate"(t){var r,a;const n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Un(t)};if(!this["~standard"].async)try{const i=this._parseSync({data:t,path:[],parent:n});return ja(i)?{value:i.value}:{issues:n.common.issues}}catch(i){(a=(r=i==null?void 0:i.message)==null?void 0:r.toLowerCase())!=null&&a.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:n}).then(i=>ja(i)?{value:i.value}:{issues:n.common.issues})}async parseAsync(t,n){const r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){const r={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Un(t)},a=this._parse({data:t,path:r.path,parent:r}),i=await(go(a)?a:Promise.resolve(a));return Xh(r,i)}refine(t,n){const r=a=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(a):n;return this._refinement((a,i)=>{const o=t(a),l=()=>i.addIssue({code:L.custom,...r(a)});return typeof Promise<"u"&&o instanceof Promise?o.then(c=>c?!0:(l(),!1)):o?!0:(l(),!1)})}refinement(t,n){return this._refinement((r,a)=>t(r)?!0:(a.addIssue(typeof n=="function"?n(r,a):n),!1))}_refinement(t){return new Sa({schema:this,typeName:fe.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return rr.create(this,this._def)}nullable(){return Na.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return bn.create(this)}promise(){return bo.create(this,this._def)}or(t){return xo.create([this,t],this._def)}and(t){return vo.create(this,t,this._def)}transform(t){return new Sa({...me(this._def),schema:this,typeName:fe.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new lu({...me(this._def),innerType:this,defaultValue:n,typeName:fe.ZodDefault})}brand(){return new qS({typeName:fe.ZodBranded,type:this,...me(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new cu({...me(this._def),innerType:this,catchValue:n,typeName:fe.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return Xd.create(this,t)}readonly(){return uu.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const jS=/^c[^\s-]{8,}$/i,wS=/^[0-9a-z]+$/,SS=/^[0-9A-HJKMNP-TV-Z]{26}$/i,NS=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,PS=/^[a-z0-9_-]{21}$/i,kS=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,AS=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,TS=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,_S="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Il;const ES=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,RS=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,MS=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,OS=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,VS=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,FS=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Mx="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",LS=new RegExp(`^${Mx}$`);function Ox(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);const n=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}function DS(e){return new RegExp(`^${Ox(e)}$`)}function $S(e){let t=`${Mx}T${Ox(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function IS(e,t){return!!((t==="v4"||!t)&&ES.test(e)||(t==="v6"||!t)&&MS.test(e))}function zS(e,t){if(!kS.test(e))return!1;try{const[n]=e.split(".");if(!n)return!1;const r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),a=JSON.parse(atob(r));return!(typeof a!="object"||a===null||"typ"in a&&(a==null?void 0:a.typ)!=="JWT"||!a.alg||t&&a.alg!==t)}catch{return!1}}function BS(e,t){return!!((t==="v4"||!t)&&RS.test(e)||(t==="v6"||!t)&&OS.test(e))}class Kn extends be{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==Q.string){const i=this._getOrReturnCtx(t);return Z(i,{code:L.invalid_type,expected:Q.string,received:i.parsedType}),de}const r=new Ft;let a;for(const i of this._def.checks)if(i.kind==="min")t.data.length<i.value&&(a=this._getOrReturnCtx(t,a),Z(a,{code:L.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind==="max")t.data.length>i.value&&(a=this._getOrReturnCtx(t,a),Z(a,{code:L.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind==="length"){const o=t.data.length>i.value,l=t.data.length<i.value;(o||l)&&(a=this._getOrReturnCtx(t,a),o?Z(a,{code:L.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):l&&Z(a,{code:L.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),r.dirty())}else if(i.kind==="email")TS.test(t.data)||(a=this._getOrReturnCtx(t,a),Z(a,{validation:"email",code:L.invalid_string,message:i.message}),r.dirty());else if(i.kind==="emoji")Il||(Il=new RegExp(_S,"u")),Il.test(t.data)||(a=this._getOrReturnCtx(t,a),Z(a,{validation:"emoji",code:L.invalid_string,message:i.message}),r.dirty());else if(i.kind==="uuid")NS.test(t.data)||(a=this._getOrReturnCtx(t,a),Z(a,{validation:"uuid",code:L.invalid_string,message:i.message}),r.dirty());else if(i.kind==="nanoid")PS.test(t.data)||(a=this._getOrReturnCtx(t,a),Z(a,{validation:"nanoid",code:L.invalid_string,message:i.message}),r.dirty());else if(i.kind==="cuid")jS.test(t.data)||(a=this._getOrReturnCtx(t,a),Z(a,{validation:"cuid",code:L.invalid_string,message:i.message}),r.dirty());else if(i.kind==="cuid2")wS.test(t.data)||(a=this._getOrReturnCtx(t,a),Z(a,{validation:"cuid2",code:L.invalid_string,message:i.message}),r.dirty());else if(i.kind==="ulid")SS.test(t.data)||(a=this._getOrReturnCtx(t,a),Z(a,{validation:"ulid",code:L.invalid_string,message:i.message}),r.dirty());else if(i.kind==="url")try{new URL(t.data)}catch{a=this._getOrReturnCtx(t,a),Z(a,{validation:"url",code:L.invalid_string,message:i.message}),r.dirty()}else i.kind==="regex"?(i.regex.lastIndex=0,i.regex.test(t.data)||(a=this._getOrReturnCtx(t,a),Z(a,{validation:"regex",code:L.invalid_string,message:i.message}),r.dirty())):i.kind==="trim"?t.data=t.data.trim():i.kind==="includes"?t.data.includes(i.value,i.position)||(a=this._getOrReturnCtx(t,a),Z(a,{code:L.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),r.dirty()):i.kind==="toLowerCase"?t.data=t.data.toLowerCase():i.kind==="toUpperCase"?t.data=t.data.toUpperCase():i.kind==="startsWith"?t.data.startsWith(i.value)||(a=this._getOrReturnCtx(t,a),Z(a,{code:L.invalid_string,validation:{startsWith:i.value},message:i.message}),r.dirty()):i.kind==="endsWith"?t.data.endsWith(i.value)||(a=this._getOrReturnCtx(t,a),Z(a,{code:L.invalid_string,validation:{endsWith:i.value},message:i.message}),r.dirty()):i.kind==="datetime"?$S(i).test(t.data)||(a=this._getOrReturnCtx(t,a),Z(a,{code:L.invalid_string,validation:"datetime",message:i.message}),r.dirty()):i.kind==="date"?LS.test(t.data)||(a=this._getOrReturnCtx(t,a),Z(a,{code:L.invalid_string,validation:"date",message:i.message}),r.dirty()):i.kind==="time"?DS(i).test(t.data)||(a=this._getOrReturnCtx(t,a),Z(a,{code:L.invalid_string,validation:"time",message:i.message}),r.dirty()):i.kind==="duration"?AS.test(t.data)||(a=this._getOrReturnCtx(t,a),Z(a,{validation:"duration",code:L.invalid_string,message:i.message}),r.dirty()):i.kind==="ip"?IS(t.data,i.version)||(a=this._getOrReturnCtx(t,a),Z(a,{validation:"ip",code:L.invalid_string,message:i.message}),r.dirty()):i.kind==="jwt"?zS(t.data,i.alg)||(a=this._getOrReturnCtx(t,a),Z(a,{validation:"jwt",code:L.invalid_string,message:i.message}),r.dirty()):i.kind==="cidr"?BS(t.data,i.version)||(a=this._getOrReturnCtx(t,a),Z(a,{validation:"cidr",code:L.invalid_string,message:i.message}),r.dirty()):i.kind==="base64"?VS.test(t.data)||(a=this._getOrReturnCtx(t,a),Z(a,{validation:"base64",code:L.invalid_string,message:i.message}),r.dirty()):i.kind==="base64url"?FS.test(t.data)||(a=this._getOrReturnCtx(t,a),Z(a,{validation:"base64url",code:L.invalid_string,message:i.message}),r.dirty()):Ce.assertNever(i);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(a=>t.test(a),{validation:n,code:L.invalid_string,...J.errToObj(r)})}_addCheck(t){return new Kn({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...J.errToObj(t)})}url(t){return this._addCheck({kind:"url",...J.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...J.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...J.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...J.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...J.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...J.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...J.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...J.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...J.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...J.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...J.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...J.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(t==null?void 0:t.offset)??!1,local:(t==null?void 0:t.local)??!1,...J.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...J.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...J.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...J.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...J.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...J.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...J.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...J.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...J.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...J.errToObj(n)})}nonempty(t){return this.min(1,J.errToObj(t))}trim(){return new Kn({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Kn({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Kn({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}
vendor: 4,642 bytes, line 69
69get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}Kn.create=e=>new Kn({checks:[],typeName:fe.ZodString,coerce:(e==null?void 0:e.coerce)??!1,...me(e)});function US(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,a=n>r?n:r,i=Number.parseInt(e.toFixed(a).replace(".","")),o=Number.parseInt(t.toFixed(a).replace(".",""));return i%o/10**a}class Vi extends be{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==Q.number){const i=this._getOrReturnCtx(t);return Z(i,{code:L.invalid_type,expected:Q.number,received:i.parsedType}),de}let r;const a=new Ft;for(const i of this._def.checks)i.kind==="int"?Ce.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),Z(r,{code:L.invalid_type,expected:"integer",received:"float",message:i.message}),a.dirty()):i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(r=this._getOrReturnCtx(t,r),Z(r,{code:L.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),a.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(r=this._getOrReturnCtx(t,r),Z(r,{code:L.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),a.dirty()):i.kind==="multipleOf"?US(t.data,i.value)!==0&&(r=this._getOrReturnCtx(t,r),Z(r,{code:L.not_multiple_of,multipleOf:i.value,message:i.message}),a.dirty()):i.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),Z(r,{code:L.not_finite,message:i.message}),a.dirty()):Ce.assertNever(i);return{status:a.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,J.toString(n))}gt(t,n){return this.setLimit("min",t,!1,J.toString(n))}lte(t,n){return this.setLimit("max",t,!0,J.toString(n))}lt(t,n){return this.setLimit("max",t,!1,J.toString(n))}setLimit(t,n,r,a){return new Vi({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:J.toString(a)}]})}_addCheck(t){return new Vi({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:J.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:J.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:J.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:J.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:J.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:J.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:J.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:J.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:J.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&Ce.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.value<t)&&(t=r.value)}return Number.isFinite(n)&&Number.isFinite(t)}
vendor: 7,962 bytes, line 69
69}Vi.create=e=>new Vi({checks:[],typeName:fe.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...me(e)});class Fi extends be{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==Q.bigint)return this._getInvalidInput(t);let r;const a=new Ft;for(const i of this._def.checks)i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(r=this._getOrReturnCtx(t,r),Z(r,{code:L.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),a.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(r=this._getOrReturnCtx(t,r),Z(r,{code:L.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),a.dirty()):i.kind==="multipleOf"?t.data%i.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),Z(r,{code:L.not_multiple_of,multipleOf:i.value,message:i.message}),a.dirty()):Ce.assertNever(i);return{status:a.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return Z(n,{code:L.invalid_type,expected:Q.bigint,received:n.parsedType}),de}gte(t,n){return this.setLimit("min",t,!0,J.toString(n))}gt(t,n){return this.setLimit("min",t,!1,J.toString(n))}lte(t,n){return this.setLimit("max",t,!0,J.toString(n))}lt(t,n){return this.setLimit("max",t,!1,J.toString(n))}setLimit(t,n,r,a){return new Fi({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:J.toString(a)}]})}_addCheck(t){return new Fi({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:J.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:J.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:J.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:J.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:J.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}Fi.create=e=>new Fi({checks:[],typeName:fe.ZodBigInt,coerce:(e==null?void 0:e.coerce)??!1,...me(e)});class su extends be{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==Q.boolean){const r=this._getOrReturnCtx(t);return Z(r,{code:L.invalid_type,expected:Q.boolean,received:r.parsedType}),de}return Xt(t.data)}}su.create=e=>new su({typeName:fe.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...me(e)});class yo extends be{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==Q.date){const i=this._getOrReturnCtx(t);return Z(i,{code:L.invalid_type,expected:Q.date,received:i.parsedType}),de}if(Number.isNaN(t.data.getTime())){const i=this._getOrReturnCtx(t);return Z(i,{code:L.invalid_date}),de}const r=new Ft;let a;for(const i of this._def.checks)i.kind==="min"?t.data.getTime()<i.value&&(a=this._getOrReturnCtx(t,a),Z(a,{code:L.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),r.dirty()):i.kind==="max"?t.data.getTime()>i.value&&(a=this._getOrReturnCtx(t,a),Z(a,{code:L.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),r.dirty()):Ce.assertNever(i);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new yo({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:J.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:J.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}}yo.create=e=>new yo({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:fe.ZodDate,...me(e)});class Qh extends be{_parse(t){if(this._getType(t)!==Q.symbol){const r=this._getOrReturnCtx(t);return Z(r,{code:L.invalid_type,expected:Q.symbol,received:r.parsedType}),de}return Xt(t.data)}}Qh.create=e=>new Qh({typeName:fe.ZodSymbol,...me(e)});class Yh extends be{_parse(t){if(this._getType(t)!==Q.undefined){const r=this._getOrReturnCtx(t);return Z(r,{code:L.invalid_type,expected:Q.undefined,received:r.parsedType}),de}return Xt(t.data)}}Yh.create=e=>new Yh({typeName:fe.ZodUndefined,...me(e)});class Jh extends be{_parse(t){if(this._getType(t)!==Q.null){const r=this._getOrReturnCtx(t);return Z(r,{code:L.invalid_type,expected:Q.null,received:r.parsedType}),de}return Xt(t.data)}}Jh.create=e=>new Jh({typeName:fe.ZodNull,...me(e)});class em extends be{constructor(){super(...arguments),this._any=!0}_parse(t){return Xt(t.data)}}em.create=e=>new em({typeName:fe.ZodAny,...me(e)});class tm extends be{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Xt(t.data)}}tm.create=e=>new tm({typeName:fe.ZodUnknown,...me(e)});class ur extends be{_parse(t){const n=this._getOrReturnCtx(t);return Z(n,{code:L.invalid_type,expected:Q.never,received:n.parsedType}),de}}ur.create=e=>new ur({typeName:fe.ZodNever,...me(e)});class nm extends be{_parse(t){if(this._getType(t)!==Q.undefined){const r=this._getOrReturnCtx(t);return Z(r,{code:L.invalid_type,expected:Q.void,received:r.parsedType}),de}return Xt(t.data)}}nm.create=e=>new nm({typeName:fe.ZodVoid,...me(e)});class bn extends be{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),a=this._def;if(n.parsedType!==Q.array)return Z(n,{code:L.invalid_type,expected:Q.array,received:n.parsedType}),de;if(a.exactLength!==null){const o=n.data.length>a.exactLength.value,l=n.data.length<a.exactLength.value;(o||l)&&(Z(n,{code:o?L.too_big:L.too_small,minimum:l?a.exactLength.value:void 0,maximum:o?a.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:a.exactLength.message}),r.dirty())}if(a.minLength!==null&&n.data.length<a.minLength.value&&(Z(n,{code:L.too_small,minimum:a.minLength.value,type:"array",inclusive:!0,exact:!1,message:a.minLength.message}),r.dirty()),a.maxLength!==null&&n.data.length>a.maxLength.value&&(Z(n,{code:L.too_big,maximum:a.maxLength.value,type:"array",inclusive:!0,exact:!1,message:a.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((o,l)=>a.type._parseAsync(new cr(n,o,n.path,l)))).then(o=>Ft.mergeArray(r,o));const i=[...n.data].map((o,l)=>a.type._parseSync(new cr(n,o,n.path,l)));return Ft.mergeArray(r,i)}get element(){return this._def.type}min(t,n){return new bn({...this._def,minLength:{value:t,message:J.toString(n)}})}max(t,n){return new bn({...this._def,maxLength:{value:t,message:J.toString(n)}})}length(t,n){return new bn({...this._def,exactLength:{value:t,message:J.toString(n)}})}nonempty(t){return this.min(1,t)}}bn.create=(e,t)=>new bn({type:e,minLength:null,maxLength:null,exactLength:null,typeName:fe.ZodArray,...me(t)});function Br(e){if(e instanceof Ke){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=rr.create(Br(r))}return new Ke({...e._def,shape:()=>t})}else return e instanceof bn?new bn({...e._def,type:Br(e.element)}):e instanceof rr?rr.create(Br(e.unwrap())):e instanceof Na?Na.create(Br(e.unwrap())):e instanceof Vr?Vr.create(e.items.map(t=>Br(t))):e}class Ke extends be{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=Ce.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==Q.object){const u=this._getOrReturnCtx(t);return Z(u,{code:L.invalid_type,expected:Q.object,received:u.parsedType}),de}const{status:r,ctx:a}=this._processInputParams(t),{shape:i,keys:o}=this._getCached(),l=[];
vendor: 4,628 bytes, line 69
69if(!(this._def.catchall instanceof ur&&this._def.unknownKeys==="strip"))for(const u in a.data)o.includes(u)||l.push(u);const c=[];for(const u of o){const d=i[u],f=a.data[u];c.push({key:{status:"valid",value:u},value:d._parse(new cr(a,f,a.path,u)),alwaysSet:u in a.data})}if(this._def.catchall instanceof ur){const u=this._def.unknownKeys;if(u==="passthrough")for(const d of l)c.push({key:{status:"valid",value:d},value:{status:"valid",value:a.data[d]}});else if(u==="strict")l.length>0&&(Z(a,{code:L.unrecognized_keys,keys:l}),r.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const u=this._def.catchall;for(const d of l){const f=a.data[d];c.push({key:{status:"valid",value:d},value:u._parse(new cr(a,f,a.path,d)),alwaysSet:d in a.data})}}return a.common.async?Promise.resolve().then(async()=>{const u=[];for(const d of c){const f=await d.key,h=await d.value;u.push({key:f,value:h,alwaysSet:d.alwaysSet})}return u}).then(u=>Ft.mergeObjectSync(r,u)):Ft.mergeObjectSync(r,c)}get shape(){return this._def.shape()}strict(t){return J.errToObj,new Ke({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var i,o;const a=((o=(i=this._def).errorMap)==null?void 0:o.call(i,n,r).message)??r.defaultError;return n.code==="unrecognized_keys"?{message:J.errToObj(t).message??a}:{message:a}}}:{}})}strip(){return new Ke({...this._def,unknownKeys:"strip"})}passthrough(){return new Ke({...this._def,unknownKeys:"passthrough"})}extend(t){return new Ke({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Ke({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:fe.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new Ke({...this._def,catchall:t})}pick(t){const n={};for(const r of Ce.objectKeys(t))t[r]&&this.shape[r]&&(n[r]=this.shape[r]);return new Ke({...this._def,shape:()=>n})}omit(t){const n={};for(const r of Ce.objectKeys(this.shape))t[r]||(n[r]=this.shape[r]);return new Ke({...this._def,shape:()=>n})}deepPartial(){return Br(this)}partial(t){const n={};for(const r of Ce.objectKeys(this.shape)){const a=this.shape[r];t&&!t[r]?n[r]=a:n[r]=a.optional()}return new Ke({...this._def,shape:()=>n})}required(t){const n={};for(const r of Ce.objectKeys(this.shape))if(t&&!t[r])n[r]=this.shape[r];else{let i=this.shape[r];for(;i instanceof rr;)i=i._def.innerType;n[r]=i}return new Ke({...this._def,shape:()=>n})}keyof(){return Vx(Ce.objectKeys(this.shape))}}Ke.create=(e,t)=>new Ke({shape:()=>e,unknownKeys:"strip",catchall:ur.create(),typeName:fe.ZodObject,...me(t)});Ke.strictCreate=(e,t)=>new Ke({shape:()=>e,unknownKeys:"strict",catchall:ur.create(),typeName:fe.ZodObject,...me(t)});Ke.lazycreate=(e,t)=>new Ke({shape:e,unknownKeys:"strip",catchall:ur.create(),typeName:fe.ZodObject,...me(t)});class xo extends be{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function a(i){for(const l of i)if(l.result.status==="valid")return l.result;for(const l of i)if(l.result.status==="dirty")return n.common.issues.push(...l.ctx.common.issues),l.result;const o=i.map(l=>new On(l.ctx.common.issues));return Z(n,{code:L.invalid_union,unionErrors:o}),de}if(n.common.async)return Promise.all(r.map(async i=>{const o={...n,common:{...n.common,issues:[]},parent:null};return{result:await i._parseAsync({data:n.data,path:n.path,parent:o}),ctx:o}})).then(a);{let i;const o=[];for(const c of r){const u={...n,common:{...n.common,issues:[]},parent:null},d=c._parseSync({data:n.data,path:n.path,parent:u});if(d.status==="valid")return d;d.status==="dirty"&&!i&&(i={result:d,ctx:u}),u.common.issues.length&&o.push(u.common.issues)}if(i)return n.common.issues.push(...i.ctx.common.issues),i.result;const l=o.map(c=>new On(c));return Z(n,{code:L.invalid_union,unionErrors:l}),de}}get options(){return this._def.options}}xo.create=(e,t)=>new xo({options:e,typeName:fe.ZodUnion,...me(t)});function ou(e,t){const n=Un(e),r=Un(t);if(e===t)return{valid:!0,data:e};if(n===Q.object&&r===Q.object){const a=Ce.objectKeys(t),i=Ce.objectKeys(e).filter(l=>a.indexOf(l)!==-1),o={...e,...t};for(const l of i){const c=ou(e[l],t[l]);if(!c.valid)return{valid:!1};o[l]=c.data}return{valid:!0,data:o}}else if(n===Q.array&&r===Q.array){if(e.length!==t.length)return{valid:!1};const a=[];for(let i=0;i<e.length;i++){const o=e[i],l=t[i],c=ou(o,l);if(!c.valid)return{valid:!1};a.push(c.data)}return{valid:!0,data:a}}else return n===Q.date&&r===Q.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class vo extends be{_parse(t){const{status:n,ctx:r}=this._processInputParams(t),a=(i,o)=>
vendor: 1,879 bytes, line 69
69{if(Kh(i)||Kh(o))return de;const l=ou(i.value,o.value);return l.valid?((Zh(i)||Zh(o))&&n.dirty(),{status:n.value,value:l.data}):(Z(r,{code:L.invalid_intersection_types}),de)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([i,o])=>a(i,o)):a(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}vo.create=(e,t,n)=>new vo({left:e,right:t,typeName:fe.ZodIntersection,...me(n)});class Vr extends be{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Q.array)return Z(r,{code:L.invalid_type,expected:Q.array,received:r.parsedType}),de;if(r.data.length<this._def.items.length)return Z(r,{code:L.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),de;!this._def.rest&&r.data.length>this._def.items.length&&(Z(r,{code:L.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const i=[...r.data].map((o,l)=>{const c=this._def.items[l]||this._def.rest;return c?c._parse(new cr(r,o,r.path,l)):null}).filter(o=>!!o);return r.common.async?Promise.all(i).then(o=>Ft.mergeArray(n,o)):Ft.mergeArray(n,i)}get items(){return this._def.items}rest(t){return new Vr({...this._def,rest:t})}}Vr.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Vr({items:e,typeName:fe.ZodTuple,rest:null,...me(t)})};class rm extends be{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Q.map)return Z(r,{code:L.invalid_type,expected:Q.map,received:r.parsedType}),de;const a=this._def.keyType,i=this._def.valueType,o=[...r.data.entries()].map(([l,c],u)=>
vendor: 4,152 bytes, line 69
69({key:a._parse(new cr(r,l,r.path,[u,"key"])),value:i._parse(new cr(r,c,r.path,[u,"value"]))}));if(r.common.async){const l=new Map;return Promise.resolve().then(async()=>{for(const c of o){const u=await c.key,d=await c.value;if(u.status==="aborted"||d.status==="aborted")return de;(u.status==="dirty"||d.status==="dirty")&&n.dirty(),l.set(u.value,d.value)}return{status:n.value,value:l}})}else{const l=new Map;for(const c of o){const u=c.key,d=c.value;if(u.status==="aborted"||d.status==="aborted")return de;(u.status==="dirty"||d.status==="dirty")&&n.dirty(),l.set(u.value,d.value)}return{status:n.value,value:l}}}}rm.create=(e,t,n)=>new rm({valueType:t,keyType:e,typeName:fe.ZodMap,...me(n)});class Li extends be{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Q.set)return Z(r,{code:L.invalid_type,expected:Q.set,received:r.parsedType}),de;const a=this._def;a.minSize!==null&&r.data.size<a.minSize.value&&(Z(r,{code:L.too_small,minimum:a.minSize.value,type:"set",inclusive:!0,exact:!1,message:a.minSize.message}),n.dirty()),a.maxSize!==null&&r.data.size>a.maxSize.value&&(Z(r,{code:L.too_big,maximum:a.maxSize.value,type:"set",inclusive:!0,exact:!1,message:a.maxSize.message}),n.dirty());const i=this._def.valueType;function o(c){const u=new Set;for(const d of c){if(d.status==="aborted")return de;d.status==="dirty"&&n.dirty(),u.add(d.value)}return{status:n.value,value:u}}const l=[...r.data.values()].map((c,u)=>i._parse(new cr(r,c,r.path,u)));return r.common.async?Promise.all(l).then(c=>o(c)):o(l)}min(t,n){return new Li({...this._def,minSize:{value:t,message:J.toString(n)}})}max(t,n){return new Li({...this._def,maxSize:{value:t,message:J.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}Li.create=(e,t)=>new Li({valueType:e,minSize:null,maxSize:null,typeName:fe.ZodSet,...me(t)});class am extends be{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}am.create=(e,t)=>new am({getter:e,typeName:fe.ZodLazy,...me(t)});class im extends be{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return Z(n,{received:n.data,code:L.invalid_literal,expected:this._def.value}),de}return{status:"valid",value:t.data}}get value(){return this._def.value}}im.create=(e,t)=>new im({value:e,typeName:fe.ZodLiteral,...me(t)});function Vx(e,t){return new wa({values:e,typeName:fe.ZodEnum,...me(t)})}class wa extends be{_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return Z(n,{expected:Ce.joinValues(r),received:n.parsedType,code:L.invalid_type}),de}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){const n=this._getOrReturnCtx(t),r=this._def.values;return Z(n,{received:n.data,code:L.invalid_enum_value,options:r}),de}return Xt(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return wa.create(t,{...this._def,...n})}exclude(t,n=this._def){return wa.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}}wa.create=Vx;class sm extends be{_parse(t){const n=Ce.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==Q.string&&r.parsedType!==Q.number){const a=Ce.objectValues(n);return Z(r,{expected:Ce.joinValues(a),received:r.parsedType,code:L.invalid_type}),de}if(this._cache||(this._cache=new Set(Ce.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const a=Ce.objectValues(n);return Z(r,{received:r.data,code:L.invalid_enum_value,options:a}),de}return Xt(t.data)}get enum(){return this._def.values}}sm.create=(e,t)=>new sm({values:e,typeName:fe.ZodNativeEnum,...me(t)});class bo extends be{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Q.promise&&n.common.async===!1)return Z(n,{code:L.invalid_type,expected:Q.promise,received:n.parsedType}),de;
vendor: 4,089 bytes, line 69
69const r=n.parsedType===Q.promise?n.data:Promise.resolve(n.data);return Xt(r.then(a=>this._def.type.parseAsync(a,{path:n.path,errorMap:n.common.contextualErrorMap})))}}bo.create=(e,t)=>new bo({type:e,typeName:fe.ZodPromise,...me(t)});class Sa extends be{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===fe.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),a=this._def.effect||null,i={addIssue:o=>{Z(r,o),o.fatal?n.abort():n.dirty()},get path(){return r.path}};if(i.addIssue=i.addIssue.bind(i),a.type==="preprocess"){const o=a.transform(r.data,i);if(r.common.async)return Promise.resolve(o).then(async l=>{if(n.value==="aborted")return de;const c=await this._def.schema._parseAsync({data:l,path:r.path,parent:r});return c.status==="aborted"?de:c.status==="dirty"||n.value==="dirty"?Ya(c.value):c});{if(n.value==="aborted")return de;const l=this._def.schema._parseSync({data:o,path:r.path,parent:r});return l.status==="aborted"?de:l.status==="dirty"||n.value==="dirty"?Ya(l.value):l}}if(a.type==="refinement"){const o=l=>{const c=a.refinement(l,i);if(r.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return l};if(r.common.async===!1){const l=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return l.status==="aborted"?de:(l.status==="dirty"&&n.dirty(),o(l.value),{status:n.value,value:l.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(l=>l.status==="aborted"?de:(l.status==="dirty"&&n.dirty(),o(l.value).then(()=>({status:n.value,value:l.value}))))}if(a.type==="transform")if(r.common.async===!1){const o=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!ja(o))return de;const l=a.transform(o.value,i);if(l instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:l}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(o=>ja(o)?Promise.resolve(a.transform(o.value,i)).then(l=>({status:n.value,value:l})):de);Ce.assertNever(a)}}Sa.create=(e,t,n)=>new Sa({schema:e,typeName:fe.ZodEffects,effect:t,...me(n)});Sa.createWithPreprocess=(e,t,n)=>new Sa({schema:t,effect:{type:"preprocess",transform:e},typeName:fe.ZodEffects,...me(n)});class rr extends be{_parse(t){return this._getType(t)===Q.undefined?Xt(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}rr.create=(e,t)=>new rr({innerType:e,typeName:fe.ZodOptional,...me(t)});class Na extends be{_parse(t){return this._getType(t)===Q.null?Xt(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Na.create=(e,t)=>new Na({innerType:e,typeName:fe.ZodNullable,...me(t)});class lu extends be{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===Q.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}lu.create=(e,t)=>new lu({innerType:e,typeName:fe.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...me(t)});class cu extends be{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},a=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return go(a)?a.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new On(r.common.issues)},input:r.data})})):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new On(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}cu.create=(e,t)=>new cu({innerType:e,typeName:fe.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...me(t)});class om extends be{_parse(t){if(this._getType(t)!==Q.nan){const r=this._getOrReturnCtx(t);return Z(r,{code:L.invalid_type,expected:Q.nan,received:r.parsedType}),de}
69return{status:"valid",value:t.data}}}om.create=e=>new om({typeName:fe.ZodNaN,...me(e)});class qS extends be{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class Xd extends be{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const i=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?de:i.status==="dirty"?(n.dirty(),Ya(i.value)):this._def.out._parseAsync({data:i.value,path:r.path,parent:r})})();{const a=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?de:a.status==="dirty"?(n.dirty(),{status:"dirty",value:a.value}):this._def.out._parseSync({data:a.value,path:r.path,parent:r})}}static create(t,n){return new Xd({in:t,out:n,typeName:fe.ZodPipeline})}}class uu extends be{_parse(t){const n=this._def.innerType._parse(t),r=a=>(ja(a)&&(a.value=Object.freeze(a.value)),a);return go(n)?n.then(a=>r(a)):r(n)}unwrap(){return this._def.innerType}}uu.create=(e,t)=>new uu({innerType:e,typeName:fe.ZodReadonly,...me(t)});var fe;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(fe||(fe={}));const K=Kn.create,Ht=su.create;ur.create;bn.create;const Qt=Ke.create;xo.create;vo.create;Vr.create;const Qd=wa.create;bo.create;rr.create;Na.create;const Qe=R.forwardRef(function({label:t,error:n,required:r,...a},i){return s.jsxs("div",{className:"flex flex-col gap-1",children:[t&&s.jsxs("label",{className:"text-[11px] font-bold tracking-widest uppercase text-brand-lila",children:[t,r&&s.jsx("span",{className:"text-red-400 ml-0.5",children:"*"})]}),s.jsx("input",{ref:i,...a,className:["w-full px-4 py-2.5 border rounded-xl text-gray-800 placeholder-gray-300 text-sm","focus:outline-none focus:ring-2 transition-all duration-150 bg-white shadow-sm",n?"border-red-300 focus:ring-red-200 focus:border-red-400":"border-gray-200 focus:ring-brand-lila/30 focus:border-brand-lila/60"].join(" ")}),n&&s.jsx("p",{className:"text-[11px] text-red-500 pl-1 mt-0.5",children:n})]})}),Se=R.forwardRef(function({label:t,error:n,children:r,required:a,...i},o){return s.jsxs("div",{className:"flex flex-col gap-1",children:[t&&s.jsxs("label",{className:"text-[11px] font-bold tracking-widest uppercase text-brand-lila",children:[t,a&&s.jsx("span",{className:"text-red-400 ml-0.5",children:"*"})]}),s.jsxs("div",{className:"relative",children:[s.jsx("select",{ref:o,...i,className:["w-full px-4 py-2.5 border rounded-xl bg-white appearance-none cursor-pointer pr-9","focus:outline-none focus:ring-2 transition-all duration-150 text-sm shadow-sm",n?"border-red-300 focus:ring-red-200 focus:border-red-400 text-gray-800":"border-gray-200 focus:ring-brand-lila/30 focus:border-brand-lila/60",!i.value||i.value===""?"text-gray-400":"text-gray-800"].join(" "),children:r}),s.jsx(Qw,{size:14,className:"pointer-events-none absolute right-3 top-1/2 -translate-y-1/2 text-gray-400"})]}),n&&s.jsx("p",{className:"text-[11px] text-red-500 pl-1 mt-0.5",children:n})]})}),WS="56323140979",HS=s.jsx("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"currentColor",children:s.jsx("path",{d:"M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.
69198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z"})});function fn(){const e=encodeURIComponent("Hola, tengo dudas con mi cotización de seguro auto y me gustaría recibir ayuda directa. ¿Me pueden orientar?"),t=`https://wa.me/${WS}?text=${e}`;return s.jsxs("a",{href:t,target:"_blank",rel:"noopener noreferrer",className:`flex items-center gap-3 bg-green-50 border border-green-200/80 rounded-xl
70                 px-4 py-3 hover:bg-green-100 transition-colors duration-150 group no-underline`,children:[s.jsx("span",{className:"flex-shrink-0 bg-[#25D366] text-white rounded-lg p-1.5",children:HS}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("p",{className:"text-xs sm:text-xs font-bold text-green-800 leading-tight",style:{fontSize:"clamp(13px, 3.5vw, 14px)"},children:"¿Tienes dudas o prefieres que te ayudemos?"}),s.jsx("p",{className:"text-xs sm:text-xs text-green-600 leading-tight mt-0.5",style:{fontSize:"clamp(12px, 3vw, 13px)"},children:"Escríbenos por WhatsApp y respondemos de inmediato →"})]})]})}function Yd(e){if(!e||typeof e!="string")return!1;const t=e.replace(/[^0-9kK]/g,"").toUpperCase();if(t.length<2||t.length>9)return!1;const n=t.slice(0,-1),r=t.slice(-1);if(!/^\d+$/.test(n))return!1;let a=0,i=2;for(let c=n.length-1;c>=0;c--)a+=parseInt(n[c])*i,i=i===7?2:i+1;const o=11-a%11;let l;return o===11?l="0":o===10?l="K":l=String(o),r===l}function Fx(e){const t=e.replace(/[^0-9kK]/g,"").toUpperCase();if(t.length===0)return"";if(t.length===1)return t;const n=t.slice(0,-1),r=t.slice(-1);return`${n.replace(/\B(?=(\d{3})+(?!\d))/g,".")}-${r}`}const GS=Qt({tipoPersona:K().min(1),rut:K().min(1,"Ingresa tu RUT").refine(Yd,{message:"RUT inválido — verifica el dígito verificador"}),nombres:K().min(2,"Ingresa al menos 2 caracteres"),primerApellido:K().min(2,"Ingresa tu primer apellido"),segundoApellido:K().optional(),fechaNacimiento:K().min(1,"Ingresa tu fecha de nacimiento").refine(e=>{if(!e)return!1;const t=new Date(e+"T00:00:00"),n=new Date;return n.setFullYear(n.getFullYear()-18),t<=n},{message:"El asegurado debe ser mayor de 18 años"}),razonSocial:K().optional()}),KS=Qt({tipoPersona:K().min(1),rut:K().min(1,"Ingresa el RUT").refine(Yd,{message:"RUT inválido — verifica el dígito verificador"}),razonSocial:K().min(2,"Ingresa la razón social"),nombres:K().optional(),primerApellido:K().optional(),segundoApellido:K().optional(),fechaNacimiento:K().optional()});function Jd({defaultValues:e,onNext:t}){var g,x,b,j,m,p;const[n,r]=R.useState((e==null?void 0:e.tipoPersona)||"natural"),[a,i]=R.useState((e==null?void 0:e.rut)||""),o=n==="juridica"?KS:GS,{register:l,handleSubmit:c,formState:{errors:u},control:d,setValue:f}=un({resolver:dn(o),defaultValues:{tipoPersona:"natural",rut:"",nombres:"",primerApellido:"",segundoApellido:"",fechaNacimiento:"",razonSocial:"",...e}}),h=n==="juridica";return s.jsxs(ee.div,{initial:{opacity:0,x:40},animate:{opacity:1,x:0},exit:{opacity:0,x:-40},transition:{duration:.3},children:[s.jsxs("div",{className:"mb-5",children:[s.jsxs("h2",{className:"text-xl font-bold text-gray-800 flex items-center gap-2",children:[s.jsx("span",{children:"👤"})," Datos del Asegurado"]}),s.jsx("p",{className:"text-sm text-gray-500 mt-1",children:"¡Empecemos con tus datos!"})]}),s.jsxs("form",{onSubmit:c(t),noValidate:!0,className:"flex flex-col gap-4",children:[s.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:[s.jsxs(Se,{label:"Tipo de Persona",required:!0,error:(g=u.tipoPersona)==null?void 0:g.message,...l("tipoPersona"),onChange:y=>{r(y.target.value),f("tipoPersona",y.target.value)},children:[s.jsx("option",{value:"natural",children:"Natural"}),s.jsx("option",{value:"juridica",children:"Jurídica"})]}),s.jsx(jx,{name:"rut",control:d,render:({field:y})=>{var C;return s.jsx(Qe,{label:"RUT",required:!0,placeholder:h?"76.123.456-7":"12.345.678-9",error:(C=u.rut)==null?void 0:C.message,value:a,onChange:N=>{const P=N.target.value.replace(/[^0-9kK]/g,"").toUpperCase(),O=Fx(P);i(O),y.onChange(O)},onBlur:y.onBlur,name:y.name,maxLength:12})}})]}),h?s.jsx(Qe,{label:"Razón Social",required:!0,placeholder:"Empresa SpA",error:(x=u.razonSocial)==null?void 0:x.message,...l("razonSocial")}):s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:[s.jsx(Qe,{label:"Nombres",required:!0,placeholder:"María José",error:(b=u.nombres)==null?void 0:b.message,...l("nombres")}),s.jsx(Qe,{label:"Primer Apellido",required:!0,placeholder:"González",error:(j=u.primerApellido)==null?void 0:j.message,...l("primerApellido")})]}),s.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:[s.jsx(Qe,{label:"Segundo Apellido",placeholder:"Rodríguez",error:(m=u.segundoApellido)==null?void 0:m.message,...l("segundoApellido")}
70),s.jsx(Qe,{label:"Fecha de Nacimiento",required:!0,type:"date",error:(p=u.fechaNacimiento)==null?void 0:p.message,...l("fechaNacimiento")})]})]}),s.jsx(fn,{}),s.jsxs("div",{className:"flex justify-between items-center pt-4 border-t border-gray-100 mt-2",children:[s.jsx("div",{}),s.jsx("button",{type:"submit",className:"btn-primary",children:"Siguiente →"})]})]})]})}const Di={Audi:["A1","A3","A4","A5","A6","Q2","Q3","Q5","Q7","Q8","e-tron","e-tron GT","TT"],BMW:["116i","118i","120i","316i","318i","320i","330i","520i","iX","iX1","iX3","X1","X3","X5","X6","Z4"],Changan:["Alsvin","CS15","CS35","CS55","CS75","Eado","Hunter","Lamore","Oshan X5","Uni-K","Uni-T","Uni-V"],Chery:["Arrizo 3","Arrizo 5","Arrizo 6","Arrizo 8","Tiggo 2","Tiggo 4","Tiggo 4 Pro","Tiggo 7","Tiggo 7 Pro","Tiggo 8","Tiggo 8 Pro"],Chevrolet:["Aveo","Beat","Captiva","Colorado","Cruze","Groove","Montana","Onix","S10","Sail","Spark","Spin","Tracker","Trailblazer","Trax"],Citroën:["Berlingo","C3","C3 Aircross","C4","C4 Cactus","C5 Aircross","C5 X","ë-C4","Jumpy","Spacetourer"],DFSK:["580","C35","C37","Glory 330","Glory 500","Glory 580","Seres 3"],Fiat:["Argo","Cronos","Doblò","Ducato","Fiorino","Mobi","Pulse","Strada","Toro"],Ford:["Bronco","Bronco Sport","EcoSport","Edge","Escape","Explorer","F-150","Fiesta","Focus","Maverick","Mustang","Mustang Mach-E","Ranger","Territory"],Genesis:["G70","G80","G90","GV60","GV70","GV80"],"Great Wall":["Haval H2","Haval H6","Haval Jolion","ORA 03","ORA Good Cat","Wingle 5","Wingle 6","Wingle 7"],Honda:["City","Civic","CR-V","e:NS1","Fit","HR-V","Pilot","WR-V","ZR-V"],Hyundai:["Accent","Creta","Elantra","Grand i10","i10","i20","Ioniq 5","Ioniq 6","Kona","Kona EV","Santa Fe","Sonata","Staria","Tucson","Venue"],JAC:["J7","S2","S3","S4","S7","T6","T8","e-JS4","iEVA50"],Jeep:["Cherokee","Compass","Grand Cherokee","Renegade","Wrangler"],Kia:["Carnival","Cerato","EV6","EV9","Morning","Niro","Niro EV","Rio","Seltos","Sorento","Soul","Sportage","Stinger","Stonic"],Lifan:["820","Foison","X50","X60","X70"],"Lynk & Co":["01","02","05"],Mazda:["2","3","6","BT-50","CX-3","CX-30","CX-5","CX-60","CX-8","CX-9","MX-5","MX-30"],"Mercedes-Benz":["Clase A","Clase B","Clase C","Clase E","Clase S","CLA","EQA","EQB","EQC","EQE","GLA","GLB","GLC","GLE","GLS","Sprinter","Vito"],MG:["3","5","4 EV","6","GT","HS","MX","One","ZS","ZS EV"],Mitsubishi:["ASX","Eclipse Cross","L200","Mirage","Montero","Outlander","Outlander PHEV"],Nissan:["Ariya","Frontier","Kicks","Leaf","March","Murano","Navara","Pathfinder","Qashqai","Sentra","Terra","Tiida","X-Trail"],Peugeot:["2008","208","3008","308","408","5008","e-208","e-2008","Expert","Partner","Traveller"],Polestar:["Polestar 2","Polestar 3","Polestar 4"],Renault:["Captur","Duster","Express","Kangoo","Koleos","Kwid","Logan","Master","Megane E-Tech","Sandero","Stepway","Zoe"],Subaru:["Ascent","BRZ","Crosstrek","Forester","Impreza","Legacy","Outback","Solterra","WRX"],Suzuki:["Baleno","Celerio","Dzire","Ertiga","Grand Vitara","Ignis","Jimny","S-Presso","Swift","Vitara"],Tesla:["Cybertruck","Model 3","Model S","Model X","Model Y"],BYD:["Atto 3","Dolphin","Han","King","Seal","Seal U","Seagull","Song Plus","Tang","Yuan Plus"],Toyota:["86","bZ4X","Camry","CH-R","Corolla","Corolla Cross","FJ Cruiser","Fortuner","Hiace","Highlander","Hilux","Land Cruiser","Prado","RAV4","RAV4 Hybrid","Rush","Yaris","Yaris Cross"],Volkswagen:["Amarok","Crafter","Golf","ID.4","ID.6","Passat","Polo","T-Cross","T-Roc","Taos","Teramont","Tiguan","Touareg","Virtus"],Volvo:["C40","EX30","EX40","S60","S90","V60","V90","XC40","XC60","XC90"],"BYD (Eléctrico)":["Atto 3","Dolphin","Han","Seal","Seagull","Yuan Plus"],"GAC Aion":["Aion S","Aion V","Aion Y"],Zeekr:["001","007","X"],"Alfa Romeo":["Giulia","Giulietta","Stelvio","Tonale"],BAIC:["EU5","EX360","X55"],Faw:["Bestune T77","Bestune T99","Hongqi E-HS9"],Geely:["Azkarra","Coolray","Emgrand","Okavango","Tugella"],Isuzu:["D-Max","MU-X"],Wuling:["Air ev","Almaz","Victory"],Otro:["Otro modelo"]},Lx=Object.keys(Di).filter(e=>e!=="BYD (Eléctrico)").sort((e,t)=>e.localeCompare(t,"es")),ef=(()=>{const e=new Date,t=e.getMonth()>=7?e.getFullYear()+1:e.getFullYear();return Array.from({length:21},(n,r)=>String(t-r))})(),Dx=["taxi","uber","transporte_escolar","carga"],du=[{value:"particular",label:"Particular"},{value:"comercial",label:"Comercial"},{value:"taxi",label:"Taxi"},{value:"uber",label:"Uber / Cabify / DiDi"}
70,{value:"transporte_escolar",label:"Transporte Escolar"},{value:"carga",label:"Carga"}],Fr={Santiago:["Cerrillos","Cerro Navia","Conchalí","El Bosque","Estación Central","Huechuraba","Independencia","La Cisterna","La Florida","La Granja","La Pintana","La Reina","Las Condes","Lo Barnechea","Lo Espejo","Lo Prado","Macul","Maipú","Ñuñoa","Pedro Aguirre Cerda","Peñalolén","Providencia","Pudahuel","Quilicura","Quinta Normal","Recoleta","Renca","San Joaquín","San Miguel","San Ramón","Santiago","Vitacura"],Chacabuco:["Colina","Lampa","Tiltil"],Cordillera:["Pirque","Puente Alto","San José de Maipo"],Maipo:["Buin","Calera de Tango","Paine","San Bernardo"],Melipilla:["Alhué","Curacaví","María Pinto","Melipilla","San Pedro"],Talagante:["El Monte","Isla de Maipo","Padre Hurtado","Peñaflor","Talagante"],Valparaíso:["Casablanca","Concón","Juan Fernández","Puchuncaví","Quintero","Valparaíso","Viña del Mar"],"Los Andes":["Calle Larga","Los Andes","Rinconada","San Esteban"],"Marga Marga":["Limache","Olmué","Quilpué","Villa Alemana"],Petorca:["Cabildo","La Ligua","Papudo","Petorca","Zapallar"],Quillota:["La Calera","La Cruz","Hijuelas","Nogales","Quillota"],"San Antonio":["Algarrobo","Cartagena","El Quisco","El Tabo","San Antonio","Santo Domingo"],"San Felipe de Aconcagua":["Catemu","Llay-Llay","Panquehue","Putaendo","San Felipe","Santa María"],"Isla de Pascua":["Isla de Pascua"],Elqui:["Andacollo","Coquimbo","La Higuera","La Serena","Paiguano","Vicuña"],Choapa:["Canela","Illapel","Los Vilos","Salamanca"],Limarí:["Combarbalá","Monte Patria","Ovalle","Punitaqui","Río Hurtado"],Copiapó:["Caldera","Copiapó","Tierra Amarilla"],Chañaral:["Chañaral","Diego de Almagro"],Huasco:["Alto del Carmen","Freirina","Huasco","Vallenar"],Antofagasta:["Antofagasta","Mejillones","Sierra Gorda","Taltal"],"El Loa":["Calama","Ollagüe","San Pedro de Atacama"],Tocopilla:["María Elena","Tocopilla"],Iquique:["Alto Hospicio","Iquique"],Tamarugal:["Camiña","Colchane","Huara","Pica","Pozo Almonte"],Arica:["Arica","Camarones"],Parinacota:["General Lagos","Putre"],Cachapoal:["Codegua","Coinco","Coltauco","Doñihue","Graneros","Las Cabras","Machalí","Malloa","Mostazal","Olivar","Peumo","Pichidegua","Quinta de Tilcoco","Rancagua","Rengo","Requínoa","San Vicente"],"Cardenal Caro":["La Estrella","Litueche","Marchigüe","Navidad","Paredones","Pichilemu"],Colchagua:["Chépica","Chimbarongo","Lolol","Nancagua","Palmilla","Peralillo","Placilla","Pumanque","San Fernando","Santa Cruz"],Talca:["Constitución","Curepto","Empedrado","Maule","Pelarco","Pencahue","Río Claro","San Clemente","San Rafael","Talca"],Cauquenes:["Cauquenes","Chanco","Pelluhue"],Curicó:["Curicó","Hualañé","Licantén","Molina","Rauco","Romeral","Sagrada Familia","Teno","Vichuquén"],Linares:["Colbún","Linares","Longaví","Parral","Retiro","San Javier","Villa Alegre","Yerbas Buenas"],Diguillín:["Bulnes","Chillán","Chillán Viejo","El Carmen","Pemuco","Pinto","Quillón","San Ignacio","Yungay"],Itata:["Cobquecura","Coelemu","Ninhue","Portezuelo","Quirihue","Ránquil","Treguaco"],Punilla:["Coihueco","Ñiquén","San Carlos","San Fabián","San Nicolás"],Concepción:["Concepción","Coronel","Chiguayante","Florida","Hualpén","Hualqui","Lota","Penco","San Pedro de la Paz","Santa Juana","Talcahuano","Tomé"],Arauco:["Arauco","Cañete","Contulmo","Curanilahue","Lebu","Los Álamos","Tirúa"],Biobío:["Alto Biobío","Antuco","Cabrero","Laja","Los Ángeles","Mulchén","Nacimiento","Negrete","Quilaco","Quilleco","S
70an Rosendo","Santa Bárbara","Tucapel","Yumbel"],Cautín:["Carahue","Cholchol","Cunco","Curarrehue","Freire","Galvarino","Gorbea","Lautaro","Loncoche","Melipeuco","Nueva Imperial","Padre Las Casas","Perquenco","Pitrufquén","Pucón","Saavedra","Temuco","Teodoro Schmidt","Toltén","Vilcún","Villarrica"],Malleco:["Angol","Collipulli","Curacautín","Ercilla","Lonquimay","Los Sauces","Lumaco","Purén","Renaico","Traiguén","Victoria"],Valdivia:["Corral","Lanco","Los Lagos","Máfil","Mariquina","Paillaco","Panguipulli","Valdivia"],Ranco:["Futrono","La Unión","Lago Ranco","Río Bueno"],Llanquihue:["Calbuco","Cochamó","Fresia","Frutillar","Llanquihue","Los Muermos","Maullín","Puerto Montt","Puerto Varas"],Chiloé:["Ancud","Castro","Chonchi","Curaco de Vélez","Dalcahue","Puqueldón","Queilén","Quellón","Quemchi","Quinchao"],Osorno:["Osorno","Puerto Octay","Purranque","Puyehue","Río Negro","San Juan de la Costa","San Pablo"],Palena:["Chaitén","Futaleufú","Hualaihué","Palena"],Aysén:["Cisnes","Guaitecas","Puerto Aysén"],"Capitán Prat":["Cochrane","O'Higgins","Tortel"],Coyhaique:["Coyhaique","Lago Verde"],"General Carrera":["Chile Chico","Río Ibáñez"],Magallanes:["Laguna Blanca","Punta Arenas","Río Verde","San Gregorio"],"Tierra del Fuego":["Porvenir","Primavera","Timaukel"],"Última Esperanza":["Puerto Natales","Torres del Paine"],"Antártica Chilena":["Antártica","Cabo de Hornos"]},$x=["Santiago","Chacabuco","Cordillera","Maipo","Melipilla","Talagante"],ZS=Object.keys(Fr).filter(e=>!$x.includes(e)).sort((e,t)=>e.localeCompare(t,"es")),tf=[...$x,...ZS],XS="56323140979",QS=[{value:"sedan",label:"Sedán / 4 puertas"},{value:"hatchback",label:"Hatchback"},{value:"sw",label:"Station Wagon (SW)"},{value:"suv",label:"SUV / Todoterreno"},{value:"pickup",label:"Pick-Up / Camioneta"},{value:"coupe",label:"Coupé / 2 puertas"},{value:"furgon",label:"Furgón / Van"},{value:"convertible",label:"Convertible / Cabriolet"},{value:"otro",label:"Otra carrocería"}],YS=Qt({marca:K().min(1,"Selecciona la marca"),modelo:K().min(1,"Selecciona el modelo"),modeloOtro:K().optional(),submodelo:K().optional(),tipoCarroceria:K().optional(),anio:K().min(1,"Selecciona el año"),uso:K().min(1,"Selecciona el uso").refine(e=>!Dx.includes(e),{message:"Este uso no está disponible para cotización online."}),provincia:K().min(1,"Selecciona la provincia"),provinciaOtra:K().optional(),comuna:K().min(1,"Selecciona la comuna"),comunaOtra:K().optional(),esCeroKm:Ht().default(!1),esElectrico:Ht().default(!1),tieneFranquicia:Ht().default(!1),patente:K().optional()}).superRefine((e,t)=>{var n,r,a;!e.esCeroKm&&(!e.patente||e.patente.trim().length<5)&&t.addIssue({path:["patente"],code:L.custom,message:"Ingresa la patente del vehículo (ej: ABCD12)"}),e.modelo==="Otro"&&!((n=e.modeloOtro)!=null&&n.trim())&&t.addIssue({path:["modeloOtro"],code:L.custom,message:"Describe el modelo del vehículo"}),e.provincia==="_otra"&&!((r=e.provinciaOtra)!=null&&r.trim())&&t.addIssue({path:["provinciaOtra"],code:L.custom,message:"Escribe el nombre de tu provincia"}),e.comuna==="_otra"&&!((a=e.comunaOtra)!=null&&a.trim())&&t.addIssue({path:["comunaOtra"],code:L.custom,message:"Escribe el nombre de tu comuna"})});function JS({defaultValues:e,onNext:t,onPrev:n}){var N,P,O,V,B,M,_,Y;const{register:r,handleSubmit:a,formState:{errors:i},watch:o,setValue:l}=un({resolver:dn(YS),defaultValues:{esCeroKm:!1,esElectrico:!1,tieneFranquicia:!1,marca:"",modelo:"",modeloOtro:"",submodelo:"",tipoCarroceria:"",anio:"",uso:"",provincia:"",provinciaOtra:"",comuna:"",comunaOtra:"",patente:"",...e}}),c=o("marca"),u=o("modelo"),d=o("provincia"),f=o("comuna"),h=o("esCeroKm"),g=o("tieneFranquicia"),x=o("uso"),[b,j]=R.useState(e!=null&&e.marca?Di[e.marca]||[]:[]),[m,p]=R.useState(e!=null&&e.provincia?Fr[e.provincia]||[]:[]);R.useEffect(()=>{c&&(j(Di[c]||[]),l("modelo",""),l("modeloOtro",""))},[c]),R.useEffect(()=>{d&&(d==="_otra"?(p([]),l("comuna","_otra")):(p(Fr[d]||[]),l("comuna","")))},[d]);const y=D=>{const te=D.modelo==="Otro"?D.modeloOtro:D.modelo,k=D.provincia==="_otra"?D.provinciaOtra:D.provincia,F=D.comuna==="_otra"?D.comunaOtra:D.comuna;t({...D,modelo:te,provincia:k,comuna:F})},C=Dx.includes(x);return s.jsxs(ee.div,{initial:{opacity:0,x:40}
70,animate:{opacity:1,x:0},exit:{opacity:0,x:-40},transition:{duration:.3},children:[s.jsxs("div",{className:"mb-5",children:[s.jsx("h2",{className:"text-xl font-bold text-gray-800",children:"Datos del Vehículo"}),s.jsx("p",{className:"text-sm text-gray-400 mt-0.5",children:"Cuéntanos sobre el auto que quieres asegurar."})]}),s.jsxs("form",{onSubmit:a(y),noValidate:!0,className:"flex flex-col gap-4",children:[s.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:[s.jsxs(Se,{label:"Marca",required:!0,error:(N=i.marca)==null?void 0:N.message,...r("marca"),children:[s.jsx("option",{value:"",children:"Seleccione..."}),Lx.map(D=>s.jsx("option",{value:D,children:D},D))]}),s.jsxs("div",{children:[s.jsxs(Se,{label:"Modelo",required:!0,error:(P=i.modelo)==null?void 0:P.message,...r("modelo"),disabled:!c,children:[s.jsx("option",{value:"",children:c?"Seleccione...":"Primero elige la marca"}),b.map(D=>s.jsx("option",{value:D,children:D},D)),c&&s.jsx("option",{value:"Otro",children:"Otro"})]}),s.jsx(he,{children:u==="Otro"&&s.jsxs(ee.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{duration:.2},className:"mt-2",children:[s.jsx("input",{...r("modeloOtro"),placeholder:"Describe el modelo",className:"input-field w-full"}),i.modeloOtro&&s.jsx("p",{className:"text-[11px] text-red-500 mt-1 pl-1",children:i.modeloOtro.message})]})})]})]}),s.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:[s.jsxs("div",{children:[s.jsxs("label",{className:"block text-[11px] font-bold tracking-widest uppercase text-brand-lila mb-1",children:["Submodelo / Versión",s.jsx("span",{className:"font-normal normal-case text-gray-400 tracking-normal ml-1",children:"(opcional)"})]}),s.jsx("input",{...r("submodelo"),placeholder:"Ej: 1.6 GL, 2.0 Turbo, Sport…",className:"input-field w-full"})]}),s.jsxs(Se,{label:"Tipo de Carrocería",error:(O=i.tipoCarroceria)==null?void 0:O.message,...r("tipoCarroceria"),children:[s.jsx("option",{value:"",children:"Seleccione... (opcional)"}),QS.map(D=>s.jsx("option",{value:D.value,children:D.label},D.value))]})]}),s.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:[s.jsxs(Se,{label:"Año",required:!0,error:(V=i.anio)==null?void 0:V.message,...r("anio"),children:[s.jsx("option",{value:"",children:"Seleccione..."}),ef.map(D=>s.jsx("option",{value:D,children:D},D))]}),s.jsxs("div",{className:"flex flex-col gap-1",children:[s.jsxs(Se,{label:"Uso",required:!0,error:(B=i.uso)==null?void 0:B.message,...r("uso"),children:[s.jsx("option",{value:"",children:"Seleccione..."}),du.map(D=>s.jsx("option",{value:D.value,children:D.label},D.value))]}),s.jsx(he,{children:C&&s.jsxs(ee.p,{initial:{opacity:0,y:-4},animate:{opacity:1,y:0},exit:{opacity:0},className:"text-[11px] text-red-500 pl-1 leading-tight",children:["⚠️ Uso no disponible online."," ",s.jsx("a",{href:`https://wa.me/${XS}`,target:"_blank",rel:"noreferrer",className:"underline font-semibold",children:"Contáctanos."})]})})]})]}),s.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:[s.jsxs("div",{children:[s.jsxs(Se,{label:"Provincia",required:!0,error:(M=i.provincia)==null?void 0:M.message,...r("provincia"),children:[s.jsx("option",{value:"",children:"Seleccione..."}),tf.map(D=>s.jsx("option",{value:D,children:D},D)),s.jsx("option",{value:"_otra",children:"Otra / No encuentro la mía"})]}),s.jsx(he,{children:d==="_otra"&&s.jsxs(ee.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{duration:.2},className:"mt-2",children:[s.jsx("input",{...r("provinciaOtra"),placeholder:"Nombre de tu provincia",className:"input-field w-full"}),i.provinciaOtra&&s.jsx("p",{className:"text-[11px] text-red-500 mt-1 pl-1",children:i.provinciaOtra.message})]})})]}),s.jsxs("div",{children:[s.jsxs(Se,{label:"Comuna",required:!0,error:(_=i.comuna)==null?void 0:_.message,...r("comuna"),disabled:!d||d==="_otra",children:[s.jsx("option",{value:"",children:"Seleccione..."}),m.map(D=>s.jsx("option",{value:D,children:D},D)),d&&d!=="_otra"&&s.jsx("option",{value:"_otra",children:"Otra / No encuentro la mía"})]}),s.jsx(he,{children:(f==="_otra"||d==="_otra")&&s.jsxs(ee.div,{initial:{opacity:0,height:0}
70,animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{duration:.2},className:"mt-2",children:[s.jsx("input",{...r("comunaOtra"),placeholder:"Nombre de tu comuna / ciudad",className:"input-field w-full"}),i.comunaOtra&&s.jsx("p",{className:"text-[11px] text-red-500 mt-1 pl-1",children:i.comunaOtra.message})]})})]})]}),s.jsxs("div",{className:"flex flex-col gap-2",children:[s.jsxs("label",{className:"flex items-center gap-3 px-4 py-2.5 rounded-xl border border-gray-200 bg-white cursor-pointer hover:border-brand-lila/40 hover:bg-brand-lila/5 transition-all duration-150",children:[s.jsx("input",{type:"checkbox",...r("esCeroKm"),className:"w-4 h-4 accent-brand-lila cursor-pointer flex-shrink-0"}),s.jsxs("span",{className:"text-sm text-gray-700 select-none",children:["El vehículo es ",s.jsx("strong",{children:"0 kilómetros"})]})]}),s.jsxs("label",{className:"flex items-center gap-3 px-4 py-2.5 rounded-xl border border-gray-200 bg-white cursor-pointer hover:border-green-400/50 hover:bg-green-50/50 transition-all duration-150",children:[s.jsx("input",{type:"checkbox",...r("esElectrico"),className:"w-4 h-4 accent-green-500 cursor-pointer flex-shrink-0"}),s.jsxs("span",{className:"text-sm text-gray-700 select-none",children:["El vehículo es ",s.jsx("strong",{children:"eléctrico"})," ⚡"]})]}),s.jsxs("label",{className:"flex items-center gap-3 px-4 py-2.5 rounded-xl border border-amber-200 bg-amber-50/50 cursor-pointer hover:border-amber-400/60 hover:bg-amber-50 transition-all duration-150",children:[s.jsx("input",{type:"checkbox",...r("tieneFranquicia"),className:"w-4 h-4 accent-amber-500 cursor-pointer flex-shrink-0"}),s.jsxs("div",{className:"flex flex-col",children:[s.jsxs("span",{className:"text-sm text-gray-700 select-none",children:["El vehículo tiene ",s.jsx("strong",{children:"franquicia aduanera"})]}),s.jsx("span",{className:"text-xs text-amber-600",children:"Importado con exención o reducción de aranceles"})]})]})]}),s.jsx(he,{children:g&&s.jsxs(ee.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{duration:.2},className:"bg-amber-50 border border-amber-200 rounded-xl px-4 py-3 text-xs text-amber-700 leading-relaxed",children:["⚠️ Los vehículos con franquicia aduanera requieren una ",s.jsx("strong",{children:"tasación especial"}
70),". Un ejecutivo te contactará para confirmar el valor asegurable."]})}),s.jsx(he,{children:!h&&s.jsx(ee.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{duration:.2},children:s.jsx(Qe,{label:"Patente",required:!0,placeholder:"ABCD12",error:(Y=i.patente)==null?void 0:Y.message,...r("patente"),onChange:D=>l("patente",D.target.value.toUpperCase().replace(/\s/g,"")),maxLength:7})})}),s.jsx(fn,{}),s.jsxs("div",{className:"flex justify-between items-center pt-4 border-t border-gray-100",children:[s.jsx("button",{type:"button",onClick:n,className:"btn-secondary",children:"← Anterior"}),s.jsx("button",{type:"submit",className:"btn-primary",disabled:C,children:"Siguiente →"})]})]})]})}const e4=Qt({tipoCobertura:Qd(["total","perdida_total","rc"],{errorMap:()=>({message:"Selecciona un tipo de cobertura"})}),formaPago:K().min(1,"Selecciona la forma de pago"),numeroCuotas:K().min(1)}),t4=[{value:"total",label:"Cobertura Total",desc:"Robo, choque, daños propios y responsabilidad civil",icon:"🛡️"},{value:"perdida_total",label:"Pérdida Total + RC",desc:"Robo total y responsabilidad civil ante terceros",icon:"🔒"},{value:"rc",label:"RC — Solo Responsabilidad Civil",desc:"Daños a terceros únicamente",icon:"📋"}],n4=[{value:"contado",label:"Contado"},{value:"pat",label:"PAT — Pago Automático con Tarjeta"},{value:"pac",label:"PAC — Pago Automático con Cuenta"},{value:"online_cuotas",label:"Pago directo online en cuotas"}];function r4({defaultValues:e,onNext:t,onPrev:n}){var f,h;const{register:r,handleSubmit:a,formState:{errors:i},watch:o,setValue:l}=un({resolver:dn(e4),defaultValues:{tipoCobertura:"total",formaPago:"contado",numeroCuotas:"1",...e}}),c=o("tipoCobertura"),u=o("formaPago"),d=u==="contado";return R.useEffect(()=>{d&&l("numeroCuotas","1")},[d,l]),s.jsxs(ee.div,{initial:{opacity:0,x:40},animate:{opacity:1,x:0},exit:{opacity:0,x:-40},transition:{duration:.3},children:[s.jsxs("div",{className:"mb-5",children:[s.jsxs("h2",{className:"text-xl font-bold text-gray-800 flex items-center gap-2",children:[s.jsx("span",{children:"🛡️"})," Cobertura y Pago"]}),s.jsx("p",{className:"text-sm text-gray-400 mt-0.5",children:"Elige el tipo de protección y cómo prefieres pagar."})]}),s.jsxs("form",{onSubmit:a(t),noValidate:!0,className:"flex flex-col gap-5",children:[s.jsxs("div",{children:[s.jsxs("p",{className:"text-[11px] font-bold tracking-widest uppercase text-brand-lila mb-2",children:["Tipo de cobertura ",s.jsx("span",{className:"text-red-400",children:"*"})]}),s.jsx("div",{className:"flex flex-col gap-1.5",children:t4.map(g=>{const x=c===g.value;return s.jsxs("label",{className:["flex items-center gap-3 px-4 py-3 rounded-xl border cursor-pointer transition-all duration-150",x?"border-brand-lila/50 bg-brand-lila/5 shadow-sm":"border-gray-200 bg-white hover:border-brand-lila/30 hover:bg-gray-50"].join(" "),children:[s.jsx("input",{type:"radio",value:g.value,...r("tipoCobertura"),className:"accent-brand-lila w-3.5 h-3.5 flex-shrink-0"}),s.jsx("span",{className:"text-base",children:g.icon}),s.jsxs("div",{className:"min-w-0",children:[s.jsx("p",{className:`font-bold text-sm ${x?"text-brand-lila":"text-gray-700"}`,children:g.label}),s.jsx("p",{className:"text-xs text-gray-400 leading-tight",children:g.desc})]})]},g.value)})}),i.tipoCobertura&&s.jsx("p",{className:"text-[11px] text-red-500 mt-1 pl-1",children:i.tipoCobertura.message})]}),s.jsxs("div",{className:`grid gap-3 ${d?"grid-cols-1":"sm:grid-cols-2"}`,children:[s.jsx(Se,{label:"Forma de Pago",required:!0,error:(f=i.formaPago)==null?void 0:f.message,value:u,...r("formaPago"),children:n4.map(g=>s.jsx("option",{value:g.value,children:g.label},g.value))}),s.jsx(he,{children:!d&&s.jsx(ee.div,{initial:{opacity:0,width:0},animate:{opacity:1,width:"auto"},exit:{opacity:0,width:0},transition:{duration:.2},children:s.jsxs(Se,{label:"Número de Cuotas",required:!0,error:(h=i.numeroCuotas)==null?void 0:h.message,...r("numeroCuotas"),children:[s.jsx("option",{value:"3",children:"3 cuotas"}),s.jsx("option",{value:"6",children:"6 cuotas"}),s.jsx("option",{value:"10",children:"10 cuotas"}),s.jsx("option",{value:"11",children:"11 cuotas"}),s.jsx("option",{value:"12",children:"12 cuotas"})]})})})]}),d&&s.jsx("p",{className:"text-xs text-gray-400 -mt-2 pl-1",children:"Pago único al contratar — sin cuotas adicionales."}),s.jsx(fn,{}),s.jsxs("div",{className:"flex justify-between items-center pt-4 border-t border-gray-100 mt-1",children:[s.jsx("button",{type:"button",onClick:n,className:"btn-secondary",children:"← Anterior"}),s.jsx("button",{type:"submit",className:"btn-primary",children:"Siguiente →"})]})]})]})}function lm(){const e=["+","-"],t=e[Math.floor(Math.random()*e.length)];let n=Math.floor(Math.random()*9)+1,r=Math.floor(Math.random()*9)+1;return t==="-"&&r>n&&([n,r]=[r,n]),{question:`${n} ${t} ${r}`,answer:t==="+"?n+r:n-r}}function nf({defaultValues:e,onNext:t,onPrev:n,isSubmitting:r}){var g,x,b;
70const[a,i]=R.useState(()=>lm()),o=Qt({email:K().email("Ingresa un correo válido"),telefono:K().min(8,"Ingresa 8 o 9 dígitos").max(9,"Máximo 9 dígitos").regex(/^\d+$/,"Solo números"),captchaAnswer:K().min(1,"Responde el captcha").refine(j=>parseInt(j)===a.answer,{message:`Respuesta incorrecta — ¿Cuánto es ${a.question}?`})}),{register:l,handleSubmit:c,formState:{errors:u},setValue:d}=un({resolver:dn(o),defaultValues:e||{}}),f=()=>i(lm()),h=j=>{const m=j.target.value.replace(/\D/g,"").slice(0,9);j.target.value=m,d("telefono",m,{shouldValidate:!0})};return s.jsxs(ee.div,{initial:{opacity:0,x:40},animate:{opacity:1,x:0},exit:{opacity:0,x:-40},transition:{duration:.3},children:[s.jsxs("div",{className:"mb-5",children:[s.jsxs("h2",{className:"text-xl font-bold text-gray-800 flex items-center gap-2",children:[s.jsx("span",{children:"📞"})," Datos de Contacto"]}),s.jsx("p",{className:"text-sm text-gray-500 mt-1",children:"¡Último paso! Ya casi terminas 🎉"})]}),s.jsxs("form",{onSubmit:c(t),noValidate:!0,className:"flex flex-col gap-4",children:[s.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:[s.jsx(Qe,{label:"Email",required:!0,type:"email",placeholder:"[email protected]",error:(g=u.email)==null?void 0:g.message,...l("email")}),s.jsxs("div",{children:[s.jsxs("label",{className:"block text-[11px] font-bold tracking-widest uppercase text-brand-lila mb-1",children:["Teléfono ",s.jsx("span",{className:"text-red-400",children:"*"})]}),s.jsxs("div",{className:"flex items-center gap-0",children:[s.jsx("span",{className:"flex items-center justify-center px-3 h-[42px] bg-gray-100 border border-r-0 border-gray-200 rounded-l-xl text-sm font-semibold text-gray-500 select-none flex-shrink-0",children:"+56"}),s.jsx("input",{type:"tel",inputMode:"numeric",placeholder:"9 1234 5678",maxLength:9,defaultValue:((x=e==null?void 0:e.telefono)==null?void 0:x.replace(/^\+?56/,""))||"",onChange:h,className:`input-field rounded-l-none flex-1 ${u.telefono?"input-error":""}`})]}),u.telefono&&s.jsx("p",{className:"text-[11px] text-red-500 mt-1 pl-1",children:u.telefono.message})]})]}),s.jsxs("div",{className:"bg-brand-lila/5 rounded-2xl p-4 border border-brand-lila/20",children:[s.jsxs("div",{className:"flex items-center justify-between mb-2",children:[s.jsxs("p",{className:"text-xs font-bold tracking-wider uppercase text-brand-lila",children:["Captcha: ¿Cuánto es ",a.question,"? ",s.jsx("span",{className:"text-red-500",children:"*"})]}),s.jsx("button",{type:"button",onClick:f,className:"text-xs text-brand-lila hover:underline flex items-center gap-1",children:"🔄 Cambiar"})]}),s.jsx(Qe,{placeholder:"Respuesta",type:"number",error:(b=u.captchaAnswer)==null?void 0:b.message,...l("captchaAnswer")})]}),s.jsx(fn,{}),s.jsxs("div",{className:"flex justify-between items-center pt-4 border-t border-gray-100 mt-2",children:[s.jsx("button",{type:"button",onClick:n,className:"btn-secondary",disabled:r,children:"← Anterior"}),s.jsx("button",{type:"submit",className:"btn-primary",disabled:r,children:r?s.jsxs("span",{className:"flex items-center gap-2",children:[s.jsxs("svg",{className:"animate-spin w-4 h-4",fill:"none",viewBox:"0 0 24 24",children:[s.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),s.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]}),"Enviando..."]}):"Enviar ✓"})]})]})]})}const a4="56323140979";function i4(e){var l;const t=[e.nombres,e.primerApellido,e.segundoApellido].filter(Boolean).join(" "),n={total:"Cobertura Total",perdida_total:"Pérdida Total + RC",rc:"RC"}[e.tipoCobertura]||e.tipoCobertura,r=e.tipoFormulario==="pesado",a=e.telefono?`+56 ${e.telefono}`:"-";let i="";r&&((l=e.vehicles)!=null&&l.length)?i=`*Flota (${e.vehicles.length} vehículo${e.vehicles.length>1?"s":""})*
71`+e.vehicles.map((c,u)=>`${u+1}. ${c.marca} ${c.modelo}${c.submodelo?` ${c.submodelo}`:""} ${c.anio} · UF ${c.capitalAsegurar} · RC UF ${c.montoRC}${c.viajeExtranjero?" · 🌎":""}`).join(`
72`)+`
73Giro: ${e.giro||"-"}
74Provincia: ${e.provincia||"-"} / ${e.comuna||"-"}`:i=`*Vehículo*
75Marca: ${e.marca||"-"}
76Modelo: ${e.modelo||"-"}
77Año: ${e.anio||"-"}
78Uso: ${e.usoLabel||e.uso||"-"}
79Provincia: ${e.provincia||"-"} / ${e.comuna||"-"}
800 Km: ${e.esCeroKm?"Sí":"No"}
81Eléctrico: ${e.esElectrico?"Sí ⚡":"No"}
82Patente: ${e.patente||"N/A"}`;const o=`Hola! Me gustaría recibir información sobre mi cotización de seguro vehicular.
83
84*Datos del Asegurado*
85Tipo: ${e.tipoPersona==="natural"?"Natural":"Jurídica"}
86RUT: ${e.rut||"-"}
87Nombre: ${t||"-"}
88Fecha nacimiento: ${e.fechaNacimiento||"-"}
89
90${i}
91
92*Cobertura*
93Tipo: ${n||"-"}
94Pago: ${e.formaPago||"-"}
95Cuotas: ${e.numeroCuotas||"-"}
96
97*Contacto*
98Email: ${e.email||"-"}
99Teléfono: ${a}`;return`https://wa.me/${a4}?text=${encodeURIComponent(o)}`}function rf({formData:e,onClose:t}){return R.useEffect(()=>{const n=(r,a)=>Ea({...a,origin:{y:.6},particleCount:Math.floor(200*r),colors:["#7B3FE4","#FF6A00","#E6006E","#2563EB","#22C55E","#FACC15"]});setTimeout(()=>{n(.25,{spread:26,startVelocity:55}),n(.2,{spread:60}),n(.35,{spread:100,decay:.91,scalar:.8}),n(.1,{spread:120,startVelocity:25,decay:.92,scalar:1.2}),n(.1,{spread:120,startVelocity:45})},200)},[]),s.jsxs(ee.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{duration:.4,type:"spring"},className:"flex flex-col items-center text-center py-6 px-4",children:[s.jsx(ee.div,{initial:{scale:0},animate:{scale:1,boxShadow:["0 0 0 0px rgba(123,63,228,0.30)","0 0 0 16px rgba(123,63,228,0)"]},transition:{scale:{delay:.2,type:"spring",stiffness:200},boxShadow:{delay:.6,duration:1.8,repeat:1/0,ease:"easeOut"}},className:`w-24 h-24 rounded-full bg-brand-lila/15 border-2 border-brand-lila/25
100                   flex items-center justify-center mb-5`,children:s.jsxs("svg",{width:"48",height:"48",viewBox:"0 0 24 24",fill:"none",stroke:"#7B3FE4",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("path",{d:"M14 9V5a3 3 0 0 0-3-3l-4 9v11h11.28a2 2 0 0 0 2-1.7l1.38-9a2 2 0 0 0-2-2.3H14z"}),s.jsx("path",{d:"M7 22H4a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h3"})]})}),s.jsx(ee.h2,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.3},className:"text-2xl font-bold text-gray-800 mb-2",children:"¡Gracias por preferirnos!"}),s.jsxs(ee.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.4},className:"text-gray-500 text-sm mb-8 space-y-1",children:[s.jsx("p",{children:"Hemos recibido tu solicitud."}),s.jsx("p",{children:"Te contactaremos pronto."}),s.jsxs("p",{className:"mt-2",children:["Si necesitas soporte inmediato, contáctanos por"," ",s.jsx("strong",{className:"text-green-600",children:"WhatsApp"})," aquí."]})]}),s.jsxs(ee.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.5},className:"flex flex-row gap-3 justify-center",children:[s.jsxs("a",{href:i4(e),target:"_blank",rel:"noopener noreferrer",className:`flex items-center justify-center gap-2 bg-[#25D366] hover:bg-[#1db954]
101                     text-white text-sm font-bold px-5 py-2.5 rounded-xl
102                     transition-colors duration-150 shadow-sm hover:shadow-md`,children:[s.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor",children:s.jsx("path",{d:"M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z"})}),"WhatsApp"]}),s.jsx("button",{onClick:t,className:`flex items-center justify-center bg-brand-lila hover:bg-brand-lila-dark
103                     text-white text-sm font-bold px-5 py-2.5 rounded-xl
104                     transition-colors duration-150 shadow-sm hover:shadow-md`,children:"Cerrar"})]})]})}const s4=4;function cm(){Ea({particleCount:45,spread:60,origin:{x:.5,y:.3},colors:["#7B3FE4","#a78bfa","#ffffff","#c4b5fd","#661ecf"],scalar:.85,gravity:1.2,ticks:120,disableForReducedMotion:!0}
104)}function o4({onClose:e}){const[t,n]=R.useState(1),[r,a]=R.useState({}),[i,o]=R.useState(!1),[l,c]=R.useState(!1),[u,d]=R.useState({}),f=R.useRef(null),h=t/s4*100;R.useEffect(()=>{const j=()=>{const p=document.documentElement.scrollHeight;window.parent.postMessage({type:"iframeResize",height:p},"*")},m=new ResizeObserver(j);return m.observe(document.body),j(),()=>m.disconnect()},[]);const g=j=>{if(j.uso){const p=du.find(y=>y.value===j.uso);j.usoLabel=(p==null?void 0:p.label)||j.uso}const m={...r,...j};a(m),d(p=>({...p,[t]:j})),cm(),n(p=>p+1),window.scrollTo({top:0,behavior:"smooth"}),setTimeout(()=>window.parent.postMessage({type:"scrollToTop"},"*"),50)},x=()=>n(j=>j-1),b=async j=>{const m={...r,...j};if(j.uso){const p=du.find(y=>y.value===j.uso);m.usoLabel=(p==null?void 0:p.label)||j.uso}a(m),o(!0);try{await fetch("/.netlify/functions/send-quote",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(m)})}catch{}finally{o(!1),c(!0),cm()}};return s.jsx("div",{className:"w-full",children:s.jsx("div",{className:"w-full",children:s.jsxs("div",{className:"bg-white overflow-hidden",children:[s.jsxs("div",{className:"px-6 pt-6 pb-5 relative",style:{background:"#661ecf"},children:[s.jsxs("div",{className:"flex flex-col items-center gap-3",children:[s.jsx("img",{src:"/logo-white.png",alt:"Asegurarte",className:"h-8 object-contain"}),s.jsx("h1",{className:"text-white/80 text-sm font-semibold tracking-wide",children:"Seguro de Vehículo"})]}),!l&&s.jsxs("div",{className:"mt-4",children:[s.jsx(lr,{current:t}),s.jsx("div",{className:"mt-3 h-1.5 bg-white/20 rounded-full overflow-hidden",children:s.jsx("div",{className:"h-full bg-white rounded-full transition-all duration-700 ease-out",style:{width:`${h}%`}})})]}),l&&s.jsx("div",{className:"mt-4",children:s.jsx(lr,{current:5})})]}),s.jsx("div",{ref:f,className:"px-6 py-6",children:s.jsx(he,{mode:"wait",children:l?s.jsx(rf,{formData:r,onClose:e},"success"):t===1?s.jsx(Jd,{defaultValues:u[1],onNext:g},"step1"):t===2?s.jsx(JS,{defaultValues:u[2],onNext:g,onPrev:x},"step2"):t===3?s.jsx(r4,{defaultValues:u[3],onNext:g,onPrev:x},"step3"):t===4?s.jsx(nf,{defaultValues:u[4],onNext:b,onPrev:x,isSubmitting:i},"step4"):null})}),s.jsx("div",{className:"px-6 py-3 border-t border-gray-100 bg-gray-50",children:s.jsx("p",{className:"text-center text-gray-400 text-xs",children:"Tus datos están protegidos y son tratados con confidencialidad."})})]})})})}const l4=[{value:"furgon",label:"Furgón / Van de carga"},{value:"berlingo",label:"Berlingo / Combo / Kangoo"},{value:"pickup",label:"Pick-Up"},{value:"camioneta",label:"Camioneta comercial"},{value:"minibus",label:"Minibús"},{value:"otro",label:"Otro vehículo comercial liviano"}],c4=[{value:"reparto",label:"Reparto / Delivery"},{value:"carga_liviana",label:"Transporte de carga liviana"},{value:"empresarial",label:"Uso empresarial / Corporativo"},{value:"servicio_tecnico",label:"Servicio técnico / Mantención"},{value:"otro_comercial",label:"Otro uso comercial"}],u4=Qt({tipoVehiculo:K().min(1,"Selecciona el tipo de vehículo"),marca:K().min(1,"Selecciona la marca"),modelo:K().min(1,"Selecciona el modelo"),anio:K().min(1,"Selecciona el año"),usoComercial:K().min(1,"Selecciona el uso"),provincia:K().min(1,"Selecciona la provincia"),provinciaOtra:K().optional(),comuna:K().min(1,"Selecciona la comuna"),comunaOtra:K().optional(),esCeroKm:Ht().default(!1),esElectrico:Ht().default(!1),tieneFranquicia:Ht().default(!1),tieneGNC:Ht().default(!1),patente:K().optional()}).superRefine((e,t)=>{var n,r;!e.esCeroKm&&(!e.patente||e.patente.trim().length<5)&&t.addIssue({path:["patente"],code:L.custom,message:"Ingresa la patente del vehículo (ej: ABCD12)"}),e.provincia==="_otra"&&!((n=e.provinciaOtra)!=null&&n.trim())&&t.addIssue({path:["provinciaOtra"],code:L.custom,message:"Escribe el nombre de tu provincia"}),e.comuna==="_otra"&&!((r=e.comunaOtra)!=null&&r.trim())&&t.addIssue({path:["comunaOtra"],code:L.custom,message:"Escribe el nombre de tu comuna"})});function d4({defaultValues:e,onNext:t,onPrev:n}){var p,y,C,N,P,O,V,B;const{register:r,handleSubmit:a,formState:{errors:i},watch:o,setValue:l}=un({resolver:dn(u4),defaultValues:{tipoVehiculo:"",esCeroKm:!1,esElectrico:!1,tieneFranquicia:!1,tieneGNC:!1,marca:"",modelo:"",anio:"",usoComercial:"",provincia:"",provinciaOtra:"",comuna:"",comunaOtra:"",patente:"",...e}}),c=o("marca"),u=o("provincia"),d=o("comuna"),f=o("esCeroKm"),h=o("tieneFranquicia"),[g,x]=R.useState(e!=null&&e.marca?Di[e.marca]||[]:[]),[b,j]=R.use
104State(e!=null&&e.provincia?Fr[e.provincia]||[]:[]);R.useEffect(()=>{c&&(x(Di[c]||[]),l("modelo",""))},[c]),R.useEffect(()=>{u&&(u==="_otra"?(j([]),l("comuna","_otra")):(j(Fr[u]||[]),l("comuna","")))},[u]);const m=M=>{const _=M.provincia==="_otra"?M.provinciaOtra:M.provincia,Y=M.comuna==="_otra"?M.comunaOtra:M.comuna;t({...M,provincia:_,comuna:Y})};return s.jsxs(ee.div,{initial:{opacity:0,x:40},animate:{opacity:1,x:0},exit:{opacity:0,x:-40},transition:{duration:.3},children:[s.jsxs("div",{className:"mb-5",children:[s.jsx("h2",{className:"text-xl font-bold text-gray-800",children:"🚐 Datos del Vehículo"}),s.jsx("p",{className:"text-sm text-gray-400 mt-0.5",children:"Cuéntanos sobre el vehículo comercial que quieres asegurar."})]}),s.jsxs("form",{onSubmit:a(m),noValidate:!0,className:"flex flex-col gap-4",children:[s.jsxs(Se,{label:"Tipo de Vehículo Comercial",required:!0,error:(p=i.tipoVehiculo)==null?void 0:p.message,...r("tipoVehiculo"),children:[s.jsx("option",{value:"",children:"Seleccione..."}),l4.map(M=>s.jsx("option",{value:M.value,children:M.label},M.value))]}),s.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:[s.jsxs(Se,{label:"Marca",required:!0,error:(y=i.marca)==null?void 0:y.message,...r("marca"),children:[s.jsx("option",{value:"",children:"Seleccione..."}),Lx.map(M=>s.jsx("option",{value:M,children:M},M))]}),s.jsxs(Se,{label:"Modelo",required:!0,error:(C=i.modelo)==null?void 0:C.message,...r("modelo"),disabled:!c,children:[s.jsx("option",{value:"",children:"Seleccione..."}),g.map(M=>s.jsx("option",{value:M,children:M},M))]})]}),s.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:[s.jsxs(Se,{label:"Año",required:!0,error:(N=i.anio)==null?void 0:N.message,...r("anio"),children:[s.jsx("option",{value:"",children:"Seleccione..."}),ef.map(M=>s.jsx("option",{value:M,children:M},M))]}),s.jsxs(Se,{label:"Uso Comercial",required:!0,error:(P=i.usoComercial)==null?void 0:P.message,...r("usoComercial"),children:[s.jsx("option",{value:"",children:"Seleccione..."}),c4.map(M=>s.jsx("option",{value:M.value,children:M.label},M.value))]})]}),s.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:[s.jsxs("div",{children:[s.jsxs(Se,{label:"Provincia",required:!0,error:(O=i.provincia)==null?void 0:O.message,...r("provincia"),children:[s.jsx("option",{value:"",children:"Seleccione..."}),tf.map(M=>s.jsx("option",{value:M,children:M},M)),s.jsx("option",{value:"_otra",children:"Otra / No encuentro la mía"})]}),s.jsx(he,{children:u==="_otra"&&s.jsxs(ee.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{duration:.2},className:"mt-2",children:[s.jsx("input",{...r("provinciaOtra"),placeholder:"Nombre de tu provincia",className:"input-field w-full"}),i.provinciaOtra&&s.jsx("p",{className:"text-[11px] text-red-500 mt-1 pl-1",children:i.provinciaOtra.message})]})})]}),s.jsxs("div",{children:[s.jsxs(Se,{label:"Comuna",required:!0,error:(V=i.comuna)==null?void 0:V.message,...r("comuna"),disabled:!u||u==="_otra",children:[s.jsx("option",{value:"",children:"Seleccione..."}),b.map(M=>s.jsx("option",{value:M,children:M},M)),u&&u!=="_otra"&&s.jsx("option",{value:"_otra",children:"Otra / No encuentro la mía"})]}),s.jsx(he,{children:(d==="_otra"||u==="_otra")&&s.jsxs(ee.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{duration:.2},className:"mt-2",children:[s.jsx("input",{...r("comunaOtra"),placeholder:"Nombre de tu comuna / ciudad",className:"input-field w-full"}),i.comunaOtra&&s.jsx("p",{className:"text-[11px] text-red-500 mt-1 pl-1",children:i.comunaOtra.message})]})})]})]}),s.jsxs("div",{className:"flex flex-col gap-2",children:[s.jsxs("label",{className:"flex items-center gap-3 px-4 py-2.5 rounded-xl border border-gray-200 bg-white cursor-pointer hover:border-brand-lila/40 hover:bg-brand-lila/5 transition-all duration-150",children:[s.jsx("input",{type:"checkbox",...r("esCeroKm"),className:"w-4 h-4 accent-brand-lila cursor-pointer flex-shrink-0"}),s.jsxs("span",{className:"text-sm text-gray-700 select-none",children:["El vehículo es ",s.jsx("strong",{children:"0 kilómetros"})]})]}),s.jsxs("label",{className:"flex items-center gap-3 px-4 py-2.5 rounded-xl border border-gray-200 bg-white cursor-pointer hover:border-green-400/50 hover:bg-green-50/50 transition-all duration-150",children:[s.jsx("input",{type:"checkbox",...r("esElectrico"),className:"w-4 h-4 accent-green-500 cursor-pointer flex-shrink-0"}),s.jsxs("span",{className:"text-sm text-gray-700 select-none",children:["El vehículo es ",s.jsx("strong",{children:"eléctrico"})," ⚡"]})]}),s.jsxs("label",{className:"flex items-center gap-3 px-4 py-2.5 rounded-xl border border-gray-200 bg-white cursor-pointer hover:border-blue-400/50 hover:bg-blue-50/50 transition-all duration-150",children:[s.jsx("input",{type:"checkbox",...r("tieneGNC"),className:"w-4 h-4 accent-blue-500 cursor-pointer flex-shrink-0"}),s.jsxs("span",{className:"text-sm text-gray-700 select-none",children:["El vehículo tiene ",s.jsx("strong",{children:"GNC"})," (Gas Natural Comprimido)"]})]}),s.jsxs("label",{className:"flex items-center gap-3 px-4 py-2.5 rounded-xl border border-amber-200 bg-amber-50/50 cursor-pointer hover:border-amber-400/60 hover:bg-amber-50 transition-all duration-150",children:[s.jsx("input",{type:"checkbox",...r("tieneFranquicia"),className:"w-4 h-4 accent-amber-500 cursor-pointer flex-shrink-0"}),s.jsxs("div",{className:"flex flex-col",children:[s.jsxs("span",{className:"text-sm text-gray-700 select-none",children:["El vehículo tiene ",s.jsx("strong",{children:"franquicia aduanera"})]}),s.jsx("span",{className:"text-xs text-amber-600",children:"Importado con exención o reducción de aranceles"})]})]})]}),s.jsx(he,{children:h&&s.jsxs(ee.div,{initial:{opacity:0,height:0}
104,animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{duration:.2},className:"bg-amber-50 border border-amber-200 rounded-xl px-4 py-3 text-xs text-amber-700 leading-relaxed",children:["⚠️ Los vehículos con franquicia aduanera requieren una ",s.jsx("strong",{children:"tasación especial"}),". Un ejecutivo te contactará para confirmar el valor asegurable."]})}),s.jsx(he,{children:!f&&s.jsx(ee.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{duration:.2},children:s.jsx(Qe,{label:"Patente",required:!0,placeholder:"ABCD12",error:(B=i.patente)==null?void 0:B.message,...r("patente"),onChange:M=>l("patente",M.target.value.toUpperCase().replace(/\s/g,"")),maxLength:7})})}),s.jsx(fn,{}),s.jsxs("div",{className:"flex justify-between items-center pt-4 border-t border-gray-100",children:[s.jsx("button",{type:"button",onClick:n,className:"btn-secondary",children:"← Anterior"}),s.jsx("button",{type:"submit",className:"btn-primary",children:"Siguiente →"})]})]})]})}const f4=Qt({tipoCobertura:Qd(["total","perdida_total","rc"],{errorMap:()=>({message:"Selecciona un tipo de cobertura"})}),formaPago:K().min(1,"Selecciona la forma de pago"),numeroCuotas:K().min(1),danosTercerosCargas:Ht().default(!1),danosTercerosConductores:Ht().default(!1),rcExceso1500:Ht().default(!1),rcExceso4000:Ht().default(!1)}),p4=[{value:"total",label:"Cobertura Total",icon:"🛡️",desc:"Protección completa para tu vehículo y terceros",detalle:["✅ Robo total y parcial del vehículo","✅ Daños por choque, volcamiento y colisión","✅ Daños propios por accidente","✅ Responsabilidad civil ante terceros","✅ Daños a carga transportada (opcional)","✅ Asistencia en ruta 24/7","✅ Vehículo de reemplazo"]},{value:"perdida_total",label:"Pérdida Total + RC",icon:"🔒",desc:"Cobertura ante robo total y daños a terceros",detalle:["✅ Robo total del vehículo","✅ Pérdida total por accidente","✅ Responsabilidad civil ante terceros","✅ Asistencia básica en ruta","❌ No incluye daños propios parciales","❌ No incluye vehículo de reemplazo"]},{value:"rc",label:"RC — Solo Responsabilidad Civil",icon:"📋",desc:"Cubre únicamente daños causados a terceros",detalle:["✅ Daños materiales a terceros","✅ Daños corporales a terceros","✅ Daños a vehículos de terceros","❌ No incluye daños propios","❌ No incluye robo","❌ No incluye asistencia en ruta"]}],h4=[{value:"contado",label:"Contado"},{value:"pat",label:"PAT — Pago Automático con Tarjeta"},{value:"pac",label:"PAC — Pago Automático con Cuenta"},{value:"online_cuotas",label:"Pago directo online en cuotas"}];function xs({texto:e}){const[t,n]=R.useState(!1);return s.jsxs("span",{className:"relative inline-flex items-center",children:[s.jsx("button",{type:"button",onMouseEnter:()=>n(!0),onMouseLeave:()=>n(!1),onTouchStart:()=>n(r=>!r),className:"w-4 h-4 rounded-full bg-brand-lila/20 text-brand-lila text-[10px] font-bold flex items-center justify-center flex-shrink-0 hover:bg-brand-lila/40 transition-colors",children:"i"}),s.jsx(he,{children:t&&s.jsx(ee.div,{initial:{opacity:0,y:4},animate:{opacity:1,y:0},exit:{opacity:0,y:4},transition:{duration:.15},className:"absolute right-6 top-0 z-20 w-56 bg-gray-800 text-white text-xs rounded-xl px-3 py-2 shadow-lg leading-relaxed",children:e})})]})}function m4({defaultValues:e,onNext:t,onPrev:n}){var b,j;const{register:r,handleSubmit:a,formState:{errors:i},watch:o,setValue:l}=un({resolver:dn(f4),defaultValues:{tipoCobertura:"total",formaPago:"contado",numeroCuotas:"1",danosTercerosCargas:!1,danosTercerosConductores:!1,rcExceso1500:!1,rcExceso4000:!1,...e}}),c=o("tipoCobertura"),d=o("formaPago")==="contado",f=o("rcExceso1500"),h=o("rcExceso4000"),[g,x]=R.useState(null);return R.useEffect(()=>{d&&l("numeroCuotas","1")},[d,l]),R.useEffect(()=>{x(c)},[c]),R.useEffect(()=>{f&&l("rcExceso4000",!1)},[f]),R.useEffect(()=>{h&&l("rcExceso1500",!1)},[h]),s.jsxs(ee.div,{initial:{opacity:0,x:40},animate:{opacity:1,x:0},exit:{opacity:0,x:-40},transition:{duration:.3},children:[s.jsxs("div",{className:"mb-5",children:[s.jsxs("h2",{className:"text-xl font-bold text-gray-800 flex items-center gap-2",children:[s.jsx("span",{children:"🛡️"})," Cobertura y Pago"]}),s.jsx("p",{className:"text-sm text-gray-400 mt-0.5",children:"Elige el tipo de protección para tu vehículo comercial."})]}),s.jsxs("form",{onSubmit:a(t),noValidate:!0,className:"flex flex-col gap-5",children:[s.jsxs("div",{children:[s.jsxs("p",{className:"text-[11px] font-bold tracking-widest uppercase text-brand-lila mb-2",children:["Tipo de cobertura ",s.jsx("span",{className:"text-red-400",children:"*"})]}),s.jsx("div",{className:"flex flex-col gap-2",children:p4.map(m=>{const p=c===m.value,y=g===m.value;return s.jsxs("div",{className:["rounded-xl border transition-all duration-150",p?"border-brand-lila/50 bg-brand-lila/5 shadow-sm":"border-gray-200 bg-white"].join(" "),children:[s.jsxs("label",{className:"flex items-center gap-3 px-4 py-3 cursor-pointer",children:[s.jsx("input",{type:"radio",value:m.value,...r("tipoCobertura"),className:"accent-brand-lila w-3.5 h-3.5 flex-shrink-0"}),s.jsx("span",{className:"text-base",children:m.icon}),s.jsxs("div",{className:"min-w-0 flex-1",children:[s.jsx("p",{className:`font-bold text-sm ${p?"text-brand-lila":"text-gray-700"}`,children:m.label}),s.jsx("p",{className:"text-xs text-gray-400 leading-tight",children:m.desc})]}),s.jsx("button",{type:"button",onClick:()=>x(y?null:m.value),className:"text-xs text-brand-lila/70 hover:text-brand-lila font-semibold flex-shrink-0 ml-1",children:y?"Ocultar ▲":"Ver detalle ▼"})]}),s.jsx(he,{children:y&&s.jsx(ee.div,{initial:{opacity:0,height:0}
104,animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{duration:.2},className:"px-4 pb-3 border-t border-gray-100",children:s.jsx("ul",{className:"mt-2 flex flex-col gap-1",children:m.detalle.map((C,N)=>s.jsx("li",{className:"text-xs text-gray-600 leading-snug",children:C},N))})})})]},m.value)})}),i.tipoCobertura&&s.jsx("p",{className:"text-[11px] text-red-500 mt-1 pl-1",children:i.tipoCobertura.message})]}),s.jsxs("div",{children:[s.jsxs("p",{className:"text-[11px] font-bold tracking-widest uppercase text-brand-lila mb-2",children:["Coberturas adicionales ",s.jsx("span",{className:"text-gray-400 normal-case font-normal",children:"(opcionales)"})]}),s.jsxs("div",{className:"flex flex-col gap-2",children:[s.jsxs("label",{className:"flex items-center gap-3 px-4 py-2.5 rounded-xl border border-gray-200 bg-white cursor-pointer hover:border-brand-lila/40 hover:bg-brand-lila/5 transition-all duration-150",children:[s.jsx("input",{type:"checkbox",...r("danosTercerosCargas"),className:"w-4 h-4 accent-brand-lila cursor-pointer flex-shrink-0"}),s.jsxs("span",{className:"text-sm text-gray-700 select-none flex-1",children:["Daños a terceros por ",s.jsx("strong",{children:"la carga"})]}),s.jsx(xs,{texto:"Cubre los daños materiales o corporales que la carga que transporta el vehículo pueda causar a terceros durante el traslado."})]}),s.jsxs("label",{className:"flex items-center gap-3 px-4 py-2.5 rounded-xl border border-gray-200 bg-white cursor-pointer hover:border-brand-lila/40 hover:bg-brand-lila/5 transition-all duration-150",children:[s.jsx("input",{type:"checkbox",...r("danosTercerosConductores"),className:"w-4 h-4 accent-brand-lila cursor-pointer flex-shrink-0"}),s.jsxs("span",{className:"text-sm text-gray-700 select-none flex-1",children:["Daños a terceros por ",s.jsx("strong",{children:"conductores dependientes"})]}),s.jsx(xs,{texto:"Extiende la cobertura de responsabilidad civil a los empleados o trabajadores que conduzcan el vehículo con autorización del asegurado."})]})]})]}),s.jsxs("div",{children:[s.jsxs("p",{className:"text-[11px] font-bold tracking-widest uppercase text-brand-lila mb-2",children:["R.C. Ampliada ",s.jsx("span",{className:"text-gray-400 normal-case font-normal",children:"(opcional — elige una)"})]}),s.jsxs("div",{className:"flex flex-col gap-2",children:[s.jsxs("label",{className:"flex items-center gap-3 px-4 py-2.5 rounded-xl border border-gray-200 bg-white cursor-pointer hover:border-brand-lila/40 hover:bg-brand-lila/5 transition-all duration-150",children:[s.jsx("input",{type:"checkbox",...r("rcExceso1500"),className:"w-4 h-4 accent-brand-lila cursor-pointer flex-shrink-0"}),s.jsxs("span",{className:"text-sm text-gray-700 select-none flex-1",children:["R.C. ",s.jsx("strong",{children:"UF 1.500"})," en exceso de UF 1.000"]}),s.jsx(xs,{texto:"Amplía la cobertura de Responsabilidad Civil hasta UF 1.500, aplicable sobre el monto base de UF 1.000 ya cubierto en la póliza."})]}),s.jsxs("label",{className:"flex items-center gap-3 px-4 py-2.5 rounded-xl border border-gray-200 bg-white cursor-pointer hover:border-brand-lila/40 hover:bg-brand-lila/5 transition-all duration-150",children:[s.jsx("input",{type:"checkbox",...r("rcExceso4000"),className:"w-4 h-4 accent-brand-lila cursor-pointer flex-shrink-0"}),s.jsxs("span",{className:"text-sm text-gray-700 select-none flex-1",children:["R.C. ",s.jsx("strong",{children:"UF 4.000"})," en exceso de UF 1.000"]}),s.jsx(xs,{texto:"Amplía la cobertura de Responsabilidad Civil hasta UF 4.000, ideal para vehículos que operan en zonas de alto tráfico o transportan cargas de alto valor."})]})]})]}),s.jsxs("div",{className:`grid gap-3 ${d?"grid-cols-1":"sm:grid-cols-2"}`,children:[s.jsx(Se,{label:"Forma de Pago",required:!0,error:(b=i.formaPago)==null?void 0:b.message,...r("formaPago"),children:h4.map(m=>s.jsx("option",{value:m.value,children:m.label},m.value))}),s.jsx(he,{children:!d&&s.jsx(ee.div,{initial:{opacity:0,width:0},animate:{opacity:1,width:"auto"},exit:{opacity:0,width:0},transition:{duration:.2},children:s.jsxs(Se,{label:"Número de Cuotas",required:!0,error:(j=i.numeroCuotas)==null?void 0:j.message,...r("numeroCuotas"),children:[s.jsx("option",{value:"3",children:"3 cuotas"}),s.jsx("option",{value:"6",children:"6 cuotas"}),s.jsx("option",{value:"10",children:"10 cuotas"}),s.jsx("option",{value:"11",children:"11 cuotas"}),s.jsx("option",{value:"12",children:"12 cuotas"})]})})})]}),d&&s.jsx("p",{className:"text-xs text-gray-400 -mt-2 pl-1",children:"Pago único al contratar — sin cuotas adicionales."}),s.jsx(fn,{}),s.jsxs("div",{className:"flex justify-between items-center pt-4 border-t border-gray-100 mt-1",children:[s.jsx("button",{type:"button",onClick:n,className:"btn-secondary",children:"← Anterior"}),s.jsx("button",{type:"submit",className:"btn-primary",children:"Siguiente →"})]})]})]})}const g4=4;function um(){Ea({particleCount:45,spread:60,origin:{x:.5,y:.3},colors:["#7B3FE4","#a78bfa","#ffffff","#c4b5fd","#661ecf"],scalar:.85,gravity:1.2,ticks:120,disableForReducedMotion:!0}
104)}function y4({onClose:e}){const[t,n]=R.useState(1),[r,a]=R.useState({}),[i,o]=R.useState(!1),[l,c]=R.useState(!1),[u,d]=R.useState({}),f=R.useRef(null),h=t/g4*100;R.useEffect(()=>{const j=()=>{const p=document.documentElement.scrollHeight;window.parent.postMessage({type:"iframeResize",height:p},"*")},m=new ResizeObserver(j);return m.observe(document.body),j(),()=>m.disconnect()},[]);const g=j=>{const m={...r,...j};a(m),d(p=>({...p,[t]:j})),um(),n(p=>p+1),window.scrollTo({top:0,behavior:"smooth"}),setTimeout(()=>window.parent.postMessage({type:"scrollToTop"},"*"),50)},x=()=>n(j=>j-1),b=async j=>{const m={...r,...j,tipoFormulario:"comercial-liviano"};a(m),o(!0);try{await fetch("/.netlify/functions/send-quote",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(m)})}catch{}finally{o(!1),c(!0),um()}};return s.jsx("div",{className:"w-full",children:s.jsx("div",{className:"w-full",children:s.jsxs("div",{className:"bg-white overflow-hidden",children:[s.jsxs("div",{className:"px-6 pt-6 pb-5 relative",style:{background:"#661ecf"},children:[s.jsxs("div",{className:"flex flex-col items-center gap-1",children:[s.jsx("h1",{className:"text-white font-bold text-base tracking-wide",children:"🚐 Seguro Vehículo Comercial Liviano"}),s.jsx("p",{className:"text-white/60 text-xs",children:"Furgones · Berlingos · Pick-Ups · Camionetas"})]}),!l&&s.jsxs("div",{className:"mt-4",children:[s.jsx(lr,{current:t}),s.jsx("div",{className:"mt-3 h-1.5 bg-white/20 rounded-full overflow-hidden",children:s.jsx("div",{className:"h-full bg-white rounded-full transition-all duration-700 ease-out",style:{width:`${h}%`}})})]}),l&&s.jsx("div",{className:"mt-4",children:s.jsx(lr,{current:5})})]}),s.jsx("div",{ref:f,className:"px-6 py-6",children:s.jsx(he,{mode:"wait",children:l?s.jsx(rf,{formData:r,onClose:e},"success"):t===1?s.jsx(Jd,{defaultValues:u[1],onNext:g},"step1"):t===2?s.jsx(d4,{defaultValues:u[2],onNext:g,onPrev:x},"step2"):t===3?s.jsx(m4,{defaultValues:u[3],onNext:g,onPrev:x},"step3"):t===4?s.jsx(nf,{defaultValues:u[4],onNext:b,onPrev:x,isSubmitting:i},"step4"):null})}),s.jsx("div",{className:"px-6 py-3 border-t border-gray-100 bg-gray-50",children:s.jsx("p",{className:"text-center text-gray-400 text-xs",children:"Tus datos están protegidos y son tratados con confidencialidad."})})]})})})}const Ix=[{value:"acoplado",label:"Acoplado"},{value:"bus",label:"Bus"},{value:"camion",label:"Camión"},{value:"minibus",label:"Minibús"},{value:"rampla",label:"Rampla"},{value:"remolque",label:"Remolque"},{value:"semiremolque",label:"Semiremolque"},{value:"tractocamion",label:"Tractocamión"}],x4=["ABADA","AGRALE","ALLIED","ARTRAK","ASAV","BEIBEN","CAMC","DAF","DAYUN","DONGFENG","FAW","FOTON","FREIGHTLINER","HINO","HYUNDAI","INTERNATIONAL","ISUZU","IVECO","JAC","JMC","KENWORTH","KING LONG","MAN","MARCOPOLO","MERCEDES-BENZ","MITSUBISHI FUSO","NEOBUS","PETERBILT","RANDON","SCANIA","SHACMAN","SINOTRUK / HOWO","UD TRUCKS","VOLVO","YUTONG","ZHONGTONG","OTRO"],dm=[{value:"sin_rubro",label:"Sin Rubro"},{value:"construccion",label:"Construcción"},{value:"agropecuaria",label:"Agropecuaria y pesca"},{value:"comunicaciones",label:"Comunicaciones, tecnología e innovación"},{value:"retail",label:"Retail ó Comercio"},{value:"financiero",label:"Serv. Financieros"},{value:"estatales",label:"Instituciones Estatales"},{value:"salud",label:"Salud"},{value:"industrial",label:"Industrial y manufactura"},{value:"transporte",label:"Transporte y logística"},{value:"otro",label:"Otro"}],fu=[{value:"mineria",label:"Minería"},{value:"forestal",label:"Empresas Forestales"},{value:"taxis_colectivos",label:"Taxis y/o Colectivos"},{value:"rent_a_car",label:"Rent a Car / Arriendo con o sin chofer"},{value:"leasing_operativo",label:"Leasing Operativo"},{value:"transporte_escolar",label:"Transporte Escolar"},{value:"ffaa",label:"FF.AA., Orden y Seguridad"},{value:"escuela_conductores",label:"Escuela de Conductores"},{value:"vehiculos_emergencia",label:"Vehículos de Emergencia (Ambulancias, Carros Bombas)"},{value:"carga_peligrosa_giro",label:"Transporte de Carga Peligrosa / Inflamable"},{value:"transfer",label:"Transfer (Aeropuerto)"},{value:"turismo_empresa",label:"Empresas de Turismo"},{value:"faenas_rajo",label:"Operaciones en Faenas / Recintos a Rajo Abierto o Subterráneos"},{value:"militares",label:"Militares, Policiales o de Vigilancia Municipal"}
104,{value:"transporte_publico",label:"Transporte Público Urbano o Interurbano"},{value:"transporte_pasajeros",label:"Transporte de Pasajeros"},{value:"recolectores",label:"Recolectores de Basuras"}],v4=new Set(fu.map(e=>e.value)),b4=[{value:"tolva",label:"Tolva"},{value:"cisterna",label:"Cisterna"},{value:"aspirador",label:"Aspirador Industrial"},{value:"limpiador_fosas",label:"Limpiador de Fosas"},{value:"compactador",label:"Compactador de Basura"},{value:"grua_sobre_1000",label:"Grúa sobre UF 1.000"},{value:"grua_bajo_1000",label:"Grúa bajo UF 1.000"},{value:"cama_baja",label:"Cama Baja"},{value:"rampla",label:"Rampla"},{value:"batea",label:"Batea"},{value:"carros_arrastre",label:"Carros de Arrastre"},{value:"brazo_hidraulico",label:"Brazo Hidráulico"},{value:"montacarga",label:"Montacarga"},{value:"betonera",label:"Betonera"},{value:"contenedor_peces",label:"Contenedor de Peces"},{value:"carroceria",label:"Carrocería"},{value:"carroceria_refrig",label:"Carrocería Refrigerada"},{value:"sist_refrigeracion",label:"Sist. de Refrigeración"},{value:"otro",label:"Otro"}],C4=[{value:"carga_general",label:"Carga general"},{value:"refrigerada",label:"Carga refrigerada / frigorífica"},{value:"maquinaria",label:"Maquinaria y equipos"},{value:"construccion",label:"Materiales de construcción"},{value:"agricola",label:"Productos agrícolas"},{value:"forestal",label:"Productos forestales / madera"},{value:"mineria",label:"Productos mineros"},{value:"residuos",label:"Residuos industriales"},{value:"pasajeros",label:"Pasajeros (bus / minibús)"},{value:"otra",label:"Otra carga"}],pu=[{key:"matInflamablesLiq",label:"Mercancías inflamables líquidas"}
104,{key:"matInflamablesSol",label:"Mercancías inflamables sólidas"},{key:"matInflamablesGas",label:"Mercancías inflamables gaseosas"},{key:"matExplosivos",label:"Explosivos y/o similares"},{key:"matAnimalesVivos",label:"Animales vivos"},{key:"matTroncos",label:"Troncos / Madera en bruto"},{key:"matPortaVehiculos",label:"Camión porta-vehículos"},{key:"matHormigon",label:"Hormigón fresco (betoneros)"}],j4={ABADA:["Otro"],AGRALE:["MA 8.5 TCA","MA 9.2 TCA","MX 10","MT 12","Otro"],ALLIED:["Otro"],ARTRAK:["Otro"],ASAV:["Otro"],BEIBEN:["2638","2646","V3 2645","Otro"],CAMC:["HN 4250","HN 3258","HN 3240","Otro"],DAF:["XF 480","XF 530","CF 450","CF 480","LF 290","XG 480","XG+ 530","Otro"],DAYUN:["N9H 380","N9H 430","Otro"],DONGFENG:["Kinland DFL 4251","Liege DFL 3251","DFL 4181","Otro"],FAW:["J6 480","J7 550","Tiger V 430","CA 4258","CA 4318","Otro"],FOTON:["Aumark S","Aumark X Pro","Auman EST-A 420","Auman GTL 460","Otro"],FREIGHTLINER:["Cascadia 126","Cascadia 116","Columbia","Coronado","M2 106","M2 112","114SD","Otro"],HINO:["700 FS","700 FY","500 FG","500 GH","500 FC","300 WU","300 XZU","Otro"],HYUNDAI:["Xcient 6x4","HD270","HD320","Universe Luxury","Universe Express","Otro"],INTERNATIONAL:["LT 625","LT 680","HX 520","HX 620","HV 507","MV 607","LoneStar","Otro"],ISUZU:["NMR 85L","NPR 75L","NPR 85L","NQR 90L","NPS 75L","FVR 34L","FVZ 34L","GVR 34L","Otro"],IVECO:["S-Way AS440","Stralis XP 480","Stralis XP 570","Trakker 420","Eurocargo ML 150","Daily 35S","Otro"],JAC:["N75","N80","N90","K3","K5","K7","Otro"],JMC:["Vigus Pro","Conquer","Otro"],KENWORTH:["T680","T880","W900","T270","T370","T660","T800","Otro"],"KING LONG":["XMQ6127","XMQ6113","XMQ6107","XMQ6900","XMQ6890","Otro"],MAN:["TGX 28.500","TGX 26.500","TGS 26.440","TGS 18.440","TGM 18.290","TGL 12.250","TGE 3.180","Otro"],MARCOPOLO:["Paradiso 1200 G7","Paradiso 1800 G7","Viaggio 1000 G7","Senior GV","Torino GV","Otro"],"MERCEDES-BENZ":["Actros 2646","Actros 2651","Actros 3346","Arocs 3345","Axor 2544","Axor 2040","Atego 1725","Atego 1418","Sprinter Cargo","Otro"],"MITSUBISHI FUSO":["Super Great V","Fighter FN","Canter FE","Canter FG","Otro"],NEOBUS:["New Road","Mega BRT","Spectrum U","Outro"],PETERBILT:["579","567","389","388","348","337","220","Otro"],RANDON:["SR 622","SR 480","SR B-Train","Otro"],SCANIA:["R 360","R 410","R 450","R 500","R 560","S 500","S 560","S 650","P 360","P 410","G 410","L 360","Otro"],SHACMAN:["X3000 6x4","H3000 6x4","F3000 4x2","M3000 8x4","Otro"],"SINOTRUK / HOWO":["A7 400","A7 420","T7H 400","T7H 440","HOWO 371","HOWO 420","HOWO 6x4","Otro"],"UD TRUCKS":["Quon GW 26.420","Quon GK 25.420","Condor PK 280","Croner PKE 280","Otro"],VOLVO:["FH 460","FH 500","FH 540","FM 460","FM 500","FMX 460","FMX 500","FL 250","FE 280","VM 330","Otro"],YUTONG:["ZK6129H","ZK6117H","ZK6107H","ZK6852HG","T13","E12","Otro"],ZHONGTONG:["LCK6128H","LCK6118H","LCK6900EV","Otro"],OTRO:["Otro"]},w4="56323140979",S4=Qt({giro:K().min(1,"Selecciona el giro o actividad"),giroOtro:K().optional(),provincia:K().min(1,"Selecciona la provincia"),provinciaOtra:K().optional(),comuna:K().min(1,"Selecciona la comuna"),comunaOtra:K().optional()}).superRefine((e,t)=>{var n,r,a;e.giro==="otro"&&!((n=e.giroOtro)!=null&&n.trim())&&t.addIssue({code:L.custom,message:"Describe tu giro o actividad",path:["giroOtro"]}),e.provincia==="_otra"&&!((r=e.provinciaOtra)!=null&&r.trim())&&t.addIssue({code:L.custom,message:"Escribe el nombre de tu provincia",path:["provinciaOtra"]}),e.comuna==="_otra"&&!((a=e.comunaOtra)!=null&&a.trim())&&t.addIssue({code:L.custom,message:"Escribe el nombre de tu comuna",path:["comunaOtra"]})}),fm={tipoVehiculo:"",marca:"",modeloSelect:"",modeloOtro:"",submodelo:"",anio:"",esCeroKm:!1,patente:"",esElectrico:!1,tieneFranquicia:!1,tieneAdosado:!1,tipoAdosado:"",capitalAsegurar:"",capitalAdosado:"",montoRC:"1000",viajeExtranjero:!1,esHechizo:!1,esPrototipo:!1,esUnicoChile:!1},N4=[{key:"esHechizo",label:'Vehículo "Hechizo"',desc:"Fabricado o ensamblado fuera de fábrica, con partes de distintos vehículos o modificaciones estructurales no originales."},{key:"esPrototipo",label:"Vehículo Prototipo",desc:"Vehículo experimental, de fabricación especial o que no cuenta con homologación comercial en Chile."},{key:"esUnicoChile",label:"Vehículo único en Chile",desc:"Ejemplar exclusivo o de colección del que existe un solo ejemplar en el país."}];function P4(e){const t={};e.tipoVehiculo||(t.tipoVehiculo="Selecciona el tipo"),e.marca||(t.marca="Selecciona la marca");const n=e.modeloSelect==="Otro"?e.modeloOtro:e.modeloSelect;return n!=null&&n.trim()||(t.modelo=e.modeloSelect==="Otro"?"Describe el modelo":"Selecciona el modelo"),e.anio||(t.anio="Selecciona el año"),!e.esCeroKm&&(!e.patente||e.patente.trim().length<5)&&(t.patente="Ingresa la patente (ej: ABCD12)"),(!e.capitalAsegurar||Number(e.capitalAsegurar)<=0)&&(t.capitalAsegurar="Ingresa el monto en UF"),e.tieneAdosado&&(e.tipoAdosado||(t.tipoAdosado="Selecciona el tipo de adosado"),!e.capitalAdosado||Number(e.capitalAdosado)<=0?t.capitalAdosado="Ingresa el monto en UF":Number(e.capitalAdosado)>Number(e.capitalAsegurar)*.5&&(t.capitalAdosado="No puede superar el 50 % del capital principal")),t}const k4=Object.fromEntries(Ix.map(e=>[e.value,e.label]));function A4({defaultValues:e,onNext:t,onPrev:n}){var Y,D,te;const{register:r,handleSubmit:a,formState:{errors:i},watch:o,setValue:l}=un({resolver:dn(S4),defaultValues:{giro:"",giroOtro:"",provincia:"",provinciaOtra:"",comuna:"",comunaOtra:"",...e}}),c=o("giro"),u=o("provincia"),d=o("comuna"),f=v4.has(c),[h,g]=R.useState(e!=null&&e.provincia?Fr[e.provincia]||[]:[]);R.useEffect(()=>{u&&(u==="_otra"?(g([]),l("comuna","_otra")):(g(Fr[u]||[]),l("comuna","")))},[u]);const[x,b]=R.useState((e==null?void 0:e.vehicles)||[]),[j,m]=R.useState(""),[p,y]=R.use
104State(fm),[C,N]=R.useState({}),P=(k,F)=>y(oe=>({...oe,[k]:F})),O=()=>{const k=P4(p);if(Object.keys(k).length>0){N(k);return}const F=p.modeloSelect==="Otro"?p.modeloOtro:p.modeloSelect;b(oe=>[...oe,{...p,modelo:F}]),y(fm),N({}),m("")},V=k=>b(F=>F.filter((oe,E)=>E!==k)),B=k=>{if(x.length===0){m("Agrega al menos un vehículo para continuar.");return}const F=k.giro==="otro"?k.giroOtro||"Otro":k.giro,oe=k.provincia==="_otra"?k.provinciaOtra||"Otra":k.provincia,E=k.comuna==="_otra"?k.comunaOtra||"Otra":k.comuna;t({...k,giro:F,provincia:oe,comuna:E,vehicles:x})},M=((Y=[...dm,...fu].find(k=>k.value===c))==null?void 0:Y.label)||c,_=`https://wa.me/${w4}?text=${encodeURIComponent(`Hola, me gustaría cotizar un seguro de vehículo pesado. Mi giro/actividad es: ${M}. ¿Me pueden ayudar?`)}`;return s.jsxs(ee.div,{initial:{opacity:0,x:40},animate:{opacity:1,x:0},exit:{opacity:0,x:-40},transition:{duration:.3},children:[s.jsxs("div",{className:"mb-5",children:[s.jsx("h2",{className:"text-xl font-bold text-gray-800",children:"🚛 Datos del Vehículo"}),s.jsx("p",{className:"text-sm text-gray-400 mt-0.5",children:"Agrega los vehículos que deseas asegurar."})]}),s.jsxs("form",{onSubmit:a(B),noValidate:!0,className:"flex flex-col gap-5",children:[s.jsxs("div",{children:[s.jsxs("p",{className:"text-[11px] font-bold tracking-widest uppercase text-brand-lila mb-2",children:["Giro / Actividad ",s.jsx("span",{className:"text-red-400",children:"*"})]}),s.jsxs("select",{...r("giro"),className:"input-field w-full",children:[s.jsx("option",{value:"",children:"Seleccione..."}),s.jsx("optgroup",{label:"— Sectores generales —",children:dm.map(k=>s.jsx("option",{value:k.value,children:k.label},k.value))}),s.jsx("optgroup",{label:"— Actividades con evaluación especial —",children:fu.map(k=>s.jsx("option",{value:k.value,children:k.label},k.value))})]}),i.giro&&s.jsx("p",{className:"text-[11px] text-red-500 mt-1 pl-1",children:i.giro.message}),s.jsx(he,{children:c==="otro"&&s.jsxs(ee.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{duration:.2},className:"mt-2",children:[s.jsx("input",{...r("giroOtro"),placeholder:"Describe tu giro o actividad",className:"input-field w-full"}),i.giroOtro&&s.jsx("p",{className:"text-[11px] text-red-500 mt-1 pl-1",children:i.giroOtro.message})]})})]}),s.jsx(he,{children:f&&s.jsxs(ee.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{duration:.25},className:"bg-amber-50 border border-amber-200 rounded-xl px-4 py-4 flex flex-col gap-3",children:[s.jsxs("div",{className:"flex items-start gap-3",children:[s.jsx("span",{className:"text-xl flex-shrink-0",children:"⚠️"}),s.jsxs("div",{children:[s.jsx("p",{className:"text-sm font-bold text-amber-700",children:"Esta actividad requiere evaluación especial"}),s.jsxs("p",{className:"text-xs text-amber-600 mt-1 leading-relaxed",children:["El giro ",s.jsx("strong",{children:M})," requiere revisión por un ejecutivo antes de poder cotizar. Contáctanos directamente y te atendemos a la brevedad."]})]})]}),s.jsxs("a",{href:_,target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-center gap-2 bg-[#25D366] hover:bg-[#1db954] text-white text-sm font-bold px-5 py-3 rounded-xl transition-colors duration-150 shadow-sm",children:[s.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor",children:s.jsx("path",{d:"M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z"})}),"Contactar por WhatsApp"]})]})}),s.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:[s.jsxs("div",{children:[s.jsxs(Se,{label:"Provincia",required:!0,error:(D=i.provincia)==null?void 0:D.message,...r("provincia"),children:[s.jsx("option",{value:"",children:"Seleccione..."}),tf.map(k=>s.jsx("option",{value:k,children:k},k)),s.jsx("option",{value:"_otra",children:"Otra / No encuentro la mía"})]}),s.jsx(he,{children:u==="_otra"&&s.jsxs(ee.div,{initial:{opacity:0,height:0}
104,animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{duration:.2},className:"mt-2",children:[s.jsx("input",{...r("provinciaOtra"),placeholder:"Nombre de tu provincia",className:"input-field w-full"}),i.provinciaOtra&&s.jsx("p",{className:"text-[11px] text-red-500 mt-1 pl-1",children:i.provinciaOtra.message})]})})]}),s.jsxs("div",{children:[s.jsxs(Se,{label:"Comuna",required:!0,error:(te=i.comuna)==null?void 0:te.message,...r("comuna"),disabled:!u||u==="_otra",children:[s.jsx("option",{value:"",children:"Seleccione..."}),h.map(k=>s.jsx("option",{value:k,children:k},k)),u&&u!=="_otra"&&s.jsx("option",{value:"_otra",children:"Otra / No encuentro la mía"})]}),s.jsx(he,{children:(d==="_otra"||u==="_otra")&&s.jsxs(ee.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{duration:.2},className:"mt-2",children:[s.jsx("input",{...r("comunaOtra"),placeholder:"Nombre de tu comuna / ciudad",className:"input-field w-full"}),i.comunaOtra&&s.jsx("p",{className:"text-[11px] text-red-500 mt-1 pl-1",children:i.comunaOtra.message})]})})]})]}),s.jsxs("div",{children:[s.jsxs("p",{className:"text-[11px] font-bold tracking-widest uppercase text-brand-lila mb-2",children:["Vehículos a asegurar ",s.jsx("span",{className:"text-red-400",children:"*"})]}),s.jsx(he,{children:x.length>0&&s.jsx(ee.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},className:"mb-3 flex flex-col gap-2",children:x.map((k,F)=>s.jsxs(ee.div,{initial:{opacity:0,x:-10},animate:{opacity:1,x:0},exit:{opacity:0,x:10},className:"flex items-center justify-between gap-2 px-4 py-3 bg-brand-lila/5 border border-brand-lila/20 rounded-xl",children:[s.jsxs("div",{className:"min-w-0 flex-1",children:[s.jsxs("p",{className:"text-sm font-bold text-gray-800",children:[k4[k.tipoVehiculo]||k.tipoVehiculo," · ",k.marca," ",k.modelo,k.submodelo?` ${k.submodelo}`:""," ",k.anio]}),s.jsxs("p",{className:"text-xs text-gray-500 mt-0.5",children:["UF ",k.capitalAsegurar," · RC UF ",k.montoRC,k.tieneAdosado&&` · Adosado UF ${k.capitalAdosado}`,k.viajeExtranjero&&" · 🌎 Extranjero",k.patente&&` · ${k.patente}`]})]}),s.jsx("button",{type:"button",onClick:()=>V(F),className:"flex-shrink-0 w-8 h-8 flex items-center justify-center rounded-lg bg-red-50 hover:bg-red-100 text-red-400 hover:text-red-600 transition-colors",children:s.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("polyline",{points:"3 6 5 6 21 6"}),s.jsx("path",{d:"M19 6l-1 14H6L5 6"}),s.jsx("path",{d:"M10 11v6"}),s.jsx("path",{d:"M14 11v6"}),s.jsx("path",{d:"M9 6V4h6v2"})]})})]},F))})}),j&&s.jsx("p",{className:"text-[11px] text-red-500 mb-2 pl-1",children:j}),s.jsxs("div",{className:"border border-gray-200 rounded-xl bg-gray-50/60 p-4 flex flex-col gap-3",children:[s.jsx("p",{className:"text-xs font-semibold text-gray-500",children:x.length===0?"Configura el primer vehículo":"Agregar otro vehículo"}),s.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:[s.jsxs("div",{children:[s.jsxs("label",{className:"text-xs font-semibold text-gray-600 mb-1 block",children:["Tipo ",s.jsx("span",{className:"text-red-400",children:"*"})]}),s.jsxs("select",{value:p.tipoVehiculo,onChange:k=>P("tipoVehiculo",k.target.value),className:"input-field w-full",children:[s.jsx("option",{value:"",children:"Seleccione..."}),Ix.map(k=>s.jsx("option",{value:k.value,children:k.label},k.value))]}),C.tipoVehiculo&&s.jsx("p",{className:"text-[11px] text-red-500 mt-0.5",children:C.tipoVehiculo})]}),s.jsxs("div",{children:[s.jsxs("label",{className:"text-xs font-semibold text-gray-600 mb-1 block",children:["Marca ",s.jsx("span",{className:"text-red-400",children:"*"})]}),s.jsxs("select",{value:p.marca,onChange:k=>{P("marca",k.target.value),P("modeloSelect",""),P("modeloOtro","")},className:"input-field w-full",children:[s.jsx("option",{value:"",children:"Seleccione..."}),x4.map(k=>s.jsx("option",{value:k,children:k},k))]}),C.marca&&s.jsx("p",{className:"text-[11px] text-red-500 mt-0.5",children:C.marca})]})]}),s.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:[s.jsxs("div",{children:[s.jsxs("label",{className:"text-xs font-semibold text-gray-600 mb-1 block",children:["Modelo ",s.jsx("span",{className:"text-red-400",children:"*"})]}),s.jsxs("select",{value:p.modeloSelect,onChange:k=>{P("modeloSelect",k.target.value),P("modeloOtro","")},className:"input-field w-full",disabled:!p.marca,children:[s.jsx("option",{value:"",children:p.marca?"Seleccione...":"Primero elige la marca"}),(j4[p.marca]||[]).map(k=>s.jsx("option",{value:k,children:k},k))]}),C.modelo&&s.jsx("p",{className:"text-[11px] text-red-500 mt-0.5",children:C.modelo}),s.jsx(he,{children:p.modeloSelect==="Otro"&&s.jsx(ee.div,{initial:{opacity:0,height:0}
104,animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{duration:.2},className:"mt-2",children:s.jsx("input",{value:p.modeloOtro,onChange:k=>P("modeloOtro",k.target.value),placeholder:"Describe el modelo",className:"input-field w-full"})})})]}),s.jsxs("div",{children:[s.jsxs("label",{className:"text-xs font-semibold text-gray-600 mb-1 block",children:["Año ",s.jsx("span",{className:"text-red-400",children:"*"})]}),s.jsxs("select",{value:p.anio,onChange:k=>P("anio",k.target.value),className:"input-field w-full",children:[s.jsx("option",{value:"",children:"Seleccione..."}),ef.map(k=>s.jsx("option",{value:k,children:k},k))]}),C.anio&&s.jsx("p",{className:"text-[11px] text-red-500 mt-0.5",children:C.anio})]})]}),s.jsxs("div",{children:[s.jsxs("label",{className:"text-xs font-semibold text-gray-600 mb-1 block",children:["Submodelo / Versión",s.jsx("span",{className:"font-normal text-gray-400 ml-1",children:"(opcional — ej: 11 TON, 6×4, GNC)"})]}),s.jsx("input",{value:p.submodelo,onChange:k=>P("submodelo",k.target.value),placeholder:"Ej: 11 TON, 6×4, Euro VI...",className:"input-field w-full"})]}),s.jsxs("div",{className:"flex flex-wrap gap-2",children:[s.jsxs("label",{className:"flex items-center gap-2 px-3 py-2 rounded-lg border border-gray-200 bg-white cursor-pointer hover:border-brand-lila/40 transition-all text-sm text-gray-700 select-none",children:[s.jsx("input",{type:"checkbox",checked:p.esCeroKm,onChange:k=>P("esCeroKm",k.target.checked),className:"w-4 h-4 accent-brand-lila"}),s.jsx("strong",{children:"0 km"})]}),s.jsxs("label",{className:"flex items-center gap-2 px-3 py-2 rounded-lg border border-gray-200 bg-white cursor-pointer hover:border-green-400/50 transition-all text-sm text-gray-700 select-none",children:[s.jsx("input",{type:"checkbox",checked:p.esElectrico,onChange:k=>P("esElectrico",k.target.checked),className:"w-4 h-4 accent-green-500"}),s.jsx("strong",{children:"Eléctrico / Híbrido"})," ⚡"]}),s.jsxs("label",{className:"flex items-center gap-2 px-3 py-2 rounded-lg border border-amber-200 bg-amber-50/50 cursor-pointer hover:border-amber-400/60 hover:bg-amber-50 transition-all text-sm text-gray-700 select-none",children:[s.jsx("input",{type:"checkbox",checked:p.tieneFranquicia,onChange:k=>P("tieneFranquicia",k.target.checked),className:"w-4 h-4 accent-amber-500"}),s.jsx("span",{children:s.jsx("strong",{children:"Franquicia aduanera"})})]})]}),s.jsx(he,{children:p.tieneFranquicia&&s.jsxs(ee.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{duration:.2},className:"bg-amber-50 border border-amber-200 rounded-xl px-3 py-2.5 text-xs text-amber-700 leading-relaxed",children:["⚠️ Requiere ",s.jsx("strong",{children:"tasación especial"}),". Un ejecutivo confirmará el valor asegurable."]})}),s.jsx(he,{children:!p.esCeroKm&&s.jsxs(ee.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{duration:.2},children:[s.jsxs("label",{className:"text-xs font-semibold text-gray-600 mb-1 block",children:["Patente ",s.jsx("span",{className:"text-red-400",children:"*"})]}),s.jsx("input",{value:p.patente,onChange:k=>P("patente",k.target.value.toUpperCase().replace(/\s/g,"")),placeholder:"ABCD12",maxLength:7,className:"input-field w-full"}),C.patente&&s.jsx("p",{className:"text-[11px] text-red-500 mt-0.5",children:C.patente})]})}),s.jsxs("div",{children:[s.jsxs("label",{className:"text-xs font-semibold text-gray-600 mb-1 block",children:["Capital a Asegurar ",s.jsx("span",{className:"text-red-400",children:"*"}),s.jsx("span",{className:"font-normal text-gray-400 ml-1",children:"(valor del vehículo en UF)"})]}),s.jsxs("div",{className:"relative",children:[s.jsx("span",{className:"absolute left-3 top-1/2 -translate-y-1/2 text-xs text-gray-400 font-semibold",children:"UF"}),s.jsx("input",{type:"number",min:"1",placeholder:"Ej: 3500",value:p.capitalAsegurar,onChange:k=>P("capitalAsegurar",k.target.value),className:"input-field pl-10 w-full"})]}),C.capitalAsegurar&&s.jsx("p",{className:"text-[11px] text-red-500 mt-0.5",children:C.capitalAsegurar})]}),s.jsxs("label",{className:"flex items-center gap-3 px-3 py-2.5 rounded-xl border border-gray-200 bg-white cursor-pointer hover:border-brand-lila/40 hover:bg-brand-lila/5 transition-all",children:[s.jsx("input",{type:"checkbox",checked:p.tieneAdosado,onChange:k=>P("tieneAdosado",k.target.checked),className:"w-4 h-4 accent-brand-lila flex-shrink-0"}),s.jsxs("span",{className:"text-sm text-gray-700 select-none",children:["¿Tiene ",s.jsx("strong",{children:"carrocería o equipo adosado"}),"? (tolva, cisterna, grúa…)"]})]}),s.jsx(he,{children:p.tieneAdosado&&s.jsxs(ee.div,{initial:{opacity:0,height:0}
104,animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{duration:.2},className:"flex flex-col gap-3 pl-2 border-l-2 border-brand-lila/30",children:[s.jsxs("div",{children:[s.jsxs("label",{className:"text-xs font-semibold text-gray-600 mb-1 block",children:["Tipo de Adosado ",s.jsx("span",{className:"text-red-400",children:"*"})]}),s.jsxs("select",{value:p.tipoAdosado,onChange:k=>P("tipoAdosado",k.target.value),className:"input-field w-full",children:[s.jsx("option",{value:"",children:"Seleccione..."}),b4.map(k=>s.jsx("option",{value:k.value,children:k.label},k.value))]}),C.tipoAdosado&&s.jsx("p",{className:"text-[11px] text-red-500 mt-0.5",children:C.tipoAdosado})]}),s.jsxs("div",{children:[s.jsxs("label",{className:"text-xs font-semibold text-gray-600 mb-1 block",children:["Capital Adosado ",s.jsx("span",{className:"text-red-400",children:"*"}),s.jsx("span",{className:"font-normal text-gray-400 ml-1",children:"(máx. 50 % del capital principal)"})]}),s.jsxs("div",{className:"relative",children:[s.jsx("span",{className:"absolute left-3 top-1/2 -translate-y-1/2 text-xs text-gray-400 font-semibold",children:"UF"}),s.jsx("input",{type:"number",min:"1",placeholder:p.capitalAsegurar?`Máx. UF ${Math.floor(Number(p.capitalAsegurar)*.5)}`:"Ej: 800",value:p.capitalAdosado,onChange:k=>P("capitalAdosado",k.target.value),className:"input-field pl-10 w-full"})]}),C.capitalAdosado&&s.jsx("p",{className:"text-[11px] text-red-500 mt-0.5",children:C.capitalAdosado}),p.capitalAsegurar&&!C.capitalAdosado&&s.jsxs("p",{className:"text-[11px] text-gray-400 mt-0.5 pl-1",children:["Máximo permitido: UF ",Math.floor(Number(p.capitalAsegurar)*.5).toLocaleString("es-CL")]})]})]})}),s.jsxs("div",{children:[s.jsxs("label",{className:"text-xs font-semibold text-gray-600 mb-2 block",children:["Monto Responsabilidad Civil ",s.jsx("span",{className:"text-red-400",children:"*"})]}),s.jsx("div",{className:"grid grid-cols-3 gap-2",children:[{value:"500",label:"UF 500"},{value:"800",label:"UF 800"},{value:"1000",label:"UF 1.000"}].map(k=>s.jsxs("label",{className:["flex items-center justify-center px-3 py-2.5 rounded-xl border cursor-pointer transition-all text-center",p.montoRC===k.value?"border-brand-lila/50 bg-brand-lila/5 text-brand-lila font-bold":"border-gray-200 bg-white text-gray-700 hover:border-brand-lila/30"].join(" "),children:[s.jsx("input",{type:"radio",value:k.value,checked:p.montoRC===k.value,onChange:()=>P("montoRC",k.value),className:"sr-only"}),s.jsx("span",{className:"text-sm font-semibold",children:k.label})]},k.value))})]}),s.jsxs("label",{className:"flex items-center gap-3 px-3 py-2.5 rounded-xl border border-gray-200 bg-white cursor-pointer hover:border-brand-lila/40 hover:bg-brand-lila/5 transition-all",children:[s.jsx("input",{type:"checkbox",checked:p.viajeExtranjero,onChange:k=>P("viajeExtranjero",k.target.checked),className:"w-4 h-4 accent-brand-lila flex-shrink-0"}),s.jsxs("span",{className:"text-sm text-gray-700 select-none",children:["🌎 Incluir ",s.jsx("strong",{children:"daños por viaje al extranjero"})]})]}),s.jsxs("div",{children:[s.jsxs("p",{className:"text-xs font-semibold text-gray-500 mb-2",children:["¿El vehículo tiene alguna de estas características?",s.jsx("span",{className:"font-normal text-gray-400 ml-1",children:"(marca si aplica)"})]}),s.jsx("div",{className:"flex flex-col gap-2",children:N4.map(k=>s.jsxs("label",{className:"flex items-start gap-3 px-3 py-2.5 rounded-xl border border-gray-200 bg-white cursor-pointer hover:border-red-300/50 hover:bg-red-50/30 transition-all",children:[s.jsx("input",{type:"checkbox",checked:p[k.key],onChange:F=>P(k.key,F.target.checked),className:"w-4 h-4 accent-red-500 flex-shrink-0 mt-0.5"}),s.jsxs("div",{children:[s.jsx("p",{className:"text-sm text-gray-700 select-none font-semibold",children:k.label}),s.jsx("p",{className:"text-xs text-gray-400 leading-snug mt-0.5",children:k.desc})]})]},k.key))}),s.jsx(he,{children:(p.esHechizo||p.esPrototipo||p.esUnicoChile)&&s.jsxs(ee.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{duration:.2},className:"mt-2 bg-red-50 border border-red-200 rounded-xl px-4 py-3 flex items-start gap-3",children:[s.jsx("span",{className:"text-lg flex-shrink-0",children:"🚫"}),s.jsxs("div",{children:[s.jsx("p",{className:"text-sm font-bold text-red-700",children:"Este vehículo no tiene cobertura disponible"}),s.jsx("p",{className:"text-xs text-red-600 mt-1 leading-relaxed",children:"Los vehículos con estas características no son asegurables bajo una póliza estándar. Desactiva la opción si fue un error, o contáctanos para evaluar alternativas."})]})]})})]}),s.jsxs("button",{type:"button",onClick:O,disabled:p.esHechizo||p.esPrototipo||p.esUnicoChile,className:"w-full flex items-center justify-center gap-2 bg-brand-lila hover:bg-brand-lila-dark disabled:opacity-40 disabled:cursor-not-allowed text-white font-bold text-sm py-3 rounded-xl transition-colors duration-150 shadow-sm mt-1",children:[s.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),s.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]}),x.length===0?"Agregar Vehículo":"Agregar otro vehículo"]}),x.length>0&&s.jsxs("p",{className:"text-[11px] text-center text-gray-400 -mt-1",children:[x.length," vehículo",x.length>
1041?"s":""," en la lista · máx. 10"]})]})]}),x.some(k=>["acoplado","semiremolque","remolque"].includes(k.tipoVehiculo))&&s.jsxs("p",{className:"text-xs text-amber-600 bg-amber-50 border border-amber-200 rounded-xl px-3 py-2 leading-relaxed",children:["⚠️ Algunos aseguradores requieren que el ",s.jsx("strong",{children:"acoplado o remolque"})," esté en la misma póliza que el vehículo tractor."]}),s.jsx(fn,{}),s.jsxs("div",{className:"flex justify-between items-center pt-4 border-t border-gray-100",children:[s.jsx("button",{type:"button",onClick:n,className:"btn-secondary",children:"← Anterior"}),!f&&s.jsx("button",{type:"submit",className:"btn-primary",children:"Siguiente →"})]})]})]})}const T4="56323140979",_4=[{value:"total",label:"Cobertura Total",icon:"🛡️",desc:"Protección completa para tu vehículo y terceros",detalle:["✅ Robo total y parcial del vehículo","✅ Daños por choque, volcamiento y colisión","✅ Daños propios por accidente","✅ Responsabilidad civil ante terceros","✅ Asistencia en ruta 24/7","✅ Vehículo de reemplazo"]},{value:"perdida_total",label:"Pérdida Total + RC",icon:"🔒",desc:"Cobertura ante robo total y daños a terceros",detalle:["✅ Robo total del vehículo","✅ Pérdida total por accidente","✅ Responsabilidad civil ante terceros","✅ Asistencia básica en ruta","❌ No incluye daños propios parciales","❌ No incluye vehículo de reemplazo"]},{value:"rc",label:"RC — Solo Responsabilidad Civil",icon:"📋",desc:"Cubre únicamente daños causados a terceros",detalle:["✅ Daños materiales a terceros","✅ Daños corporales a terceros","✅ Daños a vehículos de terceros","❌ No incluye daños propios","❌ No incluye robo","❌ No incluye asistencia en ruta"]}],E4=[{value:"contado",label:"Contado"},{value:"pat",label:"PAT — Pago Automático con Tarjeta"},{value:"pac",label:"PAC — Pago Automático con Cuenta"},{value:"online_cuotas",label:"Pago directo online en cuotas"}],hu=pu.map(e=>e.key),R4=Object.fromEntries(hu.map(e=>[e,Ht().default(!1)])),M4=Qt({tipoCarga:K().min(1,"Selecciona el tipo de carga"),tipoCargaOtro:K().optional(),...R4,tipoCobertura:Qd(["total","perdida_total","rc"],{errorMap:()=>({message:"Selecciona un tipo de cobertura"})}),formaPago:K().min(1,"Selecciona la forma de pago"),numeroCuotas:K().min(1)}).superRefine((e,t)=>{var n;e.tipoCarga==="otra"&&!((n=e.tipoCargaOtro)!=null&&n.trim())&&t.addIssue({code:L.custom,message:"Describe el tipo de carga",path:["tipoCargaOtro"]})});function O4({defaultValues:e,onNext:t,onPrev:n}){var y,C,N;const{register:r,handleSubmit:a,formState:{errors:i},watch:o,setValue:l}=un({resolver:dn(M4),defaultValues:{tipoCarga:"",tipoCargaOtro:"",...Object.fromEntries(hu.map(P=>[P,!1])),tipoCobertura:"total",formaPago:"contado",numeroCuotas:"1",...e}}),c=o("tipoCobertura"),u=o("formaPago"),d=o("tipoCarga"),f=u==="contado",[h,g]=R.useState("total"),x=P=>{var V;const O=P.tipoCarga==="otra"?((V=P.tipoCargaOtro)==null?void 0:V.trim())||"Otra carga":P.tipoCarga;t({...P,tipoCarga:O})},j=hu.map(P=>o(P)).some(Boolean),m=pu.filter(P=>o(P.key)).map(P=>P.label);R.useEffect(()=>{f&&l("numeroCuotas","1")},[f,l]),R.useEffect(()=>{g(c)},[c]);const p=()=>{const P=`Hola, necesito cotizar un seguro para vehículo pesado que transporta carga especial: ${m.join(", ")}. ¿Me pueden ayudar con una cotización a medida?`;return`https://wa.me/${T4}?text=${encodeURIComponent(P)}`};return s.jsxs(ee.div,{initial:{opacity:0,x:40},animate:{opacity:1,x:0},exit:{opacity:0,x:-40},transition:{duration:.3},children:[s.jsxs("div",{className:"mb-5",children:[s.jsxs("h2",{className:"text-xl font-bold text-gray-800 flex items-center gap-2",children:[s.jsx("span",{children:"📦"})," Carga y Cobertura"]}),s.jsx("p",{className:"text-sm text-gray-400 mt-0.5",children:"Indica el tipo de carga y la cobertura que necesitas para toda la flota."})]}),s.jsxs("form",{onSubmit:a(x),noValidate:!0,className:"flex flex-col gap-5",children:[s.jsxs("div",{children:[s.jsxs("p",{className:"text-[11px] font-bold tracking-widest uppercase text-brand-lila mb-2",children:["Tipo de carga transportada ",s.jsx("span",{className:"text-red-400",children:"*"})]}),s.jsxs(Se,{label:"",required:!1,error:(y=i.tipoCarga)==null?void 0:y.message,...r("tipoCarga"),children:[s.jsx("option",{value:"",children:"Seleccione..."}),C4.map(P=>s.jsx("option",{value:P.value,children:P.label},P.value))]}),s.jsx(he,{children:d==="otra"&&s.jsxs(ee.div,{initial:{opacity:0,height:0}
104,animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{duration:.2},className:"mt-2",children:[s.jsx("input",{...r("tipoCargaOtro"),placeholder:"Describe el tipo de carga",className:"input-field w-full"}),i.tipoCargaOtro&&s.jsx("p",{className:"text-[11px] text-red-500 mt-1 pl-1",children:i.tipoCargaOtro.message})]})})]}),s.jsxs("div",{children:[s.jsxs("p",{className:"text-[11px] font-bold tracking-widest uppercase text-brand-lila mb-1",children:["Materia transportada",s.jsx("span",{className:"text-gray-400 normal-case font-normal ml-1",children:"(marca si aplica)"})]}),s.jsx("p",{className:"text-xs text-gray-400 mb-2",children:"Si transportas alguna de estas materias, se requiere cotización especial."}),s.jsx("div",{className:"flex flex-col gap-2",children:pu.map(P=>s.jsxs("label",{className:"flex items-center gap-3 px-4 py-2.5 rounded-xl border border-gray-200 bg-white cursor-pointer hover:border-red-300/60 hover:bg-red-50/40 transition-all duration-150",children:[s.jsx("input",{type:"checkbox",...r(P.key),className:"w-4 h-4 accent-red-500 cursor-pointer flex-shrink-0"}),s.jsx("span",{className:"text-sm text-gray-700 select-none",children:P.label})]},P.key))})]}),s.jsx(he,{children:j&&s.jsxs(ee.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{duration:.25},className:"bg-red-50 border border-red-200 rounded-xl px-4 py-4 flex flex-col gap-3",children:[s.jsxs("div",{className:"flex items-start gap-3",children:[s.jsx("span",{className:"text-xl flex-shrink-0",children:"⚠️"}),s.jsxs("div",{children:[s.jsx("p",{className:"text-sm font-bold text-red-700",children:"Este tipo de carga requiere cotización especial"}),s.jsxs("p",{className:"text-xs text-red-600 mt-1 leading-relaxed",children:["Las coberturas para ",s.jsx("strong",{children:m.join(", ")})," deben ser evaluadas por un ejecutivo. Contáctanos directamente y te ayudamos a la brevedad."]})]})]}),s.jsxs("a",{href:p(),target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-center gap-2 bg-[#25D366] hover:bg-[#1db954] text-white text-sm font-bold px-5 py-3 rounded-xl transition-colors duration-150 shadow-sm",children:[s.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor",children:s.jsx("path",{d:"M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z"})}),"Contactar por WhatsApp"]})]})}),s.jsxs("div",{children:[s.jsxs("p",{className:"text-[11px] font-bold tracking-widest uppercase text-brand-lila mb-2",children:["Tipo de cobertura ",s.jsx("span",{className:"text-red-400",children:"*"})]}),s.jsx("div",{className:"flex flex-col gap-2",children:_4.map(P=>{const O=c===P.value,V=h===P.value;return s.jsxs("div",{className:["rounded-xl border transition-all duration-150",O?"border-brand-lila/50 bg-brand-lila/5 shadow-sm":"border-gray-200 bg-white"].join(" "),children:[s.jsxs("label",{className:"flex items-center gap-3 px-4 py-3 cursor-pointer",children:[s.jsx("input",{type:"radio",value:P.value,...r("tipoCobertura"),className:"accent-brand-lila w-3.5 h-3.5 flex-shrink-0"}),s.jsx("span",{className:"text-base",children:P.icon}),s.jsxs("div",{className:"min-w-0 flex-1",children:[s.jsx("p",{className:`font-bold text-sm ${O?"text-brand-lila":"text-gray-700"}`,children:P.label}),s.jsx("p",{className:"text-xs text-gray-400 leading-tight",children:P.desc})]}),s.jsx("button",{type:"button",onClick:()=>g(V?null:P.value),className:"text-xs text-brand-lila/70 hover:text-brand-lila font-semibold flex-shrink-0 ml-1",children:V?"Ocultar ▲":"Ver detalle ▼"})]}),s.jsx(he,{children:V&&s.jsx(ee.div,{initial:{opacity:0,height:0}
104,animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{duration:.2},className:"px-4 pb-3 border-t border-gray-100",children:s.jsx("ul",{className:"mt-2 flex flex-col gap-1",children:P.detalle.map((B,M)=>s.jsx("li",{className:"text-xs text-gray-600 leading-snug",children:B},M))})})})]},P.value)})}),i.tipoCobertura&&s.jsx("p",{className:"text-[11px] text-red-500 mt-1 pl-1",children:i.tipoCobertura.message})]}),s.jsxs("div",{className:`grid gap-3 ${f?"grid-cols-1":"sm:grid-cols-2"}`,children:[s.jsx(Se,{label:"Forma de Pago",required:!0,error:(C=i.formaPago)==null?void 0:C.message,...r("formaPago"),children:E4.map(P=>s.jsx("option",{value:P.value,children:P.label},P.value))}),s.jsx(he,{children:!f&&s.jsx(ee.div,{initial:{opacity:0,width:0},animate:{opacity:1,width:"auto"},exit:{opacity:0,width:0},transition:{duration:.2},children:s.jsxs(Se,{label:"Número de Cuotas",required:!0,error:(N=i.numeroCuotas)==null?void 0:N.message,...r("numeroCuotas"),children:[s.jsx("option",{value:"3",children:"3 cuotas"}),s.jsx("option",{value:"6",children:"6 cuotas"}),s.jsx("option",{value:"10",children:"10 cuotas"}),s.jsx("option",{value:"11",children:"11 cuotas"}),s.jsx("option",{value:"12",children:"12 cuotas"})]})})})]}),f&&s.jsx("p",{className:"text-xs text-gray-400 -mt-2 pl-1",children:"Pago único al contratar — sin cuotas adicionales."}),s.jsx(fn,{}),s.jsxs("div",{className:"flex justify-between items-center pt-4 border-t border-gray-100 mt-1",children:[s.jsx("button",{type:"button",onClick:n,className:"btn-secondary",children:"← Anterior"}),!j&&s.jsx("button",{type:"submit",className:"btn-primary",children:"Siguiente →"})]})]})]})}const V4=4;function pm(){Ea({particleCount:45,spread:60,origin:{x:.5,y:.3},colors:["#7B3FE4","#a78bfa","#ffffff","#c4b5fd","#661ecf"],scalar:.85,gravity:1.2,ticks:120,disableForReducedMotion:!0})}function F4({onClose:e}){const[t,n]=R.useState(1),[r,a]=R.useState({}),[i,o]=R.useState(!1),[l,c]=R.useState(!1),[u,d]=R.useState({}),f=t/V4*100;R.useEffect(()=>{const b=()=>{const m=document.documentElement.scrollHeight;window.parent.postMessage({type:"iframeResize",height:m},"*")},j=new ResizeObserver(b);return j.observe(document.body),b(),()=>j.disconnect()},[]);const h=b=>{const j={...r,...b};a(j),d(m=>({...m,[t]:b})),pm(),n(m=>m+1),window.scrollTo({top:0,behavior:"smooth"}),setTimeout(()=>window.parent.postMessage({type:"scrollToTop"},"*"),50)},g=()=>n(b=>b-1),x=async b=>{const j={...r,...b,tipoFormulario:"pesado"};a(j),o(!0);try{await fetch("/.netlify/functions/send-quote",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(j)})}catch{}finally{o(!1),c(!0),pm()}};return s.jsx("div",{className:"w-full",children:s.jsx("div",{className:"w-full",children:s.jsxs("div",{className:"bg-white overflow-hidden",children:[s.jsxs("div",{className:"px-6 pt-6 pb-5 relative",style:{background:"#661ecf"},children:[s.jsxs("div",{className:"flex flex-col items-center gap-1",children:[s.jsx("h1",{className:"text-white font-bold text-base tracking-wide",children:"🚛 Seguro Vehículo Pesado"}),s.jsx("p",{className:"text-white/60 text-xs",children:"Camiones · Buses · Semiremolques · Tractocamiones"})]}),!l&&s.jsxs("div",{className:"mt-4",children:[s.jsx(lr,{current:t}),s.jsx("div",{className:"mt-3 h-1.5 bg-white/20 rounded-full overflow-hidden",children:s.jsx("div",{className:"h-full bg-white rounded-full transition-all duration-700 ease-out",style:{width:`${f}%`}})})]}),l&&s.jsx("div",{className:"mt-4",children:s.jsx(lr,{current:5})})]}),s.jsx("div",{className:"px-6 py-6",children:s.jsx(he,{mode:"wait",children:l?s.jsx(rf,{formData:r,onClose:e},"success"):t===1?s.jsx(Jd,{defaultValues:u[1],onNext:h},"step1"):t===2?s.jsx(A4,{defaultValues:u[2],onNext:h,onPrev:g},"step2"):t===3?s.jsx(O4,{defaultValues:u[3],onNext:h,onPrev:g},"step3"):t===4?s.jsx(nf,{defaultValues:u[4],onNext:x,onPrev:g,isSubmitting:i},"step4"):null})}),s.jsx("div",{className:"px-6 py-3 border-t border-gray-100 bg-gray-50",children:s.jsx("p",{className:"text-center text-gray-400 text-xs",children:"Tus datos están protegidos y son tratados con confidencialidad."})})]})})})}const L4=[{value:"medico_cirujano",label:"Médico Cirujano"}
104,{value:"cirujano_dentista",label:"Cirujano Dentista"},{value:"matrona",label:"Matrona / Matrón"},{value:"enfermeria",label:"Enfermera/o (título universitario)"},{value:"kinesiologo",label:"Kinesiólogo/a"},{value:"tecnologo_medico",label:"Tecnólogo/a Médico"},{value:"fonoaudiologo",label:"Fonoaudiólogo/a"},{value:"nutricionista",label:"Nutricionista"}],af={Acupuntura:{m:[11.91,17.15,19.77,null],rn:[null,null,null,null]},Alergología:{m:[null,null,null,null],rn:[15.71,22.59,28.27,35.41]},"Anatomía Patológica":{m:[10.21,13.88,17.65,null],rn:[15.71,22.59,28.27,35.41]},Anestesiología:{m:[25.89,31.81,36.52,null],rn:[17.28,24.85,31.11,38.96]},"Broncoscopia y Neumología Intervencionista":{m:[16.23,19.11,21.98,null],rn:[null,null,null,null]},Cardiocirugía:{m:[19.87,23.95,27.56,null],rn:[12.39,16.41,22.3,29.43]},"Cardiología y/o Tórax":{m:[19.87,23.95,27.56,null],rn:[12.39,16.41,22.3,29.43]},"Cirugía Cardiovascular":{m:[null,null,null,null],rn:[12.39,16.41,22.3,29.43]},"Cirugía Coloproctología":{m:[19.41,23.41,26.97,null],rn:[9.94,14.61,19.94,26.87]},"Cirugía Digestiva":{m:[19.41,23.41,26.97,null],rn:[null,null,null,null]},"Cirugía General":{m:[29.13,35.11,40.45,null],rn:[12.39,16.41,22.3,29.43]},"Cirugía Infantil":{m:[19.41,23.41,26.97,null],rn:[12.39,16.41,22.3,29.43]},"Cirugía Maxilofacial":{m:[25.89,31.81,36.59,null],rn:[12.39,16.41,22.3,29.43]},"Cirugía Obesidad":{m:[19.41,23.41,26.97,null],rn:[null,null,null,null]},"Cirugía Oncológica":{m:[17.26,21.34,24.48,null],rn:[null,null,null,null]},"Cirugía Patología Mamaria":{m:[19.87,23.95,27.56,null],rn:[null,null,null,null]},"Cirugía Pediátrica":{m:[null,null,null,null],rn:[12.39,16.41,22.3,29.43]},"Cirugía Plástica Reconstructiva":{m:[20.33,24.51,28.14,null],rn:[null,null,null,null]},"Cirugía Trasplantes":{m:[19.87,23.95,27.56,null],rn:[null,null,null,null]},"Cirugía Vascular":{m:[19.87,23.95,27.56,null],rn:[12.39,16.41,22.3,29.43]},"Cirugía de Cabeza y Cuello":{m:[null,null,null,null],rn:[12.39,16.41,22.3,29.43]},"Cirugía de Cabeza, Cuello y Máxilo Facial":{m:[null,null,null,null],rn:[12.39,16.41,22.3,29.43]},"Cirugía de Tórax":{m:[null,null,null,null],rn:[12.39,16.41,22.3,29.43]},"Cirugía vascular periférica":{m:[null,null,null,null],rn:[12.39,16.41,22.3,29.43]},"Cirugía y traumatología Buco Maxilofacial":{m:[null,null,null,null],rn:[12.39,16.41,22.3,29.43]}
104,"Cirujano Dentista":{m:[11.91,17.15,19.77,null],rn:[12.39,16.41,22.3,29.43]},Coloproctología:{m:[8.9,12.57,14.45,null],rn:[9.03,13.28,18.14,24.43]},Dermatología:{m:[11.91,17.15,19.77,null],rn:[9.03,13.28,18.14,24.43]},Diabetología:{m:[8.9,12.57,14.45,null],rn:[9.03,13.28,18.14,24.43]},"Endocrinología Adulto":{m:[8.9,12.57,14.45,null],rn:[9.03,13.28,18.14,24.43]},"Endocrinología Pediátrica":{m:[null,null,null,null],rn:[9.03,13.28,18.14,24.43]},Endodoncia:{m:[8.9,12.57,14.45,null],rn:[11.26,14.92,20.28,26.75]},"Endoscopia Digestiva":{m:[16.23,19.11,21.98,null],rn:[null,null,null,null]},"Enfermedades respiratorias Pediátricas":{m:[null,null,null,null],rn:[9.03,13.28,18.4,24.43]},"Enfermería (Con título universitario)":{m:[11.26,16.89,19.37,null],rn:[9.03,13.28,18.4,24.43]},"Especialistas Quirúrgicos":{m:[16.79,20.79,23.95,null],rn:[null,null,null,null]},Estomatología:{m:[15.89,19.11,21.99,null],rn:[null,null,null,null]},Fisiatra:{m:[null,null,null,null],rn:[9.03,13.28,18.4,24.43]},Fisioterapia:{m:[8.9,12.57,14.45,null],rn:[9.03,14.92,20.28,26.75]},Fonoaudiología:{m:[8.9,12.57,14.45,null],rn:[11.26,14.92,20.28,26.75]},"Gastroenterología Adulto":{m:[14.97,18,20.68,null],rn:[11.26,13.28,18.14,24.43]},"Gastroenterología Pediátrica":{m:[null,null,null,null],rn:[11.26,13.28,18.14,24.43]},Geriatría:{m:[8.9,12.57,14.45,null],rn:[9.03,13.28,18.14,24.43]},"Ginecología y Obstetricia":{m:[25.88,32.01,36.72,null],rn:[11.26,14.92,20.28,26.75]},Hematología:{m:[8.9,12.57,14.45,null],rn:[9.03,13.28,18.14,24.43]},Homeopatía:{m:[8.9,12.57,14.45,null],rn:[null,null,null,null]},Imagenología:{m:[null,null,null,null],rn:[11.26,14.92,20.28,26.75]},"Imagenología Oral y Maxilofacial":{m:[null,null,null,null],rn:[11.26,14.92,20.28,26.75]},"Implantología Buco Maxilofacial":{m:[25.88,32.01,36.72,null],rn:[11.26,14.92,20.28,26.75]},Infectología:{m:[8.9,12.57,14.45,null],rn:[11.26,14.92,20.28,26.75]},Inmunología:{m:[null,null,null,null],rn:[11.26,14.92,20.28,26.75]},"Inmunología y Alergias":{m:[8.9,12.57,14.45,null],rn:[null,null,null,null]},Kinesiología:{m:[8.9,12.57,14.45,null],rn:[11.26,14.92,20.28,26.75]},Mastología:{m:[null,null,null,null],rn:[11.26,14.92,20.28,26.75]},Matrona:{m:[15.89,19.11,21.99,null],rn:[11.26,14.92,20.28,26.76]},"Medicina Familiar":{m:[null,null,null,null],rn:[11.26,14.92,20.28,26.75]},"Medicina Familiar del Adulto":{m:[8.9,12.57,14.45,null],rn:[null,null,null,null]},"Medicina Familiar del Niño":{m:[8.9,12.57,14.45,null],rn:[null,null,null,null]},"Medicina Física y Rehabilitación":{m:[null,null,null,null],rn:[11.26,14.92,20.28,26.75]},"Medicina General":{m:[8.9,12.57,14.45,null],rn:[11.26,14.92,20.28,26.75]},"Medicina General Familiar":{m:[8.9,12.57,14.45,null],rn:[null,null,null,null]},"Medicina Intensiva":{m:[null,null,null,null],rn:[11.26,14.92,20.28,26.75]},"Medicina Intensiva Pediátrica":{m:[null,null,null,null],rn:[11.26,14.92,20.28,26.75]},"Medicina Interna":{m:[8.9,12.57,14.45,null],rn:[null,null,null,null]},"Medicina Preventiva":{m:[8.9,12.57,14.45,null],rn:[null,null,null,null]},"Medicina Reproductiva":{m:[8.9,12.57,14.45,null],rn:[null,null,null,null]},"Médico Cirujano":{m:[8.9,12.57,14.45,null],rn:[11.26,14.92,20.28,26.75]},"Nefrología Adulto":{m:[8.9,12.57,14.45,null],rn:[9.03,13.28,18.14,24.43]},"Nefrología Pediátrica":{m:[null,null,null,null],rn:[9.03,13.28,18.14,24.43]},Neonatología:{m:[8.9,12.57,14.45,null],rn:[9.03,13.28,18.14,24.43]},Neurocirugía:{m:[19.87,23.95,27.56,null],rn:[12.39,16.41,22.3,29.43]},"Neurología Adulto":{m:[8.9,12.57,14.45,null],rn:[9.03,13.28,18.14,24.43]},"Neurología Pediátrica":{m:[null,null,null,null],rn:[9.03,13.28,18.14,24.43]},"Nutrición y Dietética":{m:[null,null,null,null],rn:[9.03,13.28,18.14,24.43]},Odontología:{m:[11.91,17.15,19.77,null],rn:[11.26,14.92,20.28,26.75]},Odontopediatría:{m:[null,null,null,null],rn:[11.26,14.92,20.28,26.75]},Oftalmología:{m:[9.97,15.21,17.42,null],rn:[11.26,14.92,20.28,26.75]},Oncología:{m:[8.9,12.57,14.45,null],rn:[11.26,14.92,20.28,26.75]},Ortodoncia:{m:[8.9,12.57,14.45,null],rn:[null,null,null,null]},"Ortodoncia y Ortopedia DentoMaxilofacial":{m:[null,null,null,null],rn:[11.26,14.92,20.28,26.75]},Otorrinolaringología:{m:[8.25,12.57,14.4,null],rn:[11.26,14.92,20.28,26.75]},Parasitología:{m:[8.9,12.57,14.4,null],rn:[null,null,null,null]},"Patología Oral":{m:[null,null,null,null],rn:[11.26,14.92,20.28,26.75]},Pediatría:{m:[11.57,16.34,18.79,null],rn:[9.03,13.28,18.14,24.43]},Periodoncia:{m:[8.9,12.57,14.45,null],rn:[11.26,14.92,20.28,26.75]},Proctología:{m:[8.9,12.57,14.45,null],rn:[9.03,13.28,18.14,24.43]},Psiquiatría:{m:[8.9,12.57,14.45,null],rn:[9.03,13.28,18.14,24.43]},"Psiquiatría Infantil y de la Adolescencia":{m:[null,null,null,null],rn:[9.03,13.28,18.14,24.43]},Radiología:{m:[8.25,12.57,14.4,null],rn:[null,null,null,null]},"Radioterapia Oncológica":{m:[null,null,null,null],rn:[11.26,14.92,20.28,26.75]},"Rehabilitación Oral":{m:[13.9,20.12,23.18,null],rn:[11.26,14.92,20.28,26.75]},"Rehabilitación y/o Medicina Interna":{m:[8.9,12.57,14.45,null],rn:[11.26,14.92,20.28,26.75]},Reumatología:{m:[8.9,12.57,14.45,null],rn:[11.26,14.92,20.28,26.75]},Sexología:{m:[8.9,12.57,14.45,null],rn:[null,null,null,null]},"Tecnología Médica":{m:[8.9,12.57,14.45,null],rn:[9.03,13.28,18.14,24.43]},"Trastorno Lenguaje y Deglución Adultos":{m:[8.9,12.57,14.45,null],rn:[null,null,null,null]},"Trastornos Temporomandibulares y Dolor Orofacial":{m:[null,null,null,null],rn:[11.26,14.92,20.28,26.75]},"Traumatología y Cirugía Ortopédica":{m:[21.61,26,29.92,null],rn:[11.26,14.92,20.28,26.75]},Urgenciología:{m:[29.13,35.11,40.45,null],rn:[null,null,null,null]},Urología:{m:[22.47,27.85,32.01,null],rn:[11.26,14.92,20.28,26.75]}},Ln=e=>{const t=af[e];return t?t.m.some(n=>n!==null)||t.rn.some(n=>n!==null):!1},D4=["Médico Cirujano","Acupuntura","Alergología","Anatomía Patológica","Anestesiología","Broncoscopia y Neumología Intervencionista","Cardiocirugía","Cardiología y/o Tórax","Cirugía Cardiovascular","Cirugía Coloproctología","Cirugía de Cabeza y Cuello","Cirugía de Cabeza, Cuello y Máxilo Facial","Cirugía de Tórax","Cirugía Digestiva","Cirugía General","Cirugía Infantil","Cirugía Maxilofacial","Cirugía Obesidad","Cirugía Oncológica","Cirugía Patología Mamaria","Cirugía Pediátrica","Cirugía Plástica Reconstructiva","Cirugía Trasplantes","Cirugía Vascular","Cirugía vascular periférica","Coloproctología","Dermatología","Diabetología","Endocrinología Adulto","Endocrinología Pediátrica","Endoscopia Digestiva","Enfermería (Con título universitario)","Enfermedades respiratorias Pediátricas","Especialistas Quirúrgicos","Fisiatra","Fisioterapia","Fonoaudiología","Gastroenterología Adulto","Gastroenterología Pediátrica","Geriatría","Ginecología y Obstetricia","Hematología","Homeopatía","Imagenología","Infectología","Inmunología","Inmunología y Alergias","Kinesiología","Mastología","Matrona","Medicina Familiar","Medicina Familiar del Adulto","Medicina Familiar del Niño","Medicina Física y Rehabilitación","Medicina General","Medicina General Familiar","Medicina Intensiva","Medicina Intensiva Pediátrica","Medicina Interna","Medicina Preventiva","Medicina Reproductiva","Nefrología Adulto","Nefrología Pediátrica","Neonatología","Neurocirugía","Neurología Adulto","Neurología Pediátrica","Nutrición y Dietética","Oftalmología","Oncología","Otorrinolaringología","Parasitología","Pediatría","Proctología","Psiquiatría","Psiquiatría Infantil y de la Adolescencia","Radiología","Radioterapia Oncológica","Rehabilitación y/o Medicina Interna","Reumatología","Sexología","Tecnología Médica","Trastorno Lenguaje y Deglución Adultos","Traumatología y Cirugía Ortopédica","Urgenciología","Urología"],$4=["Cirujano De
104ntista","Cirugía y traumatología Buco Maxilofacial","Endodoncia","Estomatología","Imagenología Oral y Maxilofacial","Implantología Buco Maxilofacial","Odontología","Odontopediatría","Ortodoncia","Ortodoncia y Ortopedia DentoMaxilofacial","Patología Oral","Periodoncia","Rehabilitación Oral","Trastornos Temporomandibulares y Dolor Orofacial"],I4={medico_cirujano:D4.filter(Ln),cirujano_dentista:$4.filter(Ln),matrona:["Matrona"].filter(Ln),enfermeria:["Enfermería (Con título universitario)"].filter(Ln),kinesiologo:["Kinesiología"].filter(Ln),tecnologo_medico:["Tecnología Médica"].filter(Ln),fonoaudiologo:["Fonoaudiología"].filter(Ln),nutricionista:["Nutrición y Dietética"].filter(Ln)},hm=[2500,5e3,7e3,1e4],mm=["Esencial","Full","Premium","Gold"],gm=["esencial","full","premium","gold"];function zx(e){const t=af[e];if(!t)return{mapfre:[],rentaNacional:[]};const n=t.m.map((a,i)=>a===null?null:{id:gm[i],label:mm[i],cobertura:hm[i],prima_uf:a}).filter(Boolean),r=t.rn.map((a,i)=>a===null?null:{id:gm[i],label:mm[i],cobertura:hm[i],prima_uf:a}).filter(Boolean);return{mapfre:n,rentaNacional:r}}function Bx(e){if(!e)return!0;const t=af[e];return t?t.m.some(n=>n!==null)||t.rn.some(n=>n!==null):!1}const mu=2009,Ux=Array.from({length:new Date().getFullYear()-1959},(e,t)=>String(new Date().getFullYear()-t)),z4=Qt({nombres:K().min(2,"Ingresa al menos 2 caracteres"),primerApellido:K().min(2,"Ingresa tu primer apellido"),segundoApellido:K().optional(),rut:K().min(1,"Ingresa tu RUT").refine(Yd,{message:"RUT inválido — verifica el dígito verificador"}),fechaNacimiento:K().min(1,"Ingresa tu fecha de nacimiento").refine(e=>{if(!e)return!1;const t=new Date(e+"T00:00:00"),n=new Date;return n.setFullYear(n.getFullYear()-18),t<=n},{message:"Debes ser mayor de 18 años"}),email:K().min(1,"Ingresa tu email").email("Email inválido"),telefono:K().min(8,"Ingresa tu teléfono (8 dígitos)").max(12),nacionalidad:K().min(1,"Selecciona tu nacionalidad"),otraNacionalidad:K().optional(),profesion:K().min(1,"Selecciona tu profesión")}).superRefine((e,t)=>{var n;e.nacionalidad==="Otra"&&!((n=e.otraNacionalidad)!=null&&n.trim())&&t.addIssue({path:["otraNacionalidad"],code:L.custom,message:"Especifica tu nacionalidad"})});function B4({defaultValues:e,onNext:t}){var d,f,h,g,x,b,j,m,p;const[n,r]=R.useState((e==null?void 0:e.rut)||""),{register:a,handleSubmit:i,formState:{errors:o},control:l,watch:c}=un({resolver:dn(z4),defaultValues:{nombres:"",primerApellido:"",segundoApellido:"",rut:"",fechaNacimiento:"",email:"",telefono:"",nacionalidad:"",otraNacionalidad:"",profesion:"",...e}}),u=c("nacionalidad");return s.jsxs(ee.div,{initial:{opacity:0,x:40},animate:{opacity:1,x:0},exit:{opacity:0,x:-40},transition:{duration:.3},children:[s.jsxs("div",{className:"mb-5",children:[s.jsx("h2",{className:"text-xl font-bold text-gray-800",children:"👤 Datos Personales"}),s.jsx("p",{className:"text-sm text-gray-400 mt-0.5",children:"Cuéntanos sobre el profesional que solicita la cobertura."})]}),s.jsxs("form",{onSubmit:i(t),noValidate:!0,className:"flex flex-col gap-4",children:[s.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:[s.jsx(Qe,{label:"Nombres",required:!0,placeholder:"María José",error:(d=o.nombres)==null?void 0:d.message,...a("nombres")}),s.jsx(Qe,{label:"Primer Apellido",required:!0,placeholder:"González",error:(f=o.primerApellido)==null?void 0:f.message,...a("primerApellido")})]}),s.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:[s.jsx(Qe,{label:"Segundo Apellido",placeholder:"Rodríguez",error:(h=o.segundoApellido)==null?void 0:h.message,...a("segundoApellido")}
104),s.jsx(Qe,{label:"Fecha de Nacimiento",required:!0,type:"date",error:(g=o.fechaNacimiento)==null?void 0:g.message,...a("fechaNacimiento")})]}),s.jsx(jx,{name:"rut",control:l,render:({field:y})=>{var C;return s.jsx(Qe,{label:"RUT",required:!0,placeholder:"12.345.678-9",error:(C=o.rut)==null?void 0:C.message,value:n,onChange:N=>{const P=N.target.value.replace(/[^0-9kK]/g,"").toUpperCase(),O=Fx(P);r(O),y.onChange(O)},onBlur:y.onBlur,name:y.name,maxLength:12})}}),s.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:[s.jsx(Qe,{label:"Email",required:!0,placeholder:"[email protected]",type:"email",error:(x=o.email)==null?void 0:x.message,...a("email")}),s.jsx(Qe,{label:"Teléfono (sin +56)",required:!0,placeholder:"9 1234 5678",type:"tel",error:(b=o.telefono)==null?void 0:b.message,...a("telefono")})]}),s.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:[s.jsxs(Se,{label:"Nacionalidad",required:!0,error:(j=o.nacionalidad)==null?void 0:j.message,...a("nacionalidad"),children:[s.jsx("option",{value:"",children:"Seleccione..."}),s.jsx("option",{value:"Chilena",children:"Chilena"}),s.jsx("option",{value:"Argentina",children:"Argentina"}),s.jsx("option",{value:"Boliviana",children:"Boliviana"}),s.jsx("option",{value:"Brasileña",children:"Brasileña"}),s.jsx("option",{value:"Colombiana",children:"Colombiana"}),s.jsx("option",{value:"Cubana",children:"Cubana"}),s.jsx("option",{value:"Ecuatoriana",children:"Ecuatoriana"}),s.jsx("option",{value:"Española",children:"Española"}),s.jsx("option",{value:"Haitiana",children:"Haitiana"}),s.jsx("option",{value:"Mexicana",children:"Mexicana"}),s.jsx("option",{value:"Peruana",children:"Peruana"}),s.jsx("option",{value:"Venezolana",children:"Venezolana"}),s.jsx("option",{value:"Otra",children:"Otra"})]}),s.jsxs(Se,{label:"Profesión",required:!0,error:(m=o.profesion)==null?void 0:m.message,...a("profesion"),children:[s.jsx("option",{value:"",children:"Seleccione..."}),L4.map(y=>s.jsx("option",{value:y.value,children:y.label},y.value))]})]}),u==="Otra"&&s.jsx(Qe,{label:"Especifica tu nacionalidad",required:!0,placeholder:"Ej: Colombiana, Peruana…",error:(p=o.otraNacionalidad)==null?void 0:p.message,...a("otraNacionalidad")}),s.jsx(fn,{}),s.jsx("div",{className:"flex justify-end items-center pt-4 border-t border-gray-100",children:s.jsx("button",{type:"submit",className:"btn-primary",children:"Siguiente →"})})]})]})}const U4="56323140979",q4=e=>Qt({especialidad:K().min(1,"Selecciona tu especialidad"),anioTitulacion:K().min(1,"Selecciona el año de titulación"),eunacom:K().optional(),actividadPrincipal:K().min(1,"Selecciona tu actividad principal")}).superRefine((t,n)=>{e&&parseInt(t.anioTitulacion)>=mu&&t.especialidad&&Bx(t.especialidad)&&(t.eunacom||n.addIssue({path:["eunacom"],code:L.custom,message:"Indica si cuentas con EUNACOM o CONACEM"}))}),W4=[{value:"clinica_100",label:"100% Clínica",desc:"Sus actividades no involucran cirugía."},{value:"quirurgica_mixta",label:"Quirúrgica o Mixta",desc:"Incluye procedimientos quirúrgicos o combinación con otras actividades (docencia, administración, urgencias, etc.)."}];function ym({reason:e}){const t=encodeURIComponent(`Hola, me aparece que no tengo cobertura disponible en el formulario de RC Médica (${e}). ¿Me pueden ayudar?`);return s.jsx(ee.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{duration:.25},className:"overflow-hidden",children:s.jsxs("div",{className:"bg-red-50 border border-red-200 rounded-xl px-4 py-4 flex flex-col gap-2",children:[s.jsx("p",{className:"text-red-700 font-bold text-sm",children:"⛔ Sin cobertura disponible online"}),s.jsx("p",{className:"text-red-600 text-xs leading-relaxed",children:e}),s.jsx("a",{href:`https://wa.me/${U4}?text=${t}`,target:"_blank",rel:"noreferrer",className:`inline-flex items-center gap-2 bg-[#25D366] hover:bg-[#1db954] text-white
105                     text-xs font-bold px-4 py-2 rounded-lg self-start transition-colors`,children:"💬 Consultar por WhatsApp"})]})})}function H4({defaultValues:e,formData:t,onNext:n,onPrev:r}){var C,N,P;const a=(t==null?void 0:t.profesion)||"",i=a==="medico_cirujano",o=I4[a]||[],l=R.useMemo(()=>q4(i),[i]),{register:c,handleSubmit:u,formState:{errors:d},watch:f}=un({resolver:dn(l),defaultValues:{especialidad:"",anioTitulacion:"",eunacom:"",actividadPrincipal:"",...e}}),h=f("especialidad"),g=f("anioTitulacion"),x=f("eunacom"),b=h?!Bx(h):!1,j=i&&parseInt(g)>=mu&&!b,m=j&&x==="ninguno",p=b||m,y=b?`La especialidad "${h}" no está disponible para cotización online. Por favor contáctanos directamente.`:m?"Los profesionales titulados a partir de 2009 que no han aprobado el EUNACOM no pueden acceder a este seguro. Por favor contáctanos para más información.":"";return s.jsxs(ee.div,{initial:{opacity:0,x:40}
105,animate:{opacity:1,x:0},exit:{opacity:0,x:-40},transition:{duration:.3},children:[s.jsxs("div",{className:"mb-5",children:[s.jsx("h2",{className:"text-xl font-bold text-gray-800",children:"🎓 Perfil Académico"}),s.jsx("p",{className:"text-sm text-gray-400 mt-0.5",children:"Datos sobre tu formación y especialidad."})]}),s.jsxs("form",{onSubmit:u(n),noValidate:!0,className:"flex flex-col gap-4",children:[s.jsxs(Se,{label:"Especialidad",required:!0,error:(C=d.especialidad)==null?void 0:C.message,...c("especialidad"),children:[s.jsx("option",{value:"",children:"Seleccione..."}),o.map(O=>s.jsx("option",{value:O,children:O},O))]}),s.jsx(he,{children:b&&s.jsx(ym,{reason:y})}),s.jsxs(Se,{label:"Año de Titulación",required:!0,error:(N=d.anioTitulacion)==null?void 0:N.message,...c("anioTitulacion"),children:[s.jsx("option",{value:"",children:"Seleccione..."}),Ux.map(O=>s.jsx("option",{value:O,children:O},O))]}),s.jsx(he,{children:j&&!b&&s.jsx(ee.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{duration:.2},className:"overflow-hidden",children:s.jsxs("div",{className:"bg-brand-lila/5 border border-brand-lila/25 rounded-xl px-4 py-3",children:[s.jsxs("p",{className:"text-brand-lila text-xs font-semibold mb-3",children:["ℹ️ Los médicos titulados a partir de ",mu," deben contar con EUNACOM o CONACEM para acceder a este seguro."]}),s.jsxs(Se,{label:"¿Cuentas con EUNACOM o CONACEM?",required:!0,error:(P=d.eunacom)==null?void 0:P.message,...c("eunacom"),children:[s.jsx("option",{value:"",children:"Seleccione..."}),s.jsx("option",{value:"eunacom",children:"Sí, tengo EUNACOM"}),s.jsx("option",{value:"conacem",children:"Sí, tengo CONACEM"}),s.jsx("option",{value:"ninguno",children:"No cuento con ninguno"})]})]})})}),s.jsx(he,{children:m&&s.jsx(ym,{reason:y})}),s.jsxs("div",{children:[s.jsxs("p",{className:"text-[11px] font-bold tracking-widest text-gray-500 uppercase mb-2",children:["Actividad Principal ",s.jsx("span",{className:"text-red-400",children:"*"})]}),s.jsx("div",{className:"flex flex-col gap-2",children:W4.map(O=>{const V=f("actividadPrincipal")===O.value;return s.jsxs("label",{className:`flex items-start gap-3 p-3 rounded-xl border-2 cursor-pointer transition-all
106                    ${V?"border-brand-lila bg-brand-lila/5":"border-gray-200 bg-white hover:border-gray-300"}`,children:[s.jsx("input",{type:"radio",value:O.value,...c("actividadPrincipal"),className:"mt-0.5 accent-brand-lila"}),s.jsxs("div",{children:[s.jsx("p",{className:`text-sm font-semibold ${V?"text-brand-lila":"text-gray-700"}`,children:O.label}),s.jsx("p",{className:"text-xs text-gray-400 leading-relaxed mt-0.5",children:O.desc})]})]},O.value)})}),d.actividadPrincipal&&s.jsx("p",{className:"text-red-500 text-xs mt-1",children:d.actividadPrincipal.message})]}),s.jsx(fn,{}),s.jsxs("div",{className:"flex justify-between items-center pt-4 border-t border-gray-100",children:[s.jsx("button",{type:"button",onClick:r,className:"btn-secondary",children:"← Anterior"}),s.jsx("button",{type:"submit",className:"btn-primary",disabled:p,children:"Siguiente →"})]})]})]})}const G4="56323140979",K4=Qt({ejercicioActivo:K().min(1,"Selecciona una opción"),cirugiaPlaticaEstetica:K().min(1,"Selecciona una opción"),urgenciaMas70:K().min(1,"Selecciona una opción"),siniestros3anos:K().min(1,"Selecciona una opción"),seguroVigente:K().min(1,"Selecciona una opción"),aseguradoraVigente:K().optional(),observaciones:K().optional()});function qa({label:e,name:t,register:n,error:r,required:a}){return s.jsxs("div",{children:[s.jsxs("p",{className:"text-[11px] font-bold tracking-widest uppercase text-brand-lila mb-2",children:[e,a&&s.jsx("span",{className:"text-red-400 ml-0.5",children:"*"})]}),s.jsx("div",{className:"flex gap-3",children:["si","no"].map(i=>s.jsxs("label",{className:`flex items-center gap-2 px-4 py-2.5 rounded-xl border border-gray-200 bg-white
107                       cursor-pointer hover:border-brand-lila/40 hover:bg-brand-lila/5 transition-all
108                       duration-150 flex-1 justify-center`,children:[s.jsx("input",{type:"radio",value:i,...n(t),className:"accent-brand-lila w-4 h-4 flex-shrink-0"}),s.jsx("span",{className:"text-sm text-gray-700 select-none font-medium",children:i==="si"?"
108Sí":"No"})]},i))}),r&&s.jsx("p",{className:"text-[11px] text-red-500 mt-1 pl-1",children:r})]})}function zl({reason:e}){const t=encodeURIComponent(`Hola, me aparece que no tengo cobertura disponible en el formulario de RC Médica (${e}). ¿Me pueden ayudar?`);return s.jsx(ee.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{duration:.25},className:"overflow-hidden",children:s.jsxs("div",{className:"bg-red-50 border border-red-200 rounded-xl px-4 py-4 flex flex-col gap-2",children:[s.jsx("p",{className:"text-red-700 font-bold text-sm",children:"⛔ Sin cobertura disponible online"}),s.jsx("p",{className:"text-red-600 text-xs leading-relaxed",children:e}),s.jsx("a",{href:`https://wa.me/${G4}?text=${t}`,target:"_blank",rel:"noreferrer",className:`inline-flex items-center gap-2 bg-[#25D366] hover:bg-[#1db954] text-white
109                     text-xs font-bold px-4 py-2 rounded-lg self-start transition-colors`,children:"💬 Consultar por WhatsApp"})]})})}function Z4({defaultValues:e,onNext:t,onPrev:n}){var b,j,m,p,y,C;const{register:r,handleSubmit:a,formState:{errors:i},watch:o}=un({resolver:dn(K4),defaultValues:{ejercicioActivo:"",cirugiaPlaticaEstetica:"",urgenciaMas70:"",siniestros3anos:"",seguroVigente:"",aseguradoraVigente:"",observaciones:"",...e}}),l=o("cirugiaPlaticaEstetica"),c=o("urgenciaMas70"),u=o("siniestros3anos"),d=o("seguroVigente"),f=l==="si",h=c==="si",g=u==="si",x=f||h||g;return s.jsxs(ee.div,{initial:{opacity:0,x:40},animate:{opacity:1,x:0},exit:{opacity:0,x:-40},transition:{duration:.3},children:[s.jsxs("div",{className:"mb-5",children:[s.jsx("h2",{className:"text-xl font-bold text-gray-800",children:"📋 Historial Laboral"}),s.jsx("p",{className:"text-sm text-gray-400 mt-0.5",children:"Algunas preguntas sobre tu actividad y antecedentes."})]}),s.jsxs("form",{onSubmit:a(t),noValidate:!0,className:"flex flex-col gap-5",children:[s.jsx(qa,{label:"¿Actualmente ejerce de forma activa su especialidad?",name:"ejercicioActivo",register:r,error:(b=i.ejercicioActivo)==null?void 0:b.message,required:!0}),s.jsx(qa,{label:"¿Realiza procedimientos de cirugía plástica estética?",name:"cirugiaPlaticaEstetica",register:r,error:(j=i.cirugiaPlaticaEstetica)==null?void 0:j.message,required:!0}),s.jsx(he,{children:f&&s.jsx(zl,{reason:"Los profesionales que realizan cirugía plástica estética no tienen cobertura en esta modalidad. Contáctanos para evaluar alternativas."})}),s.jsx(qa,{label:"¿Más del 70% de su actividad laboral es en Urgencias / Emergencias?",name:"urgenciaMas70",register:r,error:(m=i.urgenciaMas70)==null?void 0:m.message,required:!0}),s.jsx(he,{children:h&&s.jsx(zl,{reason:"Los profesionales que trabajan más del 70% en urgencias no pueden acceder a esta póliza online. Contáctanos para buscar una solución."})}),s.jsx(qa,{label:"¿Ha tenido siniestros (denuncias o reclamos) en los últimos 3 años?",name:"siniestros3anos",register:r,error:(p=i.siniestros3anos)==null?void 0:p.message,required:!0}),s.jsx(he,{children:g&&s.jsx(zl,{reason:"Los profesionales con siniestros en los últimos 3 años requieren una evaluación especial. Un ejecutivo te c
109ontactará."})}),s.jsx(qa,{label:"¿Tiene actualmente un seguro de RC Médica vigente?",name:"seguroVigente",register:r,error:(y=i.seguroVigente)==null?void 0:y.message,required:!0}),s.jsx(he,{children:d==="si"&&s.jsx(ee.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{duration:.2},className:"overflow-hidden",children:s.jsx(Qe,{label:"¿Con qué aseguradora?",placeholder:"Ej: MAPFRE, Renta Nacional…",error:(C=i.aseguradoraVigente)==null?void 0:C.message,...r("aseguradoraVigente")})})}),s.jsxs("div",{children:[s.jsxs("label",{className:"block text-[11px] font-bold tracking-widest uppercase text-brand-lila mb-1",children:["Observaciones",s.jsx("span",{className:"font-normal normal-case text-gray-400 tracking-normal ml-1",children:"(opcional)"})]}),s.jsx("textarea",{...r("observaciones"),rows:3,placeholder:"Cualquier detalle adicional que quieras compartir con nosotros…",className:"input-field w-full resize-none"})]}),s.jsx(fn,{}),s.jsxs("div",{className:"flex justify-between items-center pt-4 border-t border-gray-100",children:[s.jsx("button",{type:"button",onClick:n,className:"btn-secondary",children:"← Anterior"}),s.jsx("button",{type:"submit",className:"btn-primary",disabled:x,children:"Ver cotización →"})]})]})]})}function qx(){const[e,t]=R.useState(null);return R.useEffect(()=>{fetch("https://mindicador.cl/api/uf").then(n=>n.json()).then(n=>{var a,i;const r=(i=(a=n==null?void 0:n.serie)==null?void 0:a[0])==null?void 0:i.valor;r&&t(r)}).catch(()=>{})},[]),e}function Co(e,t){return!t||!e?null:Math.round(e*t).toLocaleString("es-CL")}const X4="56323140979",xm={esencial:{ring:"ring-sky-400",bg:"bg-sky-50",dot:"bg-sky-400",badge:"bg-sky-100 text-sky-700"},full:{ring:"ring-violet-500",bg:"bg-violet-50",dot:"bg-violet-500",badge:"bg-violet-100 text-violet-700"},premium:{ring:"ring-amber-500",bg:"bg-amber-50",dot:"bg-amber-500",badge:"bg-amber-100 text-amber-700"},gold:{ring:"ring-yellow-500",bg:"bg-yellow-50",dot:"bg-yellow-500",badge:"bg-yellow-100 text-yellow-700"}};function Q4({plan:e,aseguradora:t,selected:n,onSelect:r,uf:a}){const i=xm[e.id]||xm.esencial,o=(e.prima_uf/12).toFixed(1),l=Co(e.prima_uf,a),c=Co(parseFloat(o),a);return s.jsxs(ee.button,{type:"button",onClick:()=>r({...e,aseguradora:t}),whileHover:{scale:1.02},whileTap:{scale:.98},className:`w-full text-left p-4 rounded-xl border-2 transition-all duration-200 cursor-pointer
110        ${n?`${i.ring} ring-2 ${i.bg} border-transparent shadow-md`:"border-gray-200 bg-white hover:border-gray-300"}`,children:[s.jsxs("div",{className:"flex items-center justify-between mb-2",children:[s.jsx("span",{className:`text-xs font-bold px-2 py-0.5 rounded-full ${i.badge}`,children:e.label}),s.jsx("div",{className:`w-4 h-4 rounded-full border-2 ${n?`${i.dot} border-transparent`:"border-gray-300"} flex items-center justify-center`,children:n&&s.jsx("div",{className:"w-2 h-2 rounded-full bg-white"})})]}),s.jsx("p",{className:"text-gray-500 text-xs mb-1",children:"Cobertura"}),s.jsxs("p",{className:"text-gray-800 font-bold text-base mb-3",children:["UF ",e.cobertura.toLocaleString("es-CL")]}),s.jsxs("div",{className:"border-t border-gray-100 pt-2",children:[s.jsx("p",{className:"text-gray-400 text-[11px]",children:"Prima anual"}),s.jsxs("p",{className:"text-gray-800 font-bold text-lg leading-tight",children:["UF ",e.prima_uf.toFixed(2),s.jsx("span",{className:"text-xs text-gray-400 font-normal ml-1",children:"/ año"})]}),l&&s.jsxs("p",{className:"text-brand-lila text-[11px] font-semibold mt-0.5",children:["≈ $",l," CLP / año"]}),s.jsxs("p",{className:"text-gray-400 text-[11px] mt-0.5",children:["≈ UF ",o," / mes",c?` · $${c} CLP`:""]})]})]})}function vm({title:e,plans:t,selectedKey:n,onSelect:r,uf:a}){return!t||t.length===0?null:s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[s.jsx("div",{className:"w-2 h-2 rounded-full bg-brand-lila"}),s.jsx("h3",{className:"text-sm font-bold text-gray-700",children:e})]}),s.jsx("div",{className:`grid gap-2 ${t.length<=2?"grid-cols-2":"grid-cols-2 sm:grid-cols-4"}`,children:t.map(i=>s.jsx(Q4,{plan:i,aseguradora:e,uf:a,selected:n===`${e}__${i.id}`,onSelect:o=>r(`${e}__${o.id}`,o)},i.id))})]})}function Y4({formData:e,onSubmit:t,onPrev:n,isSubmitting:r}
110){const[a,i]=R.useState(""),[o,l]=R.useState(null),c=qx(),u=[e.nombres,e.primerApellido].filter(Boolean).join(" "),{mapfre:d,rentaNacional:f}=zx(e.especialidad||""),h=d.length>0||f.length>0,g=(b,j)=>{i(b),l(j)},x=()=>{o&&t({planAseguradora:o.aseguradora,planNombre:o.label,planCobertura:o.cobertura,planPrimaUF:o.prima_uf,uf:c||void 0})};return s.jsxs(ee.div,{initial:{opacity:0,x:40},animate:{opacity:1,x:0},exit:{opacity:0,x:-40},transition:{duration:.3},children:[s.jsx("div",{className:"mb-5",children:s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{children:[s.jsx("h2",{className:"text-xl font-bold text-gray-800",children:"💼 Tu Cotización"}),s.jsxs("p",{className:"text-sm text-gray-400 mt-0.5",children:["Elige el plan que mejor se adapte a tu actividad, ",u,"."]}),e.especialidad&&s.jsxs("p",{className:"text-xs text-brand-lila font-semibold mt-1",children:["Especialidad: ",e.especialidad]})]}),s.jsx("button",{type:"button",onClick:()=>window.print(),className:`print:hidden text-xs text-gray-400 hover:text-gray-600 border border-gray-200
111                       hover:border-gray-300 px-3 py-1.5 rounded-lg transition-colors flex items-center gap-1.5`,children:"🖨️ Imprimir"})]})}),s.jsxs("div",{className:"bg-brand-lila/5 border border-brand-lila/20 rounded-xl px-4 py-3 text-xs text-brand-lila mb-5 leading-relaxed",children:["ℹ️ Los valores son ",s.jsx("strong",{children:"referenciales en UF"})," y pueden variar según evaluación final. La cotización confirmada se enviará a tu email."," ",c?s.jsxs("span",{children:["UF del día: ",s.jsxs("strong",{children:["$",c.toLocaleString("es-CL",{minimumFractionDigits:2,maximumFractionDigits:2})]})]}):s.jsx("span",{children:"Cargando valor UF…"})]}),h?s.jsxs("div",{className:"flex flex-col gap-6",children:[s.jsx(vm,{title:"MAPFRE",plans:d,selectedKey:a,onSelect:g,uf:c}),s.jsx(vm,{title:"Renta Nacional",plans:f,selectedKey:a,onSelect:g,uf:c})]}):s.jsxs("div",{className:"bg-red-50 border border-red-200 rounded-xl px-4 py-4 text-center",children:[s.jsx("p",{className:"text-red-700 font-bold text-sm mb-1",children:"⛔ Sin cotización disponible"}),s.jsxs("p",{className:"text-red-600 text-xs",children:["No encontramos planes para la especialidad seleccionada."," ",s.jsx("a",{href:`https://wa.me/${X4}?text=${encodeURIComponent("Hola, necesito cotizar RC Médica para mi especialidad.")}`,target:"_blank",rel:"noreferrer",className:"underline font-semibold",children:"Contáctanos por WhatsApp"}),"."]})]}),o&&s.jsxs(ee.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},className:"mt-5 bg-brand-lila/5 border border-brand-lila/25 rounded-xl px-4 py-3",children:[s.jsx("p",{className:"text-brand-lila font-bold text-sm mb-1",children:"Plan seleccionado"}),s.jsxs("p",{className:"text-gray-700 text-sm",children:[s.jsx("strong",{children:o.aseguradora})," — Plan ",o.label," ·"," ","Cobertura UF ",o.cobertura.toLocaleString("es-CL")," ·"," ","Prima UF ",o.prima_uf.toFixed(2)," / año"]})]}),s.jsxs("div",{className:"flex justify-between items-center pt-5 border-t border-gray-100 mt-5 print:hidden",children:[s.jsx("button",{type:"button",onClick:n,className:"btn-secondary",children:"← Anterior"}),s.jsx("button",{type:"button",onClick:x,disabled:!o||r,className:"btn-primary disabled:opacity-50 disabled:cursor-not-allowed",children:r?"Enviando…":"Solicitar cotización →"})]})]})}const J4="15.828.443-K",bm="Felipe Hernández Campos";function Dn(e){return`UF ${Number(e).toLocaleString("es-CL",{minimumFractionDigits:2,maximumFractionDigits:2})}`}function Cm(e){if(!e)return"";const[t,n,r]=e.split("-");return`${r}/${n}/${t}`}function e5(e){if(!e)return"";const[t,n,r]=e.split("-");return`${parseInt(t)+1}-${n}-${r}`}function t5(e){if(!e)return{day:"___",month:"___________",year:"______"};const[t,n,r]=e.split("-");return{day:r,month:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"][parseInt(n)-1],year:t}}function n5(e,t,n={}){const r=!!n.forEmail,a=[e.nombres,e.primerApellido,e.segundoApellido].filter(
111Boolean).join(" "),i=e.rut||"",o=t.esIdemContratante!=="no",l=o?a:t.contratanteNombre||"",c=o?i:t.contratanteRut||"",u=`${t.direccion||""} ${t.numero||""}${t.depto?", "+t.depto:""}`.trim(),d=`${t.comuna||""} / ${t.ciudad||""}`,f=Number(e.planCobertura||0),h=f*.25,g=Number(e.planPrimaUF||0),x=g*.19,b=g*1.19,j=t.fechaInicio||"",m=e5(j),p=t5(j),y=t.formaPago||"",C=y==="PAT",N=y==="PAC",P=y==="Pago Directo",O=y==="Contado",V=C?t.cuotasPAT:N?t.cuotasPAC:t.cuotasDirecto||"",B=C?t.diaPagoPAT:N?t.diaPagoPAC:t.diaPagoDirecto||"",M=window.location.origin,_=`${M}/mapfre-logo.png`,Y=`${M}/logo.png`,D=`${M}/firma-agente.png`,te=G=>G?'<span style="display:inline-block;width:11px;height:11px;border:1.5px solid #222;background:#222;vertical-align:middle;margin-right:2px;"></span>':'<span style="display:inline-block;width:11px;height:11px;border:1.5px solid #555;background:#fff;vertical-align:middle;margin-right:2px;"></span>',k="font-family:Arial,Helvetica,sans-serif;",F=`border:1px solid #aaa;padding:4px 8px;${k}font-size:8.5pt;color:#111;vertical-align:top;`,oe=`border:1px solid #aaa;padding:3px 8px;${k}font-size:7.5pt;color:#888;background:#f5f5f5;vertical-align:top;`,E=`display:block;${k}font-size:6.5pt;color:#777;margin-bottom:2px;`,z=`display:block;${k}font-size:8.5pt;color:#111;`,S=`${k}font-size:8.5pt;font-weight:bold;text-transform:uppercase;letter-spacing:0.3px;border-bottom:1.5px solid #222;padding-bottom:3px;margin:10px 0 3px 0;color:#111;`,w=`${k}font-size:6.5pt;line-height:1.45;color:#222;text-align:justify;`;return`<!DOCTYPE html>
112<html lang="es">
113<head>
114<meta charset="UTF-8">
115<title>Propuesta RC Médica — MAPFRE</title>
116<style>
117  * { box-sizing:border-box; margin:0; padding:0; }
118  html { overflow:hidden; }
119  body {
120    font-family:Arial,Helvetica,sans-serif;
121    font-size:8.5pt;
122    color:#111;
123    background:#fff;
124    line-height:1.3;
125    overflow:hidden;
126    width:794px;
127    margin:0;
128    padding:0;
129  }
130  table { border-collapse:${r?"separate; border-spacing:0":"collapse"}; width:100%; table-layout:fixed; }
131  @page { size: A4 portrait; margin: 0; }
132  @media print {
133    * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
134  }
135</style>
136</head>
137<body>
138<div id="page1" style="width:794px;height:1122px;padding:25mm 25mm 14mm 25mm;box-sizing:border-box;overflow:hidden;background:#fff;">
139
140<!-- ══════ PÁGINA 1 ══════════════════════════════════════════════════ -->
141
142<!-- Logos: MAPFRE izquierda · Asegurarte derecha -->
143<div style="display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;">
144  <img src="${_}" style="height:32px;display:block;" alt="MAPFRE" onerror="this.style.display='none'">
145  <img src="${Y}" style="height:26px;display:block;" alt="Asegurarte" onerror="this.style.display='none'">
146</div>
147
148<!-- Título -->
149<p style="${k}font-size:10pt;font-weight:bold;text-transform:uppercase;line-height:1.35;margin-bottom:8px;">
150  Propuesta Seguro de Responsabilidad Civil Profesional de Médicos
151</p>
152
153<!-- Póliza / Fecha Recepción / Folio -->
154<table style="margin-bottom:3px;">
155  <tr>
156    <td style="border:2px solid #cc0000;padding:5px 8px;${k}font-size:8.5pt;width:46%;height:26px;vertical-align:middle;">
157      <span style="${E}">Póliza N°</span>
158    </td>
159    <td style="${F}width:27%;">
160      <span style="${E}">Fecha Recepción</span>
161    </td>
162    <td style="${F}">
163      <span style="${E}">Folio Interno N°</span>
164    </td>
165  </tr>
166</table>
167
168<!-- ANTECEDENTES DE LA PROPUESTA -->
169<p style="${S}">Antecedentes de la Propuesta</p>
170<table style="margin-bottom:3px;">
171  <tr>
172    <td style="${F}width:24%;">
173      <span style="${E}">Ramo</span>
174      <span style="${z}">RC Médica Profesional</span>
175    </td>
176    <td style="${F}width:24%;">
177      <span style="${E}">Póliza Grupo N°</span>
178    </td>
179    <td style="${F}width:28%;">
180      <span style="${E}">Vigencia desde las 12:00 hrs.</span>
181      <span style="${z}">${Cm(j)}</span>
182    </td>
183    <td style="${F}">
184      <span style="${E}">Vigencia hasta las 12:00 hrs.</span>
185      <span style="${z}">${Cm(m)}</span>
186    </td>
187  </tr>
188  <tr>
189    <td style="${F}"><span style="${E}">Renovación N°</span></td>
190    <td style="${F}"><span style="${E}">Renueva Póliza N°</span></td>
191    <td style="${F}">
192      <span style="${E}">N° de Riesgos</span>
193      <span style="${z}">1</span>
194    </td>
195    <td style="${F}">
196      <span style="${E}">Moneda</span>
197      <span style="${z}">UF</span>
198    </td>
199  </tr>
200</table>
201
202<!-- ANTECEDENTES DEL PROPONENTE -->
203<p style="${S}">Antecedentes del Proponente</p>
204<table style="margin-bottom:3px;">
205  <tr>
206    <td style="${F}width:26%;">
207      <span style="${E}">RUT</span>
208      <span style="${z}">${c}</span>
209    </td>
210    <td style="${F}" colspan="3">
211      <span style="${E}">Nombre o Razón Social</span>
212      <span style="${z}">${l}</span>
213    </td>
214  </tr>
215  <tr>
216    <td style="${F}">
217      <span style="${E}">Dirección Particular</span>
218      <span style="${z}">${u}</span>
219    </td>
220    <td style="${F}width:22%;">
221      <span style="${E}">Comuna / Ciudad</span>
222      <span style="${z}">${d}</span>
223    </td>
224    <td style="${F}width:22%;">
225      <span style="${E}">E-mail</span>
226      <span style="${z}">${e.email||""}</span>
227    </td>
228    <td style="${F}width:18%;">
229      <span style="${E}">Teléfono / Fax</span>
230      <span style="${z}">${e.telefono||""}</span>
231    </td>
232  </tr>
233  <tr>
234    <td style="${oe}"><span style="${E}">Dirección Comercial</span></td>
235    <td style="${oe}"><span style="${E}">Comuna / Ciudad</span></td>
236    <td style="${oe}"><span style="${E}">E-mail</span></td>
237    <td style="${oe}"><span style="${E}">Teléfono / Fax</span></td>
238  </tr>
239</table>
240
241<!-- ANTECEDENTES DEL ASEGURADO -->
242<p style="${S}">Antecedentes del Asegurado</p>
243<table style="margin-bottom:3px;">
244  <tr>
245    <td style="${F}width:24%;">
246      <span style="${E}">Ídem Proponente</span>
247      <div style="${k}font-size:8pt;margin-top:2px;">${te(o)}&nbsp;Sí&nbsp;&nbsp;&nbsp;&nbsp;${te(!o)}&nbsp;No</div>
248    </td>
249    <td style="${F}width:46%;">
250      <span style="${E}">Nombre o Razón Social</span>
251      <span style="${z}">${a}</span>
252    </td>
253    <td style="${F}">
254      <span style="${E}">RUT</span>
255      <span style="${z}">${i}</span>
256    </td>
257  </tr>
258  <tr>
259    <td style="${F}">
260      <span style="${E}">Dirección Particular</span>
261      <span style="${z}">${u}</span>
262    </td>
263    <td style="${F}">
264      <span style="${E}">Comuna / Ciudad</span>
265      <span style="${z}">${d}</span>
266    </td>
267    <td style="${F}">
268      <span style="${E}">E-mail</span>
269      <span style="${z}">${e.email||""}</span>
270    </td>
271  </tr>
272  <tr>
273    <td style="${oe}"><span style="${E}">Dirección Comercial</span></td>
274    <td style="${oe}"><span style="${E}">Comuna / Ciudad</span></td>
275    <td style="${oe}"><span style="${E}">Teléfono / Fax</span></td>
276  </tr>
277</table>
278
279<!-- ANTECEDENTES DEL CORREDOR -->
280<p style="${S}">Antecedentes del Corredor</p>
281<table style="margin-bottom:3px;">
282  <tr>
283    <td style="${F}width:26%;">
284      <span style="${E}">RUT</span>
285      <span style="${z}">${J4}</span>
286    </td>
287    <td style="${F}">
288      <span style="${E}">Nombre o Razón Social</span>
289      <span style="${z}">${bm}</span>
290    </td>
291  </tr>
292</table>
293
294<!-- UBICACIÓN Y DESCRIPCIÓN DEL RIESGO -->
295<p style="${S}">Ubicación y Descripción del Riesgo</p>
296<table style="margin-bottom:3px;">
297  <tr>
298    <td style="${F}width:37%;">
299      <span style="${E}">Dirección</span>
300      <span style="${z}">${u}</span>
301    </td>
302    <td style="${F}width:15%;">
303      <span style="${E}">Ciudad</span>
304      <span style="${z}">${t.ciudad||""}</span>
305    </td>
306    <td style="${F}width:17%;">
307      <span style="${E}">Comuna</span>
308      <span style="${z}">${t.comuna||""}</span>
309    </td>
310    <td style="${F}">
311      <span style="${E}">Existen otros Seguros sobre lo mismo</span>
312      <div style="${k}font-size:8pt;margin-top:2px;">${te(!1)}&nbsp;Sí&nbsp;&nbsp;&nbsp;${te(!0)}&nbsp;No</div>
313    </td>
314  </tr>
315  <tr>
316    <td style="${F}">
317      <span style="${E}">Especialidad</span>
318      <span style="${z}">${e.especialidad||""}</span>
319    </td>
320    <td style="${F}" colspan="2">
321      <span style="${E}">Fecha Titulación</span>
322      <span style="${z}">${t.anioTitulacion||e.anioTitulacion||""}</span>
323    </td>
324    <td style="${F}">
325      <span style="${E}">Límite Asegurado</span>
326      <span style="${z}">${Dn(f)}</span>
327    </td>
328  </tr>
329</table>
330
331<!-- DETALLES DE VALORES, RECARGOS Y DESCUENTOS -->
332<p style="${S}">Detalles de Valores, Recargos y Descuentos</p>
333<p style="${k}font-size:7pt;color:#888;margin-bottom:3px;letter-spacing:1.5px;">PTA_RCPRMED_001</p>
334<table>
335  <tr style="background:#ebebeb;">
336    <td style="${F}width:13%;font-weight:bold;">Ubicación</td>
337    <td style="${F}width:8%;font-weight:bold;">Ítem</td>
338    <td style="${F}width:35%;font-weight:bold;">Cobertura y Adicionales</td>
339    <td style="${F}width:20%;font-weight:bold;">Monto asegurado</td>
340    <td style="${F}width:12%;font-weight:bold;">Tasa</td>
341    <td style="${F}font-weight:bold;">Prima Neta</td>
342  </tr>
343  <tr>
344    <td style="${F}"></td>
345    <td style="${F}">1</td>
346    <td style="${F}">Daño Emergente — RC Profesional</td>
347    <td style="${F}">${Dn(f)}</td>
348    <td style="${F}"></td>
349    <td style="${F}"></td>
350  </tr>
351  <tr>
352    <td style="${F}"></td>
353    <td style="${F}">2</td>
354    <td style="${F}">Daño Moral <span style="font-size:7pt;color:#666;">(sublímite)</span></td>
355    <td style="${F}">${Dn(h)}</td>
356    <td style="${F}"></td>
357    <td style="${F}"></td>
358  </tr>
359  <tr>
360    <td style="${F}"></td>
361    <td style="${F}">3</td>
362    <td style="${F}">Lucro Cesante <span style="font-size:7pt;color:#666;">(sublímite)</span></td>
363    <td style="${F}">${Dn(h)}</td>
364    <td style="${F}"></td>
365    <td style="${F}"></td>
366  </tr>
367  <tr>
368    <td style="${F}font-weight:bold;" colspan="3" align="right">Totales</td>
369    <td style="${F}font-weight:bold;">${Dn(f)}</td>
370    <td style="${F}"></td>
371    <td style="${F}"></td>
372  </tr>
373</table>
374<table style="margin-top:0;">
375  <tr>
376    <td style="${F}width:33%;"><span style="${E}">Prima Neta Afecta</span><span style="${z}">${Dn(g)}</span></td>
377    <td style="${F}width:33%;"><span style="${E}">Impuesto (IVA)</span><span style="${z}">${Dn(x)}</span></td>
378    <td style="${F}"><span style="${E}">Prima Total</span><span style="${z}">${Dn(b)}</span></td>
379  </tr>
380</table>
381
382
383</div><!-- fin página 1 -->
384
385<!-- ══════ PÁGINA 2 ══════════════════════════════════════════════════ -->
386<div id="page2" style="width:794px;height:1122px;padding:25mm 25mm 14mm 25mm;box-sizing:border-box;overflow:hidden;background:#fff;page-break-before:always;break-before:page;">
387
388  <!-- Logos p2: MAPFRE izquierda · Asegurarte derecha -->
389  <div style="display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;">
390    <img src="${_}" style="height:32px;display:block;" alt="MAPFRE" onerror="this.style.display='none'">
391    <img src="${Y}" style="height:26px;display:block;" alt="Asegurarte" onerror="this.style.display='none'">
392  </div>
393
394  <!-- MODALIDAD — header rojo -->
395  <p style="${k}font-size:9.5pt;font-weight:bold;color:#cc0000;text-transform:uppercase;border-bottom:2px solid #cc0000;padding-bottom:4px;margin-bottom:6px;">
396    Modalidad de Financiamiento / Forma de Pago
397  </p>
398
399  <table style="margin-bottom:0;">
400    <tr>
401      <td style="${F}width:26%;vertical-align:top;">
402        <span style="${E}">Contado</span>
403        <div style="${k}font-size:8pt;margin-top:3px;">${te(O)}</div>
404      </td>
405      <td style="${F}width:47%;vertical-align:top;">
406        <span style="${E}">Vía de Pago</span>
407        <div style="${k}font-size:8pt;margin:3px 0 2px 0;">${te(P)}&nbsp;Pago Directo</div>
408        <div style="${k}font-size:8pt;margin:2px 0;">${te(C)}&nbsp;(PAT) Pago Automático con Tarjeta</div>
409        <div style="${k}font-size:8pt;margin-top:2px;">${te(N)}&nbsp;(PAC) Pago Automático Banco</div>
410      </td>
411      <td style="${F}vertical-align:top;">
412        <span style="${E}">Facturación</span>
413        <div style="${k}font-size:8pt;margin-top:3px;">${te(!1)}&nbsp;Requiere Factura&nbsp;&nbsp;Sí&nbsp;&nbsp;&nbsp;${te(!0)}&nbsp;No</div>
414      </td>
415    </tr>
416    <tr>
417      <td style="${F}"><span style="${E}">Plan de Pago</span></td>
418      <td style="${F}"><span style="${k}font-size:8pt;">En ambos casos debe firmar un mandato</span></td>
419      <td style="${F}"><span style="${E}">Factura: Por Póliza / Por RUT</span></td>
420    </tr>
421    <tr>
422      <td style="${F}">
423        <span style="${E}">N° de Cuotas</span>
424        <span style="${z}font-weight:bold;">${O?"Contado":V||""}</span>
425      </td>
426      <td style="${F}" colspan="2">
427        <span style="${E}">E-mail</span>
428        <span style="${z}">${e.email||""}</span>
429      </td>
430    </tr>
431    <tr>
432      <td style="${F}">
433        <span style="${E}">Días de pago</span>
434        <div style="${k}font-size:8pt;margin-top:3px;">
435          ${te(B==="5")}&nbsp;5&nbsp;&nbsp;
436          ${te(B==="10")}&nbsp;10&nbsp;&nbsp;
437          ${te(B==="15")}&nbsp;15&nbsp;&nbsp;
438          ${te(B==="20")}&nbsp;20&nbsp;&nbsp;
439          ${te(B==="25")}&nbsp;25
440        </div>
441      </td>
442      <td style="${F}" colspan="2"></td>
443    </tr>
444    ${C?`
445    <tr>
446      <td style="${F}" colspan="3">
447        <span style="${E}">Datos PAT — Pago Automático con Tarjeta</span>
448        <table style="width:100%;border-collapse:${r?"separate;border-spacing:0":"collapse"};margin-top:4px;table-layout:fixed;">
449          <tr>
450            <td style="border:none;padding:0 10px 0 0;width:20%;"><span style="${E}">Tipo Tarjeta</span><span style="${z}">${t.tipoTarjeta||""}</span></td>
451            <td style="border:none;padding:0 10px 0 0;width:34%;"><span style="${E}">N° Tarjeta</span><span style="${z}">${t.numeroTarjeta||""}</span></td>
452            <td style="border:none;padding:0 10px 0 0;width:20%;"><span style="${E}">Vencimiento</span><span style="${z}">${t.fechaExpiracion||""}</span></td>
453            <td style="border:none;padding:0;"><span style="${E}">Banco Emisor</span><span style="${z}">${t.bancoPAT||""}</span></td>
454          </tr>
455        </table>
456      </td>
457    </tr>`:""}
458    ${N?`
459    <tr>
460      <td style="${F}" colspan="3">
461        <span style="${E}">Datos PAC — Pago Automático con Cuenta Corriente</span>
462        <table style="width:100%;border-collapse:${r?"separate;border-spacing:0":"collapse"};margin-top:4px;table-layout:fixed;">
463          <tr>
464            <td style="border:none;padding:0 10px 0 0;width:40%;"><span style="${E}">Banco</span><span style="${z}">${t.bancoPAC||""}</span></td>
465            <td style="border:none;padding:0;"><span style="${E}">N° Cuenta</span><span style="${z}">${t.numeroCuenta||""}</span></td>
466          </tr>
467        </table>
468      </td>
469    </tr>`:""}
470  </table>
471
472  <!-- Convenios PAC/PAT -->
473  <div style="border:1px solid #aaa;padding:7px 10px;margin-top:7px;">
474    <p style="${k}font-size:7pt;font-weight:bold;margin-bottom:3px;">
475      Convenios PAC con los siguientes bancos: Chile, Estado, Scotiabank, Bci, Tbanc, Corp Banca, Bice, Edwards Citi, Santander, Itau, Security, BBVA Bhif, Del Desarrollo, Falabella.&nbsp;
476      Convenio PAT: Visa, Mastercard, Dinners, American Express operadas por Transbank y emitidas en territorio nacional.
477    </p>
478    <p style="${w}margin-bottom:3px;">
479      Pagos a través de www.mapfre.cl donde puede operar con las siguientes instituciones: Santander, Chile, Citibank, Bci, Edwards, Desarrollo, BCI, T bank, Security, Bice, Scotiabank, BBVA, Corp Banca, Web Pay Crédito y Web Pay Debido, Cencosud, Ripley y Falabella.
480    </p>
481    <p style="${w}">
482      Pagos a través de recaudación ventanilla en las siguientes instituciones: Chile, Bci, Santander, BBVA, Servipag, Sencillito.
483    </p>
484  </div>
485
486  <!-- Textos legales -->
487  <p style="${w}margin:5px 0;border-bottom:1px solid #ddd;padding-bottom:4px;">
488    De acuerdo al artículo 527 del Código de Comercio, el asegurador gana irrevocablemente la prima desde el momento en que los riesgos comienzan a correr por su cuenta, y tendrá derecho a percibir o retener su totalidad en caso que fuera procedente la indemnización por su siniestro de pérdida total o finalizase la vigencia de acuerdo con el artículo 523.
489  </p>
490  <p style="${w}margin:5px 0;border-bottom:1px solid #ddd;padding-bottom:4px;">
491    MAPFRE Compañía de Seguros Generales de Chile S. A., se encuentra adherida voluntariamente al Código de Autorregulación y al Compendio de Buenas Prácticas de las Compañía de Seguros, cuyo propósito es propender al desarrollo del mercado de los seguros, en concordancia con los principios de libre c
491ompetencia y buena Fe que debe existir entre las empresas, y entre éstas y sus clientes. Copia del Compendio de Buenas Prácticas Corporativas de las Compañías de Seguros se encuentra a disposición de los interesados en cualquiera de las oficinas de MAPFRE Compañía de Seguros Generales de Chile S. A y en www.aach.cl
492  </p>
493  <p style="${w}margin:5px 0;border-bottom:1px solid #ddd;padding-bottom:4px;">
494    Asimismo, MAPFRE ha aceptado la intervención del Defensor del Asegurado para resolver asuntos que sus clientes le presenten, con relación a los contratos celebrados con ella. Los clientes pueden formalizar sus presentaciones ante el Defensor del Asegurado, cuyas resoluciones son vinculantes para la Compañía, utilizando los formularios disponibles en la página web www.ddachile.cl
495  </p>
496  <p style="${w}margin:5px 0;border-bottom:1px solid #ddd;padding-bottom:4px;">
497    Con la emisión de la presente propuesta, no se obtiene cobertura alguna al riesgo que se procura asegurar. La cobertura comienza a regir únicamente a partir del momento en que esta propuesta sea aceptada por el asegurador y se inicie la vigencia de la póliza.
498  </p>
499  <p style="${w}margin:5px 0;border-bottom:1px solid #ddd;padding-bottom:4px;">
500    Declaro expresamente aceptar lo dispuesto en el artículo 553 del Código de Comercio que a continuación transcribo: "Si al momento del siniestro la suma asegurada es inferior al valor del bien, el asegurador indemnizará el daño a prorrata entre la cantidad asegurada y la que no lo esté"
501  </p>
502  <p style="${k}font-size:6.5pt;line-height:1.45;margin:5px 0;color:#cc0000;text-align:justify;">
503    <strong>NOTA IMPORTANTE:</strong> La responsabilidad de la compañía comienza una vez que esta propuesta es aceptada por el departamento técnico.
504  </p>
505
506  <!-- Fecha -->
507  <p style="${k}font-size:9pt;margin:14px 0 18px 0;">
508    En&nbsp;<span style="border-bottom:1px solid #000;display:inline-block;width:120px;">&nbsp;</span>&nbsp;
509    a&nbsp;<span style="border-bottom:1px solid #000;display:inline-block;width:26px;text-align:center;">${p.day}</span>&nbsp;
510    de&nbsp;<span style="border-bottom:1px solid #000;display:inline-block;width:90px;text-align:center;">${p.month}</span>&nbsp;
511    de&nbsp;<span style="border-bottom:1px solid #000;display:inline-block;width:46px;text-align:center;">${p.year}</span>
512  </p>
513
514  <!-- Acepta / Rechaza + Firma del Proponente -->
515  <table style="margin-bottom:22px;">
516    <tr>
517      <td style="border:none;padding:0;width:50%;${k}font-size:8.5pt;vertical-align:bottom;text-align:left;">
518        <div>La Compañía ———————————————— este seguro</div>
519        <div style="margin-top:8px;">
520          ${te(!1)}&nbsp;Acepta&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;${te(!1)}&nbsp;Rechaza
521        </div>
522      </td>
523      <td style="border:none;padding:0 0 0 20px;vertical-align:bottom;text-align:center;">
524        <div style="height:48px;"></div>
525        <div style="border-top:1.5px solid #000;padding-top:5px;${k}font-size:8.5pt;line-height:1.4;">
526          Firma del Proponente<br><strong>${l}</strong>
527        </div>
528      </td>
529    </tr>
530  </table>
531
532  <!-- Firma del Agente / Firma Autorizada -->
533  <table>
534    <tr>
535      <td style="border:none;width:28%;text-align:center;padding:0 10px 0 0;vertical-align:bottom;">
536        <img src="${D}" style="height:42px;display:block;margin:0 auto 4px;" alt="" onerror="this.style.display='none'">
537        <div style="border-top:1.5px solid #000;padding-top:5px;${k}font-size:8.5pt;line-height:1.4;">
538          Firma del Agente<br><strong>${bm}</strong>
539        </div>
540      </td>
541      <td style="border:none;width:44%;"></td>
542      <td style="border:none;width:28%;text-align:center;padding:0 0 0 10px;vertical-align:bottom;">
543        <div style="height:46px;"></div>
544        <div style="border-top:1.5px solid #000;padding-top:5px;${k}font-size:8.5pt;">
545          Firma Autorizada
546        </div>
547      </td>
548    </tr>
549  </table>
550
551</div><!-- fin página 2 -->
552
553</body>
554</html>`}function r5(e,t){const n=n5(e,t),r=document.createElement("iframe");r.setAttribute("aria-hidden","true"),r.style.cssText="position:fixed;top:-10000px;left:-10000px;width:794px;height:1122px;border:0;",document.body.appendChild(r),r.onload=()=>{setTimeout(()=>{try{r.contentWindow.focus(),r.contentWindow.print()}catch{const i=window.open("","_blank");i&&(i.document.write(n),i.document.close())}setTimeout(()=>{r.parentNode&&r.parentNode.removeChild(r)},12e4)},400)},r.srcdoc=n}const Ho="56323140979",vs={nombre:"Felipe Hernandez Campos",rut:"15.828.443-K",telefono:"+56 32 314 0979",email:"[email protected]"},a5="https://calendly.com/asegurarteseguros/video-llamada-rc-medica",Go={medico_cirujano:"Médico Cirujano",cirujano_dentista:"Cirujano De
554ntista",matrona:"Matrona / Matrón",enfermeria:"Enfermera/o",kinesiologo:"Kinesiólogo/a",tecnologo_medico:"Tecnólogo/a Médico",fonoaudiologo:"Fonoaudiólogo/a",nutricionista:"Nutricionista"},sf={clinica_100:"100% Clínica",quirurgica_mixta:"Quirúrgica o Mixta",clinica_quirurgica:"100% Clínica o Quirúrgica",mixta:"Mixta"},Wx={eunacom:"EUNACOM",conacem:"CONACEM",ninguno:"Sin certificación"},i5=["Región de Arica y Parinacota","Región de Tarapacá","Región de Antofagasta","Región de Atacama","Región de Coquimbo","Región de Valparaíso","Región Metropolitana de Santiago","Región del Libertador General Bernardo O'Higgins","Región del Maule","Región del Ñuble","Región del Biobío","Región de La Araucanía","Región de Los Ríos","Región de Los Lagos","Región de Aysén del Gral. Carlos Ibáñez del Campo","Región de Magallanes y de la Antártica Chilena"],s5=[{label:"RC Profesional",esencial:"UF 2.500",full:"UF 5.000",premium:"UF 7.000",gold:"UF 10.000"},{label:"Defensa Penal",esencial:"UF 625",full:"UF 1.250",premium:"UF 1.750",gold:"UF 2.500"},{label:"Lucro Cesante ★",esencial:"UF 625",full:"UF 1.250",premium:"UF 1.750",gold:"UF 2.500"}],jm=[{id:"esencial",label:"Esencial",cobertura:2500},{id:"full",label:"Full",cobertura:5e3},{id:"premium",label:"Premium",cobertura:7e3},{id:"gold",label:"Gold",cobertura:1e4}];function o5(e,t="consulta"){const n=[e.nombres,e.primerApellido,e.segundoApellido].filter(Boolean).join(" "),r=`${e.planAseguradora||""} — Plan ${e.planNombre||""}`,a=t==="contratar"?`Hola, soy ${n} y quiero contratar el seguro RC Médica: ${r}. Por favor procedan con la emisión.`:`Hola, soy ${n} (${Go[e.profesion]||""}) — tengo consultas sobre mi cotización RC Médica ${r}. ¿Me pueden ayudar?`;return`https://wa.me/${Ho}?text=${encodeURIComponent(a)}`}function Hx(e){return e.nacionalidad==="Otra"?e.otraNacionalidad||"Otra":e.nacionalidad||"-"}function l5(e,t){const n=[e.nombres,e.primerApellido,e.segundoApellido].filter(Boolean).join(" "),r=Wx[e.eunacom]||"-",a=["🏥 *SOLICITUD DE EMISIÓN — RC Médica*","","👤 *ASEGURADO*",`Nombre: ${n}`,`RUT: ${e.rut||"-"}`,`Nacionalidad: ${Hx(e)}`,`Género: ${t.genero||"-"}`,`Teléfono: ${e.telefono||"-"}`,`Email: ${e.email||"-"}`,"","🏠 *DIRECCIÓN*",`${t.direccion} ${t.numero}${t.depto?", "+t.depto:""}`,`${t.region}`,`Ciudad: ${t.ciudad}`,`Comuna: ${t.comuna}`,"","🎓 *PERFIL PROFESIONAL*",`Profesión: ${Go[e.profesion]||e.profesion||"-"}`,`Especialidad: ${e.especialidad||"-"}`,`Año titulación: ${t.anioTitulacion||e.anioTitulacion||"-"}`,`Universidad/Entidad: ${t.universidad}`,`Certificación: ${r}`,`Actividad: ${sf[e.actividadPrincipal]||e.actividadPrincipal||"-"}`,"",...t.esIdemContratante==="no"?["","🏢 *CONTRATANTE / PROPONENTE*",`Tipo: ${t.tipoContratante||"-"}`,`Nombre: ${t.contratanteNombre||"-"}`,`RUT: ${t.contratanteRut||"-"}`]:[],"","💼 *PLAN SELECCIONADO*",`Aseguradora: ${e.planAseguradora||"-"}`,`Plan: ${e.planNombre||"-"}`,`Cobertura: UF ${Number(e.planCobertura||0).toLocaleString("es-CL")}`,`Prima anual: UF ${Number(e.planPrimaUF||0).toFixed(2)}`,"","📅 *VIGENCIA*",`Fecha inicio: ${t.fechaInicio||"-"}`,"","💳 *FORMA DE PAGO*",`${t.formaPago||"-"}`,...t.formaPago==="Pago Directo"?[`Día de pago: ${t.diaPagoDirecto||"-"}`,`Cuotas: ${t.cuotasDirecto||"-"}`]:[],...t.formaPago==="PAT"?[`Tipo tarjeta: ${t.tipoTarjeta||"-"}`,`N° tarjeta: ${t.numeroTarjeta||"-"}`,`Vencimiento: ${t.fechaExpiracion||"-"}`,`Banco emisor: ${t.bancoPAT||"-"}`,`Día de pago: ${t.diaPagoPAT||"-"}`,`Cuotas: ${t.cuotasPAT||"-"}`]:[],...t.formaPago==="PAC"?[`Banco: ${t.bancoPAC||"-"}`,`N° cuenta: ${t.numeroCuenta||"-"}`,`Día de pago: ${t.diaPagoPAC||"-"}`,`Cuotas: ${t.cuotasPAC||"-"}`]:[],"","✅ Cliente acepta la declaración y solicita emisión de póliza."].join(`
555`);return`https://wa.me/${Ho}?text=${encodeURIComponent(a)}`}function c5(e){const t=[e.nombres,e.primerApellido].filter(Boolean).join(" "),r=["Quiero emitir mi póliza RC Médica 🏥","",`Aseguradora/Plan: ${`${e.planAseguradora||""} — Plan ${e.planNombre||""}`}`,`Nombre: ${t}`,`RUT: ${e.rut||"-"}`,"","Mis datos de emisión:","📍 Dirección (calle, número, depto): ","📍 Ciudad: ","📍 Comuna: ","📍 Región: ","👤 Género: ","🎓 Universidad que entregó el título: ","📅 Fecha de inicio de vigencia: ","💳 Forma de pago (Tarjeta / Pago Directo / PAT): "].join(`
556`);return`https://wa.me/${Ho}?text=${encodeURIComponent(r)}`}function u5({formData:e,uf:t}){const n=[e.nombres,e.primerApellido,e.segundoApellido].filter(
556Boolean).join(" ").toUpperCase(),r=new Date().toLocaleDateString("es-CL",{day:"2-digit",month:"2-digit",year:"numeric"}),{mapfre:a,rentaNacional:i}=zx(e.especialidad||""),o=Co(Number(e.planPrimaUF||0),t),l={padding:"6px 10px",background:"#f3f0fa",fontWeight:"700",fontSize:"11px",border:"1px solid #ccc",textAlign:"center"},c={padding:"6px 10px",fontSize:"11px",border:"1px solid #ddd",textAlign:"center"},u={padding:"6px 10px",fontSize:"11px",border:"1px solid #ddd",textAlign:"left"},d={fontWeight:"700",fontSize:"12px",textTransform:"uppercase",letterSpacing:"0.5px",borderBottom:"2px solid #5B21B6",color:"#5B21B6",paddingBottom:"4px",marginBottom:"10px",marginTop:"20px"},f={fontSize:"10.5px",color:"#333",lineHeight:"1.55",marginBottom:"8px",textAlign:"justify"},h=!e.planAseguradora||e.planAseguradora==="MAPFRE",g=!e.planAseguradora||e.planAseguradora==="Renta Nacional";return s.jsxs("div",{id:"rcm-print-doc",style:{display:"none",fontFamily:"Arial, sans-serif",color:"#111",padding:"0"},children:[s.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",marginBottom:"20px"},children:[s.jsx("img",{src:"/logo.png",alt:"Asegurarte",style:{height:"36px",objectFit:"contain"}}),s.jsxs("div",{style:{textAlign:"right",fontSize:"11px",color:"#555"},children:[s.jsxs("div",{children:[s.jsx("strong",{children:"Fecha:"})," ",r]}),t&&s.jsxs("div",{style:{marginTop:"2px",color:"#5B21B6",fontWeight:"600"},children:["UF del día: $",t.toLocaleString("es-CL",{minimumFractionDigits:2,maximumFractionDigits:2})]}),s.jsx("div",{style:{marginTop:"2px",color:"#888"},children:"Vigencia cotización: 15 días corridos"})]})]}),s.jsx("div",{style:{textAlign:"center",marginBottom:"20px"},children:s.jsx("div",{style:{fontSize:"14px",color:"#5B21B6",fontWeight:"700",letterSpacing:"0.5px",textTransform:"uppercase"},children:"Simulación de Seguros — RC Profesional Médica"})}),s.jsxs("table",{style:{width:"100%",borderCollapse:"collapse",marginBottom:"14px",border:"1px solid #ccc"},children:[s.jsx("thead",{children:s.jsx("tr",{children:s.jsx("th",{colSpan:4,style:{...l,background:"#5B21B6",color:"#fff",textAlign:"left",fontSize:"12px"},children:"Datos del Asegurado"})})}),s.jsxs("tbody",{children:[s.jsxs("tr",{children:[s.jsx("td",{style:{...u,background:"#faf5ff",fontWeight:"700",width:"15%"},children:"Nombre"}),s.jsx("td",{style:{...u,width:"35%"},children:n||"-"}),s.jsx("td",{style:{...u,background:"#faf5ff",fontWeight:"700",width:"15%"},children:"R.U.T."}),s.jsx("td",{style:{...u},children:e.rut||"-"})]}),s.jsxs("tr",{children:[s.jsx("td",{style:{...u,background:"#faf5ff",fontWeight:"700"},children:"Nacionalidad"}),s.jsx("td",{style:{...u},children:Hx(e)}),s.jsx("td",{style:{...u,background:"#faf5ff",fontWeight:"700"},children:"Teléfono"}),s.jsx("td",{style:{...u},children:e.telefono||"-"})]})]})]}),s.jsxs("table",{style:{width:"100%",borderCollapse:"collapse",marginBottom:"14px",border:"1px solid #ccc"},children:[s.jsx("thead",{children:s.jsx("tr",{children:s.jsx("th",{colSpan:4,style:{...l,background:"#5B21B6",color:"#fff",textAlign:"left",fontSize:"12px"},children:"Descripción Profesional"})})}),s.jsxs("tbody",{children:[s.jsxs("tr",{children:[s.jsx("td",{style:{...u,background:"#faf5ff",fontWeight:"700",width:"20%"},children:"Profesión"}),s.jsx("td",{style:{...u,width:"30%"},children:Go[e.profesion]||"-"}),s.jsx("td",{style:{...u,background:"#faf5ff",fontWeight:"700",width:"20%"},children:"Actividad"}),s.jsx("td",{style:{...u},children:sf[e.actividadPrincipal]||e.actividadPrincipal||"-"})]}),s.jsxs("tr",{children:[s.jsx("td",{style:{...u,background:"#faf5ff",fontWeight:"700"},children:"Especialidad"}),s.jsx("td",{colSpan:3,style:{...u},children:e.especialidad||"-"})]}),s.jsxs("tr",{children:[s.jsx("td",{style:{...u,background:"#faf5ff",fontWeight:"700"},children:"Año titulación"}),s.jsx("td",{style:{...u},children:e.anioTitulacion||"-"}),s.jsx("td",{style:{...u,background:"#faf5ff",fontWeight:"700"},children:"Certificación"}),s.jsx("td",{style:{...u},children:Wx[e.eunacom]||"N/A"})]})]})]}),s.jsxs("table",{style:{width:"100%",borderCollapse:"collapse",marginBottom:"18px",border:"1px solid #ccc"},children:[s.jsx("thead",{children:s.jsx("tr",{children:s.jsx("th",{colSpan:4,style:{...l,background:"#5B21B6",color:"#fff",textAlign:"left",fontSize:"12px"},children:"Datos del Corredor"})})}),s.jsxs("tbody",{children:[s.jsxs("tr",{children:[s.jsx("td",{style:{...u,background:"#faf5ff",fontWeight:"700",width:"20%"},children:"Corredor"}),s.jsx("td",{style:{...u,width:"30%"},children:vs.nombre}),s.jsx("td",{style:{...u,background:"#faf5ff",fontWeight:"700",width:"15%"},children:"R.U.T."}),s.jsx("td",{style:{...u},children:vs.rut})]}),s.jsxs("tr",{children:[s.jsx("td",{style:{...u,background:"#faf5ff",fontWeight:"700"},children:"Teléfono"}),s.jsx("td",{style:{...u},children:vs.telefono}),s.jsx("td",{style:{...u,background:"#faf5ff",fontWeight:"700"},children:"E-mail"}),s.jsx("td",{style:{...u},children:vs.email})]})]})]}),s.jsx("div",{style:d,children:"Cuadro de Ofertas"}),s.jsxs("table",{style:{width:"100%",borderCollapse:"collapse",marginBottom:"6px"},children:[s.jsx("thead",{children:s.jsxs("tr",{children:[s.jsx("th",{style:l,children:"Compañía"}),s.jsx("th",{style:l,children:"Producto"}),jm.map(x=>s.jsxs("th",{style:l,children:["Plan ",x.label,s.jsx("br",{}),s.jsxs("span",{style:{fontWeight:"400",fontSize:"10px"}
556,children:["UF ",x.cobertura.toLocaleString("es-CL")]})]},x.id))]})}),s.jsx("tbody",{children:[{aseg:"MAPFRE",planes:a},{aseg:"Renta Nacional",planes:i}].map(({aseg:x,planes:b})=>s.jsxs("tr",{children:[s.jsx("td",{style:c,children:x}),s.jsx("td",{style:c,children:"RC Médica"}),jm.map(j=>{const m=b.find(y=>y.id===j.id),p=e.planAseguradora===x&&e.planNombre===j.label;return s.jsx("td",{style:{...c,background:p?"#f3f0fa":"white",fontWeight:p?"700":"400"},children:m?`${m.prima_uf.toFixed(2)} UF`:"—"},j.id)})]},x))})]}),s.jsx("p",{style:{fontSize:"10px",color:"#555",marginBottom:"4px"},children:"* Primas anuales en UF (incluyen IVA referencial)."}),e.planNombre&&s.jsxs("p",{style:{fontSize:"11px",color:"#5B21B6",marginBottom:"4px",fontWeight:"700"},children:["★ Plan seleccionado: ",e.planAseguradora," — ",e.planNombre," · Cobertura UF ",Number(e.planCobertura||0).toLocaleString("es-CL")," · Prima UF ",Number(e.planPrimaUF||0).toFixed(2)," / año",o?` (≈ $${o} CLP)`:""]}),s.jsx("div",{style:{...d,marginTop:"14px"},children:"Detalle de Coberturas"}),s.jsxs("table",{style:{width:"100%",borderCollapse:"collapse",marginBottom:"6px"},children:[s.jsx("thead",{children:s.jsxs("tr",{children:[s.jsx("th",{style:{...l,textAlign:"left",width:"40%"},children:"Cobertura"}),s.jsx("th",{style:l,children:"Esencial"}),s.jsx("th",{style:l,children:"Full"}),s.jsx("th",{style:l,children:"Premium"}),s.jsx("th",{style:l,children:"Gold"})]})}),s.jsx("tbody",{children:s5.map((x,b)=>s.jsxs("tr",{style:{background:b%2===0?"#fff":"#faf5ff"},children:[s.jsx("td",{style:{...u,fontWeight:b<2?"600":"400"},children:x.label}),s.jsx("td",{style:c,children:x.esencial}),s.jsx("td",{style:c,children:x.full}),s.jsx("td",{style:c,children:x.premium}),s.jsx("td",{style:c,children:x.gold})]},b))})]}),s.jsx("p",{style:{fontSize:"10px",color:"#555",marginBottom:"6px"},children:"Sin deducible en todos los planes. ★ Lucro Cesante y Defensa Penal son sublímites incluidos en el monto asegurado de RC Profesional, no son coberturas adicionales. Lucro Cesante aplica solo para MAPFRE."}),h&&a.length>0&&s.jsxs("div",{style:{pageBreakBefore:"always",paddingTop:"20px"},children:[s.jsx("div",{style:{textAlign:"center",marginBottom:"16px"},children:s.jsx("div",{style:{fontSize:"13px",color:"#5B21B6",fontWeight:"700",textTransform:"uppercase",letterSpacing:"0.5px"},children:"Condiciones de la Póliza — MAPFRE (POL 120130180)"})}),s.jsx("div",{style:d,children:"Condiciones Generales"}),s.jsx("p",{style:f,children:"Rigen condiciones generales de la Póliza de Seguro de Responsabilidad Civil Profesional POL 120130180."}),s.jsx("div",{style:d,children:"Condiciones Particulares"}),s.jsx("p",{style:{...f,fontWeight:"700",marginBottom:"4px"},children:"Responsabilidad Civil Profesional Médica"}),s.jsx("p",{style:f,children:"Se cubre la Responsabilidad Civil extracontractual del asegurado, en caso de error, negligencia o equivocación en la prestación de los servicios propios de la profesión, siempre y cuando tal error, negligencia o equivocación, se traduzca en daños corporales o patrimoniales que se produzcan durante la vigencia de la póliza y que afecten a terceras personas atendidas profesionalmente por el asegurado. La Compañía pagará la indemnización al tercero perjudicado, en virtud de sentencia ejecutoriada, o de transacción judicial o extrajudicial celebrada por el asegurado con su consentimiento."}),s.jsx("p",{style:{...f,fontWeight:"700",marginBottom:"4px"},children:"Gastos de Defensa Penal"}),s.jsx("p",{style:f,children:"Se cubren los gastos de defensa judicial del asegurado por reclamaciones penales, hasta un sublímite del 25% del monto asegurado para toda la vigencia, siempre y cuando ésta sea asumida por abogados nombrados por la Compañía o por el asegurado con el consentimiento y aprobación de la Compañía. El sublímite está incluido en el monto asegurado y no es adicional."}),s.jsx("p",{style:{...f,fontWeight:"700",marginBottom:"4px"},children:"Lucro Cesante"}),s.jsx("p",{style:f,children:"Se cubre el Lucro Cesante como consecuencia de un daño corporal y/o material cubierto por la póliza, cuya responsabilidad deberá ser declarada por sentencia judicial ejecutoriada, hasta un sublímite del 25% del monto asegurado para toda la vigencia. El sublímite está incluido en el monto asegurado y no es adicional."}),s.jsx("div",{style:d,children:"Requisitos de Asegurabilidad"}),s.jsx("p",{style:f,children:"Las condiciones cotizadas están dadas según la información entregada; en caso de cualquier cambio en ellas, la Compañía se reserva el derecho de modificar o anular dichas condiciones. Esta cotización es válida sólo si no existen seguros del ramo vigentes en otras compañías."})]}),g&&i.length>0&&s.jsxs("div",{style:{pageBreakBefore:h&&a.length>0?"always":"auto",paddingTop:"20px"},children:[s.jsx("div",{style:{textAlign:"center",marginBottom:"16
556px"},children:s.jsx("div",{style:{fontSize:"13px",color:"#5B21B6",fontWeight:"700",textTransform:"uppercase",letterSpacing:"0.5px"},children:"Condiciones de la Póliza — Renta Nacional (POL 120130181)"})}),s.jsx("div",{style:d,children:"Materia Asegurada"}),s.jsx("p",{style:f,children:"Cubrir la responsabilidad civil profesional médica que pueda afectar al asegurado derivada de su actividad profesional por daños corporales y/o materiales causados a sus clientes o a terceros por actos u omisiones en el ejercicio de su profesión. El seguro de responsabilidad civil médica está dirigido a médicos y/o profesionales de la salud ante errores, negligencias o equivocaciones en la prestación de los servicios, siempre y cuando tal error, negligencia o equivocación produzca daños corporales o patrimoniales a terceros quienes recibieron el servicio proporcionado por el asegurado. Se indemnizará al asegurado por el daño que pueda experimentar su patrimonio a consecuencia de la responsabilidad en que haya incurrido y que se deba a una mala praxis, por la cual haya sido condenado como civilmente responsable por un tribunal competente mediante sentencia ejecutoriada o transacción aceptada por la compañía."}),s.jsx("div",{style:d,children:"Descripción de Coberturas"}),s.jsx("p",{style:f,children:"El presente seguro ampara la Responsabilidad Civil del asegurado por daños derivados con ocasión de la prestación de sus servicios durante la vigencia de la póliza, siempre y cuando el asegurado cuente con título profesional competente y se encuentre legalmente autorizado para el ejercicio de la medicina. La cobertura conferida comprende adicionalmente:"}),s.jsx("ol",{style:{paddingLeft:"18px",margin:"0 0 10px 0"},children:["La responsabilidad civil profesional imputable al asegurado como consecuencia de las acciones u omisiones cometidas por el personal médico, paramédico, farmacéutico, de laboratorio, de enfermería en el ejercicio de su actividad profesional al servicio y bajo la supervisión del asegurado.","La responsabilidad civil profesional del asegurado durante la sustitución provisional que del asegurado haga otro médico de la misma especialidad y que haya seguido las indicaciones y recomendaciones hechas por el asegurado.","La responsabilidad civil profesional por materiales médicos, quirúrgicos, dentales, drogas o medicamentos que hayan sido preparados por el asegurado o bajo su supervisión directa, que sean necesarios para el tratamiento y que los elementos que los componen estén debidamente registrados ante la autoridad competente.","La responsabilidad civil derivada de la posesión o del uso de aparatos médicos con fines de diagnóstico o terapia, siempre y cuando estén reconocidos por la ciencia médica, y sean de su propiedad."].map((x,b)=>s.jsx("li",{style:{...f,marginBottom:"6px"},children:x},b))}),s.jsx("div",{style:d,children:"Gastos de Defensa Judicial"}),s.jsx("p",{style:f,children:"Del monto asegurado, indicado en la presente póliza, hasta un 25% de éste, se podrá destinar a gastos de defensa judicial, porcentaje que se deducirá del monto asegurado ante una eventual indemnización."}),s.jsx("div",{style:d,children:"Condiciones de Asegurabilidad"}),s.jsx("p",{style:f,children:"El profesional chileno o extranjero debe contar con un título competente y certificado por la Superintendencia de Salud, Corporación Nacional Autónoma de Certificación de Especialidades Médicas (CONACEM), Universidades o cualquier otra institución que acredite legalmente al profesional para ejercer su profesión en Chile y que acredite el uso de medicamentos e instrumentos médicos."}),s.jsx("p",{style:f,children:"Cubre el ejercicio profesional en territorio y legislación nacional de la República de Chile. El profesional debe tener como máximo 70% de actividades en servicios de urgencia."}),s.jsx("p",{style:f,children:"Se deja constancia que el profesional ha aceptado, a través del corredor, la declaración desplegada en la cotización, teniendo en cuenta que ésta formará parte integrante de la póliza y que se debe cumplir con cada uno de los requisitos para que el seguro se haga efectivo en caso de siniestro."})]}),s.jsxs("div",{style:{pageBreakBefore:"auto",paddingTop:"10px"},children:[s.jsx("div",{style:d,children:"Exclusiones"}),s.jsx("p",{style:f,children:"No obstante cualquier disposición en contrario contenida en las condiciones generales o particulares de la póliza, se establece que queda expresamente excluido de este seguro lo siguiente:"}),s.jsx("ol",{style:{paddingLeft:"18px",margin:"0 0 10px 0"},children:["No se ampara la responsabilidad civil profesional propia del paramédico, farmacéutico, de laboratorio, de enfermería en el ejercicio de su actividad profesional.","No se ampara la responsabilidad civil profesional propia del médico sustituyente.","No queda amparada la responsabilidad civil por el producto mismo o cuando estos hayan sido elaborados por terceros.","Daños causados por servicios que no corresponden a las atenciones profesionales, generalmente prestadas por personas legalmente habilitadas para ejercer la profesión médica y acorde con las autorizaciones o licencias otorgadas por la autoridad competente.","Reclamaciones por daños causados por el ejercicio de la profesión médica con fines diferentes al diagnóstico o a la terapia.","Daños corporales o patrimoniales causados o experimentados por el propio asegurado, o por personas que dependen de él, o que tengan con él una relación de parentesco, tales como el cónyuge, ascendientes o descendientes, así como toda persona que viva bajo el mismo techo con el asegurado o por los socios, encargados y depen
556dientes del Asegurado.","Daños o perjuicios causados por la prescripción de productos farmacéuticos no aprobados en Chile por el organismo oficial correspondiente.","Reclamaciones con relación a una cirugía plástica/estética, salvo que se trate de intervenciones de cirugía reconstructiva posterior a un accidente o cirugía correctiva de enfermedades congénitas. Quedan excluidas expresamente las reclamaciones relacionadas con el resultado estético de la intervención.","Daños o perjuicios que se hayan producido en una fecha anterior a la de entrada en vigor de la presente póliza, o posterior a la fecha de vencimiento de la misma.","Reclamaciones relacionadas con tratamientos destinados a impedir o provocar un embarazo, fertilización in-vitro, incluyendo operaciones para producir la esterilidad, o abortos, así como los perjuicios financieros o económicos consecuencia de estos servicios. Sin embargo, quedan amparados los daños a consecuencia de una intervención necesaria y patológicamente indicada.","Reclamaciones por daños relacionados directa o indirectamente con los virus del tipo HIV (SIDA) o Hepatitis C. Muerte, lesiones corporales o daños derivados de acciones, omisiones o errores que tengan su origen en la extracción, transfusión o conservación de sangre o de plasma sanguíneo.","Reclamaciones por daños genéticos o las relacionadas con manipulaciones genéticas.","Reclamaciones por daños causados por el suministro de anestesia general, si ésta no fuera aplicada por un especialista competente.","Reclamaciones por daños causados por la prestación de un servicio profesional bajo los efectos de sustancias estupefacientes, alcohólicas o narcóticas.","Los daños y perjuicios causados intencionalmente por el Asegurado, o en violación de cualquier Ley, Decreto u Ordenanza, causados a sabiendas por el asegurado o sus dependientes.","Los perjuicios que deriven de obligaciones contractuales no constitutivas de ilícito civil.","Los siniestros ocurridos durante guerra, guerra civil, revolución, motín, huelga, tumulto popular, poder insurrecto o usurpado.","Los daños y perjuicios que deriven del uso de cualquier vehículo motorizado, incluyendo ambulancias.","Reclamaciones por daños relacionados directa o indirectamente con materiales nucleares o sustancias/bienes peligrosos incluyendo equipos LASER de cualquier índole, a menos que el asegurado compruebe que los equipos o el material usado cumplieron las normas técnicas y científicas aplicables, y han sido utilizados y mantenidos de acuerdo con las directrices de los fabricantes/productores.","Cualquier daño a consecuencia de un incendio o de una explosión.","Reclamaciones presentadas por personas vinculadas laboralmente con el asegurado contra otra persona empleada o contra el asegurado mismo.","Reclamaciones relacionadas con obligaciones asumidas por el asegurado mediante cualquier contrato, compromiso o acuerdo, que exceden su responsabilidad legal en cuanto a la utilización de los conocimientos y cuidados generalmente aplicables en el ejercicio de la profesión médica asegurada. Sin embargo, esta exclusión no será aplicable en aquellos casos donde habría sido legalmente responsable el asegurado aún sin el contrato expreso.","Reclamaciones por la violación de secretos profesionales, por la emisión de dictámenes periciales no directamente vinculados con el tratamiento médico de un paciente o por perjuicios de carácter netamente económico-financiero sin que medie un daño material o daño personal.","Reclamaciones orientadas al reembolso de honorarios profesionales.","Daño moral que no provenga de un daño corporal o patrimonial.","Excluye cualquier tipo de daño o pérdida por efectos de Pandemias o similares."].map((x,b)=>s.jsx("li",{style:{...f,marginBottom:"5px"},children:x},b))})]}),s.jsxs("div",{style:{borderTop:"2px solid #e5e7eb",paddingTop:"10px",fontSize:"10px",color:"#888",display:"flex",justifyContent:"space-between"},children:[s.jsx("span",{children:"Asegurarte Corredora de Seguros · asegurarte.cl"}),s.jsxs("span",{children:["Documento generado el ",r]})]})]})}function gu({children:e}){return R.useEffect(()=>{window.scrollTo(0,0),document.documentElement.scrollTop=0,document.body.scrollTop=0},[]),s.jsx("div",{style:{background:"#fff",borderRadius:"16px",boxShadow:"0 25px 50px -12px rgba(0,0,0,0.25)",width:"100%",overflow:"hidden"},children:e})}function d5({onAceptar:e,onCancelar:t}){const[n,r]=R.useState(!1);return s.jsx(gu,{onClose:t,children:s.jsxs("div",{className:"p-6",children:[s.jsx("h2",{className:"text-lg font-bold text-gray-800 mb
556-4 text-center",children:"Declaración al Asegurado"}),s.jsxs("div",{className:"bg-gray-50 rounded-xl p-4 text-sm text-gray-600 leading-relaxed mb-5",children:[s.jsx("p",{children:"Declaro que la información proporcionada en este formulario es veraz y fidedigna, y que cuento con los títulos y certificaciones habilitantes para ejercer mi profesión en Chile, conforme a la normativa vigente."}),s.jsx("p",{className:"mt-3",children:"Entiendo que la compañía aseguradora se reserva el derecho de analizar la información declarada ante un eventual siniestro, lo que podría ser condicionante para la cobertura del mismo."})]}),s.jsxs("label",{className:"flex items-start gap-3 cursor-pointer mb-6",children:[s.jsx("input",{type:"checkbox",checked:n,onChange:a=>r(a.target.checked),className:"mt-0.5 w-4 h-4 accent-brand-lila"}),s.jsx("span",{className:"text-sm text-gray-700",children:"Acepto la declaración anterior y solicito proceder con la emisión de mi póliza."})]}),s.jsxs("div",{className:"flex gap-3",children:[s.jsx("button",{onClick:t,className:"flex-1 btn-secondary justify-center",children:"Cancelar"}),s.jsx("button",{onClick:e,disabled:!n,className:"flex-1 btn-primary justify-center disabled:opacity-40 disabled:cursor-not-allowed",children:"Aceptar y continuar →"})]})]})})}const f5=[{value:"Contado",label:"Contado (pago único anual)"},{value:"Pago Directo",label:"Pago Directo (cuotas mensuales)"},{value:"PAT",label:"PAT — Pago Automático con Tarjeta"},{value:"PAC",label:"PAC — Pago Automático con Cuenta"}],wm=["Banco de Chile / Edwards / Citi","Banco Santander","BancoEstado","Banco BCI","Banco Itaú","Banco Falabella","Banco Ripley","Scotiabank","Banco BICE","Banco Security","Banco Internacional","Banco Consorcio","HSBC Bank Chile"],p5=["VISA","Mastercard","American Express","Redcompra"],Bl=["5","10","15","20","25"],Ul=Array.from({length:10},(e,t)=>String(t+1)),Sm=s.jsx("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"currentColor",children:s.jsx("path",{d:"M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z"})});function h5(){const e=Math.floor(Math.random()*9)+1,t=Math.floor(Math.random()*9)+1;return{a:e,b:t,ans:String(e+t)}}function m5({formData:e,onCancelar:t}){const n=new Date().toISOString().split("T")[0],[r,a]=R.useState({direccion:"",numero:"",depto:"",region:"",ciudad:"",comuna:"",genero:"",universidad:"",anioTitulacion:e.anioTitulacion||"",fechaInicio:n,formaPago:"",esIdemContratante:"si",tipoContratante:"",contratanteNombre:"",contratanteRut:"",diaPagoDirecto:"",cuotasDirecto:"",tipoTarjeta:"",numeroTarjeta:"",fechaExpiracion:"",bancoPAT:"",diaPagoPAT:"",cuotasPAT:"",bancoPAC:"",numeroCuenta:"",diaPagoPAC:"",cuotasPAC:""}),[i,o]=R.useState({}),[l,c]=R.useState(!1),[u,d]=R.useState(!1),[f,h]=R.useState(""),[g]=R.useState(h5),[x,b]=R.useState(""),[j,m]=R.useState(""),p=(_,Y)=>a(D=>({...D,[_]:Y})),y=r.formaPago==="PAT",C=r.formaPago==="PAC",N=r.formaPago==="Pago Directo",P=()=>{const _=["direccion","numero","region","ciudad","comuna","genero","universidad","anioTitulacion","fechaInicio","formaPago"],Y=r.esIdemContratante==="no"?["contratanteNombre","contratanteRut","tipoContratante"]:[],D=N?["diaPagoDirecto","cuotasDirecto"]:[],te=y?["tipoTarjeta","numeroTarjeta","fechaExpiracion","bancoPAT","diaPagoPAT","cuotasPAT"]:[],k=C?["bancoPAC","numeroCuenta","diaPagoPAC","cuotasPAC"]:[],F={};
556return[..._,...Y,...D,...te,...k].forEach(oe=>{r[oe]||(F[oe]="Requerido")}),o(F),x.trim()!==g.ans?(m("Respuesta incorrecta"),!1):(m(""),Object.keys(F).length===0)},O=async()=>{if(P()){d(!0);try{await fetch("/.netlify/functions/send-quote",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({tipoFormulario:"rcmedica-emision",formData:e,emision:r})})}catch{}h(l5(e,r)),d(!1),c(!0)}},V=()=>{r5(e,r)},B=_=>`w-full px-3 py-2 border rounded-xl text-sm focus:outline-none focus:ring-2 transition-all
557    ${i[_]?"border-red-300 focus:ring-red-200":"border-gray-200 focus:ring-brand-lila/30 focus:border-brand-lila/60"}`,M=({children:_,req:Y})=>s.jsxs("p",{className:"text-[11px] font-bold tracking-widest text-gray-500 uppercase mb-1",children:[_,Y&&s.jsx("span",{className:"text-red-400 ml-0.5",children:"*"})]});return l?s.jsx(gu,{onClose:t,children:s.jsxs("div",{className:"p-6 text-center",children:[s.jsx("div",{className:"text-4xl mb-3",children:"✅"}),s.jsx("h2",{className:"text-lg font-bold text-gray-800 mb-2",children:"¡Información enviada!"}),s.jsxs("p",{className:"text-sm text-gray-500 mb-5 leading-relaxed",children:["Recibimos tus datos, los cuales serán revisados durante las siguientes horas por nuestra área de suscripción."," ","En caso de haber elegido ",s.jsx("strong",{children:"MAPFRE"}),", te enviaremos un enlace para suscribir el pago (débito o crédito) y la póliza se generará automáticamente."]}),s.jsxs("a",{href:f,target:"_blank",rel:"noreferrer",className:"flex items-center justify-center gap-3 w-full bg-[#25D366] hover:bg-[#1db954] text-white font-bold text-base px-5 py-4 rounded-2xl transition-colors shadow-md mb-3",children:[Sm,"Abrir WhatsApp para emitir"]}),e.planAseguradora==="MAPFRE"&&s.jsx("button",{onClick:V,className:"flex items-center justify-center gap-2 w-full bg-[#c00] hover:bg-[#a00] text-white font-bold text-sm px-5 py-3 rounded-2xl transition-colors shadow-md mb-3",children:"📄 Ver / Imprimir Propuesta MAPFRE"}),s.jsx("button",{onClick:t,className:"w-full btn-secondary justify-center",children:"Cerrar"})]})}):s.jsx(gu,{onClose:t,children:s.jsxs("div",{className:"p-6",children:[s.jsx("h2",{className:"text-lg font-bold text-gray-800 mb-1",children:"Datos para emisión de póliza"}),s.jsx("p",{className:"text-xs text-gray-400 mb-5",children:"El corredor evaluará la información y te enviará los medios de pago a la brevedad."}),s.jsxs("div",{className:"flex flex-col gap-4",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-xs font-bold text-brand-lila uppercase tracking-widest mb-2",children:"📍 Dirección"}),s.jsxs("div",{className:"grid grid-cols-2 gap-2 mb-2",children:[s.jsxs("div",{children:[s.jsx(M,{req:!0,children:"Calle / Av."}),s.jsx("input",{className:B("direccion"),value:r.direccion,onChange:_=>p("direccion",_.target.value),placeholder:"Av. Las Flores"}),i.direccion&&s.jsx("p",{className:"text-red-500 text-xs mt-0.5",children:i.direccion})]}),s.jsxs("div",{children:[s.jsx(M,{req:!0,children:"Número"}),s.jsx("input",{className:B("numero"),value:r.numero,onChange:_=>p("numero",_.target.value),placeholder:"123"}),i.numero&&s.jsx("p",{className:"text-red-500 text-xs mt-0.5",children:i.numero})]})]}),s.jsxs("div",{className:"mb-2",children:[s.jsx(M,{children:"Dpto / Casa / Oficina"}),s.jsx("input",{className:B("depto"),value:r.depto,onChange:_=>p("depto",_.target.value),placeholder:"Dpto 4B (opcional)"})]}),s.jsxs("div",{className:"mb-2",children:[s.jsx(M,{req:!0,children:"Región"}),s.jsxs("select",{className:B("region"),value:r.region,onChange:_=>p("region",_.target.value),children:[s.jsx("option",{value:"",children:"Seleccione..."}),i5.map(_=>s.jsx("option",{value:_,children:_},_))]}),i.region&&s.jsx("p",{className:"text-red-500 text-xs mt-0.5",children:i.region})]}),s.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[s.jsxs("div",{children:[s.jsx(M,{req:!0,children:"Ciudad"}),s.jsx("input",{className:B("ciudad"),value:r.ciudad,onChange:_=>p("ciudad",_.target.value),placeholder:"Viña del Mar"}),i.ciudad&&s.jsx("p",{className:"text-red-500 text-xs mt-0.5",children:i.ciudad})]}),s.jsxs("div",{children:[s.jsx(M,{req:!0,children:"Comuna"}),s.jsx("input",{className:B("comuna"),value:r.comuna,onChange:_=>p("comuna",_.target.value),placeholder:"Viña del Mar"}),i.comuna&&s.jsx("p",{className:"text-red-500 text-xs mt-0.5",children:i.comuna})]})]})]}),s.jsxs("div",{children:[s.jsx(M,{req:!0,children:"Género"}),s.jsxs("select",{className:B("genero"),value:r.genero,onChange:_=>p("genero",_.target.value),children:[s.jsx("option",{value:"",children:"Seleccione..."}),s.jsx("option",{value:"Femenino",children:"Femenino"}),s.jsx("option",{value:"Masculino",children:"Masculino"}),s.jsx("option",{value:"Otro",children:"Prefiero no indicar"})]}),i.genero&&s.jsx("p",{className:"text-red-500 text-xs mt-0.5",children:i.genero})]}),s.jsxs("div",{children:[s.jsx("p",{className:"text-xs font-bold text-brand-lila uppercase tracking-widest mb-2",children:"🎓 Datos Profesionales"}),s.jsxs("div",{className:"mb-2",children:[s.jsx(M,{req:!0,children:"Entidad que entregó el título (Universidad)"}),s.jsx("input",{className:B("universidad"),value:r.universidad,onChange:_=>p("universidad",_.target.value),placeholder:"Universidad de Chile"}),i.universidad&&s.jsx("p",{className:"text-red-500 text-xs mt-0.5",children:i.universidad})]}),s.jsxs("div",{children:[s.jsx(M,{req:!0,children:"Año de Titulación"}),s.jsxs("select",{className:B("anioTitulacion"),value:r.anioTitulacion,onChange:_=>p("anioTitulacion",_.target.value),children:[s.jsx("option",{value:"",children:"Seleccione..."}),Ux.map(_=>s.jsx("option",{value:_,children:_},_))]}),i.anioTitulacion&&s.jsx("p",{className:"text-red-500 text-xs mt-0.5",children:i.anioTitulacion})]})]}),s.jsxs("div",{children:[s.jsx("p",{className:"text-xs font-bold text-brand-lila uppercase tracking-widest mb-2",children:"👤 Contratante de la Póliza"}),s.jsxs("div",{className:"bg-blue-50 border border-blue-100 rounded-xl p-3 mb-3 text-xs text-blue-700 leading-relaxed",children:[s.jsx("strong",{children:"Asegurado vs. Contratante:"})," El ",s.jsx("strong",{children:"asegurado"})," es siempre el médico. El ",s.jsx("strong",{children:"contratante"})," (proponente) es quien firma y paga la póliza — puede ser el mismo médico, una sociedad médica o clínica, o un familiar."]}),s.jsx(M,{req:!0,children:"¿El contratante es el mismo asegurado (el médico)?"}),s.jsx("div",{className:"flex gap-3 mt-1 mb-2",children:[{v:"si",l:"Sí, soy yo"},{v:"no",l:"No, es otra persona o entidad"}].map(({v:_,l:Y})=>s.jsxs("label",{className:`flex items-center gap-2 px-3 py-2 rounded-xl border cursor-pointer text-sm transition-all
558                  ${r.esIdemContratante===_?"border-brand-lila bg-brand-lila/5 text-brand-lila font-semibold":"border-gray-200 text-gray-700"}`,children:[s.jsx("input",{type:"radio",value:_,checked:r.esIdemContratante===_,onChange:()=>p("esIdemContratante",_),className:"accent-brand-lila"}),Y]},_))}),r.esIdemContratante==="no"&&s.jsxs("div",{className:"bg-gray-50 rounded-xl p-3 flex flex-col gap-2",children:[s.jsxs("div",{children:[s.jsx(M,{req:!0,children:"Tipo de contratante"}),s.jsx("div",{className:"flex flex-wrap gap-2 mt-1",children:["Razón Social / Sociedad","Familiar","Otro"].map(_=>s.jsxs("label",{className:`flex items-center gap-1.5 px-3 py-1.5 rounded-xl border cursor-pointer text-sm transition-all
559                        ${r.tipoContratante===_?"border-brand-lila bg-brand-lila/5 text-brand-lila font-semibold":"border-gray-200 text-gray-700"}`,children:[s.jsx("input",{type:"radio",value:_,checked:r.tipoContratante===_,onChange:()=>p("tipoContratante",_),className:"accent-brand-lila"}),_]},_))}),i.tipoContratante&&s.jsx("p",{className:"text-red-500 text-xs mt-0.5",children:i.tipoContratante})]}),s.jsxs("div",{children:[s.jsx(M,{req:!0,children:r.tipoContratante==="Razón Social / Sociedad"?"Nombre / Razón Social":"Nombre del c
559ontratante"}),s.jsx("input",{className:B("contratanteNombre"),value:r.contratanteNombre,onChange:_=>p("contratanteNombre",_.target.value),placeholder:r.tipoContratante==="Razón Social / Sociedad"?"Clínica Las Flores SpA":"Nombre completo"}),i.contratanteNombre&&s.jsx("p",{className:"text-red-500 text-xs mt-0.5",children:i.contratanteNombre})]}),s.jsxs("div",{children:[s.jsx(M,{req:!0,children:"RUT del contratante"}),s.jsx("input",{className:B("contratanteRut"),value:r.contratanteRut,onChange:_=>p("contratanteRut",_.target.value),placeholder:r.tipoContratante==="Razón Social / Sociedad"?"76.123.456-7":"12.345.678-9"}),i.contratanteRut&&s.jsx("p",{className:"text-red-500 text-xs mt-0.5",children:i.contratanteRut})]})]})]}),s.jsxs("div",{children:[s.jsx("p",{className:"text-xs font-bold text-brand-lila uppercase tracking-widest mb-2",children:"📅 Vigencia y Pago"}),s.jsxs("div",{className:"mb-3",children:[s.jsx(M,{req:!0,children:"Fecha de inicio de vigencia"}),s.jsx("input",{type:"date",className:B("fechaInicio"),value:r.fechaInicio,onChange:_=>p("fechaInicio",_.target.value)}),i.fechaInicio&&s.jsx("p",{className:"text-red-500 text-xs mt-0.5",children:i.fechaInicio})]}),s.jsxs("div",{children:[s.jsx(M,{req:!0,children:"Forma de pago"}),s.jsx("div",{className:"flex flex-col gap-2",children:f5.map(_=>s.jsxs("label",{className:`flex items-center gap-2 p-2.5 rounded-xl border cursor-pointer transition-all text-sm
560                    ${r.formaPago===_.value?"border-brand-lila bg-brand-lila/5 text-brand-lila font-semibold":"border-gray-200 text-gray-700"}`,children:[s.jsx("input",{type:"radio",value:_.value,checked:r.formaPago===_.value,onChange:()=>p("formaPago",_.value),className:"accent-brand-lila"}),_.label]},_.value))}),i.formaPago&&s.jsx("p",{className:"text-red-500 text-xs mt-1",children:i.formaPago})]}),N&&s.jsxs("div",{className:"mt-3 bg-gray-50 rounded-xl p-3 flex flex-col gap-2",children:[s.jsx("p",{className:"text-xs font-bold text-brand-lila uppercase tracking-widest mb-1",children:"📋 Detalles Pago Directo"}),s.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[s.jsxs("div",{children:[s.jsx(M,{req:!0,children:"Día de pago"}),s.jsxs("select",{className:B("diaPagoDirecto"),value:r.diaPagoDirecto,onChange:_=>p("diaPagoDirecto",_.target.value),children:[s.jsx("option",{value:"",children:"Seleccione..."}),Bl.map(_=>s.jsx("option",{value:_,children:_},_))]}),i.diaPagoDirecto&&s.jsx("p",{className:"text-red-500 text-xs mt-0.5",children:i.diaPagoDirecto})]}),s.jsxs("div",{children:[s.jsx(M,{req:!0,children:"Cuotas"}),s.jsxs("select",{className:B("cuotasDirecto"),value:r.cuotasDirecto,onChange:_=>p("cuotasDirecto",_.target.value),children:[s.jsx("option",{value:"",children:"Seleccione..."}),Ul.map(_=>s.jsx("option",{value:_,children:_},_))]}),i.cuotasDirecto&&s.jsx("p",{className:"text-red-500 text-xs mt-0.5",children:i.cuotasDirecto})]})]})]}),y&&s.jsxs("div",{className:"mt-3 bg-gray-50 rounded-xl p-3 flex flex-col gap-2",children:[s.jsx("p",{className:"text-xs font-bold text-brand-lila uppercase tracking-widest mb-1",children:"💳 Datos PAT"}),s.jsxs("div",{children:[s.jsx(M,{req:!0,children:"Tipo de tarjeta"}),s.jsxs("select",{className:B("tipoTarjeta"),value:r.tipoTarjeta,onChange:_=>p("tipoTarjeta",_.target.value),children:[s.jsx("option",{value:"",children:"Seleccione..."}),p5.map(_=>s.jsx("option",{value:_,children:_},_))]}),i.tipoTarjeta&&s.jsx("p",{className:"text-red-500 text-xs mt-0.5",children:i.tipoTarjeta})]}),s.jsxs("div",{children:[s.jsx(M,{req:!0,children:"Número de tarjeta"}),s.jsx("input",{className:B("numeroTarjeta"),value:r.numeroTarjeta,onChange:_=>p("numeroTarjeta",_.target.value),placeholder:"4444 5555 6666 7777",maxLength:19}),i.numeroTarjeta&&s.jsx("p",{className:"text-red-500 text-xs mt-0.5",children:i.numeroTarjeta})]}),s.jsxs("div",{children:[s.jsx(M,{req:!0,children:"Fecha de expiración"}),s.jsx("input",{className:B("fechaExpiracion"),value:r.fechaExpiracion,onChange:_=>p("fechaExpiracion",_.target.value),placeholder:"MM/AAAA",maxLength:7}),i.fechaExpiracion&&s.jsx("p",{className:"text-red-500 text-xs mt-0.5",children:i.fechaExpiracion})]}),s.jsxs("div",{children:[s.jsx(M,{req:!0,children:"Banco emisor"}),s.jsxs("select",{className:B("bancoPAT"),value:r.bancoPAT,onChange:_=>p("bancoPAT",_.target.value),children:[s.jsx("option",{value:"",children:"Seleccione..."}),wm.map(_=>s.jsx("option",{value:_,children:_},_))]}),i.bancoPAT&&s.jsx("p",{className:"text-red-500 text-xs mt-0.5",children:i.bancoPAT})]}),s.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[s.jsxs("div",{children:[s.jsx(M,{req:!0,children:"Día de pago"}),s.jsxs("select",{className:B("diaPagoPAT"),value:r.diaPagoPAT,onChange:_=>p("diaPagoPAT",_.target.value),children:[s.jsx("option",{value:"",children:"Seleccione..."}),Bl.map(_=>s.jsx("option",{value:_,children:_},_))]}),i.diaPagoPAT&&s.jsx("p",{className:"text-red-500 text-xs mt-0.5",children:i.diaPagoPAT})]}),s.jsxs("div",{children:[s.jsx(M,{req:!0,children:"Cuotas"}),s.jsxs("select",{className:B("cuotasPAT"),value:r.cuotasPAT,onChange:_=>p("cuotasPAT",_.target.value),children:[s.jsx("option",{value:"",children:"Seleccione..."}),Ul.map(_=>s.jsx("option",{value:_,children:_},_))]}),i.cuotasPAT&&s.jsx("p",{className:"text-red-500 text-xs mt-0.5",children:i.cuotasPAT})]})]})]}),C&&s.jsxs("div",{className:"mt-3 bg-gray-50 rounded-xl p-3 flex flex-col gap-2",children:[s.jsx("p",{className:"text-xs font-bold text-brand-lila uppercase tracking-widest mb-1",children:"🏦 Datos PAC"}),s.jsxs("div",{children:[s.jsx(M,{req:!0,children:"Banco"}),s.jsxs("select",{className:B("bancoPAC"),value:r.bancoPAC,onChange:_=>p("bancoPAC",_.target.value),children:[s.jsx("option",{value:"",children:"Seleccione..."}),wm.map(_=>s.jsx("option",{value:_,children:_},_))]}),i.bancoPAC&&s.jsx("p",{className:"text-red-500 text-xs mt-0.5",children:i.bancoPAC})]}),s.jsxs("div",{children:[s.jsx(M,{req:!0,children:"Número de cuenta"}),s.jsx("input",{className:B("numeroCuenta"),value:r.numeroCuenta,onChange:_=>p("numeroCuenta",_.target.value),placeholder:"4444 5555 6666 7777"}),i.numeroCuenta&&s.jsx("p",{className:"text-red-500 text-xs mt-0.5",children:i.numeroCuenta})]}),s.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[s.jsxs("div",{children:[s.jsx(M,{req:!0,children:"Día de pago"}),s.jsxs("select",{className:B("diaPagoPAC"),value:r.diaPagoPAC,onChange:_=>p("diaPagoPAC",_.target.value),children:[s.jsx("option",{value:"",children:"Seleccione..."}),Bl.map(_=>s.jsx("option",{value:_,children:_},_))]}),i.diaPagoPAC&&s.jsx("p",{className:"text-red-500 text-xs mt-0.5",children:i.diaPagoPAC})]}),s.jsxs("div",{children:[s.jsx(M,{req:!0,children:"Cuotas"}),s.jsxs("select",{className:B("cuotasPAC"),value:r.cuotasPAC,onChange:_=>p("cuotasPAC",_.target.value),children:[s.jsx("option",{value:"",children:"Seleccione..."}),Ul.map(_=>s.jsx("option",{value:_,children:_},_))]}),i.cuotasPAC&&s.jsx("p",{className:"text-red-500 text-xs mt-0.5",children:i.cuotasPAC})]})]})]})]})]}),s.jsxs("div",{className:"mt-5 bg-gray-50 border border-gray-200 rounded-xl px-4 py-3",children:[s.jsx("p",{className:"text-xs font-bold text-gray-500 uppercase tracking-widest mb-2",children:"🤖 Verificación rápida"}),s.jsxs("p",{className:"text-sm text-gray-700 mb-2",children:["¿Cuánto es ",s.jsxs("strong",{children:[g.a," + ",g.b]}),"?"]}),s.jsx("input",{type:"number",value:x,onChange:_=>{b(_.target.value),m("")},placeholder:"Tu respuesta",className:`w-full px-3 py-2 border rounded-xl text-sm focus:outline-none focus:ring-2 transition-all
561              ${j?"border-red-300 focus:ring-red-200":"border-gray-200 focus:ring-brand-lila/30 focus:border-brand-lila/60"}`}),j&&s.jsx("p",{className:"text-red-500 text-xs mt-1",children:j})]}),s.jsxs("a",{href:c5(e),target:"_blank",rel:"noreferrer",className:"mt-4 flex items-center justify-center gap-3 w-full bg-[#25D366] hover:bg-[#1db954] text-white font-bold text-base px-5 py-4 rounded-2xl transition-colors shadow-md",children:[Sm,"¿Dudas? Escríbenos por WhatsApp"]}),s.jsxs("div",{className:"flex gap-3 mt-3 border-t border-gray-100 pt-4",children:[s.jsx("button",{onClick:t,className:"flex-1 btn-secondary justify-center",children:"Cancelar"}),s.jsx("button",{onClick:O,disabled:u,className:"flex-1 btn-primary justify-center disabled:opacity-60",children:u?"Enviando…":"Enviar para emisión →"})]})]})})}function g5({formData:e,onClose:t}
561){const n=[e.nombres,e.primerApellido].filter(Boolean).join(" "),[r,a]=R.useState(null),i=qx(),o=Co(Number(e.planPrimaUF||0),i);return R.useEffect(()=>{const l=(c,u)=>Ea({...u,origin:{y:.6},particleCount:Math.floor(200*c),colors:["#7B3FE4","#a78bfa","#ffffff","#c4b5fd","#661ecf"]});setTimeout(()=>{l(.25,{spread:26,startVelocity:55}),l(.2,{spread:60}),l(.35,{spread:100,decay:.91,scalar:.8}),l(.1,{spread:120,startVelocity:25,decay:.92,scalar:1.2})},200)},[]),r==="declaracion"?s.jsx(d5,{onAceptar:()=>a("emision"),onCancelar:()=>a(null)}):r==="emision"?s.jsx(m5,{formData:e,onCancelar:()=>a(null)}):s.jsxs(s.Fragment,{children:[s.jsxs(ee.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{duration:.4,type:"spring"},className:"flex flex-col items-center text-center py-4 print:hidden",children:[s.jsx(ee.div,{initial:{scale:0},animate:{scale:1,boxShadow:["0 0 0 0px rgba(123,63,228,0.3)","0 0 0 16px rgba(123,63,228,0)"]},transition:{scale:{delay:.2,type:"spring",stiffness:200},boxShadow:{delay:.6,duration:1.8,repeat:1/0,ease:"easeOut"}},className:"w-24 h-24 rounded-full bg-brand-lila/10 border-2 border-brand-lila/25 flex items-center justify-center mb-5",children:s.jsxs("svg",{width:"44",height:"44",viewBox:"0 0 24 24",fill:"none",stroke:"#7B3FE4",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14"}),s.jsx("polyline",{points:"22 4 12 14.01 9 11.01"})]})}),s.jsx(ee.h2,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.3},className:"text-2xl font-bold text-gray-800 mb-2",children:"¡Cotización enviada!"}),s.jsxs(ee.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.4},className:"text-gray-500 text-sm mb-5 max-w-sm space-y-1",children:[s.jsxs("p",{children:["Hola ",s.jsx("strong",{className:"text-gray-700",children:n}),","]}),s.jsx("p",{children:"recibimos tu solicitud de cotización RC Médica."}
561),s.jsx("p",{className:"mt-1",children:"Un ejecutivo te contactará en breve con la cotización formal."})]}),e.planNombre&&s.jsxs(ee.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.45},className:"w-full max-w-sm bg-brand-lila/5 border border-brand-lila/25 rounded-xl px-4 py-3 mb-5 text-left",children:[s.jsx("p",{className:"text-brand-lila font-bold text-xs uppercase tracking-widest mb-2",children:"Plan seleccionado"}),s.jsx("table",{className:"w-full text-sm",children:s.jsx("tbody",{children:[["Aseguradora",e.planAseguradora],["Plan",e.planNombre],["Cobertura",`UF ${Number(e.planCobertura||0).toLocaleString("es-CL")}`],["Prima anual",`UF ${Number(e.planPrimaUF||0).toFixed(2)}${o?` ≈ $${o} CLP`:""}`],["Especialidad",e.especialidad||Go[e.profesion]],["Actividad",sf[e.actividadPrincipal]||e.actividadPrincipal]].map(([l,c])=>s.jsxs("tr",{children:[s.jsx("td",{className:"text-gray-500 py-0.5 w-1/2",children:l}),s.jsx("td",{className:"font-semibold text-gray-800 text-xs",children:c||"-"})]},l))})})]}),s.jsxs(ee.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.5},className:"flex flex-wrap gap-2 justify-center",children:[s.jsx("button",{type:"button",onClick:()=>a("declaracion"),className:"flex items-center gap-2 bg-brand-lila hover:bg-brand-lila-dark text-white text-sm font-bold px-4 py-2.5 rounded-xl transition-colors shadow-sm",children:"✅ Quiero contratar ahora"}),s.jsx("a",{href:`https://wa.me/${Ho}?text=${encodeURIComponent(`Hola, soy ${n} y quisiera agendar una llamada para consultar sobre mi cotización RC Médica.`)}`,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 bg-white border border-brand-lila/30 hover:bg-brand-lila/5 text-brand-lila text-sm font-bold px-4 py-2.5 rounded-xl transition-colors",children:"📞 Agendar llamada"}),s.jsx("a",{href:a5,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 bg-white border border-brand-lila/30 hover:bg-brand-lila/5 text-brand-lila text-sm font-bold px-4 py-2.5 rounded-xl transition-colors",children:"📹 Agendar videollamada"}),s.jsxs("a",{href:o5(e,"consulta"),target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 bg-[#25D366] hover:bg-[#1db954] text-white text-sm font-bold px-4 py-2.5 rounded-xl transition-colors shadow-sm",children:[s.jsx("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"currentColor",children:s.jsx("path",{d:"M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z"})}),"WhatsApp"]}),s.jsx("button",{onClick:()=>{if(/iPhone|iPad|iPod/.test(navigator.userAgent)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1){const c=document.getElementById("rcm-print-doc");if(c){const d=`<!DOCTYPE html><html><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><base href="${`${window.location.protocol}//${window.location.host}/`}"><title>Cotización RC Médica — Asegurarte</title><style>body{margin:16px;font-family:Arial,sans-serif;}table{border-collapse:collapse;width:100%;}img{max-width:100%;}</style></head><body>${c.innerHTML}</body></html>`,f=window.open("","_blank");if(f){f.document.write(d),f.document.close();return}}}window.print()},className:"flex items-center gap-1.5 bg-gray-100 hover:bg-gray-200 text-gray-600 text-sm font-semibold px-4 py-2.5 rounded-xl transition-colors",children:"🖨️ Imprimir / PDF"}),s.jsx("button",{onClick:t,className:"flex items-center bg-gray-800 hover:bg-gray-700 text-white text-sm font-bold px-4 py-2.5 rounded-xl transition-colors",children:"Cerrar"})]})]}),s.jsx(u5,{formData:e,uf:i})]})}const Nm=[{id:1,label:"Datos Personales",short:"Datos"},{id:2,label:"Perfil Médico",short:"Perfil"},{id:3,label:"Antecedentes",short:"Historial"}],ql=3;function Pm(){Ea({particleCount:45,spread:60,origin:{x:.5,y:.3},colors:["#0EA5E9","#38BDF8","#ffffff","#7C3AED","#BAE6FD"],scalar:.85,gravity:1.2,ticks:120,disableForReducedMotion:!0}
561)}function y5({onClose:e}){const[t,n]=R.useState(1),[r,a]=R.useState({}),[i,o]=R.useState({}),[l,c]=R.useState(!1),[u,d]=R.useState(!1),[f,h]=R.useState(!1),g=t/ql*100;R.useEffect(()=>{const p=()=>{const C=document.documentElement.scrollHeight;window.parent.postMessage({type:"iframeResize",height:C},"*")},y=new ResizeObserver(p);return y.observe(document.body),p(),()=>y.disconnect()},[]);const x=()=>{window.scrollTo({top:0,behavior:"smooth"}),setTimeout(()=>window.parent.postMessage({type:"scrollToTop"},"*"),50)},b=p=>{const y={...r,...p};a(y),o(C=>({...C,[t]:p})),Pm(),t<ql?n(C=>C+1):c(!0),x()},j=()=>{l?c(!1):n(p=>p-1),x()},m=async p=>{const y={...r,...p,tipoFormulario:"rcmedica"};a(y),d(!0);try{await fetch("/.netlify/functions/send-quote",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(y)})}catch{}finally{d(!1),h(!0),Pm(),x()}};return s.jsx("div",{className:"w-full",children:s.jsx("div",{className:"w-full",children:s.jsxs("div",{className:"bg-white overflow-hidden",children:[s.jsxs("div",{className:"px-6 pt-6 pb-5 relative",style:{background:"#661ecf"},children:[s.jsxs("div",{className:"flex flex-col items-center gap-2",children:[s.jsx("h1",{className:"text-white font-bold text-base tracking-wide",children:"Responsabilidad Civil Médica"}),s.jsx("p",{className:"text-white/60 text-xs",children:"Cotización online"})]}),!f&&!l&&s.jsxs("div",{className:"mt-4",children:[s.jsx(lr,{current:t,steps:Nm}),s.jsx("div",{className:"mt-3 h-1.5 bg-white/20 rounded-full overflow-hidden",children:s.jsx("div",{className:"h-full bg-white rounded-full transition-all duration-700 ease-out",style:{width:`${g}%`}})})]}),(f||l)&&s.jsx("div",{className:"mt-4",children:s.jsx(lr,{current:ql+1,steps:Nm})})]}),s.jsx("div",{className:"px-6 py-6",children:s.jsx(he,{mode:"wait",children:f?s.jsx(g5,{formData:r,onClose:e},"success"):l?s.jsx(Y4,{formData:r,onSubmit:m,onPrev:j,isSubmitting:u},"cotizacion"):t===1?s.jsx(B4,{defaultValues:i[1],onNext:b},"step1"):t===2?s.jsx(H4,{defaultValues:i[2],formData:r,onNext:b,onPrev:j},"step2"):t===3?s.jsx(Z4,{defaultValues:i[3],formData:r,onNext:b,onPrev:j},"step3"):null})}),s.jsx("div",{className:"px-6 py-3 border-t border-gray-100 bg-gray-50",children:s.jsx("p",{className:"text-center text-gray-400 text-xs",children:"Tus datos están protegidos y son tratados con confidencialidad."})})]})})})}function x5(){const t=new URLSearchParams(window.location.search).get("tipo"),n=()=>{window.parent.postMessage({type:"closePopup"},"*"),setTimeout(()=>{window.parent===window&&window.location.reload()},300)};return t==="comercial"?s.jsx(y4,{onClose:n}):t==="pesado"?s.jsx(F4,{onClose:n}):t==="rcmedica"?s.jsx(y5,{onClose:n}):s.jsx(o4,{onClose:n})}Wl.createRoot(document.getElementById("root")).render(s.jsx(ue.StrictMode,{children:s.jsx(x5,{})}));

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