@getcredify/credify-insurance-widget 1.16.1 → 1.17.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/iframe/assets/iframe-fjayzn6o.js +123 -0
- package/dist/iframe/assets/iframe-fjayzn6o.js.map +1 -0
- package/dist/iframe/iframe.html +1 -1
- package/dist/index.es.js +2139 -2055
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +13 -13
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/dist/iframe/assets/iframe-DPfgzPd6.js +0 -123
- package/dist/iframe/assets/iframe-DPfgzPd6.js.map +0 -1
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))o(c);new MutationObserver(c=>{for(const f of c)if(f.type==="childList")for(const m of f.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&o(m)}).observe(document,{childList:!0,subtree:!0});function l(c){const f={};return c.integrity&&(f.integrity=c.integrity),c.referrerPolicy&&(f.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?f.credentials="include":c.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function o(c){if(c.ep)return;c.ep=!0;const f=l(c);fetch(c.href,f)}})();var Hs={exports:{}},wi={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and 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 __;function Uy(){if(__)return wi;__=1;var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function l(o,c,f){var m=null;if(f!==void 0&&(m=""+f),c.key!==void 0&&(m=""+c.key),"key"in c){f={};for(var _ in c)_!=="key"&&(f[_]=c[_])}else f=c;return c=f.ref,{$$typeof:n,type:o,key:m,ref:c!==void 0?c:null,props:f}}return wi.Fragment=r,wi.jsx=l,wi.jsxs=l,wi}var h_;function jy(){return h_||(h_=1,Hs.exports=Uy()),Hs.exports}var g=jy(),Is={exports:{}},Te={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react.production.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and 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 p_;function Hy(){if(p_)return Te;p_=1;var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),m=Symbol.for("react.context"),_=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),A=Symbol.for("react.lazy"),D=Symbol.iterator;function k(b){return b===null||typeof b!="object"?null:(b=D&&b[D]||b["@@iterator"],typeof b=="function"?b:null)}var j={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},G=Object.assign,U={};function ue(b,L,O){this.props=b,this.context=L,this.refs=U,this.updater=O||j}ue.prototype.isReactComponent={},ue.prototype.setState=function(b,L){if(typeof b!="object"&&typeof b!="function"&&b!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,b,L,"setState")},ue.prototype.forceUpdate=function(b){this.updater.enqueueForceUpdate(this,b,"forceUpdate")};function oe(){}oe.prototype=ue.prototype;function _e(b,L,O){this.props=b,this.context=L,this.refs=U,this.updater=O||j}var ee=_e.prototype=new oe;ee.constructor=_e,G(ee,ue.prototype),ee.isPureReactComponent=!0;var re=Array.isArray,W={H:null,A:null,T:null,S:null,V:null},le=Object.prototype.hasOwnProperty;function ne(b,L,O,T,S,H){return O=H.ref,{$$typeof:n,type:b,key:L,ref:O!==void 0?O:null,props:H}}function Ae(b,L){return ne(b.type,L,void 0,void 0,void 0,b.props)}function te(b){return typeof b=="object"&&b!==null&&b.$$typeof===n}function xe(b){var L={"=":"=0",":":"=2"};return"$"+b.replace(/[=:]/g,function(O){return L[O]})}var ve=/\/+/g;function Le(b,L){return typeof b=="object"&&b!==null&&b.key!=null?xe(""+b.key):L.toString(36)}function Ke(){}function We(b){switch(b.status){case"fulfilled":return b.value;case"rejected":throw b.reason;default:switch(typeof b.status=="string"?b.then(Ke,Ke):(b.status="pending",b.then(function(L){b.status==="pending"&&(b.status="fulfilled",b.value=L)},function(L){b.status==="pending"&&(b.status="rejected",b.reason=L)})),b.status){case"fulfilled":return b.value;case"rejected":throw b.reason}}throw b}function fe(b,L,O,T,S){var H=typeof b;(H==="undefined"||H==="boolean")&&(b=null);var w=!1;if(b===null)w=!0;else switch(H){case"bigint":case"string":case"number":w=!0;break;case"object":switch(b.$$typeof){case n:case r:w=!0;break;case A:return w=b._init,fe(w(b._payload),L,O,T,S)}}if(w)return S=S(b),w=T===""?"."+Le(b,0):T,re(S)?(O="",w!=null&&(O=w.replace(ve,"$&/")+"/"),fe(S,L,O,"",function(ie){return ie})):S!=null&&(te(S)&&(S=Ae(S,O+(S.key==null||b&&b.key===S.key?"":(""+S.key).replace(ve,"$&/")+"/")+w)),L.push(S)),1;w=0;var V=T===""?".":T+":";if(re(b))for(var K=0;K<b.length;K++)T=b[K],H=V+Le(T,K),w+=fe(T,L,O,H,S);else if(K=k(b),typeof K=="function")for(b=K.call(b),K=0;!(T=b.next()).done;)T=T.value,H=V+Le(T,K++),w+=fe(T,L,O,H,S);else if(H==="object"){if(typeof b.then=="function")return fe(We(b),L,O,T,S);throw L=String(b),Error("Objects are not valid as a React child (found: "+(L==="[object Object]"?"object with keys {"+Object.keys(b).join(", ")+"}":L)+"). If you meant to render a collection of children, use an array instead.")}return w}function v(b,L,O){if(b==null)return b;var T=[],S=0;return fe(b,T,"","",function(H){return L.call(O,H,S++)}),T}function R(b){if(b._status===-1){var L=b._result;L=L(),L.then(function(O){(b._status===0||b._status===-1)&&(b._status=1,b._result=O)},function(O){(b._status===0||b._status===-1)&&(b._status=2,b._result=O)}),b._status===-1&&(b._status=0,b._result=L)}if(b._status===1)return b._result.default;throw b._result}var Y=typeof reportError=="function"?reportError:function(b){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var L=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof b=="object"&&b!==null&&typeof b.message=="string"?String(b.message):String(b),error:b});if(!window.dispatchEvent(L))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",b);return}console.error(b)};function P(){}return Te.Children={map:v,forEach:function(b,L,O){v(b,function(){L.apply(this,arguments)},O)},count:function(b){var L=0;return v(b,function(){L++}),L},toArray:function(b){return v(b,function(L){return L})||[]},only:function(b){if(!te(b))throw Error("React.Children.only expected to receive a single React element child.");return b}},Te.Component=ue,Te.Fragment=l,Te.Profiler=c,Te.PureComponent=_e,Te.StrictMode=o,Te.Suspense=p,Te.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=W,Te.__COMPILER_RUNTIME={__proto__:null,c:function(b){return W.H.useMemoCache(b)}},Te.cache=function(b){return function(){return b.apply(null,arguments)}},Te.cloneElement=function(b,L,O){if(b==null)throw Error("The argument must be a React element, but you passed "+b+".");var T=G({},b.props),S=b.key,H=void 0;if(L!=null)for(w in L.ref!==void 0&&(H=void 0),L.key!==void 0&&(S=""+L.key),L)!le.call(L,w)||w==="key"||w==="__self"||w==="__source"||w==="ref"&&L.ref===void 0||(T[w]=L[w]);var w=arguments.length-2;if(w===1)T.children=O;else if(1<w){for(var V=Array(w),K=0;K<w;K++)V[K]=arguments[K+2];T.children=V}return ne(b.type,S,void 0,void 0,H,T)},Te.createContext=function(b){return b={$$typeof:m,_currentValue:b,_currentValue2:b,_threadCount:0,Provider:null,Consumer:null},b.Provider=b,b.Consumer={$$typeof:f,_context:b},b},Te.createElement=function(b,L,O){var T,S={},H=null;if(L!=null)for(T in L.key!==void 0&&(H=""+L.key),L)le.call(L,T)&&T!=="key"&&T!=="__self"&&T!=="__source"&&(S[T]=L[T]);var w=arguments.length-2;if(w===1)S.children=O;else if(1<w){for(var V=Array(w),K=0;K<w;K++)V[K]=arguments[K+2];S.children=V}if(b&&b.defaultProps)for(T in w=b.defaultProps,w)S[T]===void 0&&(S[T]=w[T]);return ne(b,H,void 0,void 0,null,S)},Te.createRef=function(){return{current:null}},Te.forwardRef=function(b){return{$$typeof:_,render:b}},Te.isValidElement=te,Te.lazy=function(b){return{$$typeof:A,_payload:{_status:-1,_result:b},_init:R}},Te.memo=function(b,L){return{$$typeof:y,type:b,compare:L===void 0?null:L}},Te.startTransition=function(b){var L=W.T,O={};W.T=O;try{var T=b(),S=W.S;S!==null&&S(O,T),typeof T=="object"&&T!==null&&typeof T.then=="function"&&T.then(P,Y)}catch(H){Y(H)}finally{W.T=L}},Te.unstable_useCacheRefresh=function(){return W.H.useCacheRefresh()},Te.use=function(b){return W.H.use(b)},Te.useActionState=function(b,L,O){return W.H.useActionState(b,L,O)},Te.useCallback=function(b,L){return W.H.useCallback(b,L)},Te.useContext=function(b){return W.H.useContext(b)},Te.useDebugValue=function(){},Te.useDeferredValue=function(b,L){return W.H.useDeferredValue(b,L)},Te.useEffect=function(b,L,O){var T=W.H;if(typeof O=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return T.useEffect(b,L)},Te.useId=function(){return W.H.useId()},Te.useImperativeHandle=function(b,L,O){return W.H.useImperativeHandle(b,L,O)},Te.useInsertionEffect=function(b,L){return W.H.useInsertionEffect(b,L)},Te.useLayoutEffect=function(b,L){return W.H.useLayoutEffect(b,L)},Te.useMemo=function(b,L){return W.H.useMemo(b,L)},Te.useOptimistic=function(b,L){return W.H.useOptimistic(b,L)},Te.useReducer=function(b,L,O){return W.H.useReducer(b,L,O)},Te.useRef=function(b){return W.H.useRef(b)},Te.useState=function(b){return W.H.useState(b)},Te.useSyncExternalStore=function(b,L,O){return W.H.useSyncExternalStore(b,L,O)},Te.useTransition=function(){return W.H.useTransition()},Te.version="19.1.1",Te}var y_;function pc(){return y_||(y_=1,Is.exports=Hy()),Is.exports}var I=pc(),$s={exports:{}},Li={},Gs={exports:{}},Zs={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Meta Platforms, Inc. and 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
|
+
*/var g_;function Iy(){return g_||(g_=1,(function(n){function r(v,R){var Y=v.length;v.push(R);e:for(;0<Y;){var P=Y-1>>>1,b=v[P];if(0<c(b,R))v[P]=R,v[Y]=b,Y=P;else break e}}function l(v){return v.length===0?null:v[0]}function o(v){if(v.length===0)return null;var R=v[0],Y=v.pop();if(Y!==R){v[0]=Y;e:for(var P=0,b=v.length,L=b>>>1;P<L;){var O=2*(P+1)-1,T=v[O],S=O+1,H=v[S];if(0>c(T,Y))S<b&&0>c(H,T)?(v[P]=H,v[S]=Y,P=S):(v[P]=T,v[O]=Y,P=O);else if(S<b&&0>c(H,Y))v[P]=H,v[S]=Y,P=S;else break e}}return R}function c(v,R){var Y=v.sortIndex-R.sortIndex;return Y!==0?Y:v.id-R.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;n.unstable_now=function(){return f.now()}}else{var m=Date,_=m.now();n.unstable_now=function(){return m.now()-_}}var p=[],y=[],A=1,D=null,k=3,j=!1,G=!1,U=!1,ue=!1,oe=typeof setTimeout=="function"?setTimeout:null,_e=typeof clearTimeout=="function"?clearTimeout:null,ee=typeof setImmediate<"u"?setImmediate:null;function re(v){for(var R=l(y);R!==null;){if(R.callback===null)o(y);else if(R.startTime<=v)o(y),R.sortIndex=R.expirationTime,r(p,R);else break;R=l(y)}}function W(v){if(U=!1,re(v),!G)if(l(p)!==null)G=!0,le||(le=!0,Le());else{var R=l(y);R!==null&&fe(W,R.startTime-v)}}var le=!1,ne=-1,Ae=5,te=-1;function xe(){return ue?!0:!(n.unstable_now()-te<Ae)}function ve(){if(ue=!1,le){var v=n.unstable_now();te=v;var R=!0;try{e:{G=!1,U&&(U=!1,_e(ne),ne=-1),j=!0;var Y=k;try{t:{for(re(v),D=l(p);D!==null&&!(D.expirationTime>v&&xe());){var P=D.callback;if(typeof P=="function"){D.callback=null,k=D.priorityLevel;var b=P(D.expirationTime<=v);if(v=n.unstable_now(),typeof b=="function"){D.callback=b,re(v),R=!0;break t}D===l(p)&&o(p),re(v)}else o(p);D=l(p)}if(D!==null)R=!0;else{var L=l(y);L!==null&&fe(W,L.startTime-v),R=!1}}break e}finally{D=null,k=Y,j=!1}R=void 0}}finally{R?Le():le=!1}}}var Le;if(typeof ee=="function")Le=function(){ee(ve)};else if(typeof MessageChannel<"u"){var Ke=new MessageChannel,We=Ke.port2;Ke.port1.onmessage=ve,Le=function(){We.postMessage(null)}}else Le=function(){oe(ve,0)};function fe(v,R){ne=oe(function(){v(n.unstable_now())},R)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(v){v.callback=null},n.unstable_forceFrameRate=function(v){0>v||125<v?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Ae=0<v?Math.floor(1e3/v):5},n.unstable_getCurrentPriorityLevel=function(){return k},n.unstable_next=function(v){switch(k){case 1:case 2:case 3:var R=3;break;default:R=k}var Y=k;k=R;try{return v()}finally{k=Y}},n.unstable_requestPaint=function(){ue=!0},n.unstable_runWithPriority=function(v,R){switch(v){case 1:case 2:case 3:case 4:case 5:break;default:v=3}var Y=k;k=v;try{return R()}finally{k=Y}},n.unstable_scheduleCallback=function(v,R,Y){var P=n.unstable_now();switch(typeof Y=="object"&&Y!==null?(Y=Y.delay,Y=typeof Y=="number"&&0<Y?P+Y:P):Y=P,v){case 1:var b=-1;break;case 2:b=250;break;case 5:b=1073741823;break;case 4:b=1e4;break;default:b=5e3}return b=Y+b,v={id:A++,callback:R,priorityLevel:v,startTime:Y,expirationTime:b,sortIndex:-1},Y>P?(v.sortIndex=Y,r(y,v),l(p)===null&&v===l(y)&&(U?(_e(ne),ne=-1):U=!0,fe(W,Y-P))):(v.sortIndex=b,r(p,v),G||j||(G=!0,le||(le=!0,Le()))),v},n.unstable_shouldYield=xe,n.unstable_wrapCallback=function(v){var R=k;return function(){var Y=k;k=R;try{return v.apply(this,arguments)}finally{k=Y}}}})(Zs)),Zs}var v_;function $y(){return v_||(v_=1,Gs.exports=Iy()),Gs.exports}var Fs={exports:{}},Rt={};/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Meta Platforms, Inc. and 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 b_;function Gy(){if(b_)return Rt;b_=1;var n=pc();function r(p){var y="https://react.dev/errors/"+p;if(1<arguments.length){y+="?args[]="+encodeURIComponent(arguments[1]);for(var A=2;A<arguments.length;A++)y+="&args[]="+encodeURIComponent(arguments[A])}return"Minified React error #"+p+"; visit "+y+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(){}var o={d:{f:l,r:function(){throw Error(r(522))},D:l,C:l,L:l,m:l,X:l,S:l,M:l},p:0,findDOMNode:null},c=Symbol.for("react.portal");function f(p,y,A){var D=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:D==null?null:""+D,children:p,containerInfo:y,implementation:A}}var m=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function _(p,y){if(p==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}return Rt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,Rt.createPortal=function(p,y){var A=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11)throw Error(r(299));return f(p,y,null,A)},Rt.flushSync=function(p){var y=m.T,A=o.p;try{if(m.T=null,o.p=2,p)return p()}finally{m.T=y,o.p=A,o.d.f()}},Rt.preconnect=function(p,y){typeof p=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,o.d.C(p,y))},Rt.prefetchDNS=function(p){typeof p=="string"&&o.d.D(p)},Rt.preinit=function(p,y){if(typeof p=="string"&&y&&typeof y.as=="string"){var A=y.as,D=_(A,y.crossOrigin),k=typeof y.integrity=="string"?y.integrity:void 0,j=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;A==="style"?o.d.S(p,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:D,integrity:k,fetchPriority:j}):A==="script"&&o.d.X(p,{crossOrigin:D,integrity:k,fetchPriority:j,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},Rt.preinitModule=function(p,y){if(typeof p=="string")if(typeof y=="object"&&y!==null){if(y.as==null||y.as==="script"){var A=_(y.as,y.crossOrigin);o.d.M(p,{crossOrigin:A,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0})}}else y==null&&o.d.M(p)},Rt.preload=function(p,y){if(typeof p=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){var A=y.as,D=_(A,y.crossOrigin);o.d.L(p,A,{crossOrigin:D,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0,type:typeof y.type=="string"?y.type:void 0,fetchPriority:typeof y.fetchPriority=="string"?y.fetchPriority:void 0,referrerPolicy:typeof y.referrerPolicy=="string"?y.referrerPolicy:void 0,imageSrcSet:typeof y.imageSrcSet=="string"?y.imageSrcSet:void 0,imageSizes:typeof y.imageSizes=="string"?y.imageSizes:void 0,media:typeof y.media=="string"?y.media:void 0})}},Rt.preloadModule=function(p,y){if(typeof p=="string")if(y){var A=_(y.as,y.crossOrigin);o.d.m(p,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:A,integrity:typeof y.integrity=="string"?y.integrity:void 0})}else o.d.m(p)},Rt.requestFormReset=function(p){o.d.r(p)},Rt.unstable_batchedUpdates=function(p,y){return p(y)},Rt.useFormState=function(p,y,A){return m.H.useFormState(p,y,A)},Rt.useFormStatus=function(){return m.H.useHostTransitionStatus()},Rt.version="19.1.1",Rt}var S_;function Zy(){if(S_)return Fs.exports;S_=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(r){console.error(r)}}return n(),Fs.exports=Gy(),Fs.exports}/**
|
|
34
|
+
* @license React
|
|
35
|
+
* react-dom-client.production.js
|
|
36
|
+
*
|
|
37
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
38
|
+
*
|
|
39
|
+
* This source code is licensed under the MIT license found in the
|
|
40
|
+
* LICENSE file in the root directory of this source tree.
|
|
41
|
+
*/var A_;function Fy(){if(A_)return Li;A_=1;var n=$y(),r=pc(),l=Zy();function o(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}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."}function c(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function m(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 _(e){if(f(e)!==e)throw Error(o(188))}function p(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(o(188));return t!==e?null:e}for(var a=e,i=t;;){var u=a.return;if(u===null)break;var s=u.alternate;if(s===null){if(i=u.return,i!==null){a=i;continue}break}if(u.child===s.child){for(s=u.child;s;){if(s===a)return _(u),e;if(s===i)return _(u),t;s=s.sibling}throw Error(o(188))}if(a.return!==i.return)a=u,i=s;else{for(var d=!1,h=u.child;h;){if(h===a){d=!0,a=u,i=s;break}if(h===i){d=!0,i=u,a=s;break}h=h.sibling}if(!d){for(h=s.child;h;){if(h===a){d=!0,a=s,i=u;break}if(h===i){d=!0,i=s,a=u;break}h=h.sibling}if(!d)throw Error(o(189))}}if(a.alternate!==i)throw Error(o(190))}if(a.tag!==3)throw Error(o(188));return a.stateNode.current===a?e:t}function y(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=y(e),t!==null)return t;e=e.sibling}return null}var A=Object.assign,D=Symbol.for("react.element"),k=Symbol.for("react.transitional.element"),j=Symbol.for("react.portal"),G=Symbol.for("react.fragment"),U=Symbol.for("react.strict_mode"),ue=Symbol.for("react.profiler"),oe=Symbol.for("react.provider"),_e=Symbol.for("react.consumer"),ee=Symbol.for("react.context"),re=Symbol.for("react.forward_ref"),W=Symbol.for("react.suspense"),le=Symbol.for("react.suspense_list"),ne=Symbol.for("react.memo"),Ae=Symbol.for("react.lazy"),te=Symbol.for("react.activity"),xe=Symbol.for("react.memo_cache_sentinel"),ve=Symbol.iterator;function Le(e){return e===null||typeof e!="object"?null:(e=ve&&e[ve]||e["@@iterator"],typeof e=="function"?e:null)}var Ke=Symbol.for("react.client.reference");function We(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Ke?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case G:return"Fragment";case ue:return"Profiler";case U:return"StrictMode";case W:return"Suspense";case le:return"SuspenseList";case te:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case j:return"Portal";case ee:return(e.displayName||"Context")+".Provider";case _e:return(e._context.displayName||"Context")+".Consumer";case re:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ne:return t=e.displayName||null,t!==null?t:We(e.type)||"Memo";case Ae:t=e._payload,e=e._init;try{return We(e(t))}catch{}}return null}var fe=Array.isArray,v=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,R=l.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y={pending:!1,data:null,method:null,action:null},P=[],b=-1;function L(e){return{current:e}}function O(e){0>b||(e.current=P[b],P[b]=null,b--)}function T(e,t){b++,P[b]=e.current,e.current=t}var S=L(null),H=L(null),w=L(null),V=L(null);function K(e,t){switch(T(w,t),T(H,e),T(S,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Gm(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Gm(t),e=Zm(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}O(S),T(S,e)}function ie(){O(S),O(H),O(w)}function Se(e){e.memoizedState!==null&&T(V,e);var t=S.current,a=Zm(t,e.type);t!==a&&(T(H,e),T(S,a))}function Q(e){H.current===e&&(O(S),O(H)),V.current===e&&(O(V),Mi._currentValue=Y)}var X=Object.prototype.hasOwnProperty,J=n.unstable_scheduleCallback,de=n.unstable_cancelCallback,ke=n.unstable_shouldYield,Ie=n.unstable_requestPaint,he=n.unstable_now,Qe=n.unstable_getCurrentPriorityLevel,se=n.unstable_ImmediatePriority,$e=n.unstable_UserBlockingPriority,Ee=n.unstable_NormalPriority,ze=n.unstable_LowPriority,Je=n.unstable_IdlePriority,At=n.log,Ft=n.unstable_setDisableYieldValue,Yt=null,Be=null;function Me(e){if(typeof At=="function"&&Ft(e),Be&&typeof Be.setStrictMode=="function")try{Be.setStrictMode(Yt,e)}catch{}}var je=Math.clz32?Math.clz32:Re,ft=Math.log,Nt=Math.LN2;function Re(e){return e>>>=0,e===0?32:31-(ft(e)/Nt|0)|0}var yt=256,tn=4194304;function nn(e){var t=e&42;if(t!==0)return t;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:return 64;case 128:return 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&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function _n(e,t,a){var i=e.pendingLanes;if(i===0)return 0;var u=0,s=e.suspendedLanes,d=e.pingedLanes;e=e.warmLanes;var h=i&134217727;return h!==0?(i=h&~s,i!==0?u=nn(i):(d&=h,d!==0?u=nn(d):a||(a=h&~e,a!==0&&(u=nn(a))))):(h=i&~s,h!==0?u=nn(h):d!==0?u=nn(d):a||(a=i&~e,a!==0&&(u=nn(a)))),u===0?0:t!==0&&t!==u&&(t&s)===0&&(s=u&-u,a=t&-t,s>=a||s===32&&(a&4194048)!==0)?t:u}function Dn(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function xn(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32: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:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Za(){var e=yt;return yt<<=1,(yt&4194048)===0&&(yt=256),e}function Fa(){var e=tn;return tn<<=1,(tn&62914560)===0&&(tn=4194304),e}function qn(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function An(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function qi(e,t,a,i,u,s){var d=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var h=e.entanglements,E=e.expirationTimes,x=e.hiddenUpdates;for(a=d&~a;0<a;){var $=31-je(a),q=1<<$;h[$]=0,E[$]=-1;var z=x[$];if(z!==null)for(x[$]=null,$=0;$<z.length;$++){var B=z[$];B!==null&&(B.lane&=-536870913)}a&=~q}i!==0&&Vi(e,i,0),s!==0&&u===0&&e.tag!==0&&(e.suspendedLanes|=s&~(d&~t))}function Vi(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-je(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|a&4194090}function Pi(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var i=31-je(a),u=1<<i;u&t|e[i]&t&&(e[i]|=t),a&=~u}}function En(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function hn(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Ki(){var e=R.p;return e!==0?e:(e=window.event,e===void 0?32:u_(e.type))}function O0(e,t){var a=R.p;try{return R.p=e,t()}finally{R.p=a}}var Vn=Math.random().toString(36).slice(2),Dt="__reactFiber$"+Vn,kt="__reactProps$"+Vn,Ya="__reactContainer$"+Vn,Ro="__reactEvents$"+Vn,M0="__reactListeners$"+Vn,N0="__reactHandles$"+Vn,Dc="__reactResources$"+Vn,jr="__reactMarker$"+Vn;function wo(e){delete e[Dt],delete e[kt],delete e[Ro],delete e[M0],delete e[N0]}function qa(e){var t=e[Dt];if(t)return t;for(var a=e.parentNode;a;){if(t=a[Ya]||a[Dt]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=Vm(e);e!==null;){if(a=e[Dt])return a;e=Vm(e)}return t}e=a,a=e.parentNode}return null}function Va(e){if(e=e[Dt]||e[Ya]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function Hr(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function Pa(e){var t=e[Dc];return t||(t=e[Dc]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function gt(e){e[jr]=!0}var xc=new Set,Rc={};function Aa(e,t){Ka(e,t),Ka(e+"Capture",t)}function Ka(e,t){for(Rc[e]=t,e=0;e<t.length;e++)xc.add(t[e])}var D0=RegExp("^[: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]*$"),wc={},Lc={};function x0(e){return X.call(Lc,e)?!0:X.call(wc,e)?!1:D0.test(e)?Lc[e]=!0:(wc[e]=!0,!1)}function Qi(e,t,a){if(x0(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var i=t.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function Xi(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function Rn(e,t,a,i){if(i===null)e.removeAttribute(a);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+i)}}var Lo,zc;function Qa(e){if(Lo===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Lo=t&&t[1]||"",zc=-1<a.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+Lo+e+zc}var zo=!1;function Bo(e,t){if(!e||zo)return"";zo=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(t){var q=function(){throw Error()};if(Object.defineProperty(q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(q,[])}catch(B){var z=B}Reflect.construct(e,[],q)}else{try{q.call()}catch(B){z=B}e.call(q.prototype)}}else{try{throw Error()}catch(B){z=B}(q=e())&&typeof q.catch=="function"&&q.catch(function(){})}}catch(B){if(B&&z&&typeof B.stack=="string")return[B.stack,z.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var s=i.DetermineComponentFrameRoot(),d=s[0],h=s[1];if(d&&h){var E=d.split(`
|
|
44
|
+
`),x=h.split(`
|
|
45
|
+
`);for(u=i=0;i<E.length&&!E[i].includes("DetermineComponentFrameRoot");)i++;for(;u<x.length&&!x[u].includes("DetermineComponentFrameRoot");)u++;if(i===E.length||u===x.length)for(i=E.length-1,u=x.length-1;1<=i&&0<=u&&E[i]!==x[u];)u--;for(;1<=i&&0<=u;i--,u--)if(E[i]!==x[u]){if(i!==1||u!==1)do if(i--,u--,0>u||E[i]!==x[u]){var $=`
|
|
46
|
+
`+E[i].replace(" at new "," at ");return e.displayName&&$.includes("<anonymous>")&&($=$.replace("<anonymous>",e.displayName)),$}while(1<=i&&0<=u);break}}}finally{zo=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Qa(a):""}function R0(e){switch(e.tag){case 26:case 27:case 5:return Qa(e.type);case 16:return Qa("Lazy");case 13:return Qa("Suspense");case 19:return Qa("SuspenseList");case 0:case 15:return Bo(e.type,!1);case 11:return Bo(e.type.render,!1);case 1:return Bo(e.type,!0);case 31:return Qa("Activity");default:return""}}function Bc(e){try{var t="";do t+=R0(e),e=e.return;while(e);return t}catch(a){return`
|
|
47
|
+
Error generating stack: `+a.message+`
|
|
48
|
+
`+a.stack}}function an(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function kc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function w0(e){var t=kc(e)?"checked":"value",a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),i=""+e[t];if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var u=a.get,s=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return u.call(this)},set:function(d){i=""+d,s.call(this,d)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return i},setValue:function(d){i=""+d},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Wi(e){e._valueTracker||(e._valueTracker=w0(e))}function Uc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),i="";return e&&(i=kc(e)?e.checked?"true":"false":e.value),e=i,e!==a?(t.setValue(e),!0):!1}function Ji(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}}var L0=/[\n"\\]/g;function rn(e){return e.replace(L0,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function ko(e,t,a,i,u,s,d,h){e.name="",d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.type=d:e.removeAttribute("type"),t!=null?d==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+an(t)):e.value!==""+an(t)&&(e.value=""+an(t)):d!=="submit"&&d!=="reset"||e.removeAttribute("value"),t!=null?Uo(e,d,an(t)):a!=null?Uo(e,d,an(a)):i!=null&&e.removeAttribute("value"),u==null&&s!=null&&(e.defaultChecked=!!s),u!=null&&(e.checked=u&&typeof u!="function"&&typeof u!="symbol"),h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.name=""+an(h):e.removeAttribute("name")}function jc(e,t,a,i,u,s,d,h){if(s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(e.type=s),t!=null||a!=null){if(!(s!=="submit"&&s!=="reset"||t!=null))return;a=a!=null?""+an(a):"",t=t!=null?""+an(t):a,h||t===e.value||(e.value=t),e.defaultValue=t}i=i??u,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=h?e.checked:!!i,e.defaultChecked=!!i,d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.name=d)}function Uo(e,t,a){t==="number"&&Ji(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Xa(e,t,a,i){if(e=e.options,t){t={};for(var u=0;u<a.length;u++)t["$"+a[u]]=!0;for(a=0;a<e.length;a++)u=t.hasOwnProperty("$"+e[a].value),e[a].selected!==u&&(e[a].selected=u),u&&i&&(e[a].defaultSelected=!0)}else{for(a=""+an(a),t=null,u=0;u<e.length;u++){if(e[u].value===a){e[u].selected=!0,i&&(e[u].defaultSelected=!0);return}t!==null||e[u].disabled||(t=e[u])}t!==null&&(t.selected=!0)}}function Hc(e,t,a){if(t!=null&&(t=""+an(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+an(a):""}function Ic(e,t,a,i){if(t==null){if(i!=null){if(a!=null)throw Error(o(92));if(fe(i)){if(1<i.length)throw Error(o(93));i=i[0]}a=i}a==null&&(a=""),t=a}a=an(t),e.defaultValue=a,i=e.textContent,i===a&&i!==""&&i!==null&&(e.value=i)}function Wa(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var z0=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function $c(e,t,a){var i=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?i?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":i?e.setProperty(t,a):typeof a!="number"||a===0||z0.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function Gc(e,t,a){if(t!=null&&typeof t!="object")throw Error(o(62));if(e=e.style,a!=null){for(var i in a)!a.hasOwnProperty(i)||t!=null&&t.hasOwnProperty(i)||(i.indexOf("--")===0?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="");for(var u in t)i=t[u],t.hasOwnProperty(u)&&a[u]!==i&&$c(e,u,i)}else for(var s in t)t.hasOwnProperty(s)&&$c(e,s,t[s])}function jo(e){if(e.indexOf("-")===-1)return!1;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 B0=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),k0=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function el(e){return k0.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var Ho=null;function Io(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ja=null,er=null;function Zc(e){var t=Va(e);if(t&&(e=t.stateNode)){var a=e[kt]||null;e:switch(e=t.stateNode,t.type){case"input":if(ko(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+rn(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var i=a[t];if(i!==e&&i.form===e.form){var u=i[kt]||null;if(!u)throw Error(o(90));ko(i,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(t=0;t<a.length;t++)i=a[t],i.form===e.form&&Uc(i)}break e;case"textarea":Hc(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&Xa(e,!!a.multiple,t,!1)}}}var $o=!1;function Fc(e,t,a){if($o)return e(t,a);$o=!0;try{var i=e(t);return i}finally{if($o=!1,(Ja!==null||er!==null)&&(Hl(),Ja&&(t=Ja,e=er,er=Ja=null,Zc(t),e)))for(t=0;t<e.length;t++)Zc(e[t])}}function Ir(e,t){var a=e.stateNode;if(a===null)return null;var i=a[kt]||null;if(i===null)return null;a=i[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":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(o(231,t,typeof a));return a}var wn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Go=!1;if(wn)try{var $r={};Object.defineProperty($r,"passive",{get:function(){Go=!0}}),window.addEventListener("test",$r,$r),window.removeEventListener("test",$r,$r)}catch{Go=!1}var Pn=null,Zo=null,tl=null;function Yc(){if(tl)return tl;var e,t=Zo,a=t.length,i,u="value"in Pn?Pn.value:Pn.textContent,s=u.length;for(e=0;e<a&&t[e]===u[e];e++);var d=a-e;for(i=1;i<=d&&t[a-i]===u[s-i];i++);return tl=u.slice(e,1<i?1-i:void 0)}function nl(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 al(){return!0}function qc(){return!1}function Ut(e){function t(a,i,u,s,d){this._reactName=a,this._targetInst=u,this.type=i,this.nativeEvent=s,this.target=d,this.currentTarget=null;for(var h in e)e.hasOwnProperty(h)&&(a=e[h],this[h]=a?a(s):s[h]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?al:qc,this.isPropagationStopped=qc,this}return A(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=al)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=al)},persist:function(){},isPersistent:al}),t}var Ea={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},rl=Ut(Ea),Gr=A({},Ea,{view:0,detail:0}),U0=Ut(Gr),Fo,Yo,Zr,il=A({},Gr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Vo,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!==Zr&&(Zr&&e.type==="mousemove"?(Fo=e.screenX-Zr.screenX,Yo=e.screenY-Zr.screenY):Yo=Fo=0,Zr=e),Fo)},movementY:function(e){return"movementY"in e?e.movementY:Yo}}),Vc=Ut(il),j0=A({},il,{dataTransfer:0}),H0=Ut(j0),I0=A({},Gr,{relatedTarget:0}),qo=Ut(I0),$0=A({},Ea,{animationName:0,elapsedTime:0,pseudoElement:0}),G0=Ut($0),Z0=A({},Ea,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),F0=Ut(Z0),Y0=A({},Ea,{data:0}),Pc=Ut(Y0),q0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},V0={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"},P0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function K0(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=P0[e])?!!t[e]:!1}function Vo(){return K0}var Q0=A({},Gr,{key:function(e){if(e.key){var t=q0[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=nl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?V0[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Vo,charCode:function(e){return e.type==="keypress"?nl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?nl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),X0=Ut(Q0),W0=A({},il,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Kc=Ut(W0),J0=A({},Gr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Vo}),ep=Ut(J0),tp=A({},Ea,{propertyName:0,elapsedTime:0,pseudoElement:0}),np=Ut(tp),ap=A({},il,{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}),rp=Ut(ap),ip=A({},Ea,{newState:0,oldState:0}),lp=Ut(ip),op=[9,13,27,32],Po=wn&&"CompositionEvent"in window,Fr=null;wn&&"documentMode"in document&&(Fr=document.documentMode);var up=wn&&"TextEvent"in window&&!Fr,Qc=wn&&(!Po||Fr&&8<Fr&&11>=Fr),Xc=" ",Wc=!1;function Jc(e,t){switch(e){case"keyup":return op.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ef(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var tr=!1;function sp(e,t){switch(e){case"compositionend":return ef(t);case"keypress":return t.which!==32?null:(Wc=!0,Xc);case"textInput":return e=t.data,e===Xc&&Wc?null:e;default:return null}}function cp(e,t){if(tr)return e==="compositionend"||!Po&&Jc(e,t)?(e=Yc(),tl=Zo=Pn=null,tr=!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 Qc&&t.locale!=="ko"?null:t.data;default:return null}}var fp={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 tf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!fp[e.type]:t==="textarea"}function nf(e,t,a,i){Ja?er?er.push(i):er=[i]:Ja=i,t=Yl(t,"onChange"),0<t.length&&(a=new rl("onChange","change",null,a,i),e.push({event:a,listeners:t}))}var Yr=null,qr=null;function dp(e){Um(e,0)}function ll(e){var t=Hr(e);if(Uc(t))return e}function af(e,t){if(e==="change")return t}var rf=!1;if(wn){var Ko;if(wn){var Qo="oninput"in document;if(!Qo){var lf=document.createElement("div");lf.setAttribute("oninput","return;"),Qo=typeof lf.oninput=="function"}Ko=Qo}else Ko=!1;rf=Ko&&(!document.documentMode||9<document.documentMode)}function of(){Yr&&(Yr.detachEvent("onpropertychange",uf),qr=Yr=null)}function uf(e){if(e.propertyName==="value"&&ll(qr)){var t=[];nf(t,qr,e,Io(e)),Fc(dp,t)}}function mp(e,t,a){e==="focusin"?(of(),Yr=t,qr=a,Yr.attachEvent("onpropertychange",uf)):e==="focusout"&&of()}function _p(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ll(qr)}function hp(e,t){if(e==="click")return ll(t)}function pp(e,t){if(e==="input"||e==="change")return ll(t)}function yp(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var qt=typeof Object.is=="function"?Object.is:yp;function Vr(e,t){if(qt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),i=Object.keys(t);if(a.length!==i.length)return!1;for(i=0;i<a.length;i++){var u=a[i];if(!X.call(t,u)||!qt(e[u],t[u]))return!1}return!0}function sf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cf(e,t){var a=sf(e);e=0;for(var i;a;){if(a.nodeType===3){if(i=e+a.textContent.length,e<=t&&i>=t)return{node:a,offset:t-e};e=i}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=sf(a)}}function ff(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ff(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function df(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ji(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=Ji(e.document)}return t}function Xo(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")}var gp=wn&&"documentMode"in document&&11>=document.documentMode,nr=null,Wo=null,Pr=null,Jo=!1;function mf(e,t,a){var i=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Jo||nr==null||nr!==Ji(i)||(i=nr,"selectionStart"in i&&Xo(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),Pr&&Vr(Pr,i)||(Pr=i,i=Yl(Wo,"onSelect"),0<i.length&&(t=new rl("onSelect","select",null,t,a),e.push({event:t,listeners:i}),t.target=nr)))}function Ta(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var ar={animationend:Ta("Animation","AnimationEnd"),animationiteration:Ta("Animation","AnimationIteration"),animationstart:Ta("Animation","AnimationStart"),transitionrun:Ta("Transition","TransitionRun"),transitionstart:Ta("Transition","TransitionStart"),transitioncancel:Ta("Transition","TransitionCancel"),transitionend:Ta("Transition","TransitionEnd")},eu={},_f={};wn&&(_f=document.createElement("div").style,"AnimationEvent"in window||(delete ar.animationend.animation,delete ar.animationiteration.animation,delete ar.animationstart.animation),"TransitionEvent"in window||delete ar.transitionend.transition);function Ca(e){if(eu[e])return eu[e];if(!ar[e])return e;var t=ar[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in _f)return eu[e]=t[a];return e}var hf=Ca("animationend"),pf=Ca("animationiteration"),yf=Ca("animationstart"),vp=Ca("transitionrun"),bp=Ca("transitionstart"),Sp=Ca("transitioncancel"),gf=Ca("transitionend"),vf=new Map,tu="abort auxClick beforeToggle 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(" ");tu.push("scrollEnd");function pn(e,t){vf.set(e,t),Aa(t,[e])}var bf=new WeakMap;function ln(e,t){if(typeof e=="object"&&e!==null){var a=bf.get(e);return a!==void 0?a:(t={value:e,source:t,stack:Bc(t)},bf.set(e,t),t)}return{value:e,source:t,stack:Bc(t)}}var on=[],rr=0,nu=0;function ol(){for(var e=rr,t=nu=rr=0;t<e;){var a=on[t];on[t++]=null;var i=on[t];on[t++]=null;var u=on[t];on[t++]=null;var s=on[t];if(on[t++]=null,i!==null&&u!==null){var d=i.pending;d===null?u.next=u:(u.next=d.next,d.next=u),i.pending=u}s!==0&&Sf(a,u,s)}}function ul(e,t,a,i){on[rr++]=e,on[rr++]=t,on[rr++]=a,on[rr++]=i,nu|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function au(e,t,a,i){return ul(e,t,a,i),sl(e)}function ir(e,t){return ul(e,null,null,t),sl(e)}function Sf(e,t,a){e.lanes|=a;var i=e.alternate;i!==null&&(i.lanes|=a);for(var u=!1,s=e.return;s!==null;)s.childLanes|=a,i=s.alternate,i!==null&&(i.childLanes|=a),s.tag===22&&(e=s.stateNode,e===null||e._visibility&1||(u=!0)),e=s,s=s.return;return e.tag===3?(s=e.stateNode,u&&t!==null&&(u=31-je(a),e=s.hiddenUpdates,i=e[u],i===null?e[u]=[t]:i.push(t),t.lane=a|536870912),s):null}function sl(e){if(50<vi)throw vi=0,ss=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var lr={};function Ap(e,t,a,i){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Vt(e,t,a,i){return new Ap(e,t,a,i)}function ru(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ln(e,t){var a=e.alternate;return a===null?(a=Vt(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function Af(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function cl(e,t,a,i,u,s){var d=0;if(i=e,typeof e=="function")ru(e)&&(d=1);else if(typeof e=="string")d=Ty(e,a,S.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case te:return e=Vt(31,a,t,u),e.elementType=te,e.lanes=s,e;case G:return Oa(a.children,u,s,t);case U:d=8,u|=24;break;case ue:return e=Vt(12,a,t,u|2),e.elementType=ue,e.lanes=s,e;case W:return e=Vt(13,a,t,u),e.elementType=W,e.lanes=s,e;case le:return e=Vt(19,a,t,u),e.elementType=le,e.lanes=s,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case oe:case ee:d=10;break e;case _e:d=9;break e;case re:d=11;break e;case ne:d=14;break e;case Ae:d=16,i=null;break e}d=29,a=Error(o(130,e===null?"null":typeof e,"")),i=null}return t=Vt(d,a,t,u),t.elementType=e,t.type=i,t.lanes=s,t}function Oa(e,t,a,i){return e=Vt(7,e,i,t),e.lanes=a,e}function iu(e,t,a){return e=Vt(6,e,null,t),e.lanes=a,e}function lu(e,t,a){return t=Vt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var or=[],ur=0,fl=null,dl=0,un=[],sn=0,Ma=null,zn=1,Bn="";function Na(e,t){or[ur++]=dl,or[ur++]=fl,fl=e,dl=t}function Ef(e,t,a){un[sn++]=zn,un[sn++]=Bn,un[sn++]=Ma,Ma=e;var i=zn;e=Bn;var u=32-je(i)-1;i&=~(1<<u),a+=1;var s=32-je(t)+u;if(30<s){var d=u-u%5;s=(i&(1<<d)-1).toString(32),i>>=d,u-=d,zn=1<<32-je(t)+u|a<<u|i,Bn=s+e}else zn=1<<s|a<<u|i,Bn=e}function ou(e){e.return!==null&&(Na(e,1),Ef(e,1,0))}function uu(e){for(;e===fl;)fl=or[--ur],or[ur]=null,dl=or[--ur],or[ur]=null;for(;e===Ma;)Ma=un[--sn],un[sn]=null,Bn=un[--sn],un[sn]=null,zn=un[--sn],un[sn]=null}var zt=null,rt=null,He=!1,Da=null,Tn=!1,su=Error(o(519));function xa(e){var t=Error(o(418,""));throw Xr(ln(t,e)),su}function Tf(e){var t=e.stateNode,a=e.type,i=e.memoizedProps;switch(t[Dt]=e,t[kt]=i,a){case"dialog":De("cancel",t),De("close",t);break;case"iframe":case"object":case"embed":De("load",t);break;case"video":case"audio":for(a=0;a<Si.length;a++)De(Si[a],t);break;case"source":De("error",t);break;case"img":case"image":case"link":De("error",t),De("load",t);break;case"details":De("toggle",t);break;case"input":De("invalid",t),jc(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0),Wi(t);break;case"select":De("invalid",t);break;case"textarea":De("invalid",t),Ic(t,i.value,i.defaultValue,i.children),Wi(t)}a=i.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||i.suppressHydrationWarning===!0||$m(t.textContent,a)?(i.popover!=null&&(De("beforetoggle",t),De("toggle",t)),i.onScroll!=null&&De("scroll",t),i.onScrollEnd!=null&&De("scrollend",t),i.onClick!=null&&(t.onclick=ql),t=!0):t=!1,t||xa(e)}function Cf(e){for(zt=e.return;zt;)switch(zt.tag){case 5:case 13:Tn=!1;return;case 27:case 3:Tn=!0;return;default:zt=zt.return}}function Kr(e){if(e!==zt)return!1;if(!He)return Cf(e),He=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||Cs(e.type,e.memoizedProps)),a=!a),a&&rt&&xa(e),Cf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8)if(a=e.data,a==="/$"){if(t===0){rt=gn(e.nextSibling);break e}t--}else a!=="$"&&a!=="$!"&&a!=="$?"||t++;e=e.nextSibling}rt=null}}else t===27?(t=rt,ca(e.type)?(e=Ds,Ds=null,rt=e):rt=t):rt=zt?gn(e.stateNode.nextSibling):null;return!0}function Qr(){rt=zt=null,He=!1}function Of(){var e=Da;return e!==null&&(It===null?It=e:It.push.apply(It,e),Da=null),e}function Xr(e){Da===null?Da=[e]:Da.push(e)}var cu=L(null),Ra=null,kn=null;function Kn(e,t,a){T(cu,t._currentValue),t._currentValue=a}function Un(e){e._currentValue=cu.current,O(cu)}function fu(e,t,a){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===a)break;e=e.return}}function du(e,t,a,i){var u=e.child;for(u!==null&&(u.return=e);u!==null;){var s=u.dependencies;if(s!==null){var d=u.child;s=s.firstContext;e:for(;s!==null;){var h=s;s=u;for(var E=0;E<t.length;E++)if(h.context===t[E]){s.lanes|=a,h=s.alternate,h!==null&&(h.lanes|=a),fu(s.return,a,e),i||(d=null);break e}s=h.next}}else if(u.tag===18){if(d=u.return,d===null)throw Error(o(341));d.lanes|=a,s=d.alternate,s!==null&&(s.lanes|=a),fu(d,a,e),d=null}else d=u.child;if(d!==null)d.return=u;else for(d=u;d!==null;){if(d===e){d=null;break}if(u=d.sibling,u!==null){u.return=d.return,d=u;break}d=d.return}u=d}}function Wr(e,t,a,i){e=null;for(var u=t,s=!1;u!==null;){if(!s){if((u.flags&524288)!==0)s=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var d=u.alternate;if(d===null)throw Error(o(387));if(d=d.memoizedProps,d!==null){var h=u.type;qt(u.pendingProps.value,d.value)||(e!==null?e.push(h):e=[h])}}else if(u===V.current){if(d=u.alternate,d===null)throw Error(o(387));d.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(e!==null?e.push(Mi):e=[Mi])}u=u.return}e!==null&&du(t,e,a,i),t.flags|=262144}function ml(e){for(e=e.firstContext;e!==null;){if(!qt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function wa(e){Ra=e,kn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function xt(e){return Mf(Ra,e)}function _l(e,t){return Ra===null&&wa(e),Mf(e,t)}function Mf(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},kn===null){if(e===null)throw Error(o(308));kn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else kn=kn.next=t;return a}var Ep=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,i){e.push(i)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},Tp=n.unstable_scheduleCallback,Cp=n.unstable_NormalPriority,_t={$$typeof:ee,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function mu(){return{controller:new Ep,data:new Map,refCount:0}}function Jr(e){e.refCount--,e.refCount===0&&Tp(Cp,function(){e.controller.abort()})}var ei=null,_u=0,sr=0,cr=null;function Op(e,t){if(ei===null){var a=ei=[];_u=0,sr=ps(),cr={status:"pending",value:void 0,then:function(i){a.push(i)}}}return _u++,t.then(Nf,Nf),t}function Nf(){if(--_u===0&&ei!==null){cr!==null&&(cr.status="fulfilled");var e=ei;ei=null,sr=0,cr=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Mp(e,t){var a=[],i={status:"pending",value:null,reason:null,then:function(u){a.push(u)}};return e.then(function(){i.status="fulfilled",i.value=t;for(var u=0;u<a.length;u++)(0,a[u])(t)},function(u){for(i.status="rejected",i.reason=u,u=0;u<a.length;u++)(0,a[u])(void 0)}),i}var Df=v.S;v.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&Op(e,t),Df!==null&&Df(e,t)};var La=L(null);function hu(){var e=La.current;return e!==null?e:Xe.pooledCache}function hl(e,t){t===null?T(La,La.current):T(La,t.pool)}function xf(){var e=hu();return e===null?null:{parent:_t._currentValue,pool:e}}var ti=Error(o(460)),Rf=Error(o(474)),pl=Error(o(542)),pu={then:function(){}};function wf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function yl(){}function Lf(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(yl,yl),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Bf(e),e;default:if(typeof t.status=="string")t.then(yl,yl);else{if(e=Xe,e!==null&&100<e.shellSuspendCounter)throw Error(o(482));e=t,e.status="pending",e.then(function(i){if(t.status==="pending"){var u=t;u.status="fulfilled",u.value=i}},function(i){if(t.status==="pending"){var u=t;u.status="rejected",u.reason=i}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Bf(e),e}throw ni=t,ti}}var ni=null;function zf(){if(ni===null)throw Error(o(459));var e=ni;return ni=null,e}function Bf(e){if(e===ti||e===pl)throw Error(o(483))}var Qn=!1;function yu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function gu(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Xn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Wn(e,t,a){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(Ge&2)!==0){var u=i.pending;return u===null?t.next=t:(t.next=u.next,u.next=t),i.pending=t,t=sl(e),Sf(e,null,a),t}return ul(e,i,t,a),sl(e)}function ai(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var i=t.lanes;i&=e.pendingLanes,a|=i,t.lanes=a,Pi(e,a)}}function vu(e,t){var a=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,a===i)){var u=null,s=null;if(a=a.firstBaseUpdate,a!==null){do{var d={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};s===null?u=s=d:s=s.next=d,a=a.next}while(a!==null);s===null?u=s=t:s=s.next=t}else u=s=t;a={baseState:i.baseState,firstBaseUpdate:u,lastBaseUpdate:s,shared:i.shared,callbacks:i.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var bu=!1;function ri(){if(bu){var e=cr;if(e!==null)throw e}}function ii(e,t,a,i){bu=!1;var u=e.updateQueue;Qn=!1;var s=u.firstBaseUpdate,d=u.lastBaseUpdate,h=u.shared.pending;if(h!==null){u.shared.pending=null;var E=h,x=E.next;E.next=null,d===null?s=x:d.next=x,d=E;var $=e.alternate;$!==null&&($=$.updateQueue,h=$.lastBaseUpdate,h!==d&&(h===null?$.firstBaseUpdate=x:h.next=x,$.lastBaseUpdate=E))}if(s!==null){var q=u.baseState;d=0,$=x=E=null,h=s;do{var z=h.lane&-536870913,B=z!==h.lane;if(B?(we&z)===z:(i&z)===z){z!==0&&z===sr&&(bu=!0),$!==null&&($=$.next={lane:0,tag:h.tag,payload:h.payload,callback:null,next:null});e:{var be=e,pe=h;z=t;var Ve=a;switch(pe.tag){case 1:if(be=pe.payload,typeof be=="function"){q=be.call(Ve,q,z);break e}q=be;break e;case 3:be.flags=be.flags&-65537|128;case 0:if(be=pe.payload,z=typeof be=="function"?be.call(Ve,q,z):be,z==null)break e;q=A({},q,z);break e;case 2:Qn=!0}}z=h.callback,z!==null&&(e.flags|=64,B&&(e.flags|=8192),B=u.callbacks,B===null?u.callbacks=[z]:B.push(z))}else B={lane:z,tag:h.tag,payload:h.payload,callback:h.callback,next:null},$===null?(x=$=B,E=q):$=$.next=B,d|=z;if(h=h.next,h===null){if(h=u.shared.pending,h===null)break;B=h,h=B.next,B.next=null,u.lastBaseUpdate=B,u.shared.pending=null}}while(!0);$===null&&(E=q),u.baseState=E,u.firstBaseUpdate=x,u.lastBaseUpdate=$,s===null&&(u.shared.lanes=0),la|=d,e.lanes=d,e.memoizedState=q}}function kf(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function Uf(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)kf(a[e],t)}var fr=L(null),gl=L(0);function jf(e,t){e=Fn,T(gl,e),T(fr,t),Fn=e|t.baseLanes}function Su(){T(gl,Fn),T(fr,fr.current)}function Au(){Fn=gl.current,O(fr),O(gl)}var Jn=0,Ce=null,Ye=null,dt=null,vl=!1,dr=!1,za=!1,bl=0,li=0,mr=null,Np=0;function ut(){throw Error(o(321))}function Eu(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!qt(e[a],t[a]))return!1;return!0}function Tu(e,t,a,i,u,s){return Jn=s,Ce=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,v.H=e===null||e.memoizedState===null?Sd:Ad,za=!1,s=a(i,u),za=!1,dr&&(s=If(t,a,i,u)),Hf(e),s}function Hf(e){v.H=Ol;var t=Ye!==null&&Ye.next!==null;if(Jn=0,dt=Ye=Ce=null,vl=!1,li=0,mr=null,t)throw Error(o(300));e===null||vt||(e=e.dependencies,e!==null&&ml(e)&&(vt=!0))}function If(e,t,a,i){Ce=e;var u=0;do{if(dr&&(mr=null),li=0,dr=!1,25<=u)throw Error(o(301));if(u+=1,dt=Ye=null,e.updateQueue!=null){var s=e.updateQueue;s.lastEffect=null,s.events=null,s.stores=null,s.memoCache!=null&&(s.memoCache.index=0)}v.H=Bp,s=t(a,i)}while(dr);return s}function Dp(){var e=v.H,t=e.useState()[0];return t=typeof t.then=="function"?oi(t):t,e=e.useState()[0],(Ye!==null?Ye.memoizedState:null)!==e&&(Ce.flags|=1024),t}function Cu(){var e=bl!==0;return bl=0,e}function Ou(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function Mu(e){if(vl){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}vl=!1}Jn=0,dt=Ye=Ce=null,dr=!1,li=bl=0,mr=null}function jt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return dt===null?Ce.memoizedState=dt=e:dt=dt.next=e,dt}function mt(){if(Ye===null){var e=Ce.alternate;e=e!==null?e.memoizedState:null}else e=Ye.next;var t=dt===null?Ce.memoizedState:dt.next;if(t!==null)dt=t,Ye=e;else{if(e===null)throw Ce.alternate===null?Error(o(467)):Error(o(310));Ye=e,e={memoizedState:Ye.memoizedState,baseState:Ye.baseState,baseQueue:Ye.baseQueue,queue:Ye.queue,next:null},dt===null?Ce.memoizedState=dt=e:dt=dt.next=e}return dt}function Nu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function oi(e){var t=li;return li+=1,mr===null&&(mr=[]),e=Lf(mr,e,t),t=Ce,(dt===null?t.memoizedState:dt.next)===null&&(t=t.alternate,v.H=t===null||t.memoizedState===null?Sd:Ad),e}function Sl(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return oi(e);if(e.$$typeof===ee)return xt(e)}throw Error(o(438,String(e)))}function Du(e){var t=null,a=Ce.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var i=Ce.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(t={data:i.data.map(function(u){return u.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Nu(),Ce.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),i=0;i<e;i++)a[i]=xe;return t.index++,a}function jn(e,t){return typeof t=="function"?t(e):t}function Al(e){var t=mt();return xu(t,Ye,e)}function xu(e,t,a){var i=e.queue;if(i===null)throw Error(o(311));i.lastRenderedReducer=a;var u=e.baseQueue,s=i.pending;if(s!==null){if(u!==null){var d=u.next;u.next=s.next,s.next=d}t.baseQueue=u=s,i.pending=null}if(s=e.baseState,u===null)e.memoizedState=s;else{t=u.next;var h=d=null,E=null,x=t,$=!1;do{var q=x.lane&-536870913;if(q!==x.lane?(we&q)===q:(Jn&q)===q){var z=x.revertLane;if(z===0)E!==null&&(E=E.next={lane:0,revertLane:0,action:x.action,hasEagerState:x.hasEagerState,eagerState:x.eagerState,next:null}),q===sr&&($=!0);else if((Jn&z)===z){x=x.next,z===sr&&($=!0);continue}else q={lane:0,revertLane:x.revertLane,action:x.action,hasEagerState:x.hasEagerState,eagerState:x.eagerState,next:null},E===null?(h=E=q,d=s):E=E.next=q,Ce.lanes|=z,la|=z;q=x.action,za&&a(s,q),s=x.hasEagerState?x.eagerState:a(s,q)}else z={lane:q,revertLane:x.revertLane,action:x.action,hasEagerState:x.hasEagerState,eagerState:x.eagerState,next:null},E===null?(h=E=z,d=s):E=E.next=z,Ce.lanes|=q,la|=q;x=x.next}while(x!==null&&x!==t);if(E===null?d=s:E.next=h,!qt(s,e.memoizedState)&&(vt=!0,$&&(a=cr,a!==null)))throw a;e.memoizedState=s,e.baseState=d,e.baseQueue=E,i.lastRenderedState=s}return u===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function Ru(e){var t=mt(),a=t.queue;if(a===null)throw Error(o(311));a.lastRenderedReducer=e;var i=a.dispatch,u=a.pending,s=t.memoizedState;if(u!==null){a.pending=null;var d=u=u.next;do s=e(s,d.action),d=d.next;while(d!==u);qt(s,t.memoizedState)||(vt=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),a.lastRenderedState=s}return[s,i]}function $f(e,t,a){var i=Ce,u=mt(),s=He;if(s){if(a===void 0)throw Error(o(407));a=a()}else a=t();var d=!qt((Ye||u).memoizedState,a);d&&(u.memoizedState=a,vt=!0),u=u.queue;var h=Ff.bind(null,i,u,e);if(ui(2048,8,h,[e]),u.getSnapshot!==t||d||dt!==null&&dt.memoizedState.tag&1){if(i.flags|=2048,_r(9,El(),Zf.bind(null,i,u,a,t),null),Xe===null)throw Error(o(349));s||(Jn&124)!==0||Gf(i,t,a)}return a}function Gf(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=Ce.updateQueue,t===null?(t=Nu(),Ce.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function Zf(e,t,a,i){t.value=a,t.getSnapshot=i,Yf(t)&&qf(e)}function Ff(e,t,a){return a(function(){Yf(t)&&qf(e)})}function Yf(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!qt(e,a)}catch{return!0}}function qf(e){var t=ir(e,2);t!==null&&Wt(t,e,2)}function wu(e){var t=jt();if(typeof e=="function"){var a=e;if(e=a(),za){Me(!0);try{a()}finally{Me(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:jn,lastRenderedState:e},t}function Vf(e,t,a,i){return e.baseState=a,xu(e,Ye,typeof i=="function"?i:jn)}function xp(e,t,a,i,u){if(Cl(e))throw Error(o(485));if(e=t.action,e!==null){var s={payload:u,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(d){s.listeners.push(d)}};v.T!==null?a(!0):s.isTransition=!1,i(s),a=t.pending,a===null?(s.next=t.pending=s,Pf(t,s)):(s.next=a.next,t.pending=a.next=s)}}function Pf(e,t){var a=t.action,i=t.payload,u=e.state;if(t.isTransition){var s=v.T,d={};v.T=d;try{var h=a(u,i),E=v.S;E!==null&&E(d,h),Kf(e,t,h)}catch(x){Lu(e,t,x)}finally{v.T=s}}else try{s=a(u,i),Kf(e,t,s)}catch(x){Lu(e,t,x)}}function Kf(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(i){Qf(e,t,i)},function(i){return Lu(e,t,i)}):Qf(e,t,a)}function Qf(e,t,a){t.status="fulfilled",t.value=a,Xf(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Pf(e,a)))}function Lu(e,t,a){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=a,Xf(t),t=t.next;while(t!==i)}e.action=null}function Xf(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Wf(e,t){return t}function Jf(e,t){if(He){var a=Xe.formState;if(a!==null){e:{var i=Ce;if(He){if(rt){t:{for(var u=rt,s=Tn;u.nodeType!==8;){if(!s){u=null;break t}if(u=gn(u.nextSibling),u===null){u=null;break t}}s=u.data,u=s==="F!"||s==="F"?u:null}if(u){rt=gn(u.nextSibling),i=u.data==="F!";break e}}xa(i)}i=!1}i&&(t=a[0])}}return a=jt(),a.memoizedState=a.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wf,lastRenderedState:t},a.queue=i,a=gd.bind(null,Ce,i),i.dispatch=a,i=wu(!1),s=ju.bind(null,Ce,!1,i.queue),i=jt(),u={state:t,dispatch:null,action:e,pending:null},i.queue=u,a=xp.bind(null,Ce,u,s,a),u.dispatch=a,i.memoizedState=e,[t,a,!1]}function ed(e){var t=mt();return td(t,Ye,e)}function td(e,t,a){if(t=xu(e,t,Wf)[0],e=Al(jn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var i=oi(t)}catch(d){throw d===ti?pl:d}else i=t;t=mt();var u=t.queue,s=u.dispatch;return a!==t.memoizedState&&(Ce.flags|=2048,_r(9,El(),Rp.bind(null,u,a),null)),[i,s,e]}function Rp(e,t){e.action=t}function nd(e){var t=mt(),a=Ye;if(a!==null)return td(t,a,e);mt(),t=t.memoizedState,a=mt();var i=a.queue.dispatch;return a.memoizedState=e,[t,i,!1]}function _r(e,t,a,i){return e={tag:e,create:a,deps:i,inst:t,next:null},t=Ce.updateQueue,t===null&&(t=Nu(),Ce.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(i=a.next,a.next=e,e.next=i,t.lastEffect=e),e}function El(){return{destroy:void 0,resource:void 0}}function ad(){return mt().memoizedState}function Tl(e,t,a,i){var u=jt();i=i===void 0?null:i,Ce.flags|=e,u.memoizedState=_r(1|t,El(),a,i)}function ui(e,t,a,i){var u=mt();i=i===void 0?null:i;var s=u.memoizedState.inst;Ye!==null&&i!==null&&Eu(i,Ye.memoizedState.deps)?u.memoizedState=_r(t,s,a,i):(Ce.flags|=e,u.memoizedState=_r(1|t,s,a,i))}function rd(e,t){Tl(8390656,8,e,t)}function id(e,t){ui(2048,8,e,t)}function ld(e,t){return ui(4,2,e,t)}function od(e,t){return ui(4,4,e,t)}function ud(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function sd(e,t,a){a=a!=null?a.concat([e]):null,ui(4,4,ud.bind(null,t,e),a)}function zu(){}function cd(e,t){var a=mt();t=t===void 0?null:t;var i=a.memoizedState;return t!==null&&Eu(t,i[1])?i[0]:(a.memoizedState=[e,t],e)}function fd(e,t){var a=mt();t=t===void 0?null:t;var i=a.memoizedState;if(t!==null&&Eu(t,i[1]))return i[0];if(i=e(),za){Me(!0);try{e()}finally{Me(!1)}}return a.memoizedState=[i,t],i}function Bu(e,t,a){return a===void 0||(Jn&1073741824)!==0?e.memoizedState=t:(e.memoizedState=a,e=_m(),Ce.lanes|=e,la|=e,a)}function dd(e,t,a,i){return qt(a,t)?a:fr.current!==null?(e=Bu(e,a,i),qt(e,t)||(vt=!0),e):(Jn&42)===0?(vt=!0,e.memoizedState=a):(e=_m(),Ce.lanes|=e,la|=e,t)}function md(e,t,a,i,u){var s=R.p;R.p=s!==0&&8>s?s:8;var d=v.T,h={};v.T=h,ju(e,!1,t,a);try{var E=u(),x=v.S;if(x!==null&&x(h,E),E!==null&&typeof E=="object"&&typeof E.then=="function"){var $=Mp(E,i);si(e,t,$,Xt(e))}else si(e,t,i,Xt(e))}catch(q){si(e,t,{then:function(){},status:"rejected",reason:q},Xt())}finally{R.p=s,v.T=d}}function wp(){}function ku(e,t,a,i){if(e.tag!==5)throw Error(o(476));var u=_d(e).queue;md(e,u,t,Y,a===null?wp:function(){return hd(e),a(i)})}function _d(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Y,baseState:Y,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:jn,lastRenderedState:Y},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:jn,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function hd(e){var t=_d(e).next.queue;si(e,t,{},Xt())}function Uu(){return xt(Mi)}function pd(){return mt().memoizedState}function yd(){return mt().memoizedState}function Lp(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Xt();e=Xn(a);var i=Wn(t,e,a);i!==null&&(Wt(i,t,a),ai(i,t,a)),t={cache:mu()},e.payload=t;return}t=t.return}}function zp(e,t,a){var i=Xt();a={lane:i,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null},Cl(e)?vd(t,a):(a=au(e,t,a,i),a!==null&&(Wt(a,e,i),bd(a,t,i)))}function gd(e,t,a){var i=Xt();si(e,t,a,i)}function si(e,t,a,i){var u={lane:i,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null};if(Cl(e))vd(t,u);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var d=t.lastRenderedState,h=s(d,a);if(u.hasEagerState=!0,u.eagerState=h,qt(h,d))return ul(e,t,u,0),Xe===null&&ol(),!1}catch{}finally{}if(a=au(e,t,u,i),a!==null)return Wt(a,e,i),bd(a,t,i),!0}return!1}function ju(e,t,a,i){if(i={lane:2,revertLane:ps(),action:i,hasEagerState:!1,eagerState:null,next:null},Cl(e)){if(t)throw Error(o(479))}else t=au(e,a,i,2),t!==null&&Wt(t,e,2)}function Cl(e){var t=e.alternate;return e===Ce||t!==null&&t===Ce}function vd(e,t){dr=vl=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function bd(e,t,a){if((a&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,a|=i,t.lanes=a,Pi(e,a)}}var Ol={readContext:xt,use:Sl,useCallback:ut,useContext:ut,useEffect:ut,useImperativeHandle:ut,useLayoutEffect:ut,useInsertionEffect:ut,useMemo:ut,useReducer:ut,useRef:ut,useState:ut,useDebugValue:ut,useDeferredValue:ut,useTransition:ut,useSyncExternalStore:ut,useId:ut,useHostTransitionStatus:ut,useFormState:ut,useActionState:ut,useOptimistic:ut,useMemoCache:ut,useCacheRefresh:ut},Sd={readContext:xt,use:Sl,useCallback:function(e,t){return jt().memoizedState=[e,t===void 0?null:t],e},useContext:xt,useEffect:rd,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Tl(4194308,4,ud.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Tl(4194308,4,e,t)},useInsertionEffect:function(e,t){Tl(4,2,e,t)},useMemo:function(e,t){var a=jt();t=t===void 0?null:t;var i=e();if(za){Me(!0);try{e()}finally{Me(!1)}}return a.memoizedState=[i,t],i},useReducer:function(e,t,a){var i=jt();if(a!==void 0){var u=a(t);if(za){Me(!0);try{a(t)}finally{Me(!1)}}}else u=t;return i.memoizedState=i.baseState=u,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:u},i.queue=e,e=e.dispatch=zp.bind(null,Ce,e),[i.memoizedState,e]},useRef:function(e){var t=jt();return e={current:e},t.memoizedState=e},useState:function(e){e=wu(e);var t=e.queue,a=gd.bind(null,Ce,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:zu,useDeferredValue:function(e,t){var a=jt();return Bu(a,e,t)},useTransition:function(){var e=wu(!1);return e=md.bind(null,Ce,e.queue,!0,!1),jt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var i=Ce,u=jt();if(He){if(a===void 0)throw Error(o(407));a=a()}else{if(a=t(),Xe===null)throw Error(o(349));(we&124)!==0||Gf(i,t,a)}u.memoizedState=a;var s={value:a,getSnapshot:t};return u.queue=s,rd(Ff.bind(null,i,s,e),[e]),i.flags|=2048,_r(9,El(),Zf.bind(null,i,s,a,t),null),a},useId:function(){var e=jt(),t=Xe.identifierPrefix;if(He){var a=Bn,i=zn;a=(i&~(1<<32-je(i)-1)).toString(32)+a,t="«"+t+"R"+a,a=bl++,0<a&&(t+="H"+a.toString(32)),t+="»"}else a=Np++,t="«"+t+"r"+a.toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:Uu,useFormState:Jf,useActionState:Jf,useOptimistic:function(e){var t=jt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=ju.bind(null,Ce,!0,a),a.dispatch=t,[e,t]},useMemoCache:Du,useCacheRefresh:function(){return jt().memoizedState=Lp.bind(null,Ce)}},Ad={readContext:xt,use:Sl,useCallback:cd,useContext:xt,useEffect:id,useImperativeHandle:sd,useInsertionEffect:ld,useLayoutEffect:od,useMemo:fd,useReducer:Al,useRef:ad,useState:function(){return Al(jn)},useDebugValue:zu,useDeferredValue:function(e,t){var a=mt();return dd(a,Ye.memoizedState,e,t)},useTransition:function(){var e=Al(jn)[0],t=mt().memoizedState;return[typeof e=="boolean"?e:oi(e),t]},useSyncExternalStore:$f,useId:pd,useHostTransitionStatus:Uu,useFormState:ed,useActionState:ed,useOptimistic:function(e,t){var a=mt();return Vf(a,Ye,e,t)},useMemoCache:Du,useCacheRefresh:yd},Bp={readContext:xt,use:Sl,useCallback:cd,useContext:xt,useEffect:id,useImperativeHandle:sd,useInsertionEffect:ld,useLayoutEffect:od,useMemo:fd,useReducer:Ru,useRef:ad,useState:function(){return Ru(jn)},useDebugValue:zu,useDeferredValue:function(e,t){var a=mt();return Ye===null?Bu(a,e,t):dd(a,Ye.memoizedState,e,t)},useTransition:function(){var e=Ru(jn)[0],t=mt().memoizedState;return[typeof e=="boolean"?e:oi(e),t]},useSyncExternalStore:$f,useId:pd,useHostTransitionStatus:Uu,useFormState:nd,useActionState:nd,useOptimistic:function(e,t){var a=mt();return Ye!==null?Vf(a,Ye,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Du,useCacheRefresh:yd},hr=null,ci=0;function Ml(e){var t=ci;return ci+=1,hr===null&&(hr=[]),Lf(hr,e,t)}function fi(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Nl(e,t){throw t.$$typeof===D?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Ed(e){var t=e._init;return t(e._payload)}function Td(e){function t(M,C){if(e){var N=M.deletions;N===null?(M.deletions=[C],M.flags|=16):N.push(C)}}function a(M,C){if(!e)return null;for(;C!==null;)t(M,C),C=C.sibling;return null}function i(M){for(var C=new Map;M!==null;)M.key!==null?C.set(M.key,M):C.set(M.index,M),M=M.sibling;return C}function u(M,C){return M=Ln(M,C),M.index=0,M.sibling=null,M}function s(M,C,N){return M.index=N,e?(N=M.alternate,N!==null?(N=N.index,N<C?(M.flags|=67108866,C):N):(M.flags|=67108866,C)):(M.flags|=1048576,C)}function d(M){return e&&M.alternate===null&&(M.flags|=67108866),M}function h(M,C,N,Z){return C===null||C.tag!==6?(C=iu(N,M.mode,Z),C.return=M,C):(C=u(C,N),C.return=M,C)}function E(M,C,N,Z){var ae=N.type;return ae===G?$(M,C,N.props.children,Z,N.key):C!==null&&(C.elementType===ae||typeof ae=="object"&&ae!==null&&ae.$$typeof===Ae&&Ed(ae)===C.type)?(C=u(C,N.props),fi(C,N),C.return=M,C):(C=cl(N.type,N.key,N.props,null,M.mode,Z),fi(C,N),C.return=M,C)}function x(M,C,N,Z){return C===null||C.tag!==4||C.stateNode.containerInfo!==N.containerInfo||C.stateNode.implementation!==N.implementation?(C=lu(N,M.mode,Z),C.return=M,C):(C=u(C,N.children||[]),C.return=M,C)}function $(M,C,N,Z,ae){return C===null||C.tag!==7?(C=Oa(N,M.mode,Z,ae),C.return=M,C):(C=u(C,N),C.return=M,C)}function q(M,C,N){if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return C=iu(""+C,M.mode,N),C.return=M,C;if(typeof C=="object"&&C!==null){switch(C.$$typeof){case k:return N=cl(C.type,C.key,C.props,null,M.mode,N),fi(N,C),N.return=M,N;case j:return C=lu(C,M.mode,N),C.return=M,C;case Ae:var Z=C._init;return C=Z(C._payload),q(M,C,N)}if(fe(C)||Le(C))return C=Oa(C,M.mode,N,null),C.return=M,C;if(typeof C.then=="function")return q(M,Ml(C),N);if(C.$$typeof===ee)return q(M,_l(M,C),N);Nl(M,C)}return null}function z(M,C,N,Z){var ae=C!==null?C.key:null;if(typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint")return ae!==null?null:h(M,C,""+N,Z);if(typeof N=="object"&&N!==null){switch(N.$$typeof){case k:return N.key===ae?E(M,C,N,Z):null;case j:return N.key===ae?x(M,C,N,Z):null;case Ae:return ae=N._init,N=ae(N._payload),z(M,C,N,Z)}if(fe(N)||Le(N))return ae!==null?null:$(M,C,N,Z,null);if(typeof N.then=="function")return z(M,C,Ml(N),Z);if(N.$$typeof===ee)return z(M,C,_l(M,N),Z);Nl(M,N)}return null}function B(M,C,N,Z,ae){if(typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint")return M=M.get(N)||null,h(C,M,""+Z,ae);if(typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case k:return M=M.get(Z.key===null?N:Z.key)||null,E(C,M,Z,ae);case j:return M=M.get(Z.key===null?N:Z.key)||null,x(C,M,Z,ae);case Ae:var Oe=Z._init;return Z=Oe(Z._payload),B(M,C,N,Z,ae)}if(fe(Z)||Le(Z))return M=M.get(N)||null,$(C,M,Z,ae,null);if(typeof Z.then=="function")return B(M,C,N,Ml(Z),ae);if(Z.$$typeof===ee)return B(M,C,N,_l(C,Z),ae);Nl(C,Z)}return null}function be(M,C,N,Z){for(var ae=null,Oe=null,ce=C,ye=C=0,St=null;ce!==null&&ye<N.length;ye++){ce.index>ye?(St=ce,ce=null):St=ce.sibling;var Ue=z(M,ce,N[ye],Z);if(Ue===null){ce===null&&(ce=St);break}e&&ce&&Ue.alternate===null&&t(M,ce),C=s(Ue,C,ye),Oe===null?ae=Ue:Oe.sibling=Ue,Oe=Ue,ce=St}if(ye===N.length)return a(M,ce),He&&Na(M,ye),ae;if(ce===null){for(;ye<N.length;ye++)ce=q(M,N[ye],Z),ce!==null&&(C=s(ce,C,ye),Oe===null?ae=ce:Oe.sibling=ce,Oe=ce);return He&&Na(M,ye),ae}for(ce=i(ce);ye<N.length;ye++)St=B(ce,M,ye,N[ye],Z),St!==null&&(e&&St.alternate!==null&&ce.delete(St.key===null?ye:St.key),C=s(St,C,ye),Oe===null?ae=St:Oe.sibling=St,Oe=St);return e&&ce.forEach(function(ha){return t(M,ha)}),He&&Na(M,ye),ae}function pe(M,C,N,Z){if(N==null)throw Error(o(151));for(var ae=null,Oe=null,ce=C,ye=C=0,St=null,Ue=N.next();ce!==null&&!Ue.done;ye++,Ue=N.next()){ce.index>ye?(St=ce,ce=null):St=ce.sibling;var ha=z(M,ce,Ue.value,Z);if(ha===null){ce===null&&(ce=St);break}e&&ce&&ha.alternate===null&&t(M,ce),C=s(ha,C,ye),Oe===null?ae=ha:Oe.sibling=ha,Oe=ha,ce=St}if(Ue.done)return a(M,ce),He&&Na(M,ye),ae;if(ce===null){for(;!Ue.done;ye++,Ue=N.next())Ue=q(M,Ue.value,Z),Ue!==null&&(C=s(Ue,C,ye),Oe===null?ae=Ue:Oe.sibling=Ue,Oe=Ue);return He&&Na(M,ye),ae}for(ce=i(ce);!Ue.done;ye++,Ue=N.next())Ue=B(ce,M,ye,Ue.value,Z),Ue!==null&&(e&&Ue.alternate!==null&&ce.delete(Ue.key===null?ye:Ue.key),C=s(Ue,C,ye),Oe===null?ae=Ue:Oe.sibling=Ue,Oe=Ue);return e&&ce.forEach(function(ky){return t(M,ky)}),He&&Na(M,ye),ae}function Ve(M,C,N,Z){if(typeof N=="object"&&N!==null&&N.type===G&&N.key===null&&(N=N.props.children),typeof N=="object"&&N!==null){switch(N.$$typeof){case k:e:{for(var ae=N.key;C!==null;){if(C.key===ae){if(ae=N.type,ae===G){if(C.tag===7){a(M,C.sibling),Z=u(C,N.props.children),Z.return=M,M=Z;break e}}else if(C.elementType===ae||typeof ae=="object"&&ae!==null&&ae.$$typeof===Ae&&Ed(ae)===C.type){a(M,C.sibling),Z=u(C,N.props),fi(Z,N),Z.return=M,M=Z;break e}a(M,C);break}else t(M,C);C=C.sibling}N.type===G?(Z=Oa(N.props.children,M.mode,Z,N.key),Z.return=M,M=Z):(Z=cl(N.type,N.key,N.props,null,M.mode,Z),fi(Z,N),Z.return=M,M=Z)}return d(M);case j:e:{for(ae=N.key;C!==null;){if(C.key===ae)if(C.tag===4&&C.stateNode.containerInfo===N.containerInfo&&C.stateNode.implementation===N.implementation){a(M,C.sibling),Z=u(C,N.children||[]),Z.return=M,M=Z;break e}else{a(M,C);break}else t(M,C);C=C.sibling}Z=lu(N,M.mode,Z),Z.return=M,M=Z}return d(M);case Ae:return ae=N._init,N=ae(N._payload),Ve(M,C,N,Z)}if(fe(N))return be(M,C,N,Z);if(Le(N)){if(ae=Le(N),typeof ae!="function")throw Error(o(150));return N=ae.call(N),pe(M,C,N,Z)}if(typeof N.then=="function")return Ve(M,C,Ml(N),Z);if(N.$$typeof===ee)return Ve(M,C,_l(M,N),Z);Nl(M,N)}return typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint"?(N=""+N,C!==null&&C.tag===6?(a(M,C.sibling),Z=u(C,N),Z.return=M,M=Z):(a(M,C),Z=iu(N,M.mode,Z),Z.return=M,M=Z),d(M)):a(M,C)}return function(M,C,N,Z){try{ci=0;var ae=Ve(M,C,N,Z);return hr=null,ae}catch(ce){if(ce===ti||ce===pl)throw ce;var Oe=Vt(29,ce,null,M.mode);return Oe.lanes=Z,Oe.return=M,Oe}finally{}}}var pr=Td(!0),Cd=Td(!1),cn=L(null),Cn=null;function ea(e){var t=e.alternate;T(ht,ht.current&1),T(cn,e),Cn===null&&(t===null||fr.current!==null||t.memoizedState!==null)&&(Cn=e)}function Od(e){if(e.tag===22){if(T(ht,ht.current),T(cn,e),Cn===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(Cn=e)}}else ta()}function ta(){T(ht,ht.current),T(cn,cn.current)}function Hn(e){O(cn),Cn===e&&(Cn=null),O(ht)}var ht=L(0);function Dl(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||Ns(a)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)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}function Hu(e,t,a,i){t=e.memoizedState,a=a(i,t),a=a==null?t:A({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Iu={enqueueSetState:function(e,t,a){e=e._reactInternals;var i=Xt(),u=Xn(i);u.payload=t,a!=null&&(u.callback=a),t=Wn(e,u,i),t!==null&&(Wt(t,e,i),ai(t,e,i))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var i=Xt(),u=Xn(i);u.tag=1,u.payload=t,a!=null&&(u.callback=a),t=Wn(e,u,i),t!==null&&(Wt(t,e,i),ai(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Xt(),i=Xn(a);i.tag=2,t!=null&&(i.callback=t),t=Wn(e,i,a),t!==null&&(Wt(t,e,a),ai(t,e,a))}};function Md(e,t,a,i,u,s,d){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,s,d):t.prototype&&t.prototype.isPureReactComponent?!Vr(a,i)||!Vr(u,s):!0}function Nd(e,t,a,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,i),t.state!==e&&Iu.enqueueReplaceState(t,t.state,null)}function Ba(e,t){var a=t;if("ref"in t){a={};for(var i in t)i!=="ref"&&(a[i]=t[i])}if(e=e.defaultProps){a===t&&(a=A({},a));for(var u in e)a[u]===void 0&&(a[u]=e[u])}return a}var xl=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function Dd(e){xl(e)}function xd(e){console.error(e)}function Rd(e){xl(e)}function Rl(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}function wd(e,t,a){try{var i=e.onCaughtError;i(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function $u(e,t,a){return a=Xn(a),a.tag=3,a.payload={element:null},a.callback=function(){Rl(e,t)},a}function Ld(e){return e=Xn(e),e.tag=3,e}function zd(e,t,a,i){var u=a.type.getDerivedStateFromError;if(typeof u=="function"){var s=i.value;e.payload=function(){return u(s)},e.callback=function(){wd(t,a,i)}}var d=a.stateNode;d!==null&&typeof d.componentDidCatch=="function"&&(e.callback=function(){wd(t,a,i),typeof u!="function"&&(oa===null?oa=new Set([this]):oa.add(this));var h=i.stack;this.componentDidCatch(i.value,{componentStack:h!==null?h:""})})}function kp(e,t,a,i,u){if(a.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=a.alternate,t!==null&&Wr(t,a,u,!0),a=cn.current,a!==null){switch(a.tag){case 13:return Cn===null?fs():a.alternate===null&&it===0&&(it=3),a.flags&=-257,a.flags|=65536,a.lanes=u,i===pu?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([i]):t.add(i),ms(e,i,u)),!1;case 22:return a.flags|=65536,i===pu?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([i]):a.add(i)),ms(e,i,u)),!1}throw Error(o(435,a.tag))}return ms(e,i,u),fs(),!1}if(He)return t=cn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=u,i!==su&&(e=Error(o(422),{cause:i}),Xr(ln(e,a)))):(i!==su&&(t=Error(o(423),{cause:i}),Xr(ln(t,a))),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,i=ln(i,a),u=$u(e.stateNode,i,u),vu(e,u),it!==4&&(it=2)),!1;var s=Error(o(520),{cause:i});if(s=ln(s,a),gi===null?gi=[s]:gi.push(s),it!==4&&(it=2),t===null)return!0;i=ln(i,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=u&-u,a.lanes|=e,e=$u(a.stateNode,i,e),vu(a,e),!1;case 1:if(t=a.type,s=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||s!==null&&typeof s.componentDidCatch=="function"&&(oa===null||!oa.has(s))))return a.flags|=65536,u&=-u,a.lanes|=u,u=Ld(u),zd(u,e,a,i),vu(a,u),!1}a=a.return}while(a!==null);return!1}var Bd=Error(o(461)),vt=!1;function Et(e,t,a,i){t.child=e===null?Cd(t,null,a,i):pr(t,e.child,a,i)}function kd(e,t,a,i,u){a=a.render;var s=t.ref;if("ref"in i){var d={};for(var h in i)h!=="ref"&&(d[h]=i[h])}else d=i;return wa(t),i=Tu(e,t,a,d,s,u),h=Cu(),e!==null&&!vt?(Ou(e,t,u),In(e,t,u)):(He&&h&&ou(t),t.flags|=1,Et(e,t,i,u),t.child)}function Ud(e,t,a,i,u){if(e===null){var s=a.type;return typeof s=="function"&&!ru(s)&&s.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=s,jd(e,t,s,i,u)):(e=cl(a.type,null,i,t,t.mode,u),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!Ku(e,u)){var d=s.memoizedProps;if(a=a.compare,a=a!==null?a:Vr,a(d,i)&&e.ref===t.ref)return In(e,t,u)}return t.flags|=1,e=Ln(s,i),e.ref=t.ref,e.return=t,t.child=e}function jd(e,t,a,i,u){if(e!==null){var s=e.memoizedProps;if(Vr(s,i)&&e.ref===t.ref)if(vt=!1,t.pendingProps=i=s,Ku(e,u))(e.flags&131072)!==0&&(vt=!0);else return t.lanes=e.lanes,In(e,t,u)}return Gu(e,t,a,i,u)}function Hd(e,t,a){var i=t.pendingProps,u=i.children,s=e!==null?e.memoizedState:null;if(i.mode==="hidden"){if((t.flags&128)!==0){if(i=s!==null?s.baseLanes|a:a,e!==null){for(u=t.child=e.child,s=0;u!==null;)s=s|u.lanes|u.childLanes,u=u.sibling;t.childLanes=s&~i}else t.childLanes=0,t.child=null;return Id(e,t,i,a)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&hl(t,s!==null?s.cachePool:null),s!==null?jf(t,s):Su(),Od(t);else return t.lanes=t.childLanes=536870912,Id(e,t,s!==null?s.baseLanes|a:a,a)}else s!==null?(hl(t,s.cachePool),jf(t,s),ta(),t.memoizedState=null):(e!==null&&hl(t,null),Su(),ta());return Et(e,t,u,a),t.child}function Id(e,t,a,i){var u=hu();return u=u===null?null:{parent:_t._currentValue,pool:u},t.memoizedState={baseLanes:a,cachePool:u},e!==null&&hl(t,null),Su(),Od(t),e!==null&&Wr(e,t,i,!0),null}function wl(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(o(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function Gu(e,t,a,i,u){return wa(t),a=Tu(e,t,a,i,void 0,u),i=Cu(),e!==null&&!vt?(Ou(e,t,u),In(e,t,u)):(He&&i&&ou(t),t.flags|=1,Et(e,t,a,u),t.child)}function $d(e,t,a,i,u,s){return wa(t),t.updateQueue=null,a=If(t,i,a,u),Hf(e),i=Cu(),e!==null&&!vt?(Ou(e,t,s),In(e,t,s)):(He&&i&&ou(t),t.flags|=1,Et(e,t,a,s),t.child)}function Gd(e,t,a,i,u){if(wa(t),t.stateNode===null){var s=lr,d=a.contextType;typeof d=="object"&&d!==null&&(s=xt(d)),s=new a(i,s),t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=Iu,t.stateNode=s,s._reactInternals=t,s=t.stateNode,s.props=i,s.state=t.memoizedState,s.refs={},yu(t),d=a.contextType,s.context=typeof d=="object"&&d!==null?xt(d):lr,s.state=t.memoizedState,d=a.getDerivedStateFromProps,typeof d=="function"&&(Hu(t,a,d,i),s.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(d=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),d!==s.state&&Iu.enqueueReplaceState(s,s.state,null),ii(t,i,s,u),ri(),s.state=t.memoizedState),typeof s.componentDidMount=="function"&&(t.flags|=4194308),i=!0}else if(e===null){s=t.stateNode;var h=t.memoizedProps,E=Ba(a,h);s.props=E;var x=s.context,$=a.contextType;d=lr,typeof $=="object"&&$!==null&&(d=xt($));var q=a.getDerivedStateFromProps;$=typeof q=="function"||typeof s.getSnapshotBeforeUpdate=="function",h=t.pendingProps!==h,$||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(h||x!==d)&&Nd(t,s,i,d),Qn=!1;var z=t.memoizedState;s.state=z,ii(t,i,s,u),ri(),x=t.memoizedState,h||z!==x||Qn?(typeof q=="function"&&(Hu(t,a,q,i),x=t.memoizedState),(E=Qn||Md(t,a,E,i,z,x,d))?($||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=x),s.props=i,s.state=x,s.context=d,i=E):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{s=t.stateNode,gu(e,t),d=t.memoizedProps,$=Ba(a,d),s.props=$,q=t.pendingProps,z=s.context,x=a.contextType,E=lr,typeof x=="object"&&x!==null&&(E=xt(x)),h=a.getDerivedStateFromProps,(x=typeof h=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(d!==q||z!==E)&&Nd(t,s,i,E),Qn=!1,z=t.memoizedState,s.state=z,ii(t,i,s,u),ri();var B=t.memoizedState;d!==q||z!==B||Qn||e!==null&&e.dependencies!==null&&ml(e.dependencies)?(typeof h=="function"&&(Hu(t,a,h,i),B=t.memoizedState),($=Qn||Md(t,a,$,i,z,B,E)||e!==null&&e.dependencies!==null&&ml(e.dependencies))?(x||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(i,B,E),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(i,B,E)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||d===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=B),s.props=i,s.state=B,s.context=E,i=$):(typeof s.componentDidUpdate!="function"||d===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),i=!1)}return s=i,wl(e,t),i=(t.flags&128)!==0,s||i?(s=t.stateNode,a=i&&typeof a.getDerivedStateFromError!="function"?null:s.render(),t.flags|=1,e!==null&&i?(t.child=pr(t,e.child,null,u),t.child=pr(t,null,a,u)):Et(e,t,a,u),t.memoizedState=s.state,e=t.child):e=In(e,t,u),e}function Zd(e,t,a,i){return Qr(),t.flags|=256,Et(e,t,a,i),t.child}var Zu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Fu(e){return{baseLanes:e,cachePool:xf()}}function Yu(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=fn),e}function Fd(e,t,a){var i=t.pendingProps,u=!1,s=(t.flags&128)!==0,d;if((d=s)||(d=e!==null&&e.memoizedState===null?!1:(ht.current&2)!==0),d&&(u=!0,t.flags&=-129),d=(t.flags&32)!==0,t.flags&=-33,e===null){if(He){if(u?ea(t):ta(),He){var h=rt,E;if(E=h){e:{for(E=h,h=Tn;E.nodeType!==8;){if(!h){h=null;break e}if(E=gn(E.nextSibling),E===null){h=null;break e}}h=E}h!==null?(t.memoizedState={dehydrated:h,treeContext:Ma!==null?{id:zn,overflow:Bn}:null,retryLane:536870912,hydrationErrors:null},E=Vt(18,null,null,0),E.stateNode=h,E.return=t,t.child=E,zt=t,rt=null,E=!0):E=!1}E||xa(t)}if(h=t.memoizedState,h!==null&&(h=h.dehydrated,h!==null))return Ns(h)?t.lanes=32:t.lanes=536870912,null;Hn(t)}return h=i.children,i=i.fallback,u?(ta(),u=t.mode,h=Ll({mode:"hidden",children:h},u),i=Oa(i,u,a,null),h.return=t,i.return=t,h.sibling=i,t.child=h,u=t.child,u.memoizedState=Fu(a),u.childLanes=Yu(e,d,a),t.memoizedState=Zu,i):(ea(t),qu(t,h))}if(E=e.memoizedState,E!==null&&(h=E.dehydrated,h!==null)){if(s)t.flags&256?(ea(t),t.flags&=-257,t=Vu(e,t,a)):t.memoizedState!==null?(ta(),t.child=e.child,t.flags|=128,t=null):(ta(),u=i.fallback,h=t.mode,i=Ll({mode:"visible",children:i.children},h),u=Oa(u,h,a,null),u.flags|=2,i.return=t,u.return=t,i.sibling=u,t.child=i,pr(t,e.child,null,a),i=t.child,i.memoizedState=Fu(a),i.childLanes=Yu(e,d,a),t.memoizedState=Zu,t=u);else if(ea(t),Ns(h)){if(d=h.nextSibling&&h.nextSibling.dataset,d)var x=d.dgst;d=x,i=Error(o(419)),i.stack="",i.digest=d,Xr({value:i,source:null,stack:null}),t=Vu(e,t,a)}else if(vt||Wr(e,t,a,!1),d=(a&e.childLanes)!==0,vt||d){if(d=Xe,d!==null&&(i=a&-a,i=(i&42)!==0?1:En(i),i=(i&(d.suspendedLanes|a))!==0?0:i,i!==0&&i!==E.retryLane))throw E.retryLane=i,ir(e,i),Wt(d,e,i),Bd;h.data==="$?"||fs(),t=Vu(e,t,a)}else h.data==="$?"?(t.flags|=192,t.child=e.child,t=null):(e=E.treeContext,rt=gn(h.nextSibling),zt=t,He=!0,Da=null,Tn=!1,e!==null&&(un[sn++]=zn,un[sn++]=Bn,un[sn++]=Ma,zn=e.id,Bn=e.overflow,Ma=t),t=qu(t,i.children),t.flags|=4096);return t}return u?(ta(),u=i.fallback,h=t.mode,E=e.child,x=E.sibling,i=Ln(E,{mode:"hidden",children:i.children}),i.subtreeFlags=E.subtreeFlags&65011712,x!==null?u=Ln(x,u):(u=Oa(u,h,a,null),u.flags|=2),u.return=t,i.return=t,i.sibling=u,t.child=i,i=u,u=t.child,h=e.child.memoizedState,h===null?h=Fu(a):(E=h.cachePool,E!==null?(x=_t._currentValue,E=E.parent!==x?{parent:x,pool:x}:E):E=xf(),h={baseLanes:h.baseLanes|a,cachePool:E}),u.memoizedState=h,u.childLanes=Yu(e,d,a),t.memoizedState=Zu,i):(ea(t),a=e.child,e=a.sibling,a=Ln(a,{mode:"visible",children:i.children}),a.return=t,a.sibling=null,e!==null&&(d=t.deletions,d===null?(t.deletions=[e],t.flags|=16):d.push(e)),t.child=a,t.memoizedState=null,a)}function qu(e,t){return t=Ll({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Ll(e,t){return e=Vt(22,e,null,t),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function Vu(e,t,a){return pr(t,e.child,null,a),e=qu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Yd(e,t,a){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),fu(e.return,t,a)}function Pu(e,t,a,i,u){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:a,tailMode:u}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=i,s.tail=a,s.tailMode=u)}function qd(e,t,a){var i=t.pendingProps,u=i.revealOrder,s=i.tail;if(Et(e,t,i.children,a),i=ht.current,(i&2)!==0)i=i&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Yd(e,a,t);else if(e.tag===19)Yd(e,a,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}i&=1}switch(T(ht,i),u){case"forwards":for(a=t.child,u=null;a!==null;)e=a.alternate,e!==null&&Dl(e)===null&&(u=a),a=a.sibling;a=u,a===null?(u=t.child,t.child=null):(u=a.sibling,a.sibling=null),Pu(t,!1,u,a,s);break;case"backwards":for(a=null,u=t.child,t.child=null;u!==null;){if(e=u.alternate,e!==null&&Dl(e)===null){t.child=u;break}e=u.sibling,u.sibling=a,a=u,u=e}Pu(t,!0,a,null,s);break;case"together":Pu(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function In(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),la|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(Wr(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,a=Ln(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=Ln(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function Ku(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&ml(e)))}function Up(e,t,a){switch(t.tag){case 3:K(t,t.stateNode.containerInfo),Kn(t,_t,e.memoizedState.cache),Qr();break;case 27:case 5:Se(t);break;case 4:K(t,t.stateNode.containerInfo);break;case 10:Kn(t,t.type,t.memoizedProps.value);break;case 13:var i=t.memoizedState;if(i!==null)return i.dehydrated!==null?(ea(t),t.flags|=128,null):(a&t.child.childLanes)!==0?Fd(e,t,a):(ea(t),e=In(e,t,a),e!==null?e.sibling:null);ea(t);break;case 19:var u=(e.flags&128)!==0;if(i=(a&t.childLanes)!==0,i||(Wr(e,t,a,!1),i=(a&t.childLanes)!==0),u){if(i)return qd(e,t,a);t.flags|=128}if(u=t.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),T(ht,ht.current),i)break;return null;case 22:case 23:return t.lanes=0,Hd(e,t,a);case 24:Kn(t,_t,e.memoizedState.cache)}return In(e,t,a)}function Vd(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)vt=!0;else{if(!Ku(e,a)&&(t.flags&128)===0)return vt=!1,Up(e,t,a);vt=(e.flags&131072)!==0}else vt=!1,He&&(t.flags&1048576)!==0&&Ef(t,dl,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var i=t.elementType,u=i._init;if(i=u(i._payload),t.type=i,typeof i=="function")ru(i)?(e=Ba(i,e),t.tag=1,t=Gd(null,t,i,e,a)):(t.tag=0,t=Gu(null,t,i,e,a));else{if(i!=null){if(u=i.$$typeof,u===re){t.tag=11,t=kd(null,t,i,e,a);break e}else if(u===ne){t.tag=14,t=Ud(null,t,i,e,a);break e}}throw t=We(i)||i,Error(o(306,t,""))}}return t;case 0:return Gu(e,t,t.type,t.pendingProps,a);case 1:return i=t.type,u=Ba(i,t.pendingProps),Gd(e,t,i,u,a);case 3:e:{if(K(t,t.stateNode.containerInfo),e===null)throw Error(o(387));i=t.pendingProps;var s=t.memoizedState;u=s.element,gu(e,t),ii(t,i,null,a);var d=t.memoizedState;if(i=d.cache,Kn(t,_t,i),i!==s.cache&&du(t,[_t],a,!0),ri(),i=d.element,s.isDehydrated)if(s={element:i,isDehydrated:!1,cache:d.cache},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){t=Zd(e,t,i,a);break e}else if(i!==u){u=ln(Error(o(424)),t),Xr(u),t=Zd(e,t,i,a);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(rt=gn(e.firstChild),zt=t,He=!0,Da=null,Tn=!0,a=Cd(t,null,i,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(Qr(),i===u){t=In(e,t,a);break e}Et(e,t,i,a)}t=t.child}return t;case 26:return wl(e,t),e===null?(a=Xm(t.type,null,t.pendingProps,null))?t.memoizedState=a:He||(a=t.type,e=t.pendingProps,i=Vl(w.current).createElement(a),i[Dt]=t,i[kt]=e,Ct(i,a,e),gt(i),t.stateNode=i):t.memoizedState=Xm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Se(t),e===null&&He&&(i=t.stateNode=Pm(t.type,t.pendingProps,w.current),zt=t,Tn=!0,u=rt,ca(t.type)?(Ds=u,rt=gn(i.firstChild)):rt=u),Et(e,t,t.pendingProps.children,a),wl(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&He&&((u=i=rt)&&(i=fy(i,t.type,t.pendingProps,Tn),i!==null?(t.stateNode=i,zt=t,rt=gn(i.firstChild),Tn=!1,u=!0):u=!1),u||xa(t)),Se(t),u=t.type,s=t.pendingProps,d=e!==null?e.memoizedProps:null,i=s.children,Cs(u,s)?i=null:d!==null&&Cs(u,d)&&(t.flags|=32),t.memoizedState!==null&&(u=Tu(e,t,Dp,null,null,a),Mi._currentValue=u),wl(e,t),Et(e,t,i,a),t.child;case 6:return e===null&&He&&((e=a=rt)&&(a=dy(a,t.pendingProps,Tn),a!==null?(t.stateNode=a,zt=t,rt=null,e=!0):e=!1),e||xa(t)),null;case 13:return Fd(e,t,a);case 4:return K(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=pr(t,null,i,a):Et(e,t,i,a),t.child;case 11:return kd(e,t,t.type,t.pendingProps,a);case 7:return Et(e,t,t.pendingProps,a),t.child;case 8:return Et(e,t,t.pendingProps.children,a),t.child;case 12:return Et(e,t,t.pendingProps.children,a),t.child;case 10:return i=t.pendingProps,Kn(t,t.type,i.value),Et(e,t,i.children,a),t.child;case 9:return u=t.type._context,i=t.pendingProps.children,wa(t),u=xt(u),i=i(u),t.flags|=1,Et(e,t,i,a),t.child;case 14:return Ud(e,t,t.type,t.pendingProps,a);case 15:return jd(e,t,t.type,t.pendingProps,a);case 19:return qd(e,t,a);case 31:return i=t.pendingProps,a=t.mode,i={mode:i.mode,children:i.children},e===null?(a=Ll(i,a),a.ref=t.ref,t.child=a,a.return=t,t=a):(a=Ln(e.child,i),a.ref=t.ref,t.child=a,a.return=t,t=a),t;case 22:return Hd(e,t,a);case 24:return wa(t),i=xt(_t),e===null?(u=hu(),u===null&&(u=Xe,s=mu(),u.pooledCache=s,s.refCount++,s!==null&&(u.pooledCacheLanes|=a),u=s),t.memoizedState={parent:i,cache:u},yu(t),Kn(t,_t,u)):((e.lanes&a)!==0&&(gu(e,t),ii(t,null,null,a),ri()),u=e.memoizedState,s=t.memoizedState,u.parent!==i?(u={parent:i,cache:i},t.memoizedState=u,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=u),Kn(t,_t,i)):(i=s.cache,Kn(t,_t,i),i!==u.cache&&du(t,[_t],a,!0))),Et(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function $n(e){e.flags|=4}function Pd(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!n_(t)){if(t=cn.current,t!==null&&((we&4194048)===we?Cn!==null:(we&62914560)!==we&&(we&536870912)===0||t!==Cn))throw ni=pu,Rf;e.flags|=8192}}function zl(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Fa():536870912,e.lanes|=t,br|=t)}function di(e,t){if(!He)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var i=null;a!==null;)a.alternate!==null&&(i=a),a=a.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function nt(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,i=0;if(t)for(var u=e.child;u!==null;)a|=u.lanes|u.childLanes,i|=u.subtreeFlags&65011712,i|=u.flags&65011712,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)a|=u.lanes|u.childLanes,i|=u.subtreeFlags,i|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=i,e.childLanes=a,t}function jp(e,t,a){var i=t.pendingProps;switch(uu(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return nt(t),null;case 1:return nt(t),null;case 3:return a=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),Un(_t),ie(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Kr(t)?$n(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Of())),nt(t),null;case 26:return a=t.memoizedState,e===null?($n(t),a!==null?(nt(t),Pd(t,a)):(nt(t),t.flags&=-16777217)):a?a!==e.memoizedState?($n(t),nt(t),Pd(t,a)):(nt(t),t.flags&=-16777217):(e.memoizedProps!==i&&$n(t),nt(t),t.flags&=-16777217),null;case 27:Q(t),a=w.current;var u=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==i&&$n(t);else{if(!i){if(t.stateNode===null)throw Error(o(166));return nt(t),null}e=S.current,Kr(t)?Tf(t):(e=Pm(u,i,a),t.stateNode=e,$n(t))}return nt(t),null;case 5:if(Q(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&$n(t);else{if(!i){if(t.stateNode===null)throw Error(o(166));return nt(t),null}if(e=S.current,Kr(t))Tf(t);else{switch(u=Vl(w.current),e){case 1:e=u.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:e=u.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":e=u.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":e=u.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":e=u.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof i.is=="string"?u.createElement("select",{is:i.is}):u.createElement("select"),i.multiple?e.multiple=!0:i.size&&(e.size=i.size);break;default:e=typeof i.is=="string"?u.createElement(a,{is:i.is}):u.createElement(a)}}e[Dt]=t,e[kt]=i;e:for(u=t.child;u!==null;){if(u.tag===5||u.tag===6)e.appendChild(u.stateNode);else if(u.tag!==4&&u.tag!==27&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===t)break e;for(;u.sibling===null;){if(u.return===null||u.return===t)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}t.stateNode=e;e:switch(Ct(e,a,i),a){case"button":case"input":case"select":case"textarea":e=!!i.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&$n(t)}}return nt(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&$n(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(o(166));if(e=w.current,Kr(t)){if(e=t.stateNode,a=t.memoizedProps,i=null,u=zt,u!==null)switch(u.tag){case 27:case 5:i=u.memoizedProps}e[Dt]=t,e=!!(e.nodeValue===a||i!==null&&i.suppressHydrationWarning===!0||$m(e.nodeValue,a)),e||xa(t)}else e=Vl(e).createTextNode(i),e[Dt]=t,t.stateNode=e}return nt(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(u=Kr(t),i!==null&&i.dehydrated!==null){if(e===null){if(!u)throw Error(o(318));if(u=t.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(o(317));u[Dt]=t}else Qr(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;nt(t),u=!1}else u=Of(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=u),u=!0;if(!u)return t.flags&256?(Hn(t),t):(Hn(t),null)}if(Hn(t),(t.flags&128)!==0)return t.lanes=a,t;if(a=i!==null,e=e!==null&&e.memoizedState!==null,a){i=t.child,u=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(u=i.alternate.memoizedState.cachePool.pool);var s=null;i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(s=i.memoizedState.cachePool.pool),s!==u&&(i.flags|=2048)}return a!==e&&a&&(t.child.flags|=8192),zl(t,t.updateQueue),nt(t),null;case 4:return ie(),e===null&&bs(t.stateNode.containerInfo),nt(t),null;case 10:return Un(t.type),nt(t),null;case 19:if(O(ht),u=t.memoizedState,u===null)return nt(t),null;if(i=(t.flags&128)!==0,s=u.rendering,s===null)if(i)di(u,!1);else{if(it!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(s=Dl(e),s!==null){for(t.flags|=128,di(u,!1),e=s.updateQueue,t.updateQueue=e,zl(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)Af(a,e),a=a.sibling;return T(ht,ht.current&1|2),t.child}e=e.sibling}u.tail!==null&&he()>Ul&&(t.flags|=128,i=!0,di(u,!1),t.lanes=4194304)}else{if(!i)if(e=Dl(s),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,zl(t,e),di(u,!0),u.tail===null&&u.tailMode==="hidden"&&!s.alternate&&!He)return nt(t),null}else 2*he()-u.renderingStartTime>Ul&&a!==536870912&&(t.flags|=128,i=!0,di(u,!1),t.lanes=4194304);u.isBackwards?(s.sibling=t.child,t.child=s):(e=u.last,e!==null?e.sibling=s:t.child=s,u.last=s)}return u.tail!==null?(t=u.tail,u.rendering=t,u.tail=t.sibling,u.renderingStartTime=he(),t.sibling=null,e=ht.current,T(ht,i?e&1|2:e&1),t):(nt(t),null);case 22:case 23:return Hn(t),Au(),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?(a&536870912)!==0&&(t.flags&128)===0&&(nt(t),t.subtreeFlags&6&&(t.flags|=8192)):nt(t),a=t.updateQueue,a!==null&&zl(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==a&&(t.flags|=2048),e!==null&&O(La),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Un(_t),nt(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function Hp(e,t){switch(uu(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Un(_t),ie(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Q(t),null;case 13:if(Hn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));Qr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return O(ht),null;case 4:return ie(),null;case 10:return Un(t.type),null;case 22:case 23:return Hn(t),Au(),e!==null&&O(La),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Un(_t),null;case 25:return null;default:return null}}function Kd(e,t){switch(uu(t),t.tag){case 3:Un(_t),ie();break;case 26:case 27:case 5:Q(t);break;case 4:ie();break;case 13:Hn(t);break;case 19:O(ht);break;case 10:Un(t.type);break;case 22:case 23:Hn(t),Au(),e!==null&&O(La);break;case 24:Un(_t)}}function mi(e,t){try{var a=t.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var u=i.next;a=u;do{if((a.tag&e)===e){i=void 0;var s=a.create,d=a.inst;i=s(),d.destroy=i}a=a.next}while(a!==u)}}catch(h){Pe(t,t.return,h)}}function na(e,t,a){try{var i=t.updateQueue,u=i!==null?i.lastEffect:null;if(u!==null){var s=u.next;i=s;do{if((i.tag&e)===e){var d=i.inst,h=d.destroy;if(h!==void 0){d.destroy=void 0,u=t;var E=a,x=h;try{x()}catch($){Pe(u,E,$)}}}i=i.next}while(i!==s)}}catch($){Pe(t,t.return,$)}}function Qd(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{Uf(t,a)}catch(i){Pe(e,e.return,i)}}}function Xd(e,t,a){a.props=Ba(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(i){Pe(e,t,i)}}function _i(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:i=e.stateNode;break;default:i=e.stateNode}typeof a=="function"?e.refCleanup=a(i):a.current=i}}catch(u){Pe(e,t,u)}}function On(e,t){var a=e.ref,i=e.refCleanup;if(a!==null)if(typeof i=="function")try{i()}catch(u){Pe(e,t,u)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(u){Pe(e,t,u)}else a.current=null}function Wd(e){var t=e.type,a=e.memoizedProps,i=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&i.focus();break e;case"img":a.src?i.src=a.src:a.srcSet&&(i.srcset=a.srcSet)}}catch(u){Pe(e,e.return,u)}}function Qu(e,t,a){try{var i=e.stateNode;ly(i,e.type,a,t),i[kt]=t}catch(u){Pe(e,e.return,u)}}function Jd(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ca(e.type)||e.tag===4}function Xu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Jd(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.tag===27&&ca(e.type)||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 Wu(e,t,a){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=ql));else if(i!==4&&(i===27&&ca(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(Wu(e,t,a),e=e.sibling;e!==null;)Wu(e,t,a),e=e.sibling}function Bl(e,t,a){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(i!==4&&(i===27&&ca(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Bl(e,t,a),e=e.sibling;e!==null;)Bl(e,t,a),e=e.sibling}function em(e){var t=e.stateNode,a=e.memoizedProps;try{for(var i=e.type,u=t.attributes;u.length;)t.removeAttributeNode(u[0]);Ct(t,i,a),t[Dt]=e,t[kt]=a}catch(s){Pe(e,e.return,s)}}var Gn=!1,st=!1,Ju=!1,tm=typeof WeakSet=="function"?WeakSet:Set,bt=null;function Ip(e,t){if(e=e.containerInfo,Es=Jl,e=df(e),Xo(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var i=a.getSelection&&a.getSelection();if(i&&i.rangeCount!==0){a=i.anchorNode;var u=i.anchorOffset,s=i.focusNode;i=i.focusOffset;try{a.nodeType,s.nodeType}catch{a=null;break e}var d=0,h=-1,E=-1,x=0,$=0,q=e,z=null;t:for(;;){for(var B;q!==a||u!==0&&q.nodeType!==3||(h=d+u),q!==s||i!==0&&q.nodeType!==3||(E=d+i),q.nodeType===3&&(d+=q.nodeValue.length),(B=q.firstChild)!==null;)z=q,q=B;for(;;){if(q===e)break t;if(z===a&&++x===u&&(h=d),z===s&&++$===i&&(E=d),(B=q.nextSibling)!==null)break;q=z,z=q.parentNode}q=B}a=h===-1||E===-1?null:{start:h,end:E}}else a=null}a=a||{start:0,end:0}}else a=null;for(Ts={focusedElem:e,selectionRange:a},Jl=!1,bt=t;bt!==null;)if(t=bt,e=t.child,(t.subtreeFlags&1024)!==0&&e!==null)e.return=t,bt=e;else for(;bt!==null;){switch(t=bt,s=t.alternate,e=t.flags,t.tag){case 0:break;case 11:case 15:break;case 1:if((e&1024)!==0&&s!==null){e=void 0,a=t,u=s.memoizedProps,s=s.memoizedState,i=a.stateNode;try{var be=Ba(a.type,u,a.elementType===a.type);e=i.getSnapshotBeforeUpdate(be,s),i.__reactInternalSnapshotBeforeUpdate=e}catch(pe){Pe(a,a.return,pe)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)Ms(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Ms(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(o(163))}if(e=t.sibling,e!==null){e.return=t.return,bt=e;break}bt=t.return}}function nm(e,t,a){var i=a.flags;switch(a.tag){case 0:case 11:case 15:aa(e,a),i&4&&mi(5,a);break;case 1:if(aa(e,a),i&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(d){Pe(a,a.return,d)}else{var u=Ba(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(u,t,e.__reactInternalSnapshotBeforeUpdate)}catch(d){Pe(a,a.return,d)}}i&64&&Qd(a),i&512&&_i(a,a.return);break;case 3:if(aa(e,a),i&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{Uf(e,t)}catch(d){Pe(a,a.return,d)}}break;case 27:t===null&&i&4&&em(a);case 26:case 5:aa(e,a),t===null&&i&4&&Wd(a),i&512&&_i(a,a.return);break;case 12:aa(e,a);break;case 13:aa(e,a),i&4&&im(e,a),i&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=Kp.bind(null,a),my(e,a))));break;case 22:if(i=a.memoizedState!==null||Gn,!i){t=t!==null&&t.memoizedState!==null||st,u=Gn;var s=st;Gn=i,(st=t)&&!s?ra(e,a,(a.subtreeFlags&8772)!==0):aa(e,a),Gn=u,st=s}break;case 30:break;default:aa(e,a)}}function am(e){var t=e.alternate;t!==null&&(e.alternate=null,am(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&wo(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var et=null,Ht=!1;function Zn(e,t,a){for(a=a.child;a!==null;)rm(e,t,a),a=a.sibling}function rm(e,t,a){if(Be&&typeof Be.onCommitFiberUnmount=="function")try{Be.onCommitFiberUnmount(Yt,a)}catch{}switch(a.tag){case 26:st||On(a,t),Zn(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:st||On(a,t);var i=et,u=Ht;ca(a.type)&&(et=a.stateNode,Ht=!1),Zn(e,t,a),Ei(a.stateNode),et=i,Ht=u;break;case 5:st||On(a,t);case 6:if(i=et,u=Ht,et=null,Zn(e,t,a),et=i,Ht=u,et!==null)if(Ht)try{(et.nodeType===9?et.body:et.nodeName==="HTML"?et.ownerDocument.body:et).removeChild(a.stateNode)}catch(s){Pe(a,t,s)}else try{et.removeChild(a.stateNode)}catch(s){Pe(a,t,s)}break;case 18:et!==null&&(Ht?(e=et,qm(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Ri(e)):qm(et,a.stateNode));break;case 4:i=et,u=Ht,et=a.stateNode.containerInfo,Ht=!0,Zn(e,t,a),et=i,Ht=u;break;case 0:case 11:case 14:case 15:st||na(2,a,t),st||na(4,a,t),Zn(e,t,a);break;case 1:st||(On(a,t),i=a.stateNode,typeof i.componentWillUnmount=="function"&&Xd(a,t,i)),Zn(e,t,a);break;case 21:Zn(e,t,a);break;case 22:st=(i=st)||a.memoizedState!==null,Zn(e,t,a),st=i;break;default:Zn(e,t,a)}}function im(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ri(e)}catch(a){Pe(t,t.return,a)}}function $p(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new tm),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new tm),t;default:throw Error(o(435,e.tag))}}function es(e,t){var a=$p(e);t.forEach(function(i){var u=Qp.bind(null,e,i);a.has(i)||(a.add(i),i.then(u,u))})}function Pt(e,t){var a=t.deletions;if(a!==null)for(var i=0;i<a.length;i++){var u=a[i],s=e,d=t,h=d;e:for(;h!==null;){switch(h.tag){case 27:if(ca(h.type)){et=h.stateNode,Ht=!1;break e}break;case 5:et=h.stateNode,Ht=!1;break e;case 3:case 4:et=h.stateNode.containerInfo,Ht=!0;break e}h=h.return}if(et===null)throw Error(o(160));rm(s,d,u),et=null,Ht=!1,s=u.alternate,s!==null&&(s.return=null),u.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)lm(t,e),t=t.sibling}var yn=null;function lm(e,t){var a=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Pt(t,e),Kt(e),i&4&&(na(3,e,e.return),mi(3,e),na(5,e,e.return));break;case 1:Pt(t,e),Kt(e),i&512&&(st||a===null||On(a,a.return)),i&64&&Gn&&(e=e.updateQueue,e!==null&&(i=e.callbacks,i!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?i:a.concat(i))));break;case 26:var u=yn;if(Pt(t,e),Kt(e),i&512&&(st||a===null||On(a,a.return)),i&4){var s=a!==null?a.memoizedState:null;if(i=e.memoizedState,a===null)if(i===null)if(e.stateNode===null){e:{i=e.type,a=e.memoizedProps,u=u.ownerDocument||u;t:switch(i){case"title":s=u.getElementsByTagName("title")[0],(!s||s[jr]||s[Dt]||s.namespaceURI==="http://www.w3.org/2000/svg"||s.hasAttribute("itemprop"))&&(s=u.createElement(i),u.head.insertBefore(s,u.querySelector("head > title"))),Ct(s,i,a),s[Dt]=e,gt(s),i=s;break e;case"link":var d=e_("link","href",u).get(i+(a.href||""));if(d){for(var h=0;h<d.length;h++)if(s=d[h],s.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&s.getAttribute("rel")===(a.rel==null?null:a.rel)&&s.getAttribute("title")===(a.title==null?null:a.title)&&s.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){d.splice(h,1);break t}}s=u.createElement(i),Ct(s,i,a),u.head.appendChild(s);break;case"meta":if(d=e_("meta","content",u).get(i+(a.content||""))){for(h=0;h<d.length;h++)if(s=d[h],s.getAttribute("content")===(a.content==null?null:""+a.content)&&s.getAttribute("name")===(a.name==null?null:a.name)&&s.getAttribute("property")===(a.property==null?null:a.property)&&s.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&s.getAttribute("charset")===(a.charSet==null?null:a.charSet)){d.splice(h,1);break t}}s=u.createElement(i),Ct(s,i,a),u.head.appendChild(s);break;default:throw Error(o(468,i))}s[Dt]=e,gt(s),i=s}e.stateNode=i}else t_(u,e.type,e.stateNode);else e.stateNode=Jm(u,i,e.memoizedProps);else s!==i?(s===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):s.count--,i===null?t_(u,e.type,e.stateNode):Jm(u,i,e.memoizedProps)):i===null&&e.stateNode!==null&&Qu(e,e.memoizedProps,a.memoizedProps)}break;case 27:Pt(t,e),Kt(e),i&512&&(st||a===null||On(a,a.return)),a!==null&&i&4&&Qu(e,e.memoizedProps,a.memoizedProps);break;case 5:if(Pt(t,e),Kt(e),i&512&&(st||a===null||On(a,a.return)),e.flags&32){u=e.stateNode;try{Wa(u,"")}catch(B){Pe(e,e.return,B)}}i&4&&e.stateNode!=null&&(u=e.memoizedProps,Qu(e,u,a!==null?a.memoizedProps:u)),i&1024&&(Ju=!0);break;case 6:if(Pt(t,e),Kt(e),i&4){if(e.stateNode===null)throw Error(o(162));i=e.memoizedProps,a=e.stateNode;try{a.nodeValue=i}catch(B){Pe(e,e.return,B)}}break;case 3:if(Ql=null,u=yn,yn=Pl(t.containerInfo),Pt(t,e),yn=u,Kt(e),i&4&&a!==null&&a.memoizedState.isDehydrated)try{Ri(t.containerInfo)}catch(B){Pe(e,e.return,B)}Ju&&(Ju=!1,om(e));break;case 4:i=yn,yn=Pl(e.stateNode.containerInfo),Pt(t,e),Kt(e),yn=i;break;case 12:Pt(t,e),Kt(e);break;case 13:Pt(t,e),Kt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(ls=he()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,es(e,i)));break;case 22:u=e.memoizedState!==null;var E=a!==null&&a.memoizedState!==null,x=Gn,$=st;if(Gn=x||u,st=$||E,Pt(t,e),st=$,Gn=x,Kt(e),i&8192)e:for(t=e.stateNode,t._visibility=u?t._visibility&-2:t._visibility|1,u&&(a===null||E||Gn||st||ka(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){E=a=t;try{if(s=E.stateNode,u)d=s.style,typeof d.setProperty=="function"?d.setProperty("display","none","important"):d.display="none";else{h=E.stateNode;var q=E.memoizedProps.style,z=q!=null&&q.hasOwnProperty("display")?q.display:null;h.style.display=z==null||typeof z=="boolean"?"":(""+z).trim()}}catch(B){Pe(E,E.return,B)}}}else if(t.tag===6){if(a===null){E=t;try{E.stateNode.nodeValue=u?"":E.memoizedProps}catch(B){Pe(E,E.return,B)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}i&4&&(i=e.updateQueue,i!==null&&(a=i.retryQueue,a!==null&&(i.retryQueue=null,es(e,a))));break;case 19:Pt(t,e),Kt(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,es(e,i)));break;case 30:break;case 21:break;default:Pt(t,e),Kt(e)}}function Kt(e){var t=e.flags;if(t&2){try{for(var a,i=e.return;i!==null;){if(Jd(i)){a=i;break}i=i.return}if(a==null)throw Error(o(160));switch(a.tag){case 27:var u=a.stateNode,s=Xu(e);Bl(e,s,u);break;case 5:var d=a.stateNode;a.flags&32&&(Wa(d,""),a.flags&=-33);var h=Xu(e);Bl(e,h,d);break;case 3:case 4:var E=a.stateNode.containerInfo,x=Xu(e);Wu(e,x,E);break;default:throw Error(o(161))}}catch($){Pe(e,e.return,$)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function om(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;om(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function aa(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)nm(e,t.alternate,t),t=t.sibling}function ka(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:na(4,t,t.return),ka(t);break;case 1:On(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&Xd(t,t.return,a),ka(t);break;case 27:Ei(t.stateNode);case 26:case 5:On(t,t.return),ka(t);break;case 22:t.memoizedState===null&&ka(t);break;case 30:ka(t);break;default:ka(t)}e=e.sibling}}function ra(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var i=t.alternate,u=e,s=t,d=s.flags;switch(s.tag){case 0:case 11:case 15:ra(u,s,a),mi(4,s);break;case 1:if(ra(u,s,a),i=s,u=i.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(x){Pe(i,i.return,x)}if(i=s,u=i.updateQueue,u!==null){var h=i.stateNode;try{var E=u.shared.hiddenCallbacks;if(E!==null)for(u.shared.hiddenCallbacks=null,u=0;u<E.length;u++)kf(E[u],h)}catch(x){Pe(i,i.return,x)}}a&&d&64&&Qd(s),_i(s,s.return);break;case 27:em(s);case 26:case 5:ra(u,s,a),a&&i===null&&d&4&&Wd(s),_i(s,s.return);break;case 12:ra(u,s,a);break;case 13:ra(u,s,a),a&&d&4&&im(u,s);break;case 22:s.memoizedState===null&&ra(u,s,a),_i(s,s.return);break;case 30:break;default:ra(u,s,a)}t=t.sibling}}function ts(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&Jr(a))}function ns(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Jr(e))}function Mn(e,t,a,i){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)um(e,t,a,i),t=t.sibling}function um(e,t,a,i){var u=t.flags;switch(t.tag){case 0:case 11:case 15:Mn(e,t,a,i),u&2048&&mi(9,t);break;case 1:Mn(e,t,a,i);break;case 3:Mn(e,t,a,i),u&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Jr(e)));break;case 12:if(u&2048){Mn(e,t,a,i),e=t.stateNode;try{var s=t.memoizedProps,d=s.id,h=s.onPostCommit;typeof h=="function"&&h(d,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(E){Pe(t,t.return,E)}}else Mn(e,t,a,i);break;case 13:Mn(e,t,a,i);break;case 23:break;case 22:s=t.stateNode,d=t.alternate,t.memoizedState!==null?s._visibility&2?Mn(e,t,a,i):hi(e,t):s._visibility&2?Mn(e,t,a,i):(s._visibility|=2,yr(e,t,a,i,(t.subtreeFlags&10256)!==0)),u&2048&&ts(d,t);break;case 24:Mn(e,t,a,i),u&2048&&ns(t.alternate,t);break;default:Mn(e,t,a,i)}}function yr(e,t,a,i,u){for(u=u&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;){var s=e,d=t,h=a,E=i,x=d.flags;switch(d.tag){case 0:case 11:case 15:yr(s,d,h,E,u),mi(8,d);break;case 23:break;case 22:var $=d.stateNode;d.memoizedState!==null?$._visibility&2?yr(s,d,h,E,u):hi(s,d):($._visibility|=2,yr(s,d,h,E,u)),u&&x&2048&&ts(d.alternate,d);break;case 24:yr(s,d,h,E,u),u&&x&2048&&ns(d.alternate,d);break;default:yr(s,d,h,E,u)}t=t.sibling}}function hi(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,i=t,u=i.flags;switch(i.tag){case 22:hi(a,i),u&2048&&ts(i.alternate,i);break;case 24:hi(a,i),u&2048&&ns(i.alternate,i);break;default:hi(a,i)}t=t.sibling}}var pi=8192;function gr(e){if(e.subtreeFlags&pi)for(e=e.child;e!==null;)sm(e),e=e.sibling}function sm(e){switch(e.tag){case 26:gr(e),e.flags&pi&&e.memoizedState!==null&&Oy(yn,e.memoizedState,e.memoizedProps);break;case 5:gr(e);break;case 3:case 4:var t=yn;yn=Pl(e.stateNode.containerInfo),gr(e),yn=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=pi,pi=16777216,gr(e),pi=t):gr(e));break;default:gr(e)}}function cm(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function yi(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var i=t[a];bt=i,dm(i,e)}cm(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)fm(e),e=e.sibling}function fm(e){switch(e.tag){case 0:case 11:case 15:yi(e),e.flags&2048&&na(9,e,e.return);break;case 3:yi(e);break;case 12:yi(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,kl(e)):yi(e);break;default:yi(e)}}function kl(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var i=t[a];bt=i,dm(i,e)}cm(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:na(8,t,t.return),kl(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,kl(t));break;default:kl(t)}e=e.sibling}}function dm(e,t){for(;bt!==null;){var a=bt;switch(a.tag){case 0:case 11:case 15:na(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var i=a.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:Jr(a.memoizedState.cache)}if(i=a.child,i!==null)i.return=a,bt=i;else e:for(a=e;bt!==null;){i=bt;var u=i.sibling,s=i.return;if(am(i),i===a){bt=null;break e}if(u!==null){u.return=s,bt=u;break e}bt=s}}}var Gp={getCacheForType:function(e){var t=xt(_t),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a}},Zp=typeof WeakMap=="function"?WeakMap:Map,Ge=0,Xe=null,Ne=null,we=0,Ze=0,Qt=null,ia=!1,vr=!1,as=!1,Fn=0,it=0,la=0,Ua=0,rs=0,fn=0,br=0,gi=null,It=null,is=!1,ls=0,Ul=1/0,jl=null,oa=null,Tt=0,ua=null,Sr=null,Ar=0,os=0,us=null,mm=null,vi=0,ss=null;function Xt(){if((Ge&2)!==0&&we!==0)return we&-we;if(v.T!==null){var e=sr;return e!==0?e:ps()}return Ki()}function _m(){fn===0&&(fn=(we&536870912)===0||He?Za():536870912);var e=cn.current;return e!==null&&(e.flags|=32),fn}function Wt(e,t,a){(e===Xe&&(Ze===2||Ze===9)||e.cancelPendingCommit!==null)&&(Er(e,0),sa(e,we,fn,!1)),An(e,a),((Ge&2)===0||e!==Xe)&&(e===Xe&&((Ge&2)===0&&(Ua|=a),it===4&&sa(e,we,fn,!1)),Nn(e))}function hm(e,t,a){if((Ge&6)!==0)throw Error(o(327));var i=!a&&(t&124)===0&&(t&e.expiredLanes)===0||Dn(e,t),u=i?qp(e,t):ds(e,t,!0),s=i;do{if(u===0){vr&&!i&&sa(e,t,0,!1);break}else{if(a=e.current.alternate,s&&!Fp(a)){u=ds(e,t,!1),s=!1;continue}if(u===2){if(s=t,e.errorRecoveryDisabledLanes&s)var d=0;else d=e.pendingLanes&-536870913,d=d!==0?d:d&536870912?536870912:0;if(d!==0){t=d;e:{var h=e;u=gi;var E=h.current.memoizedState.isDehydrated;if(E&&(Er(h,d).flags|=256),d=ds(h,d,!1),d!==2){if(as&&!E){h.errorRecoveryDisabledLanes|=s,Ua|=s,u=4;break e}s=It,It=u,s!==null&&(It===null?It=s:It.push.apply(It,s))}u=d}if(s=!1,u!==2)continue}}if(u===1){Er(e,0),sa(e,t,0,!0);break}e:{switch(i=e,s=u,s){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t)break;case 6:sa(i,t,fn,!ia);break e;case 2:It=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(u=ls+300-he(),10<u)){if(sa(i,t,fn,!ia),_n(i,0,!0)!==0)break e;i.timeoutHandle=Fm(pm.bind(null,i,a,It,jl,is,t,fn,Ua,br,ia,s,2,-0,0),u);break e}pm(i,a,It,jl,is,t,fn,Ua,br,ia,s,0,-0,0)}}break}while(!0);Nn(e)}function pm(e,t,a,i,u,s,d,h,E,x,$,q,z,B){if(e.timeoutHandle=-1,q=t.subtreeFlags,(q&8192||(q&16785408)===16785408)&&(Oi={stylesheets:null,count:0,unsuspend:Cy},sm(t),q=My(),q!==null)){e.cancelPendingCommit=q(Em.bind(null,e,t,s,a,i,u,d,h,E,$,1,z,B)),sa(e,s,d,!x);return}Em(e,t,s,a,i,u,d,h,E)}function Fp(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var i=0;i<a.length;i++){var u=a[i],s=u.getSnapshot;u=u.value;try{if(!qt(s(),u))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;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 sa(e,t,a,i){t&=~rs,t&=~Ua,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var u=t;0<u;){var s=31-je(u),d=1<<s;i[s]=-1,u&=~d}a!==0&&Vi(e,a,t)}function Hl(){return(Ge&6)===0?(bi(0),!1):!0}function cs(){if(Ne!==null){if(Ze===0)var e=Ne.return;else e=Ne,kn=Ra=null,Mu(e),hr=null,ci=0,e=Ne;for(;e!==null;)Kd(e.alternate,e),e=e.return;Ne=null}}function Er(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,uy(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),cs(),Xe=e,Ne=a=Ln(e.current,null),we=t,Ze=0,Qt=null,ia=!1,vr=Dn(e,t),as=!1,br=fn=rs=Ua=la=it=0,It=gi=null,is=!1,(t&8)!==0&&(t|=t&32);var i=e.entangledLanes;if(i!==0)for(e=e.entanglements,i&=t;0<i;){var u=31-je(i),s=1<<u;t|=e[u],i&=~s}return Fn=t,ol(),a}function ym(e,t){Ce=null,v.H=Ol,t===ti||t===pl?(t=zf(),Ze=3):t===Rf?(t=zf(),Ze=4):Ze=t===Bd?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Qt=t,Ne===null&&(it=1,Rl(e,ln(t,e.current)))}function gm(){var e=v.H;return v.H=Ol,e===null?Ol:e}function vm(){var e=v.A;return v.A=Gp,e}function fs(){it=4,ia||(we&4194048)!==we&&cn.current!==null||(vr=!0),(la&134217727)===0&&(Ua&134217727)===0||Xe===null||sa(Xe,we,fn,!1)}function ds(e,t,a){var i=Ge;Ge|=2;var u=gm(),s=vm();(Xe!==e||we!==t)&&(jl=null,Er(e,t)),t=!1;var d=it;e:do try{if(Ze!==0&&Ne!==null){var h=Ne,E=Qt;switch(Ze){case 8:cs(),d=6;break e;case 3:case 2:case 9:case 6:cn.current===null&&(t=!0);var x=Ze;if(Ze=0,Qt=null,Tr(e,h,E,x),a&&vr){d=0;break e}break;default:x=Ze,Ze=0,Qt=null,Tr(e,h,E,x)}}Yp(),d=it;break}catch($){ym(e,$)}while(!0);return t&&e.shellSuspendCounter++,kn=Ra=null,Ge=i,v.H=u,v.A=s,Ne===null&&(Xe=null,we=0,ol()),d}function Yp(){for(;Ne!==null;)bm(Ne)}function qp(e,t){var a=Ge;Ge|=2;var i=gm(),u=vm();Xe!==e||we!==t?(jl=null,Ul=he()+500,Er(e,t)):vr=Dn(e,t);e:do try{if(Ze!==0&&Ne!==null){t=Ne;var s=Qt;t:switch(Ze){case 1:Ze=0,Qt=null,Tr(e,t,s,1);break;case 2:case 9:if(wf(s)){Ze=0,Qt=null,Sm(t);break}t=function(){Ze!==2&&Ze!==9||Xe!==e||(Ze=7),Nn(e)},s.then(t,t);break e;case 3:Ze=7;break e;case 4:Ze=5;break e;case 7:wf(s)?(Ze=0,Qt=null,Sm(t)):(Ze=0,Qt=null,Tr(e,t,s,7));break;case 5:var d=null;switch(Ne.tag){case 26:d=Ne.memoizedState;case 5:case 27:var h=Ne;if(!d||n_(d)){Ze=0,Qt=null;var E=h.sibling;if(E!==null)Ne=E;else{var x=h.return;x!==null?(Ne=x,Il(x)):Ne=null}break t}}Ze=0,Qt=null,Tr(e,t,s,5);break;case 6:Ze=0,Qt=null,Tr(e,t,s,6);break;case 8:cs(),it=6;break e;default:throw Error(o(462))}}Vp();break}catch($){ym(e,$)}while(!0);return kn=Ra=null,v.H=i,v.A=u,Ge=a,Ne!==null?0:(Xe=null,we=0,ol(),it)}function Vp(){for(;Ne!==null&&!ke();)bm(Ne)}function bm(e){var t=Vd(e.alternate,e,Fn);e.memoizedProps=e.pendingProps,t===null?Il(e):Ne=t}function Sm(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=$d(a,t,t.pendingProps,t.type,void 0,we);break;case 11:t=$d(a,t,t.pendingProps,t.type.render,t.ref,we);break;case 5:Mu(t);default:Kd(a,t),t=Ne=Af(t,Fn),t=Vd(a,t,Fn)}e.memoizedProps=e.pendingProps,t===null?Il(e):Ne=t}function Tr(e,t,a,i){kn=Ra=null,Mu(t),hr=null,ci=0;var u=t.return;try{if(kp(e,u,t,a,we)){it=1,Rl(e,ln(a,e.current)),Ne=null;return}}catch(s){if(u!==null)throw Ne=u,s;it=1,Rl(e,ln(a,e.current)),Ne=null;return}t.flags&32768?(He||i===1?e=!0:vr||(we&536870912)!==0?e=!1:(ia=e=!0,(i===2||i===9||i===3||i===6)&&(i=cn.current,i!==null&&i.tag===13&&(i.flags|=16384))),Am(t,e)):Il(t)}function Il(e){var t=e;do{if((t.flags&32768)!==0){Am(t,ia);return}e=t.return;var a=jp(t.alternate,t,Fn);if(a!==null){Ne=a;return}if(t=t.sibling,t!==null){Ne=t;return}Ne=t=e}while(t!==null);it===0&&(it=5)}function Am(e,t){do{var a=Hp(e.alternate,e);if(a!==null){a.flags&=32767,Ne=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){Ne=e;return}Ne=e=a}while(e!==null);it=6,Ne=null}function Em(e,t,a,i,u,s,d,h,E){e.cancelPendingCommit=null;do $l();while(Tt!==0);if((Ge&6)!==0)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));if(s=t.lanes|t.childLanes,s|=nu,qi(e,a,s,d,h,E),e===Xe&&(Ne=Xe=null,we=0),Sr=t,ua=e,Ar=a,os=s,us=u,mm=i,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Xp(Ee,function(){return Nm(),null})):(e.callbackNode=null,e.callbackPriority=0),i=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||i){i=v.T,v.T=null,u=R.p,R.p=2,d=Ge,Ge|=4;try{Ip(e,t,a)}finally{Ge=d,R.p=u,v.T=i}}Tt=1,Tm(),Cm(),Om()}}function Tm(){if(Tt===1){Tt=0;var e=ua,t=Sr,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=v.T,v.T=null;var i=R.p;R.p=2;var u=Ge;Ge|=4;try{lm(t,e);var s=Ts,d=df(e.containerInfo),h=s.focusedElem,E=s.selectionRange;if(d!==h&&h&&h.ownerDocument&&ff(h.ownerDocument.documentElement,h)){if(E!==null&&Xo(h)){var x=E.start,$=E.end;if($===void 0&&($=x),"selectionStart"in h)h.selectionStart=x,h.selectionEnd=Math.min($,h.value.length);else{var q=h.ownerDocument||document,z=q&&q.defaultView||window;if(z.getSelection){var B=z.getSelection(),be=h.textContent.length,pe=Math.min(E.start,be),Ve=E.end===void 0?pe:Math.min(E.end,be);!B.extend&&pe>Ve&&(d=Ve,Ve=pe,pe=d);var M=cf(h,pe),C=cf(h,Ve);if(M&&C&&(B.rangeCount!==1||B.anchorNode!==M.node||B.anchorOffset!==M.offset||B.focusNode!==C.node||B.focusOffset!==C.offset)){var N=q.createRange();N.setStart(M.node,M.offset),B.removeAllRanges(),pe>Ve?(B.addRange(N),B.extend(C.node,C.offset)):(N.setEnd(C.node,C.offset),B.addRange(N))}}}}for(q=[],B=h;B=B.parentNode;)B.nodeType===1&&q.push({element:B,left:B.scrollLeft,top:B.scrollTop});for(typeof h.focus=="function"&&h.focus(),h=0;h<q.length;h++){var Z=q[h];Z.element.scrollLeft=Z.left,Z.element.scrollTop=Z.top}}Jl=!!Es,Ts=Es=null}finally{Ge=u,R.p=i,v.T=a}}e.current=t,Tt=2}}function Cm(){if(Tt===2){Tt=0;var e=ua,t=Sr,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=v.T,v.T=null;var i=R.p;R.p=2;var u=Ge;Ge|=4;try{nm(e,t.alternate,t)}finally{Ge=u,R.p=i,v.T=a}}Tt=3}}function Om(){if(Tt===4||Tt===3){Tt=0,Ie();var e=ua,t=Sr,a=Ar,i=mm;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Tt=5:(Tt=0,Sr=ua=null,Mm(e,e.pendingLanes));var u=e.pendingLanes;if(u===0&&(oa=null),hn(a),t=t.stateNode,Be&&typeof Be.onCommitFiberRoot=="function")try{Be.onCommitFiberRoot(Yt,t,void 0,(t.current.flags&128)===128)}catch{}if(i!==null){t=v.T,u=R.p,R.p=2,v.T=null;try{for(var s=e.onRecoverableError,d=0;d<i.length;d++){var h=i[d];s(h.value,{componentStack:h.stack})}}finally{v.T=t,R.p=u}}(Ar&3)!==0&&$l(),Nn(e),u=e.pendingLanes,(a&4194090)!==0&&(u&42)!==0?e===ss?vi++:(vi=0,ss=e):vi=0,bi(0)}}function Mm(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Jr(t)))}function $l(e){return Tm(),Cm(),Om(),Nm()}function Nm(){if(Tt!==5)return!1;var e=ua,t=os;os=0;var a=hn(Ar),i=v.T,u=R.p;try{R.p=32>a?32:a,v.T=null,a=us,us=null;var s=ua,d=Ar;if(Tt=0,Sr=ua=null,Ar=0,(Ge&6)!==0)throw Error(o(331));var h=Ge;if(Ge|=4,fm(s.current),um(s,s.current,d,a),Ge=h,bi(0,!1),Be&&typeof Be.onPostCommitFiberRoot=="function")try{Be.onPostCommitFiberRoot(Yt,s)}catch{}return!0}finally{R.p=u,v.T=i,Mm(e,t)}}function Dm(e,t,a){t=ln(a,t),t=$u(e.stateNode,t,2),e=Wn(e,t,2),e!==null&&(An(e,2),Nn(e))}function Pe(e,t,a){if(e.tag===3)Dm(e,e,a);else for(;t!==null;){if(t.tag===3){Dm(t,e,a);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(oa===null||!oa.has(i))){e=ln(a,e),a=Ld(2),i=Wn(t,a,2),i!==null&&(zd(a,i,t,e),An(i,2),Nn(i));break}}t=t.return}}function ms(e,t,a){var i=e.pingCache;if(i===null){i=e.pingCache=new Zp;var u=new Set;i.set(t,u)}else u=i.get(t),u===void 0&&(u=new Set,i.set(t,u));u.has(a)||(as=!0,u.add(a),e=Pp.bind(null,e,t,a),t.then(e,e))}function Pp(e,t,a){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Xe===e&&(we&a)===a&&(it===4||it===3&&(we&62914560)===we&&300>he()-ls?(Ge&2)===0&&Er(e,0):rs|=a,br===we&&(br=0)),Nn(e)}function xm(e,t){t===0&&(t=Fa()),e=ir(e,t),e!==null&&(An(e,t),Nn(e))}function Kp(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),xm(e,a)}function Qp(e,t){var a=0;switch(e.tag){case 13:var i=e.stateNode,u=e.memoizedState;u!==null&&(a=u.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(o(314))}i!==null&&i.delete(t),xm(e,a)}function Xp(e,t){return J(e,t)}var Gl=null,Cr=null,_s=!1,Zl=!1,hs=!1,ja=0;function Nn(e){e!==Cr&&e.next===null&&(Cr===null?Gl=Cr=e:Cr=Cr.next=e),Zl=!0,_s||(_s=!0,Jp())}function bi(e,t){if(!hs&&Zl){hs=!0;do for(var a=!1,i=Gl;i!==null;){if(e!==0){var u=i.pendingLanes;if(u===0)var s=0;else{var d=i.suspendedLanes,h=i.pingedLanes;s=(1<<31-je(42|e)+1)-1,s&=u&~(d&~h),s=s&201326741?s&201326741|1:s?s|2:0}s!==0&&(a=!0,zm(i,s))}else s=we,s=_n(i,i===Xe?s:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(s&3)===0||Dn(i,s)||(a=!0,zm(i,s));i=i.next}while(a);hs=!1}}function Wp(){Rm()}function Rm(){Zl=_s=!1;var e=0;ja!==0&&(oy()&&(e=ja),ja=0);for(var t=he(),a=null,i=Gl;i!==null;){var u=i.next,s=wm(i,t);s===0?(i.next=null,a===null?Gl=u:a.next=u,u===null&&(Cr=a)):(a=i,(e!==0||(s&3)!==0)&&(Zl=!0)),i=u}bi(e)}function wm(e,t){for(var a=e.suspendedLanes,i=e.pingedLanes,u=e.expirationTimes,s=e.pendingLanes&-62914561;0<s;){var d=31-je(s),h=1<<d,E=u[d];E===-1?((h&a)===0||(h&i)!==0)&&(u[d]=xn(h,t)):E<=t&&(e.expiredLanes|=h),s&=~h}if(t=Xe,a=we,a=_n(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,a===0||e===t&&(Ze===2||Ze===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&de(i),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||Dn(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(i!==null&&de(i),hn(a)){case 2:case 8:a=$e;break;case 32:a=Ee;break;case 268435456:a=Je;break;default:a=Ee}return i=Lm.bind(null,e),a=J(a,i),e.callbackPriority=t,e.callbackNode=a,t}return i!==null&&i!==null&&de(i),e.callbackPriority=2,e.callbackNode=null,2}function Lm(e,t){if(Tt!==0&&Tt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if($l()&&e.callbackNode!==a)return null;var i=we;return i=_n(e,e===Xe?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(hm(e,i,t),wm(e,he()),e.callbackNode!=null&&e.callbackNode===a?Lm.bind(null,e):null)}function zm(e,t){if($l())return null;hm(e,t,!0)}function Jp(){sy(function(){(Ge&6)!==0?J(se,Wp):Rm()})}function ps(){return ja===0&&(ja=Za()),ja}function Bm(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:el(""+e)}function km(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function ey(e,t,a,i,u){if(t==="submit"&&a&&a.stateNode===u){var s=Bm((u[kt]||null).action),d=i.submitter;d&&(t=(t=d[kt]||null)?Bm(t.formAction):d.getAttribute("formAction"),t!==null&&(s=t,d=null));var h=new rl("action","action",null,i,u);e.push({event:h,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(ja!==0){var E=d?km(u,d):new FormData(u);ku(a,{pending:!0,data:E,method:u.method,action:s},null,E)}}else typeof s=="function"&&(h.preventDefault(),E=d?km(u,d):new FormData(u),ku(a,{pending:!0,data:E,method:u.method,action:s},s,E))},currentTarget:u}]})}}for(var ys=0;ys<tu.length;ys++){var gs=tu[ys],ty=gs.toLowerCase(),ny=gs[0].toUpperCase()+gs.slice(1);pn(ty,"on"+ny)}pn(hf,"onAnimationEnd"),pn(pf,"onAnimationIteration"),pn(yf,"onAnimationStart"),pn("dblclick","onDoubleClick"),pn("focusin","onFocus"),pn("focusout","onBlur"),pn(vp,"onTransitionRun"),pn(bp,"onTransitionStart"),pn(Sp,"onTransitionCancel"),pn(gf,"onTransitionEnd"),Ka("onMouseEnter",["mouseout","mouseover"]),Ka("onMouseLeave",["mouseout","mouseover"]),Ka("onPointerEnter",["pointerout","pointerover"]),Ka("onPointerLeave",["pointerout","pointerover"]),Aa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Aa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Aa("onBeforeInput",["compositionend","keypress","textInput","paste"]),Aa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Aa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Aa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Si="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(" "),ay=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Si));function Um(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var i=e[a],u=i.event;i=i.listeners;e:{var s=void 0;if(t)for(var d=i.length-1;0<=d;d--){var h=i[d],E=h.instance,x=h.currentTarget;if(h=h.listener,E!==s&&u.isPropagationStopped())break e;s=h,u.currentTarget=x;try{s(u)}catch($){xl($)}u.currentTarget=null,s=E}else for(d=0;d<i.length;d++){if(h=i[d],E=h.instance,x=h.currentTarget,h=h.listener,E!==s&&u.isPropagationStopped())break e;s=h,u.currentTarget=x;try{s(u)}catch($){xl($)}u.currentTarget=null,s=E}}}}function De(e,t){var a=t[Ro];a===void 0&&(a=t[Ro]=new Set);var i=e+"__bubble";a.has(i)||(jm(t,e,2,!1),a.add(i))}function vs(e,t,a){var i=0;t&&(i|=4),jm(a,e,i,t)}var Fl="_reactListening"+Math.random().toString(36).slice(2);function bs(e){if(!e[Fl]){e[Fl]=!0,xc.forEach(function(a){a!=="selectionchange"&&(ay.has(a)||vs(a,!1,e),vs(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Fl]||(t[Fl]=!0,vs("selectionchange",!1,t))}}function jm(e,t,a,i){switch(u_(t)){case 2:var u=xy;break;case 8:u=Ry;break;default:u=zs}a=u.bind(null,t,a,e),u=void 0,!Go||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(u=!0),i?u!==void 0?e.addEventListener(t,a,{capture:!0,passive:u}):e.addEventListener(t,a,!0):u!==void 0?e.addEventListener(t,a,{passive:u}):e.addEventListener(t,a,!1)}function Ss(e,t,a,i,u){var s=i;if((t&1)===0&&(t&2)===0&&i!==null)e:for(;;){if(i===null)return;var d=i.tag;if(d===3||d===4){var h=i.stateNode.containerInfo;if(h===u)break;if(d===4)for(d=i.return;d!==null;){var E=d.tag;if((E===3||E===4)&&d.stateNode.containerInfo===u)return;d=d.return}for(;h!==null;){if(d=qa(h),d===null)return;if(E=d.tag,E===5||E===6||E===26||E===27){i=s=d;continue e}h=h.parentNode}}i=i.return}Fc(function(){var x=s,$=Io(a),q=[];e:{var z=vf.get(e);if(z!==void 0){var B=rl,be=e;switch(e){case"keypress":if(nl(a)===0)break e;case"keydown":case"keyup":B=X0;break;case"focusin":be="focus",B=qo;break;case"focusout":be="blur",B=qo;break;case"beforeblur":case"afterblur":B=qo;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":B=Vc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":B=H0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":B=ep;break;case hf:case pf:case yf:B=G0;break;case gf:B=np;break;case"scroll":case"scrollend":B=U0;break;case"wheel":B=rp;break;case"copy":case"cut":case"paste":B=F0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":B=Kc;break;case"toggle":case"beforetoggle":B=lp}var pe=(t&4)!==0,Ve=!pe&&(e==="scroll"||e==="scrollend"),M=pe?z!==null?z+"Capture":null:z;pe=[];for(var C=x,N;C!==null;){var Z=C;if(N=Z.stateNode,Z=Z.tag,Z!==5&&Z!==26&&Z!==27||N===null||M===null||(Z=Ir(C,M),Z!=null&&pe.push(Ai(C,Z,N))),Ve)break;C=C.return}0<pe.length&&(z=new B(z,be,null,a,$),q.push({event:z,listeners:pe}))}}if((t&7)===0){e:{if(z=e==="mouseover"||e==="pointerover",B=e==="mouseout"||e==="pointerout",z&&a!==Ho&&(be=a.relatedTarget||a.fromElement)&&(qa(be)||be[Ya]))break e;if((B||z)&&(z=$.window===$?$:(z=$.ownerDocument)?z.defaultView||z.parentWindow:window,B?(be=a.relatedTarget||a.toElement,B=x,be=be?qa(be):null,be!==null&&(Ve=f(be),pe=be.tag,be!==Ve||pe!==5&&pe!==27&&pe!==6)&&(be=null)):(B=null,be=x),B!==be)){if(pe=Vc,Z="onMouseLeave",M="onMouseEnter",C="mouse",(e==="pointerout"||e==="pointerover")&&(pe=Kc,Z="onPointerLeave",M="onPointerEnter",C="pointer"),Ve=B==null?z:Hr(B),N=be==null?z:Hr(be),z=new pe(Z,C+"leave",B,a,$),z.target=Ve,z.relatedTarget=N,Z=null,qa($)===x&&(pe=new pe(M,C+"enter",be,a,$),pe.target=N,pe.relatedTarget=Ve,Z=pe),Ve=Z,B&&be)t:{for(pe=B,M=be,C=0,N=pe;N;N=Or(N))C++;for(N=0,Z=M;Z;Z=Or(Z))N++;for(;0<C-N;)pe=Or(pe),C--;for(;0<N-C;)M=Or(M),N--;for(;C--;){if(pe===M||M!==null&&pe===M.alternate)break t;pe=Or(pe),M=Or(M)}pe=null}else pe=null;B!==null&&Hm(q,z,B,pe,!1),be!==null&&Ve!==null&&Hm(q,Ve,be,pe,!0)}}e:{if(z=x?Hr(x):window,B=z.nodeName&&z.nodeName.toLowerCase(),B==="select"||B==="input"&&z.type==="file")var ae=af;else if(tf(z))if(rf)ae=pp;else{ae=_p;var Oe=mp}else B=z.nodeName,!B||B.toLowerCase()!=="input"||z.type!=="checkbox"&&z.type!=="radio"?x&&jo(x.elementType)&&(ae=af):ae=hp;if(ae&&(ae=ae(e,x))){nf(q,ae,a,$);break e}Oe&&Oe(e,z,x),e==="focusout"&&x&&z.type==="number"&&x.memoizedProps.value!=null&&Uo(z,"number",z.value)}switch(Oe=x?Hr(x):window,e){case"focusin":(tf(Oe)||Oe.contentEditable==="true")&&(nr=Oe,Wo=x,Pr=null);break;case"focusout":Pr=Wo=nr=null;break;case"mousedown":Jo=!0;break;case"contextmenu":case"mouseup":case"dragend":Jo=!1,mf(q,a,$);break;case"selectionchange":if(gp)break;case"keydown":case"keyup":mf(q,a,$)}var ce;if(Po)e:{switch(e){case"compositionstart":var ye="onCompositionStart";break e;case"compositionend":ye="onCompositionEnd";break e;case"compositionupdate":ye="onCompositionUpdate";break e}ye=void 0}else tr?Jc(e,a)&&(ye="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(ye="onCompositionStart");ye&&(Qc&&a.locale!=="ko"&&(tr||ye!=="onCompositionStart"?ye==="onCompositionEnd"&&tr&&(ce=Yc()):(Pn=$,Zo="value"in Pn?Pn.value:Pn.textContent,tr=!0)),Oe=Yl(x,ye),0<Oe.length&&(ye=new Pc(ye,e,null,a,$),q.push({event:ye,listeners:Oe}),ce?ye.data=ce:(ce=ef(a),ce!==null&&(ye.data=ce)))),(ce=up?sp(e,a):cp(e,a))&&(ye=Yl(x,"onBeforeInput"),0<ye.length&&(Oe=new Pc("onBeforeInput","beforeinput",null,a,$),q.push({event:Oe,listeners:ye}),Oe.data=ce)),ey(q,e,x,a,$)}Um(q,t)})}function Ai(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Yl(e,t){for(var a=t+"Capture",i=[];e!==null;){var u=e,s=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||s===null||(u=Ir(e,a),u!=null&&i.unshift(Ai(e,u,s)),u=Ir(e,t),u!=null&&i.push(Ai(e,u,s))),e.tag===3)return i;e=e.return}return[]}function Or(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Hm(e,t,a,i,u){for(var s=t._reactName,d=[];a!==null&&a!==i;){var h=a,E=h.alternate,x=h.stateNode;if(h=h.tag,E!==null&&E===i)break;h!==5&&h!==26&&h!==27||x===null||(E=x,u?(x=Ir(a,s),x!=null&&d.unshift(Ai(a,x,E))):u||(x=Ir(a,s),x!=null&&d.push(Ai(a,x,E)))),a=a.return}d.length!==0&&e.push({event:t,listeners:d})}var ry=/\r\n?/g,iy=/\u0000|\uFFFD/g;function Im(e){return(typeof e=="string"?e:""+e).replace(ry,`
|
|
49
|
+
`).replace(iy,"")}function $m(e,t){return t=Im(t),Im(e)===t}function ql(){}function qe(e,t,a,i,u,s){switch(a){case"children":typeof i=="string"?t==="body"||t==="textarea"&&i===""||Wa(e,i):(typeof i=="number"||typeof i=="bigint")&&t!=="body"&&Wa(e,""+i);break;case"className":Xi(e,"class",i);break;case"tabIndex":Xi(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":Xi(e,a,i);break;case"style":Gc(e,i,s);break;case"data":if(t!=="object"){Xi(e,"data",i);break}case"src":case"href":if(i===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(a);break}i=el(""+i),e.setAttribute(a,i);break;case"action":case"formAction":if(typeof i=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof s=="function"&&(a==="formAction"?(t!=="input"&&qe(e,t,"name",u.name,u,null),qe(e,t,"formEncType",u.formEncType,u,null),qe(e,t,"formMethod",u.formMethod,u,null),qe(e,t,"formTarget",u.formTarget,u,null)):(qe(e,t,"encType",u.encType,u,null),qe(e,t,"method",u.method,u,null),qe(e,t,"target",u.target,u,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(a);break}i=el(""+i),e.setAttribute(a,i);break;case"onClick":i!=null&&(e.onclick=ql);break;case"onScroll":i!=null&&De("scroll",e);break;case"onScrollEnd":i!=null&&De("scrollend",e);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(o(61));if(a=i.__html,a!=null){if(u.children!=null)throw Error(o(60));e.innerHTML=a}}break;case"multiple":e.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":e.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){e.removeAttribute("xlink:href");break}a=el(""+i),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(a,""+i):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":i&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":i===!0?e.setAttribute(a,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(a,i):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?e.setAttribute(a,i):e.removeAttribute(a);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?e.removeAttribute(a):e.setAttribute(a,i);break;case"popover":De("beforetoggle",e),De("toggle",e),Qi(e,"popover",i);break;case"xlinkActuate":Rn(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":Rn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":Rn(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":Rn(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":Rn(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":Rn(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":Rn(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":Rn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":Rn(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":Qi(e,"is",i);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=B0.get(a)||a,Qi(e,a,i))}}function As(e,t,a,i,u,s){switch(a){case"style":Gc(e,i,s);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(o(61));if(a=i.__html,a!=null){if(u.children!=null)throw Error(o(60));e.innerHTML=a}}break;case"children":typeof i=="string"?Wa(e,i):(typeof i=="number"||typeof i=="bigint")&&Wa(e,""+i);break;case"onScroll":i!=null&&De("scroll",e);break;case"onScrollEnd":i!=null&&De("scrollend",e);break;case"onClick":i!=null&&(e.onclick=ql);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Rc.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(u=a.endsWith("Capture"),t=a.slice(2,u?a.length-7:void 0),s=e[kt]||null,s=s!=null?s[a]:null,typeof s=="function"&&e.removeEventListener(t,s,u),typeof i=="function")){typeof s!="function"&&s!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,i,u);break e}a in e?e[a]=i:i===!0?e.setAttribute(a,""):Qi(e,a,i)}}}function Ct(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":De("error",e),De("load",e);var i=!1,u=!1,s;for(s in a)if(a.hasOwnProperty(s)){var d=a[s];if(d!=null)switch(s){case"src":i=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:qe(e,t,s,d,a,null)}}u&&qe(e,t,"srcSet",a.srcSet,a,null),i&&qe(e,t,"src",a.src,a,null);return;case"input":De("invalid",e);var h=s=d=u=null,E=null,x=null;for(i in a)if(a.hasOwnProperty(i)){var $=a[i];if($!=null)switch(i){case"name":u=$;break;case"type":d=$;break;case"checked":E=$;break;case"defaultChecked":x=$;break;case"value":s=$;break;case"defaultValue":h=$;break;case"children":case"dangerouslySetInnerHTML":if($!=null)throw Error(o(137,t));break;default:qe(e,t,i,$,a,null)}}jc(e,s,h,E,x,d,u,!1),Wi(e);return;case"select":De("invalid",e),i=d=s=null;for(u in a)if(a.hasOwnProperty(u)&&(h=a[u],h!=null))switch(u){case"value":s=h;break;case"defaultValue":d=h;break;case"multiple":i=h;default:qe(e,t,u,h,a,null)}t=s,a=d,e.multiple=!!i,t!=null?Xa(e,!!i,t,!1):a!=null&&Xa(e,!!i,a,!0);return;case"textarea":De("invalid",e),s=u=i=null;for(d in a)if(a.hasOwnProperty(d)&&(h=a[d],h!=null))switch(d){case"value":i=h;break;case"defaultValue":u=h;break;case"children":s=h;break;case"dangerouslySetInnerHTML":if(h!=null)throw Error(o(91));break;default:qe(e,t,d,h,a,null)}Ic(e,i,u,s),Wi(e);return;case"option":for(E in a)if(a.hasOwnProperty(E)&&(i=a[E],i!=null))switch(E){case"selected":e.selected=i&&typeof i!="function"&&typeof i!="symbol";break;default:qe(e,t,E,i,a,null)}return;case"dialog":De("beforetoggle",e),De("toggle",e),De("cancel",e),De("close",e);break;case"iframe":case"object":De("load",e);break;case"video":case"audio":for(i=0;i<Si.length;i++)De(Si[i],e);break;case"image":De("error",e),De("load",e);break;case"details":De("toggle",e);break;case"embed":case"source":case"link":De("error",e),De("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(x in a)if(a.hasOwnProperty(x)&&(i=a[x],i!=null))switch(x){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:qe(e,t,x,i,a,null)}return;default:if(jo(t)){for($ in a)a.hasOwnProperty($)&&(i=a[$],i!==void 0&&As(e,t,$,i,a,void 0));return}}for(h in a)a.hasOwnProperty(h)&&(i=a[h],i!=null&&qe(e,t,h,i,a,null))}function ly(e,t,a,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,s=null,d=null,h=null,E=null,x=null,$=null;for(B in a){var q=a[B];if(a.hasOwnProperty(B)&&q!=null)switch(B){case"checked":break;case"value":break;case"defaultValue":E=q;default:i.hasOwnProperty(B)||qe(e,t,B,null,i,q)}}for(var z in i){var B=i[z];if(q=a[z],i.hasOwnProperty(z)&&(B!=null||q!=null))switch(z){case"type":s=B;break;case"name":u=B;break;case"checked":x=B;break;case"defaultChecked":$=B;break;case"value":d=B;break;case"defaultValue":h=B;break;case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(o(137,t));break;default:B!==q&&qe(e,t,z,B,i,q)}}ko(e,d,h,E,x,$,s,u);return;case"select":B=d=h=z=null;for(s in a)if(E=a[s],a.hasOwnProperty(s)&&E!=null)switch(s){case"value":break;case"multiple":B=E;default:i.hasOwnProperty(s)||qe(e,t,s,null,i,E)}for(u in i)if(s=i[u],E=a[u],i.hasOwnProperty(u)&&(s!=null||E!=null))switch(u){case"value":z=s;break;case"defaultValue":h=s;break;case"multiple":d=s;default:s!==E&&qe(e,t,u,s,i,E)}t=h,a=d,i=B,z!=null?Xa(e,!!a,z,!1):!!i!=!!a&&(t!=null?Xa(e,!!a,t,!0):Xa(e,!!a,a?[]:"",!1));return;case"textarea":B=z=null;for(h in a)if(u=a[h],a.hasOwnProperty(h)&&u!=null&&!i.hasOwnProperty(h))switch(h){case"value":break;case"children":break;default:qe(e,t,h,null,i,u)}for(d in i)if(u=i[d],s=a[d],i.hasOwnProperty(d)&&(u!=null||s!=null))switch(d){case"value":z=u;break;case"defaultValue":B=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(o(91));break;default:u!==s&&qe(e,t,d,u,i,s)}Hc(e,z,B);return;case"option":for(var be in a)if(z=a[be],a.hasOwnProperty(be)&&z!=null&&!i.hasOwnProperty(be))switch(be){case"selected":e.selected=!1;break;default:qe(e,t,be,null,i,z)}for(E in i)if(z=i[E],B=a[E],i.hasOwnProperty(E)&&z!==B&&(z!=null||B!=null))switch(E){case"selected":e.selected=z&&typeof z!="function"&&typeof z!="symbol";break;default:qe(e,t,E,z,i,B)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var pe in a)z=a[pe],a.hasOwnProperty(pe)&&z!=null&&!i.hasOwnProperty(pe)&&qe(e,t,pe,null,i,z);for(x in i)if(z=i[x],B=a[x],i.hasOwnProperty(x)&&z!==B&&(z!=null||B!=null))switch(x){case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(o(137,t));break;default:qe(e,t,x,z,i,B)}return;default:if(jo(t)){for(var Ve in a)z=a[Ve],a.hasOwnProperty(Ve)&&z!==void 0&&!i.hasOwnProperty(Ve)&&As(e,t,Ve,void 0,i,z);for($ in i)z=i[$],B=a[$],!i.hasOwnProperty($)||z===B||z===void 0&&B===void 0||As(e,t,$,z,i,B);return}}for(var M in a)z=a[M],a.hasOwnProperty(M)&&z!=null&&!i.hasOwnProperty(M)&&qe(e,t,M,null,i,z);for(q in i)z=i[q],B=a[q],!i.hasOwnProperty(q)||z===B||z==null&&B==null||qe(e,t,q,z,i,B)}var Es=null,Ts=null;function Vl(e){return e.nodeType===9?e:e.ownerDocument}function Gm(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Zm(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Cs(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Os=null;function oy(){var e=window.event;return e&&e.type==="popstate"?e===Os?!1:(Os=e,!0):(Os=null,!1)}var Fm=typeof setTimeout=="function"?setTimeout:void 0,uy=typeof clearTimeout=="function"?clearTimeout:void 0,Ym=typeof Promise=="function"?Promise:void 0,sy=typeof queueMicrotask=="function"?queueMicrotask:typeof Ym<"u"?function(e){return Ym.resolve(null).then(e).catch(cy)}:Fm;function cy(e){setTimeout(function(){throw e})}function ca(e){return e==="head"}function qm(e,t){var a=t,i=0,u=0;do{var s=a.nextSibling;if(e.removeChild(a),s&&s.nodeType===8)if(a=s.data,a==="/$"){if(0<i&&8>i){a=i;var d=e.ownerDocument;if(a&1&&Ei(d.documentElement),a&2&&Ei(d.body),a&4)for(a=d.head,Ei(a),d=a.firstChild;d;){var h=d.nextSibling,E=d.nodeName;d[jr]||E==="SCRIPT"||E==="STYLE"||E==="LINK"&&d.rel.toLowerCase()==="stylesheet"||a.removeChild(d),d=h}}if(u===0){e.removeChild(s),Ri(t);return}u--}else a==="$"||a==="$?"||a==="$!"?u++:i=a.charCodeAt(0)-48;else i=0;a=s}while(a);Ri(t)}function Ms(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Ms(a),wo(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function fy(e,t,a,i){for(;e.nodeType===1;){var u=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(i){if(!e[jr])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(s=e.getAttribute("rel"),s==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(s!==u.rel||e.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||e.getAttribute("title")!==(u.title==null?null:u.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(s=e.getAttribute("src"),(s!==(u.src==null?null:u.src)||e.getAttribute("type")!==(u.type==null?null:u.type)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&s&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var s=u.name==null?null:""+u.name;if(u.type==="hidden"&&e.getAttribute("name")===s)return e}else return e;if(e=gn(e.nextSibling),e===null)break}return null}function dy(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=gn(e.nextSibling),e===null))return null;return e}function Ns(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function my(e,t){var a=e.ownerDocument;if(e.data!=="$?"||a.readyState==="complete")t();else{var i=function(){t(),a.removeEventListener("DOMContentLoaded",i)};a.addEventListener("DOMContentLoaded",i),e._reactRetry=i}}function gn(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==="$?"||t==="F!"||t==="F")break;if(t==="/$")return null}}return e}var Ds=null;function Vm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"){if(t===0)return e;t--}else a==="/$"&&t++}e=e.previousSibling}return null}function Pm(e,t,a){switch(t=Vl(a),e){case"html":if(e=t.documentElement,!e)throw Error(o(452));return e;case"head":if(e=t.head,!e)throw Error(o(453));return e;case"body":if(e=t.body,!e)throw Error(o(454));return e;default:throw Error(o(451))}}function Ei(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);wo(e)}var dn=new Map,Km=new Set;function Pl(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Yn=R.d;R.d={f:_y,r:hy,D:py,C:yy,L:gy,m:vy,X:Sy,S:by,M:Ay};function _y(){var e=Yn.f(),t=Hl();return e||t}function hy(e){var t=Va(e);t!==null&&t.tag===5&&t.type==="form"?hd(t):Yn.r(e)}var Mr=typeof document>"u"?null:document;function Qm(e,t,a){var i=Mr;if(i&&typeof t=="string"&&t){var u=rn(t);u='link[rel="'+e+'"][href="'+u+'"]',typeof a=="string"&&(u+='[crossorigin="'+a+'"]'),Km.has(u)||(Km.add(u),e={rel:e,crossOrigin:a,href:t},i.querySelector(u)===null&&(t=i.createElement("link"),Ct(t,"link",e),gt(t),i.head.appendChild(t)))}}function py(e){Yn.D(e),Qm("dns-prefetch",e,null)}function yy(e,t){Yn.C(e,t),Qm("preconnect",e,t)}function gy(e,t,a){Yn.L(e,t,a);var i=Mr;if(i&&e&&t){var u='link[rel="preload"][as="'+rn(t)+'"]';t==="image"&&a&&a.imageSrcSet?(u+='[imagesrcset="'+rn(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(u+='[imagesizes="'+rn(a.imageSizes)+'"]')):u+='[href="'+rn(e)+'"]';var s=u;switch(t){case"style":s=Nr(e);break;case"script":s=Dr(e)}dn.has(s)||(e=A({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),dn.set(s,e),i.querySelector(u)!==null||t==="style"&&i.querySelector(Ti(s))||t==="script"&&i.querySelector(Ci(s))||(t=i.createElement("link"),Ct(t,"link",e),gt(t),i.head.appendChild(t)))}}function vy(e,t){Yn.m(e,t);var a=Mr;if(a&&e){var i=t&&typeof t.as=="string"?t.as:"script",u='link[rel="modulepreload"][as="'+rn(i)+'"][href="'+rn(e)+'"]',s=u;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":s=Dr(e)}if(!dn.has(s)&&(e=A({rel:"modulepreload",href:e},t),dn.set(s,e),a.querySelector(u)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Ci(s)))return}i=a.createElement("link"),Ct(i,"link",e),gt(i),a.head.appendChild(i)}}}function by(e,t,a){Yn.S(e,t,a);var i=Mr;if(i&&e){var u=Pa(i).hoistableStyles,s=Nr(e);t=t||"default";var d=u.get(s);if(!d){var h={loading:0,preload:null};if(d=i.querySelector(Ti(s)))h.loading=5;else{e=A({rel:"stylesheet",href:e,"data-precedence":t},a),(a=dn.get(s))&&xs(e,a);var E=d=i.createElement("link");gt(E),Ct(E,"link",e),E._p=new Promise(function(x,$){E.onload=x,E.onerror=$}),E.addEventListener("load",function(){h.loading|=1}),E.addEventListener("error",function(){h.loading|=2}),h.loading|=4,Kl(d,t,i)}d={type:"stylesheet",instance:d,count:1,state:h},u.set(s,d)}}}function Sy(e,t){Yn.X(e,t);var a=Mr;if(a&&e){var i=Pa(a).hoistableScripts,u=Dr(e),s=i.get(u);s||(s=a.querySelector(Ci(u)),s||(e=A({src:e,async:!0},t),(t=dn.get(u))&&Rs(e,t),s=a.createElement("script"),gt(s),Ct(s,"link",e),a.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},i.set(u,s))}}function Ay(e,t){Yn.M(e,t);var a=Mr;if(a&&e){var i=Pa(a).hoistableScripts,u=Dr(e),s=i.get(u);s||(s=a.querySelector(Ci(u)),s||(e=A({src:e,async:!0,type:"module"},t),(t=dn.get(u))&&Rs(e,t),s=a.createElement("script"),gt(s),Ct(s,"link",e),a.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},i.set(u,s))}}function Xm(e,t,a,i){var u=(u=w.current)?Pl(u):null;if(!u)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=Nr(a.href),a=Pa(u).hoistableStyles,i=a.get(t),i||(i={type:"style",instance:null,count:0,state:null},a.set(t,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Nr(a.href);var s=Pa(u).hoistableStyles,d=s.get(e);if(d||(u=u.ownerDocument||u,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},s.set(e,d),(s=u.querySelector(Ti(e)))&&!s._p&&(d.instance=s,d.state.loading=5),dn.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},dn.set(e,a),s||Ey(u,e,a,d.state))),t&&i===null)throw Error(o(528,""));return d}if(t&&i!==null)throw Error(o(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Dr(a),a=Pa(u).hoistableScripts,i=a.get(t),i||(i={type:"script",instance:null,count:0,state:null},a.set(t,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function Nr(e){return'href="'+rn(e)+'"'}function Ti(e){return'link[rel="stylesheet"]['+e+"]"}function Wm(e){return A({},e,{"data-precedence":e.precedence,precedence:null})}function Ey(e,t,a,i){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?i.loading=1:(t=e.createElement("link"),i.preload=t,t.addEventListener("load",function(){return i.loading|=1}),t.addEventListener("error",function(){return i.loading|=2}),Ct(t,"link",a),gt(t),e.head.appendChild(t))}function Dr(e){return'[src="'+rn(e)+'"]'}function Ci(e){return"script[async]"+e}function Jm(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+rn(a.href)+'"]');if(i)return t.instance=i,gt(i),i;var u=A({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),gt(i),Ct(i,"style",u),Kl(i,a.precedence,e),t.instance=i;case"stylesheet":u=Nr(a.href);var s=e.querySelector(Ti(u));if(s)return t.state.loading|=4,t.instance=s,gt(s),s;i=Wm(a),(u=dn.get(u))&&xs(i,u),s=(e.ownerDocument||e).createElement("link"),gt(s);var d=s;return d._p=new Promise(function(h,E){d.onload=h,d.onerror=E}),Ct(s,"link",i),t.state.loading|=4,Kl(s,a.precedence,e),t.instance=s;case"script":return s=Dr(a.src),(u=e.querySelector(Ci(s)))?(t.instance=u,gt(u),u):(i=a,(u=dn.get(s))&&(i=A({},a),Rs(i,u)),e=e.ownerDocument||e,u=e.createElement("script"),gt(u),Ct(u,"link",i),e.head.appendChild(u),t.instance=u);case"void":return null;default:throw Error(o(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(i=t.instance,t.state.loading|=4,Kl(i,a.precedence,e));return t.instance}function Kl(e,t,a){for(var i=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=i.length?i[i.length-1]:null,s=u,d=0;d<i.length;d++){var h=i[d];if(h.dataset.precedence===t)s=h;else if(s!==u)break}s?s.parentNode.insertBefore(e,s.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function xs(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Rs(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Ql=null;function e_(e,t,a){if(Ql===null){var i=new Map,u=Ql=new Map;u.set(a,i)}else u=Ql,i=u.get(a),i||(i=new Map,u.set(a,i));if(i.has(e))return i;for(i.set(e,null),a=a.getElementsByTagName(e),u=0;u<a.length;u++){var s=a[u];if(!(s[jr]||s[Dt]||e==="link"&&s.getAttribute("rel")==="stylesheet")&&s.namespaceURI!=="http://www.w3.org/2000/svg"){var d=s.getAttribute(t)||"";d=e+d;var h=i.get(d);h?h.push(s):i.set(d,[s])}}return i}function t_(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function Ty(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function n_(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var Oi=null;function Cy(){}function Oy(e,t,a){if(Oi===null)throw Error(o(475));var i=Oi;if(t.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(t.state.loading&4)===0){if(t.instance===null){var u=Nr(a.href),s=e.querySelector(Ti(u));if(s){e=s._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(i.count++,i=Xl.bind(i),e.then(i,i)),t.state.loading|=4,t.instance=s,gt(s);return}s=e.ownerDocument||e,a=Wm(a),(u=dn.get(u))&&xs(a,u),s=s.createElement("link"),gt(s);var d=s;d._p=new Promise(function(h,E){d.onload=h,d.onerror=E}),Ct(s,"link",a),t.instance=s}i.stylesheets===null&&(i.stylesheets=new Map),i.stylesheets.set(t,e),(e=t.state.preload)&&(t.state.loading&3)===0&&(i.count++,t=Xl.bind(i),e.addEventListener("load",t),e.addEventListener("error",t))}}function My(){if(Oi===null)throw Error(o(475));var e=Oi;return e.stylesheets&&e.count===0&&ws(e,e.stylesheets),0<e.count?function(t){var a=setTimeout(function(){if(e.stylesheets&&ws(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(a)}}:null}function Xl(){if(this.count--,this.count===0){if(this.stylesheets)ws(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Wl=null;function ws(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Wl=new Map,t.forEach(Ny,e),Wl=null,Xl.call(e))}function Ny(e,t){if(!(t.state.loading&4)){var a=Wl.get(e);if(a)var i=a.get(null);else{a=new Map,Wl.set(e,a);for(var u=e.querySelectorAll("link[data-precedence],style[data-precedence]"),s=0;s<u.length;s++){var d=u[s];(d.nodeName==="LINK"||d.getAttribute("media")!=="not all")&&(a.set(d.dataset.precedence,d),i=d)}i&&a.set(null,i)}u=t.instance,d=u.getAttribute("data-precedence"),s=a.get(d)||i,s===i&&a.set(null,u),a.set(d,u),this.count++,i=Xl.bind(this),u.addEventListener("load",i),u.addEventListener("error",i),s?s.parentNode.insertBefore(u,s.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(u,e.firstChild)),t.state.loading|=4}}var Mi={$$typeof:ee,Provider:null,Consumer:null,_currentValue:Y,_currentValue2:Y,_threadCount:0};function Dy(e,t,a,i,u,s,d,h){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=qn(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=qn(0),this.hiddenUpdates=qn(null),this.identifierPrefix=i,this.onUncaughtError=u,this.onCaughtError=s,this.onRecoverableError=d,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=h,this.incompleteTransitions=new Map}function a_(e,t,a,i,u,s,d,h,E,x,$,q){return e=new Dy(e,t,a,d,h,E,x,q),t=1,s===!0&&(t|=24),s=Vt(3,null,null,t),e.current=s,s.stateNode=e,t=mu(),t.refCount++,e.pooledCache=t,t.refCount++,s.memoizedState={element:i,isDehydrated:a,cache:t},yu(s),e}function r_(e){return e?(e=lr,e):lr}function i_(e,t,a,i,u,s){u=r_(u),i.context===null?i.context=u:i.pendingContext=u,i=Xn(t),i.payload={element:a},s=s===void 0?null:s,s!==null&&(i.callback=s),a=Wn(e,i,t),a!==null&&(Wt(a,e,t),ai(a,e,t))}function l_(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Ls(e,t){l_(e,t),(e=e.alternate)&&l_(e,t)}function o_(e){if(e.tag===13){var t=ir(e,67108864);t!==null&&Wt(t,e,67108864),Ls(e,67108864)}}var Jl=!0;function xy(e,t,a,i){var u=v.T;v.T=null;var s=R.p;try{R.p=2,zs(e,t,a,i)}finally{R.p=s,v.T=u}}function Ry(e,t,a,i){var u=v.T;v.T=null;var s=R.p;try{R.p=8,zs(e,t,a,i)}finally{R.p=s,v.T=u}}function zs(e,t,a,i){if(Jl){var u=Bs(i);if(u===null)Ss(e,t,i,eo,a),s_(e,i);else if(Ly(u,e,t,a,i))i.stopPropagation();else if(s_(e,i),t&4&&-1<wy.indexOf(e)){for(;u!==null;){var s=Va(u);if(s!==null)switch(s.tag){case 3:if(s=s.stateNode,s.current.memoizedState.isDehydrated){var d=nn(s.pendingLanes);if(d!==0){var h=s;for(h.pendingLanes|=2,h.entangledLanes|=2;d;){var E=1<<31-je(d);h.entanglements[1]|=E,d&=~E}Nn(s),(Ge&6)===0&&(Ul=he()+500,bi(0))}}break;case 13:h=ir(s,2),h!==null&&Wt(h,s,2),Hl(),Ls(s,2)}if(s=Bs(i),s===null&&Ss(e,t,i,eo,a),s===u)break;u=s}u!==null&&i.stopPropagation()}else Ss(e,t,i,null,a)}}function Bs(e){return e=Io(e),ks(e)}var eo=null;function ks(e){if(eo=null,e=qa(e),e!==null){var t=f(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=m(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return eo=e,null}function u_(e){switch(e){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Qe()){case se:return 2;case $e:return 8;case Ee:case ze:return 32;case Je:return 268435456;default:return 32}default:return 32}}var Us=!1,fa=null,da=null,ma=null,Ni=new Map,Di=new Map,_a=[],wy="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".split(" ");function s_(e,t){switch(e){case"focusin":case"focusout":fa=null;break;case"dragenter":case"dragleave":da=null;break;case"mouseover":case"mouseout":ma=null;break;case"pointerover":case"pointerout":Ni.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Di.delete(t.pointerId)}}function xi(e,t,a,i,u,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:a,eventSystemFlags:i,nativeEvent:s,targetContainers:[u]},t!==null&&(t=Va(t),t!==null&&o_(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,u!==null&&t.indexOf(u)===-1&&t.push(u),e)}function Ly(e,t,a,i,u){switch(t){case"focusin":return fa=xi(fa,e,t,a,i,u),!0;case"dragenter":return da=xi(da,e,t,a,i,u),!0;case"mouseover":return ma=xi(ma,e,t,a,i,u),!0;case"pointerover":var s=u.pointerId;return Ni.set(s,xi(Ni.get(s)||null,e,t,a,i,u)),!0;case"gotpointercapture":return s=u.pointerId,Di.set(s,xi(Di.get(s)||null,e,t,a,i,u)),!0}return!1}function c_(e){var t=qa(e.target);if(t!==null){var a=f(t);if(a!==null){if(t=a.tag,t===13){if(t=m(a),t!==null){e.blockedOn=t,O0(e.priority,function(){if(a.tag===13){var i=Xt();i=En(i);var u=ir(a,i);u!==null&&Wt(u,a,i),Ls(a,i)}});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function to(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Bs(e.nativeEvent);if(a===null){a=e.nativeEvent;var i=new a.constructor(a.type,a);Ho=i,a.target.dispatchEvent(i),Ho=null}else return t=Va(a),t!==null&&o_(t),e.blockedOn=a,!1;t.shift()}return!0}function f_(e,t,a){to(e)&&a.delete(t)}function zy(){Us=!1,fa!==null&&to(fa)&&(fa=null),da!==null&&to(da)&&(da=null),ma!==null&&to(ma)&&(ma=null),Ni.forEach(f_),Di.forEach(f_)}function no(e,t){e.blockedOn===t&&(e.blockedOn=null,Us||(Us=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,zy)))}var ao=null;function d_(e){ao!==e&&(ao=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){ao===e&&(ao=null);for(var t=0;t<e.length;t+=3){var a=e[t],i=e[t+1],u=e[t+2];if(typeof i!="function"){if(ks(i||a)===null)continue;break}var s=Va(a);s!==null&&(e.splice(t,3),t-=3,ku(s,{pending:!0,data:u,method:a.method,action:i},i,u))}}))}function Ri(e){function t(E){return no(E,e)}fa!==null&&no(fa,e),da!==null&&no(da,e),ma!==null&&no(ma,e),Ni.forEach(t),Di.forEach(t);for(var a=0;a<_a.length;a++){var i=_a[a];i.blockedOn===e&&(i.blockedOn=null)}for(;0<_a.length&&(a=_a[0],a.blockedOn===null);)c_(a),a.blockedOn===null&&_a.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(i=0;i<a.length;i+=3){var u=a[i],s=a[i+1],d=u[kt]||null;if(typeof s=="function")d||d_(a);else if(d){var h=null;if(s&&s.hasAttribute("formAction")){if(u=s,d=s[kt]||null)h=d.formAction;else if(ks(u)!==null)continue}else h=d.action;typeof h=="function"?a[i+1]=h:(a.splice(i,3),i-=3),d_(a)}}}function js(e){this._internalRoot=e}ro.prototype.render=js.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var a=t.current,i=Xt();i_(a,i,e,t,null,null)},ro.prototype.unmount=js.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;i_(e.current,2,null,e,null,null),Hl(),t[Ya]=null}};function ro(e){this._internalRoot=e}ro.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ki();e={blockedOn:null,target:e,priority:t};for(var a=0;a<_a.length&&t!==0&&t<_a[a].priority;a++);_a.splice(a,0,e),a===0&&c_(e)}};var m_=r.version;if(m_!=="19.1.1")throw Error(o(527,m_,"19.1.1"));R.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=p(t),e=e!==null?y(e):null,e=e===null?null:e.stateNode,e};var By={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:v,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var io=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!io.isDisabled&&io.supportsFiber)try{Yt=io.inject(By),Be=io}catch{}}return Li.createRoot=function(e,t){if(!c(e))throw Error(o(299));var a=!1,i="",u=Dd,s=xd,d=Rd,h=null;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onUncaughtError!==void 0&&(u=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(d=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(h=t.unstable_transitionCallbacks)),t=a_(e,1,!1,null,null,a,i,u,s,d,h,null),e[Ya]=t.current,bs(e),new js(t)},Li.hydrateRoot=function(e,t,a){if(!c(e))throw Error(o(299));var i=!1,u="",s=Dd,d=xd,h=Rd,E=null,x=null;return a!=null&&(a.unstable_strictMode===!0&&(i=!0),a.identifierPrefix!==void 0&&(u=a.identifierPrefix),a.onUncaughtError!==void 0&&(s=a.onUncaughtError),a.onCaughtError!==void 0&&(d=a.onCaughtError),a.onRecoverableError!==void 0&&(h=a.onRecoverableError),a.unstable_transitionCallbacks!==void 0&&(E=a.unstable_transitionCallbacks),a.formState!==void 0&&(x=a.formState)),t=a_(e,1,!0,t,a??null,i,u,s,d,h,E,x),t.context=r_(null),a=t.current,i=Xt(),i=En(i),u=Xn(i),u.callback=null,Wn(a,u,i),a=i,t.current.lanes=a,An(t,a),Nn(t),e[Ya]=t.current,bs(e),new ro(t)},Li.version="19.1.1",Li}var E_;function Yy(){if(E_)return $s.exports;E_=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(r){console.error(r)}}return n(),$s.exports=Fy(),$s.exports}var qy=Yy();function en({id:n,label:r,hint:l,error:o,required:c,className:f,children:m}){return g.jsxs("div",{className:f,children:[g.jsxs("label",{htmlFor:n,className:"form-label",children:[r," ",c&&g.jsx("span",{className:"text-red-600",children:"*"})]}),m,l&&!o&&g.jsx("p",{id:`${n}-hint`,className:"mt-1 text-sm text-slate-500",children:l}),o&&g.jsx("p",{id:`${n}-error`,className:"mt-1 text-sm text-red-600",children:o})]})}function Ys({id:n,label:r,hint:l,error:o,required:c,className:f,...m}){return g.jsx(en,{id:n,label:r,hint:l,error:o,required:c,className:f,children:g.jsx("input",{id:n,className:`form-input ${o?"input-error":""}`,"aria-invalid":!!o,"aria-describedby":[l?`${n}-hint`:null,o?`${n}-error`:null].filter(Boolean).join(" ")||void 0,required:c,...m,type:"text"})})}function T_(n,r){if(!n)return"";const l=parseInt(n,10);if(isNaN(l))return"";const o=l.toLocaleString("en-US");return r?`$${o}`:o}function Vy({id:n,label:r,hint:l,error:o,required:c,className:f,value:m,onChange:_,onKeyDown:p,isCurrency:y=!1,maxDigits:A,...D}){const[k,j]=I.useState(""),G=I.useRef(null);I.useEffect(()=>{if(m==null||m===""){j("");return}const oe=String(m).replace(/\D/g,"");j(T_(oe,y))},[m,y]);const U=oe=>{let _e=oe.target.value.replace(/\D/g,"");A!==void 0&&(_e=_e.slice(0,A)),j(T_(_e,y));const ee={...oe,currentTarget:{...oe.currentTarget,value:_e},target:{...oe.target,value:_e}};_?.(ee)},ue=oe=>{if(["-","+",".","e","E"].includes(oe.key)){oe.preventDefault();return}if(A!==void 0&&/^\d$/.test(oe.key)&&oe.currentTarget.value.replace(/\D/g,"").length>=A){oe.preventDefault();return}p?.(oe)};return g.jsx(en,{id:n,label:r,hint:l,error:o,required:c,className:f,children:g.jsx("input",{ref:G,id:n,type:"text",inputMode:"numeric",className:`form-input ${o?"input-error":""}`,"aria-invalid":!!o,"aria-describedby":[l?`${n}-hint`:null,o?`${n}-error`:null].filter(Boolean).join(" ")||void 0,required:c,value:k,onChange:U,onKeyDown:ue,...D})})}function C_(n){return n.length<=3?n:n.length<=5?`${n.slice(0,3)}-${n.slice(3)}`:`${n.slice(0,3)}-${n.slice(3,5)}-${n.slice(5,9)}`}function Py({id:n,label:r,hint:l,error:o,required:c,className:f,value:m="",onChange:_,...p}){const[y,A]=I.useState(""),D=I.useRef(null);I.useEffect(()=>{const j=m.replace(/\D/g,"").slice(0,9);A(C_(j))},[m]);const k=j=>{const G=j.target.value,U=j.target.selectionStart??0,ue=G.replace(/\D/g,"").slice(0,9),oe=C_(ue);A(oe);const _e={...j,currentTarget:{...j.currentTarget,value:oe},target:{...j.target,value:oe}};_?.(_e),setTimeout(()=>{if(D.current){const ee=G.slice(0,U).replace(/\D/g,"").length;let re=ee;ee>5?re+=2:ee>3&&(re+=1),D.current.setSelectionRange(re,re)}},0)};return g.jsx(en,{id:n,label:r,hint:l,error:o,required:c,className:f,children:g.jsx("input",{ref:D,id:n,type:"text",inputMode:"numeric",className:`form-input ${o?"input-error":""}`,"aria-invalid":!!o,"aria-describedby":[l?`${n}-hint`:null,o?`${n}-error`:null].filter(Boolean).join(" ")||void 0,required:c,maxLength:11,placeholder:"XXX-XX-XXXX",autoComplete:"off",value:y,onChange:k,...p})})}function qs({id:n,label:r,hint:l,error:o,required:c,className:f,...m}){return g.jsx(en,{id:n,label:r,hint:l,error:o,required:c,className:f,children:g.jsx("input",{id:n,type:"number",className:`form-input ${o?"input-error":""}`,"aria-invalid":!!o,"aria-describedby":[l?`${n}-hint`:null,o?`${n}-error`:null].filter(Boolean).join(" ")||void 0,required:c,...m})})}function Ky({id:n,label:r,hint:l,error:o,required:c,className:f,...m}){return g.jsx(en,{id:n,label:r,hint:l,error:o,required:c,className:f,children:g.jsx("input",{id:n,type:"email",className:`form-input ${o?"input-error":""}`,inputMode:"email",autoComplete:"email",required:c,"aria-invalid":!!o,"aria-describedby":[l?`${n}-hint`:null,o?`${n}-error`:null].filter(Boolean).join(" ")||void 0,...m})})}function Vs(n){const r=n.replace(/\D/g,"");if(r.length===10)return`(${r.slice(0,3)}) ${r.slice(3,6)} - ${r.slice(6)}`;if(r.length>10){const l=r.slice(0,10);return`(${l.slice(0,3)}) ${l.slice(3,6)} - ${l.slice(6)}`}return r.length>=6?`(${r.slice(0,3)}) ${r.slice(3,6)} - ${r.slice(6)}`:r.length>=3?`(${r.slice(0,3)}) ${r.slice(3)}`:r.length>0?`(${r}`:r}function Ps(n){return n.replace(/\D/g,"")}function Qy({id:n,label:r,hint:l,error:o,required:c,className:f,value:m="",onChange:_,...p}){const[y,A]=I.useState(""),D=I.useRef(null),k=I.useRef(0);I.useEffect(()=>{if(!m){A("");return}let G=Ps(m);G.length===11&&G.startsWith("1")&&(G=G.slice(1));const U=G.slice(0,10);A(Vs(U))},[m]);const j=G=>{const U=G.target,ue=U.value;k.current=U.selectionStart||0;const _e=Ps(ue).slice(0,10),ee=Vs(_e);A(ee);const re=_e.length===10?`+1${_e}`:_e,W={...G,currentTarget:{...G.currentTarget,value:re},target:{...G.target,value:re}};_?.(W),setTimeout(()=>{if(D.current){const le=ue.slice(0,k.current),ne=Ps(le),Ae=Vs(ne),te=Math.min(Ae.length,ee.length);D.current.setSelectionRange(te,te)}},0)};return g.jsx(en,{id:n,label:r,hint:l,error:o,required:c,className:f,children:g.jsxs("div",{className:`tel-input-wrapper flex items-center border rounded-lg transition-colors w-full relative ${o?"border-red-500 error":"border-[var(--accent-color)] focus-within:border-[var(--primary-color)]"}`,children:[g.jsx("label",{htmlFor:n,className:"px-3 py-3 text-slate-700 font-medium border-r border-[var(--accent-color)] bg-slate-50 flex-shrink-0 relative z-0 rounded-l-lg",children:"+1"}),g.jsx("input",{ref:D,id:n,type:"tel",className:`flex-1 px-4 py-3 border-0 rounded-r-lg outline-none bg-transparent text-[var(--text-primary)] text-base ${o?"input-error":""}`,inputMode:"tel",autoComplete:"tel",required:c,"aria-invalid":!!o,"aria-describedby":[l?`${n}-hint`:null,o?`${n}-error`:null].filter(Boolean).join(" ")||void 0,value:y,onChange:j,...p})]})})}function Xy({id:n,label:r,hint:l,error:o,required:c,className:f,...m}){return g.jsx(en,{id:n,label:r,hint:l,error:o,required:c,className:f,children:g.jsx("input",{id:n,type:"url",className:`form-input ${o?"input-error":""}`,inputMode:"url",autoComplete:"url",required:c,"aria-invalid":!!o,"aria-describedby":[l?`${n}-hint`:null,o?`${n}-error`:null].filter(Boolean).join(" ")||void 0,...m})})}function Wy({id:n,label:r,hint:l,error:o,required:c,className:f,...m}){return g.jsx(en,{id:n,label:r,hint:l,error:o,required:c,className:f,children:g.jsx("input",{id:n,type:"password",className:`form-input ${o?"input-error":""}`,autoComplete:"current-password",required:c,"aria-invalid":!!o,"aria-describedby":[l?`${n}-hint`:null,o?`${n}-error`:null].filter(Boolean).join(" ")||void 0,...m})})}function Jy({id:n,label:r,hint:l,error:o,required:c,className:f,rows:m=4,..._}){return g.jsx(en,{id:n,label:r,hint:l,error:o,required:c,className:f,children:g.jsx("textarea",{id:n,rows:m,className:`form-input ${o?"input-error":""}`,"aria-invalid":!!o,"aria-describedby":[l?`${n}-hint`:null,o?`${n}-error`:null].filter(Boolean).join(" ")||void 0,required:c,..._})})}function eg({id:n,label:r,hint:l,error:o,required:c,className:f,...m}){return g.jsx(en,{id:n,label:r,hint:l,error:o,required:c,className:f,children:g.jsx("input",{id:n,type:"date",className:`form-input ${o?"input-error":""}`,"aria-invalid":!!o,"aria-describedby":[l?`${n}-hint`:null,o?`${n}-error`:null].filter(Boolean).join(" ")||void 0,required:c,...m})})}function nc({id:n,label:r,className:l,...o}){return g.jsxs("label",{className:`checkbox-card ${l||""}`,htmlFor:n,children:[g.jsx("input",{id:n,type:"checkbox",className:"checkbox-input",...o}),g.jsx("span",{className:"checkbox-label",children:r})]})}function tg({onChoose:n,isSubmitting:r=!1}){const[l,o]=I.useState(!1),c=!l||r;return g.jsxs("div",{className:"communications-consent","data-testid":"communications-consent",children:[g.jsx("h3",{className:"text-lg font-semibold text-text-primary mb-3",children:"Communications Consent"}),g.jsx(nc,{id:"communications-consent-checkbox",className:"communications-consent-checkbox",checked:l,onChange:f=>o(f.target.checked),disabled:r,label:"I consent to communications from Credify Corporation (licensed insurance agency) and my selected carrier(s) at my phone number and email address provided. This includes support (including AI agents), carrier quote/service contact, auto-shopping/reshopping at renewal, notifications about policy renewal dates and other goods and services, and claims management."}),g.jsxs("div",{className:"text-sm text-slate-600 mt-4 space-y-2",children:[g.jsx("p",{children:"These may use automated systems, emails or texts. Message & data rates may apply. Reply STOP to opt out of SMS."}),g.jsx("p",{children:"Consent is not required to receive quotes or purchase insurance."})]}),g.jsxs("div",{className:"grid grid-cols-2 gap-3 mt-6",children:[g.jsx("button",{type:"button","data-testid":"communications-consent-decline",onClick:()=>n(!1),disabled:r,className:"credify-btn-back h-12 rounded-full border border-gray-300 text-text-primary hover:bg-gray-50 transition disabled:opacity-50 disabled:cursor-not-allowed",children:"I Do Not Consent"}),g.jsxs("button",{type:"button","data-testid":"communications-consent-accept",onClick:()=>n(!0),disabled:c,className:["form-wizard-next-btn","h-12 rounded-full text-white transition","disabled:opacity-50 disabled:cursor-not-allowed","flex items-center justify-center gap-2",c?"bg-gray-300":"bg-blue-600 hover:bg-blue-600/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-600/40 bg-primary hover:bg-primary/90 focus-visible:ring-primary/40"].join(" "),children:[r&&g.jsxs("svg",{className:"animate-spin h-5 w-5 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[g.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),g.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"I Consent"]})]})]})}function ng({name:n,value:r,checked:l,onChange:o,children:c}){return g.jsxs("label",{className:"radio-card",children:[g.jsx("input",{className:"radio-input",type:"radio",name:n,value:r,checked:l,onChange:o}),g.jsx("span",{className:"radio-label",children:c})]})}function ag({legend:n,children:r,className:l,legendClassName:o}){return g.jsxs("fieldset",{className:l,children:[g.jsx("legend",{className:`form-label mb-4 ${o||""}`,children:n}),g.jsx("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2",children:r})]})}function zi({id:n,label:r,hint:l,error:o,required:c,className:f,placeholder:m,options:_,children:p,...y}){const A=[l?`${n}-hint`:null,o?`${n}-error`:null].filter(Boolean).join(" ")||void 0,D=!!p;return g.jsx(en,{id:n,label:r,hint:l,error:o,required:c,className:f,children:g.jsxs("select",{id:n,className:`form-input select-caret ${o?"input-error":""}`,"aria-invalid":!!o,"aria-describedby":A,required:c,...y,children:[m&&g.jsx("option",{value:"",disabled:!0,selected:!("value"in y),children:m}),D?p:_?.map(k=>g.jsx("option",{value:k.value,disabled:k.disabled,children:k.label},k.value))]})})}const rg="AIzaSyDjLdKLxoa-maLNGAyq_I_2r_Fe_TzFikw";function ig(){return new Promise((n,r)=>{if(window.google?.maps?.places){n();return}const l=document.querySelector('script[src*="maps.googleapis.com"]');if(l){l.addEventListener("load",()=>n()),l.addEventListener("error",()=>r(new Error("Failed to load Google Maps script")));return}const o=document.createElement("script");o.src=`https://maps.googleapis.com/maps/api/js?key=${rg}&libraries=places`,o.async=!0,o.defer=!0,o.onload=()=>n(),o.onerror=()=>r(new Error("Failed to load Google Maps script")),document.head.appendChild(o)})}function lg(n){const r={fullAddress:n.formatted_address};return n.address_components&&n.address_components.forEach(l=>{const o=l.types;o.includes("street_number")&&(r.streetNumber=l.long_name),o.includes("route")&&(r.streetName=l.long_name),o.includes("locality")&&(r.city=l.long_name),o.includes("administrative_area_level_1")&&(r.state=l.short_name),o.includes("postal_code")&&(r.zipCode=l.long_name),o.includes("country")&&(r.country=l.short_name)}),r}function og({id:n,label:r,hint:l,error:o,required:c,className:f,onChange:m,onPlaceSelect:_,value:p,...y}){const A=I.useRef(null),D=I.useRef(null),k=I.useRef(null),j=I.useRef(null),[G,U]=I.useState(!0),[ue,oe]=I.useState(p||""),[_e,ee]=I.useState([]),[re,W]=I.useState(!1),[le,ne]=I.useState(-1),Ae=I.useRef([]),te=I.useRef(!1),xe=I.useRef(-1);I.useEffect(()=>{Ae.current=_e},[_e]),I.useEffect(()=>{te.current=re},[re]),I.useEffect(()=>{xe.current=le},[le]),I.useEffect(()=>{p!==void 0&&oe(String(p))},[p]);const ve=I.useRef(null);I.useEffect(()=>{if(!A.current)return;let fe=!0;return ig().then(()=>{!fe||!A.current||(D.current=new google.maps.places.AutocompleteService,k.current=new google.maps.places.PlacesService(document.createElement("div")),U(!1))}).catch(v=>{console.error("Error loading Google Maps:",v),U(!1)}),()=>{fe=!1,ve.current&&clearTimeout(ve.current)}},[]);const Le=fe=>{const v=fe.target.value;if(oe(v),m?.(v),ve.current&&clearTimeout(ve.current),v.length<3){ee([]),W(!1);return}ve.current=setTimeout(()=>{D.current&&D.current.getPlacePredictions({input:v,types:["address"]},(R,Y)=>{Y===google.maps.places.PlacesServiceStatus.OK&&R?(ee(R),W(!0),ne(-1)):(ee([]),W(!1))})},300)},Ke=fe=>{if(!te.current||Ae.current.length===0){fe.key==="Escape"&&(W(!1),te.current=!1);return}switch(fe.key){case"ArrowDown":fe.preventDefault(),ne(v=>{const R=v<Ae.current.length-1?v+1:v;return xe.current=R,R});break;case"ArrowUp":fe.preventDefault(),ne(v=>{const R=v>0?v-1:-1;return xe.current=R,R});break;case"Enter":fe.preventDefault(),xe.current>=0&&xe.current<Ae.current.length&&We(Ae.current[xe.current]);break;case"Escape":fe.preventDefault(),W(!1),te.current=!1;break}};I.useEffect(()=>{const fe=v=>{j.current&&!j.current.contains(v.target)&&A.current&&!A.current.contains(v.target)&&(W(!1),te.current=!1)};if(re)return document.addEventListener("mousedown",fe),()=>{document.removeEventListener("mousedown",fe)}},[re]);const We=fe=>{k.current&&k.current.getDetails({placeId:fe.place_id,fields:["address_components","formatted_address","geometry"]},(v,R)=>{if(R===google.maps.places.PlacesServiceStatus.OK&&v){const Y=v.formatted_address||"";oe(Y),W(!1),ee([]),te.current=!1;const P=lg(v);m?.(Y,P),_?.(v)}})};return g.jsx(en,{id:n,label:r,hint:l,error:o,required:c,className:f,children:g.jsxs("div",{className:"relative",children:[g.jsx("input",{ref:A,id:n,type:"text",className:`form-input ${o?"input-error":""}`,value:ue,onChange:Le,onKeyDown:Ke,"aria-invalid":!!o,"aria-describedby":[l?`${n}-hint`:null,o?`${n}-error`:null].filter(Boolean).join(" ")||void 0,required:c,autoComplete:"street-address",placeholder:y.placeholder||"Enter an address",disabled:G||y.disabled,...y}),G&&g.jsx("p",{className:"mt-1 text-sm text-slate-500",children:"Loading address suggestions..."}),re&&_e.length>0&&g.jsx("div",{ref:j,className:"absolute z-50 w-full mt-1 bg-white border border-slate-200 rounded-lg shadow-lg max-h-60 overflow-y-auto",role:"listbox",children:_e.map((fe,v)=>g.jsxs("div",{className:`px-4 py-3 cursor-pointer transition-colors ${v===le?"bg-blue-50 text-slate-900":"bg-white text-slate-900 hover:bg-slate-50"} ${v<_e.length-1?"border-b border-slate-100":""}`,role:"option","aria-selected":v===le,onClick:()=>We(fe),onMouseEnter:()=>ne(v),children:[g.jsx("div",{className:"font-medium text-slate-900",children:fe.structured_formatting.main_text}),fe.structured_formatting.secondary_text&&g.jsx("div",{className:"text-sm text-slate-500 mt-0.5",children:fe.structured_formatting.secondary_text})]},fe.place_id))})]})})}function yc(n){const r=(l,o)=>l.map((c,f)=>{const m=o.length?o.join("__"):"root",_=c.key??`${m}__q${f}_${String(c.question).slice(0,24).replace(/\W+/g,"-")||"field"}`,y=(c.conditionals??[]).map((A,D)=>{const k=A.conditionalQuestions?r(A.conditionalQuestions,[...o,`${_}__c${D}`]):void 0;return{...A,conditionalQuestions:k}});return{...c,key:_,conditionals:y}});return r(n,[])}function F(n,r,l){function o(_,p){if(_._zod||Object.defineProperty(_,"_zod",{value:{def:p,constr:m,traits:new Set},enumerable:!1}),_._zod.traits.has(n))return;_._zod.traits.add(n),r(_,p);const y=m.prototype,A=Object.keys(y);for(let D=0;D<A.length;D++){const k=A[D];k in _||(_[k]=y[k].bind(_))}}const c=l?.Parent??Object;class f extends c{}Object.defineProperty(f,"name",{value:n});function m(_){var p;const y=l?.Parent?new f:this;o(y,_),(p=y._zod).deferred??(p.deferred=[]);for(const A of y._zod.deferred)A();return y}return Object.defineProperty(m,"init",{value:o}),Object.defineProperty(m,Symbol.hasInstance,{value:_=>l?.Parent&&_ instanceof l.Parent?!0:_?._zod?.traits?.has(n)}),Object.defineProperty(m,"name",{value:n}),m}class Lr extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class Nh extends Error{constructor(r){super(`Encountered unidirectional transform during encode: ${r}`),this.name="ZodEncodeError"}}const Dh={};function Ha(n){return Dh}function xh(n){const r=Object.values(n).filter(o=>typeof o=="number");return Object.entries(n).filter(([o,c])=>r.indexOf(+o)===-1).map(([o,c])=>c)}function ac(n,r){return typeof r=="bigint"?r.toString():r}function gc(n){return{get value(){{const r=n();return Object.defineProperty(this,"value",{value:r}),r}}}}function vc(n){return n==null}function bc(n){const r=n.startsWith("^")?1:0,l=n.endsWith("$")?n.length-1:n.length;return n.slice(r,l)}function ug(n,r){const l=(n.toString().split(".")[1]||"").length,o=r.toString();let c=(o.split(".")[1]||"").length;if(c===0&&/\d?e-\d?/.test(o)){const p=o.match(/\d?e-(\d?)/);p?.[1]&&(c=Number.parseInt(p[1]))}const f=l>c?l:c,m=Number.parseInt(n.toFixed(f).replace(".","")),_=Number.parseInt(r.toFixed(f).replace(".",""));return m%_/10**f}const O_=Symbol("evaluating");function Fe(n,r,l){let o;Object.defineProperty(n,r,{get(){if(o!==O_)return o===void 0&&(o=O_,o=l()),o},set(c){Object.defineProperty(n,r,{value:c})},configurable:!0})}function $a(n,r,l){Object.defineProperty(n,r,{value:l,writable:!0,enumerable:!0,configurable:!0})}function ba(...n){const r={};for(const l of n){const o=Object.getOwnPropertyDescriptors(l);Object.assign(r,o)}return Object.defineProperties({},r)}function M_(n){return JSON.stringify(n)}function sg(n){return n.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const Rh="captureStackTrace"in Error?Error.captureStackTrace:(...n)=>{};function bo(n){return typeof n=="object"&&n!==null&&!Array.isArray(n)}const cg=gc(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const n=Function;return new n(""),!0}catch{return!1}});function Zi(n){if(bo(n)===!1)return!1;const r=n.constructor;if(r===void 0||typeof r!="function")return!0;const l=r.prototype;return!(bo(l)===!1||Object.prototype.hasOwnProperty.call(l,"isPrototypeOf")===!1)}function wh(n){return Zi(n)?{...n}:Array.isArray(n)?[...n]:n}const fg=new Set(["string","number","symbol"]);function Br(n){return n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Sa(n,r,l){const o=new n._zod.constr(r??n._zod.def);return(!r||l?.parent)&&(o._zod.parent=n),o}function me(n){const r=n;if(!r)return{};if(typeof r=="string")return{error:()=>r};if(r?.message!==void 0){if(r?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");r.error=r.message}return delete r.message,typeof r.error=="string"?{...r,error:()=>r.error}:r}function dg(n){return Object.keys(n).filter(r=>n[r]._zod.optin==="optional"&&n[r]._zod.optout==="optional")}const mg={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function _g(n,r){const l=n._zod.def,o=l.checks;if(o&&o.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const f=ba(n._zod.def,{get shape(){const m={};for(const _ in r){if(!(_ in l.shape))throw new Error(`Unrecognized key: "${_}"`);r[_]&&(m[_]=l.shape[_])}return $a(this,"shape",m),m},checks:[]});return Sa(n,f)}function hg(n,r){const l=n._zod.def,o=l.checks;if(o&&o.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const f=ba(n._zod.def,{get shape(){const m={...n._zod.def.shape};for(const _ in r){if(!(_ in l.shape))throw new Error(`Unrecognized key: "${_}"`);r[_]&&delete m[_]}return $a(this,"shape",m),m},checks:[]});return Sa(n,f)}function pg(n,r){if(!Zi(r))throw new Error("Invalid input to extend: expected a plain object");const l=n._zod.def.checks;if(l&&l.length>0){const f=n._zod.def.shape;for(const m in r)if(Object.getOwnPropertyDescriptor(f,m)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const c=ba(n._zod.def,{get shape(){const f={...n._zod.def.shape,...r};return $a(this,"shape",f),f}});return Sa(n,c)}function yg(n,r){if(!Zi(r))throw new Error("Invalid input to safeExtend: expected a plain object");const l=ba(n._zod.def,{get shape(){const o={...n._zod.def.shape,...r};return $a(this,"shape",o),o}});return Sa(n,l)}function gg(n,r){const l=ba(n._zod.def,{get shape(){const o={...n._zod.def.shape,...r._zod.def.shape};return $a(this,"shape",o),o},get catchall(){return r._zod.def.catchall},checks:[]});return Sa(n,l)}function vg(n,r,l){const c=r._zod.def.checks;if(c&&c.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const m=ba(r._zod.def,{get shape(){const _=r._zod.def.shape,p={..._};if(l)for(const y in l){if(!(y in _))throw new Error(`Unrecognized key: "${y}"`);l[y]&&(p[y]=n?new n({type:"optional",innerType:_[y]}):_[y])}else for(const y in _)p[y]=n?new n({type:"optional",innerType:_[y]}):_[y];return $a(this,"shape",p),p},checks:[]});return Sa(r,m)}function bg(n,r,l){const o=ba(r._zod.def,{get shape(){const c=r._zod.def.shape,f={...c};if(l)for(const m in l){if(!(m in f))throw new Error(`Unrecognized key: "${m}"`);l[m]&&(f[m]=new n({type:"nonoptional",innerType:c[m]}))}else for(const m in c)f[m]=new n({type:"nonoptional",innerType:c[m]});return $a(this,"shape",f),f}});return Sa(r,o)}function wr(n,r=0){if(n.aborted===!0)return!0;for(let l=r;l<n.issues.length;l++)if(n.issues[l]?.continue!==!0)return!0;return!1}function Lh(n,r){return r.map(l=>{var o;return(o=l).path??(o.path=[]),l.path.unshift(n),l})}function lo(n){return typeof n=="string"?n:n?.message}function Ia(n,r,l){const o={...n,path:n.path??[]};if(!n.message){const c=lo(n.inst?._zod.def?.error?.(n))??lo(r?.error?.(n))??lo(l.customError?.(n))??lo(l.localeError?.(n))??"Invalid input";o.message=c}return delete o.inst,delete o.continue,r?.reportInput||delete o.input,o}function Sc(n){return Array.isArray(n)?"array":typeof n=="string"?"string":"unknown"}function Fi(...n){const[r,l,o]=n;return typeof r=="string"?{message:r,code:"custom",input:l,inst:o}:{...r}}const zh=(n,r)=>{n.name="$ZodError",Object.defineProperty(n,"_zod",{value:n._zod,enumerable:!1}),Object.defineProperty(n,"issues",{value:r,enumerable:!1}),n.message=JSON.stringify(r,ac,2),Object.defineProperty(n,"toString",{value:()=>n.message,enumerable:!1})},Bh=F("$ZodError",zh),kh=F("$ZodError",zh,{Parent:Error});function Sg(n,r=l=>l.message){const l={},o=[];for(const c of n.issues)c.path.length>0?(l[c.path[0]]=l[c.path[0]]||[],l[c.path[0]].push(r(c))):o.push(r(c));return{formErrors:o,fieldErrors:l}}function Ag(n,r=l=>l.message){const l={_errors:[]},o=c=>{for(const f of c.issues)if(f.code==="invalid_union"&&f.errors.length)f.errors.map(m=>o({issues:m}));else if(f.code==="invalid_key")o({issues:f.issues});else if(f.code==="invalid_element")o({issues:f.issues});else if(f.path.length===0)l._errors.push(r(f));else{let m=l,_=0;for(;_<f.path.length;){const p=f.path[_];_===f.path.length-1?(m[p]=m[p]||{_errors:[]},m[p]._errors.push(r(f))):m[p]=m[p]||{_errors:[]},m=m[p],_++}}};return o(n),l}const Ac=n=>(r,l,o,c)=>{const f=o?Object.assign(o,{async:!1}):{async:!1},m=r._zod.run({value:l,issues:[]},f);if(m instanceof Promise)throw new Lr;if(m.issues.length){const _=new(c?.Err??n)(m.issues.map(p=>Ia(p,f,Ha())));throw Rh(_,c?.callee),_}return m.value},Ec=n=>async(r,l,o,c)=>{const f=o?Object.assign(o,{async:!0}):{async:!0};let m=r._zod.run({value:l,issues:[]},f);if(m instanceof Promise&&(m=await m),m.issues.length){const _=new(c?.Err??n)(m.issues.map(p=>Ia(p,f,Ha())));throw Rh(_,c?.callee),_}return m.value},No=n=>(r,l,o)=>{const c=o?{...o,async:!1}:{async:!1},f=r._zod.run({value:l,issues:[]},c);if(f instanceof Promise)throw new Lr;return f.issues.length?{success:!1,error:new(n??Bh)(f.issues.map(m=>Ia(m,c,Ha())))}:{success:!0,data:f.value}},Eg=No(kh),Do=n=>async(r,l,o)=>{const c=o?Object.assign(o,{async:!0}):{async:!0};let f=r._zod.run({value:l,issues:[]},c);return f instanceof Promise&&(f=await f),f.issues.length?{success:!1,error:new n(f.issues.map(m=>Ia(m,c,Ha())))}:{success:!0,data:f.value}},Tg=Do(kh),Cg=n=>(r,l,o)=>{const c=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return Ac(n)(r,l,c)},Og=n=>(r,l,o)=>Ac(n)(r,l,o),Mg=n=>async(r,l,o)=>{const c=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return Ec(n)(r,l,c)},Ng=n=>async(r,l,o)=>Ec(n)(r,l,o),Dg=n=>(r,l,o)=>{const c=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return No(n)(r,l,c)},xg=n=>(r,l,o)=>No(n)(r,l,o),Rg=n=>async(r,l,o)=>{const c=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return Do(n)(r,l,c)},wg=n=>async(r,l,o)=>Do(n)(r,l,o),Lg=/^[cC][^\s-]{8,}$/,zg=/^[0-9a-z]+$/,Bg=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,kg=/^[0-9a-vA-V]{20}$/,Ug=/^[A-Za-z0-9]{27}$/,jg=/^[a-zA-Z0-9_-]{21}$/,Hg=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Ig=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,N_=n=>n?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${n}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,$g=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Gg="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Zg(){return new RegExp(Gg,"u")}const Fg=/^(?:(?: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])$/,Yg=/^(([0-9a-fA-F]{1,4}:){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}|:))$/,qg=/^((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])\/([0-9]|[1-2][0-9]|3[0-2])$/,Vg=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Pg=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Uh=/^[A-Za-z0-9_-]*$/,Kg=/^\+[1-9]\d{6,14}$/,jh="(?:(?:\\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])))",Qg=new RegExp(`^${jh}$`);function Hh(n){const r="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof n.precision=="number"?n.precision===-1?`${r}`:n.precision===0?`${r}:[0-5]\\d`:`${r}:[0-5]\\d\\.\\d{${n.precision}}`:`${r}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Xg(n){return new RegExp(`^${Hh(n)}$`)}function Wg(n){const r=Hh({precision:n.precision}),l=["Z"];n.local&&l.push(""),n.offset&&l.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const o=`${r}(?:${l.join("|")})`;return new RegExp(`^${jh}T(?:${o})$`)}const Jg=n=>{const r=n?`[\\s\\S]{${n?.minimum??0},${n?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${r}$`)},ev=/^-?\d+$/,tv=/^-?\d+(?:\.\d+)?$/,nv=/^(?:true|false)$/i,av=/^[^A-Z]*$/,rv=/^[^a-z]*$/,Zt=F("$ZodCheck",(n,r)=>{var l;n._zod??(n._zod={}),n._zod.def=r,(l=n._zod).onattach??(l.onattach=[])}),Ih={number:"number",bigint:"bigint",object:"date"},$h=F("$ZodCheckLessThan",(n,r)=>{Zt.init(n,r);const l=Ih[typeof r.value];n._zod.onattach.push(o=>{const c=o._zod.bag,f=(r.inclusive?c.maximum:c.exclusiveMaximum)??Number.POSITIVE_INFINITY;r.value<f&&(r.inclusive?c.maximum=r.value:c.exclusiveMaximum=r.value)}),n._zod.check=o=>{(r.inclusive?o.value<=r.value:o.value<r.value)||o.issues.push({origin:l,code:"too_big",maximum:typeof r.value=="object"?r.value.getTime():r.value,input:o.value,inclusive:r.inclusive,inst:n,continue:!r.abort})}}),Gh=F("$ZodCheckGreaterThan",(n,r)=>{Zt.init(n,r);const l=Ih[typeof r.value];n._zod.onattach.push(o=>{const c=o._zod.bag,f=(r.inclusive?c.minimum:c.exclusiveMinimum)??Number.NEGATIVE_INFINITY;r.value>f&&(r.inclusive?c.minimum=r.value:c.exclusiveMinimum=r.value)}),n._zod.check=o=>{(r.inclusive?o.value>=r.value:o.value>r.value)||o.issues.push({origin:l,code:"too_small",minimum:typeof r.value=="object"?r.value.getTime():r.value,input:o.value,inclusive:r.inclusive,inst:n,continue:!r.abort})}}),iv=F("$ZodCheckMultipleOf",(n,r)=>{Zt.init(n,r),n._zod.onattach.push(l=>{var o;(o=l._zod.bag).multipleOf??(o.multipleOf=r.value)}),n._zod.check=l=>{if(typeof l.value!=typeof r.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof l.value=="bigint"?l.value%r.value===BigInt(0):ug(l.value,r.value)===0)||l.issues.push({origin:typeof l.value,code:"not_multiple_of",divisor:r.value,input:l.value,inst:n,continue:!r.abort})}}),lv=F("$ZodCheckNumberFormat",(n,r)=>{Zt.init(n,r),r.format=r.format||"float64";const l=r.format?.includes("int"),o=l?"int":"number",[c,f]=mg[r.format];n._zod.onattach.push(m=>{const _=m._zod.bag;_.format=r.format,_.minimum=c,_.maximum=f,l&&(_.pattern=ev)}),n._zod.check=m=>{const _=m.value;if(l){if(!Number.isInteger(_)){m.issues.push({expected:o,format:r.format,code:"invalid_type",continue:!1,input:_,inst:n});return}if(!Number.isSafeInteger(_)){_>0?m.issues.push({input:_,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:n,origin:o,inclusive:!0,continue:!r.abort}):m.issues.push({input:_,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:n,origin:o,inclusive:!0,continue:!r.abort});return}}_<c&&m.issues.push({origin:"number",input:_,code:"too_small",minimum:c,inclusive:!0,inst:n,continue:!r.abort}),_>f&&m.issues.push({origin:"number",input:_,code:"too_big",maximum:f,inclusive:!0,inst:n,continue:!r.abort})}}),ov=F("$ZodCheckMaxLength",(n,r)=>{var l;Zt.init(n,r),(l=n._zod.def).when??(l.when=o=>{const c=o.value;return!vc(c)&&c.length!==void 0}),n._zod.onattach.push(o=>{const c=o._zod.bag.maximum??Number.POSITIVE_INFINITY;r.maximum<c&&(o._zod.bag.maximum=r.maximum)}),n._zod.check=o=>{const c=o.value;if(c.length<=r.maximum)return;const m=Sc(c);o.issues.push({origin:m,code:"too_big",maximum:r.maximum,inclusive:!0,input:c,inst:n,continue:!r.abort})}}),uv=F("$ZodCheckMinLength",(n,r)=>{var l;Zt.init(n,r),(l=n._zod.def).when??(l.when=o=>{const c=o.value;return!vc(c)&&c.length!==void 0}),n._zod.onattach.push(o=>{const c=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;r.minimum>c&&(o._zod.bag.minimum=r.minimum)}),n._zod.check=o=>{const c=o.value;if(c.length>=r.minimum)return;const m=Sc(c);o.issues.push({origin:m,code:"too_small",minimum:r.minimum,inclusive:!0,input:c,inst:n,continue:!r.abort})}}),sv=F("$ZodCheckLengthEquals",(n,r)=>{var l;Zt.init(n,r),(l=n._zod.def).when??(l.when=o=>{const c=o.value;return!vc(c)&&c.length!==void 0}),n._zod.onattach.push(o=>{const c=o._zod.bag;c.minimum=r.length,c.maximum=r.length,c.length=r.length}),n._zod.check=o=>{const c=o.value,f=c.length;if(f===r.length)return;const m=Sc(c),_=f>r.length;o.issues.push({origin:m,..._?{code:"too_big",maximum:r.length}:{code:"too_small",minimum:r.length},inclusive:!0,exact:!0,input:o.value,inst:n,continue:!r.abort})}}),xo=F("$ZodCheckStringFormat",(n,r)=>{var l,o;Zt.init(n,r),n._zod.onattach.push(c=>{const f=c._zod.bag;f.format=r.format,r.pattern&&(f.patterns??(f.patterns=new Set),f.patterns.add(r.pattern))}),r.pattern?(l=n._zod).check??(l.check=c=>{r.pattern.lastIndex=0,!r.pattern.test(c.value)&&c.issues.push({origin:"string",code:"invalid_format",format:r.format,input:c.value,...r.pattern?{pattern:r.pattern.toString()}:{},inst:n,continue:!r.abort})}):(o=n._zod).check??(o.check=()=>{})}),cv=F("$ZodCheckRegex",(n,r)=>{xo.init(n,r),n._zod.check=l=>{r.pattern.lastIndex=0,!r.pattern.test(l.value)&&l.issues.push({origin:"string",code:"invalid_format",format:"regex",input:l.value,pattern:r.pattern.toString(),inst:n,continue:!r.abort})}}),fv=F("$ZodCheckLowerCase",(n,r)=>{r.pattern??(r.pattern=av),xo.init(n,r)}),dv=F("$ZodCheckUpperCase",(n,r)=>{r.pattern??(r.pattern=rv),xo.init(n,r)}),mv=F("$ZodCheckIncludes",(n,r)=>{Zt.init(n,r);const l=Br(r.includes),o=new RegExp(typeof r.position=="number"?`^.{${r.position}}${l}`:l);r.pattern=o,n._zod.onattach.push(c=>{const f=c._zod.bag;f.patterns??(f.patterns=new Set),f.patterns.add(o)}),n._zod.check=c=>{c.value.includes(r.includes,r.position)||c.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:r.includes,input:c.value,inst:n,continue:!r.abort})}}),_v=F("$ZodCheckStartsWith",(n,r)=>{Zt.init(n,r);const l=new RegExp(`^${Br(r.prefix)}.*`);r.pattern??(r.pattern=l),n._zod.onattach.push(o=>{const c=o._zod.bag;c.patterns??(c.patterns=new Set),c.patterns.add(l)}),n._zod.check=o=>{o.value.startsWith(r.prefix)||o.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:r.prefix,input:o.value,inst:n,continue:!r.abort})}}),hv=F("$ZodCheckEndsWith",(n,r)=>{Zt.init(n,r);const l=new RegExp(`.*${Br(r.suffix)}$`);r.pattern??(r.pattern=l),n._zod.onattach.push(o=>{const c=o._zod.bag;c.patterns??(c.patterns=new Set),c.patterns.add(l)}),n._zod.check=o=>{o.value.endsWith(r.suffix)||o.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:r.suffix,input:o.value,inst:n,continue:!r.abort})}}),pv=F("$ZodCheckOverwrite",(n,r)=>{Zt.init(n,r),n._zod.check=l=>{l.value=r.tx(l.value)}});class yv{constructor(r=[]){this.content=[],this.indent=0,this&&(this.args=r)}indented(r){this.indent+=1,r(this),this.indent-=1}write(r){if(typeof r=="function"){r(this,{execution:"sync"}),r(this,{execution:"async"});return}const o=r.split(`
|
|
50
|
+
`).filter(m=>m),c=Math.min(...o.map(m=>m.length-m.trimStart().length)),f=o.map(m=>m.slice(c)).map(m=>" ".repeat(this.indent*2)+m);for(const m of f)this.content.push(m)}compile(){const r=Function,l=this?.args,c=[...(this?.content??[""]).map(f=>` ${f}`)];return new r(...l,c.join(`
|
|
51
|
+
`))}}const gv={major:4,minor:3,patch:6},lt=F("$ZodType",(n,r)=>{var l;n??(n={}),n._zod.def=r,n._zod.bag=n._zod.bag||{},n._zod.version=gv;const o=[...n._zod.def.checks??[]];n._zod.traits.has("$ZodCheck")&&o.unshift(n);for(const c of o)for(const f of c._zod.onattach)f(n);if(o.length===0)(l=n._zod).deferred??(l.deferred=[]),n._zod.deferred?.push(()=>{n._zod.run=n._zod.parse});else{const c=(m,_,p)=>{let y=wr(m),A;for(const D of _){if(D._zod.def.when){if(!D._zod.def.when(m))continue}else if(y)continue;const k=m.issues.length,j=D._zod.check(m);if(j instanceof Promise&&p?.async===!1)throw new Lr;if(A||j instanceof Promise)A=(A??Promise.resolve()).then(async()=>{await j,m.issues.length!==k&&(y||(y=wr(m,k)))});else{if(m.issues.length===k)continue;y||(y=wr(m,k))}}return A?A.then(()=>m):m},f=(m,_,p)=>{if(wr(m))return m.aborted=!0,m;const y=c(_,o,p);if(y instanceof Promise){if(p.async===!1)throw new Lr;return y.then(A=>n._zod.parse(A,p))}return n._zod.parse(y,p)};n._zod.run=(m,_)=>{if(_.skipChecks)return n._zod.parse(m,_);if(_.direction==="backward"){const y=n._zod.parse({value:m.value,issues:[]},{..._,skipChecks:!0});return y instanceof Promise?y.then(A=>f(A,m,_)):f(y,m,_)}const p=n._zod.parse(m,_);if(p instanceof Promise){if(_.async===!1)throw new Lr;return p.then(y=>c(y,o,_))}return c(p,o,_)}}Fe(n,"~standard",()=>({validate:c=>{try{const f=Eg(n,c);return f.success?{value:f.data}:{issues:f.error?.issues}}catch{return Tg(n,c).then(m=>m.success?{value:m.data}:{issues:m.error?.issues})}},vendor:"zod",version:1}))}),Tc=F("$ZodString",(n,r)=>{lt.init(n,r),n._zod.pattern=[...n?._zod.bag?.patterns??[]].pop()??Jg(n._zod.bag),n._zod.parse=(l,o)=>{if(r.coerce)try{l.value=String(l.value)}catch{}return typeof l.value=="string"||l.issues.push({expected:"string",code:"invalid_type",input:l.value,inst:n}),l}}),tt=F("$ZodStringFormat",(n,r)=>{xo.init(n,r),Tc.init(n,r)}),vv=F("$ZodGUID",(n,r)=>{r.pattern??(r.pattern=Ig),tt.init(n,r)}),bv=F("$ZodUUID",(n,r)=>{if(r.version){const o={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[r.version];if(o===void 0)throw new Error(`Invalid UUID version: "${r.version}"`);r.pattern??(r.pattern=N_(o))}else r.pattern??(r.pattern=N_());tt.init(n,r)}),Sv=F("$ZodEmail",(n,r)=>{r.pattern??(r.pattern=$g),tt.init(n,r)}),Av=F("$ZodURL",(n,r)=>{tt.init(n,r),n._zod.check=l=>{try{const o=l.value.trim(),c=new URL(o);r.hostname&&(r.hostname.lastIndex=0,r.hostname.test(c.hostname)||l.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:r.hostname.source,input:l.value,inst:n,continue:!r.abort})),r.protocol&&(r.protocol.lastIndex=0,r.protocol.test(c.protocol.endsWith(":")?c.protocol.slice(0,-1):c.protocol)||l.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:r.protocol.source,input:l.value,inst:n,continue:!r.abort})),r.normalize?l.value=c.href:l.value=o;return}catch{l.issues.push({code:"invalid_format",format:"url",input:l.value,inst:n,continue:!r.abort})}}}),Ev=F("$ZodEmoji",(n,r)=>{r.pattern??(r.pattern=Zg()),tt.init(n,r)}),Tv=F("$ZodNanoID",(n,r)=>{r.pattern??(r.pattern=jg),tt.init(n,r)}),Cv=F("$ZodCUID",(n,r)=>{r.pattern??(r.pattern=Lg),tt.init(n,r)}),Ov=F("$ZodCUID2",(n,r)=>{r.pattern??(r.pattern=zg),tt.init(n,r)}),Mv=F("$ZodULID",(n,r)=>{r.pattern??(r.pattern=Bg),tt.init(n,r)}),Nv=F("$ZodXID",(n,r)=>{r.pattern??(r.pattern=kg),tt.init(n,r)}),Dv=F("$ZodKSUID",(n,r)=>{r.pattern??(r.pattern=Ug),tt.init(n,r)}),xv=F("$ZodISODateTime",(n,r)=>{r.pattern??(r.pattern=Wg(r)),tt.init(n,r)}),Rv=F("$ZodISODate",(n,r)=>{r.pattern??(r.pattern=Qg),tt.init(n,r)}),wv=F("$ZodISOTime",(n,r)=>{r.pattern??(r.pattern=Xg(r)),tt.init(n,r)}),Lv=F("$ZodISODuration",(n,r)=>{r.pattern??(r.pattern=Hg),tt.init(n,r)}),zv=F("$ZodIPv4",(n,r)=>{r.pattern??(r.pattern=Fg),tt.init(n,r),n._zod.bag.format="ipv4"}),Bv=F("$ZodIPv6",(n,r)=>{r.pattern??(r.pattern=Yg),tt.init(n,r),n._zod.bag.format="ipv6",n._zod.check=l=>{try{new URL(`http://[${l.value}]`)}catch{l.issues.push({code:"invalid_format",format:"ipv6",input:l.value,inst:n,continue:!r.abort})}}}),kv=F("$ZodCIDRv4",(n,r)=>{r.pattern??(r.pattern=qg),tt.init(n,r)}),Uv=F("$ZodCIDRv6",(n,r)=>{r.pattern??(r.pattern=Vg),tt.init(n,r),n._zod.check=l=>{const o=l.value.split("/");try{if(o.length!==2)throw new Error;const[c,f]=o;if(!f)throw new Error;const m=Number(f);if(`${m}`!==f)throw new Error;if(m<0||m>128)throw new Error;new URL(`http://[${c}]`)}catch{l.issues.push({code:"invalid_format",format:"cidrv6",input:l.value,inst:n,continue:!r.abort})}}});function Zh(n){if(n==="")return!0;if(n.length%4!==0)return!1;try{return atob(n),!0}catch{return!1}}const jv=F("$ZodBase64",(n,r)=>{r.pattern??(r.pattern=Pg),tt.init(n,r),n._zod.bag.contentEncoding="base64",n._zod.check=l=>{Zh(l.value)||l.issues.push({code:"invalid_format",format:"base64",input:l.value,inst:n,continue:!r.abort})}});function Hv(n){if(!Uh.test(n))return!1;const r=n.replace(/[-_]/g,o=>o==="-"?"+":"/"),l=r.padEnd(Math.ceil(r.length/4)*4,"=");return Zh(l)}const Iv=F("$ZodBase64URL",(n,r)=>{r.pattern??(r.pattern=Uh),tt.init(n,r),n._zod.bag.contentEncoding="base64url",n._zod.check=l=>{Hv(l.value)||l.issues.push({code:"invalid_format",format:"base64url",input:l.value,inst:n,continue:!r.abort})}}),$v=F("$ZodE164",(n,r)=>{r.pattern??(r.pattern=Kg),tt.init(n,r)});function Gv(n,r=null){try{const l=n.split(".");if(l.length!==3)return!1;const[o]=l;if(!o)return!1;const c=JSON.parse(atob(o));return!("typ"in c&&c?.typ!=="JWT"||!c.alg||r&&(!("alg"in c)||c.alg!==r))}catch{return!1}}const Zv=F("$ZodJWT",(n,r)=>{tt.init(n,r),n._zod.check=l=>{Gv(l.value,r.alg)||l.issues.push({code:"invalid_format",format:"jwt",input:l.value,inst:n,continue:!r.abort})}}),Fh=F("$ZodNumber",(n,r)=>{lt.init(n,r),n._zod.pattern=n._zod.bag.pattern??tv,n._zod.parse=(l,o)=>{if(r.coerce)try{l.value=Number(l.value)}catch{}const c=l.value;if(typeof c=="number"&&!Number.isNaN(c)&&Number.isFinite(c))return l;const f=typeof c=="number"?Number.isNaN(c)?"NaN":Number.isFinite(c)?void 0:"Infinity":void 0;return l.issues.push({expected:"number",code:"invalid_type",input:c,inst:n,...f?{received:f}:{}}),l}}),Fv=F("$ZodNumberFormat",(n,r)=>{lv.init(n,r),Fh.init(n,r)}),Yv=F("$ZodBoolean",(n,r)=>{lt.init(n,r),n._zod.pattern=nv,n._zod.parse=(l,o)=>{if(r.coerce)try{l.value=!!l.value}catch{}const c=l.value;return typeof c=="boolean"||l.issues.push({expected:"boolean",code:"invalid_type",input:c,inst:n}),l}}),qv=F("$ZodUnknown",(n,r)=>{lt.init(n,r),n._zod.parse=l=>l}),Vv=F("$ZodNever",(n,r)=>{lt.init(n,r),n._zod.parse=(l,o)=>(l.issues.push({expected:"never",code:"invalid_type",input:l.value,inst:n}),l)});function D_(n,r,l){n.issues.length&&r.issues.push(...Lh(l,n.issues)),r.value[l]=n.value}const Pv=F("$ZodArray",(n,r)=>{lt.init(n,r),n._zod.parse=(l,o)=>{const c=l.value;if(!Array.isArray(c))return l.issues.push({expected:"array",code:"invalid_type",input:c,inst:n}),l;l.value=Array(c.length);const f=[];for(let m=0;m<c.length;m++){const _=c[m],p=r.element._zod.run({value:_,issues:[]},o);p instanceof Promise?f.push(p.then(y=>D_(y,l,m))):D_(p,l,m)}return f.length?Promise.all(f).then(()=>l):l}});function So(n,r,l,o,c){if(n.issues.length){if(c&&!(l in o))return;r.issues.push(...Lh(l,n.issues))}n.value===void 0?l in o&&(r.value[l]=void 0):r.value[l]=n.value}function Yh(n){const r=Object.keys(n.shape);for(const o of r)if(!n.shape?.[o]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${o}": expected a Zod schema`);const l=dg(n.shape);return{...n,keys:r,keySet:new Set(r),numKeys:r.length,optionalKeys:new Set(l)}}function qh(n,r,l,o,c,f){const m=[],_=c.keySet,p=c.catchall._zod,y=p.def.type,A=p.optout==="optional";for(const D in r){if(_.has(D))continue;if(y==="never"){m.push(D);continue}const k=p.run({value:r[D],issues:[]},o);k instanceof Promise?n.push(k.then(j=>So(j,l,D,r,A))):So(k,l,D,r,A)}return m.length&&l.issues.push({code:"unrecognized_keys",keys:m,input:r,inst:f}),n.length?Promise.all(n).then(()=>l):l}const Kv=F("$ZodObject",(n,r)=>{if(lt.init(n,r),!Object.getOwnPropertyDescriptor(r,"shape")?.get){const _=r.shape;Object.defineProperty(r,"shape",{get:()=>{const p={..._};return Object.defineProperty(r,"shape",{value:p}),p}})}const o=gc(()=>Yh(r));Fe(n._zod,"propValues",()=>{const _=r.shape,p={};for(const y in _){const A=_[y]._zod;if(A.values){p[y]??(p[y]=new Set);for(const D of A.values)p[y].add(D)}}return p});const c=bo,f=r.catchall;let m;n._zod.parse=(_,p)=>{m??(m=o.value);const y=_.value;if(!c(y))return _.issues.push({expected:"object",code:"invalid_type",input:y,inst:n}),_;_.value={};const A=[],D=m.shape;for(const k of m.keys){const j=D[k],G=j._zod.optout==="optional",U=j._zod.run({value:y[k],issues:[]},p);U instanceof Promise?A.push(U.then(ue=>So(ue,_,k,y,G))):So(U,_,k,y,G)}return f?qh(A,y,_,p,o.value,n):A.length?Promise.all(A).then(()=>_):_}}),Qv=F("$ZodObjectJIT",(n,r)=>{Kv.init(n,r);const l=n._zod.parse,o=gc(()=>Yh(r)),c=k=>{const j=new yv(["shape","payload","ctx"]),G=o.value,U=ee=>{const re=M_(ee);return`shape[${re}]._zod.run({ value: input[${re}], issues: [] }, ctx)`};j.write("const input = payload.value;");const ue=Object.create(null);let oe=0;for(const ee of G.keys)ue[ee]=`key_${oe++}`;j.write("const newResult = {};");for(const ee of G.keys){const re=ue[ee],W=M_(ee),ne=k[ee]?._zod?.optout==="optional";j.write(`const ${re} = ${U(ee)};`),ne?j.write(`
|
|
52
|
+
if (${re}.issues.length) {
|
|
53
|
+
if (${W} in input) {
|
|
54
|
+
payload.issues = payload.issues.concat(${re}.issues.map(iss => ({
|
|
55
|
+
...iss,
|
|
56
|
+
path: iss.path ? [${W}, ...iss.path] : [${W}]
|
|
57
|
+
})));
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
if (${re}.value === undefined) {
|
|
62
|
+
if (${W} in input) {
|
|
63
|
+
newResult[${W}] = undefined;
|
|
64
|
+
}
|
|
65
|
+
} else {
|
|
66
|
+
newResult[${W}] = ${re}.value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
`):j.write(`
|
|
70
|
+
if (${re}.issues.length) {
|
|
71
|
+
payload.issues = payload.issues.concat(${re}.issues.map(iss => ({
|
|
72
|
+
...iss,
|
|
73
|
+
path: iss.path ? [${W}, ...iss.path] : [${W}]
|
|
74
|
+
})));
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
if (${re}.value === undefined) {
|
|
78
|
+
if (${W} in input) {
|
|
79
|
+
newResult[${W}] = undefined;
|
|
80
|
+
}
|
|
81
|
+
} else {
|
|
82
|
+
newResult[${W}] = ${re}.value;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
`)}j.write("payload.value = newResult;"),j.write("return payload;");const _e=j.compile();return(ee,re)=>_e(k,ee,re)};let f;const m=bo,_=!Dh.jitless,y=_&&cg.value,A=r.catchall;let D;n._zod.parse=(k,j)=>{D??(D=o.value);const G=k.value;return m(G)?_&&y&&j?.async===!1&&j.jitless!==!0?(f||(f=c(r.shape)),k=f(k,j),A?qh([],G,k,j,D,n):k):l(k,j):(k.issues.push({expected:"object",code:"invalid_type",input:G,inst:n}),k)}});function x_(n,r,l,o){for(const f of n)if(f.issues.length===0)return r.value=f.value,r;const c=n.filter(f=>!wr(f));return c.length===1?(r.value=c[0].value,c[0]):(r.issues.push({code:"invalid_union",input:r.value,inst:l,errors:n.map(f=>f.issues.map(m=>Ia(m,o,Ha())))}),r)}const Xv=F("$ZodUnion",(n,r)=>{lt.init(n,r),Fe(n._zod,"optin",()=>r.options.some(c=>c._zod.optin==="optional")?"optional":void 0),Fe(n._zod,"optout",()=>r.options.some(c=>c._zod.optout==="optional")?"optional":void 0),Fe(n._zod,"values",()=>{if(r.options.every(c=>c._zod.values))return new Set(r.options.flatMap(c=>Array.from(c._zod.values)))}),Fe(n._zod,"pattern",()=>{if(r.options.every(c=>c._zod.pattern)){const c=r.options.map(f=>f._zod.pattern);return new RegExp(`^(${c.map(f=>bc(f.source)).join("|")})$`)}});const l=r.options.length===1,o=r.options[0]._zod.run;n._zod.parse=(c,f)=>{if(l)return o(c,f);let m=!1;const _=[];for(const p of r.options){const y=p._zod.run({value:c.value,issues:[]},f);if(y instanceof Promise)_.push(y),m=!0;else{if(y.issues.length===0)return y;_.push(y)}}return m?Promise.all(_).then(p=>x_(p,c,n,f)):x_(_,c,n,f)}}),Wv=F("$ZodIntersection",(n,r)=>{lt.init(n,r),n._zod.parse=(l,o)=>{const c=l.value,f=r.left._zod.run({value:c,issues:[]},o),m=r.right._zod.run({value:c,issues:[]},o);return f instanceof Promise||m instanceof Promise?Promise.all([f,m]).then(([p,y])=>R_(l,p,y)):R_(l,f,m)}});function rc(n,r){if(n===r)return{valid:!0,data:n};if(n instanceof Date&&r instanceof Date&&+n==+r)return{valid:!0,data:n};if(Zi(n)&&Zi(r)){const l=Object.keys(r),o=Object.keys(n).filter(f=>l.indexOf(f)!==-1),c={...n,...r};for(const f of o){const m=rc(n[f],r[f]);if(!m.valid)return{valid:!1,mergeErrorPath:[f,...m.mergeErrorPath]};c[f]=m.data}return{valid:!0,data:c}}if(Array.isArray(n)&&Array.isArray(r)){if(n.length!==r.length)return{valid:!1,mergeErrorPath:[]};const l=[];for(let o=0;o<n.length;o++){const c=n[o],f=r[o],m=rc(c,f);if(!m.valid)return{valid:!1,mergeErrorPath:[o,...m.mergeErrorPath]};l.push(m.data)}return{valid:!0,data:l}}return{valid:!1,mergeErrorPath:[]}}function R_(n,r,l){const o=new Map;let c;for(const _ of r.issues)if(_.code==="unrecognized_keys"){c??(c=_);for(const p of _.keys)o.has(p)||o.set(p,{}),o.get(p).l=!0}else n.issues.push(_);for(const _ of l.issues)if(_.code==="unrecognized_keys")for(const p of _.keys)o.has(p)||o.set(p,{}),o.get(p).r=!0;else n.issues.push(_);const f=[...o].filter(([,_])=>_.l&&_.r).map(([_])=>_);if(f.length&&c&&n.issues.push({...c,keys:f}),wr(n))return n;const m=rc(r.value,l.value);if(!m.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(m.mergeErrorPath)}`);return n.value=m.data,n}const Jv=F("$ZodEnum",(n,r)=>{lt.init(n,r);const l=xh(r.entries),o=new Set(l);n._zod.values=o,n._zod.pattern=new RegExp(`^(${l.filter(c=>fg.has(typeof c)).map(c=>typeof c=="string"?Br(c):c.toString()).join("|")})$`),n._zod.parse=(c,f)=>{const m=c.value;return o.has(m)||c.issues.push({code:"invalid_value",values:l,input:m,inst:n}),c}}),eb=F("$ZodLiteral",(n,r)=>{if(lt.init(n,r),r.values.length===0)throw new Error("Cannot create literal schema with no valid values");const l=new Set(r.values);n._zod.values=l,n._zod.pattern=new RegExp(`^(${r.values.map(o=>typeof o=="string"?Br(o):o?Br(o.toString()):String(o)).join("|")})$`),n._zod.parse=(o,c)=>{const f=o.value;return l.has(f)||o.issues.push({code:"invalid_value",values:r.values,input:f,inst:n}),o}}),tb=F("$ZodTransform",(n,r)=>{lt.init(n,r),n._zod.parse=(l,o)=>{if(o.direction==="backward")throw new Nh(n.constructor.name);const c=r.transform(l.value,l);if(o.async)return(c instanceof Promise?c:Promise.resolve(c)).then(m=>(l.value=m,l));if(c instanceof Promise)throw new Lr;return l.value=c,l}});function w_(n,r){return n.issues.length&&r===void 0?{issues:[],value:void 0}:n}const Vh=F("$ZodOptional",(n,r)=>{lt.init(n,r),n._zod.optin="optional",n._zod.optout="optional",Fe(n._zod,"values",()=>r.innerType._zod.values?new Set([...r.innerType._zod.values,void 0]):void 0),Fe(n._zod,"pattern",()=>{const l=r.innerType._zod.pattern;return l?new RegExp(`^(${bc(l.source)})?$`):void 0}),n._zod.parse=(l,o)=>{if(r.innerType._zod.optin==="optional"){const c=r.innerType._zod.run(l,o);return c instanceof Promise?c.then(f=>w_(f,l.value)):w_(c,l.value)}return l.value===void 0?l:r.innerType._zod.run(l,o)}}),nb=F("$ZodExactOptional",(n,r)=>{Vh.init(n,r),Fe(n._zod,"values",()=>r.innerType._zod.values),Fe(n._zod,"pattern",()=>r.innerType._zod.pattern),n._zod.parse=(l,o)=>r.innerType._zod.run(l,o)}),ab=F("$ZodNullable",(n,r)=>{lt.init(n,r),Fe(n._zod,"optin",()=>r.innerType._zod.optin),Fe(n._zod,"optout",()=>r.innerType._zod.optout),Fe(n._zod,"pattern",()=>{const l=r.innerType._zod.pattern;return l?new RegExp(`^(${bc(l.source)}|null)$`):void 0}),Fe(n._zod,"values",()=>r.innerType._zod.values?new Set([...r.innerType._zod.values,null]):void 0),n._zod.parse=(l,o)=>l.value===null?l:r.innerType._zod.run(l,o)}),rb=F("$ZodDefault",(n,r)=>{lt.init(n,r),n._zod.optin="optional",Fe(n._zod,"values",()=>r.innerType._zod.values),n._zod.parse=(l,o)=>{if(o.direction==="backward")return r.innerType._zod.run(l,o);if(l.value===void 0)return l.value=r.defaultValue,l;const c=r.innerType._zod.run(l,o);return c instanceof Promise?c.then(f=>L_(f,r)):L_(c,r)}});function L_(n,r){return n.value===void 0&&(n.value=r.defaultValue),n}const ib=F("$ZodPrefault",(n,r)=>{lt.init(n,r),n._zod.optin="optional",Fe(n._zod,"values",()=>r.innerType._zod.values),n._zod.parse=(l,o)=>(o.direction==="backward"||l.value===void 0&&(l.value=r.defaultValue),r.innerType._zod.run(l,o))}),lb=F("$ZodNonOptional",(n,r)=>{lt.init(n,r),Fe(n._zod,"values",()=>{const l=r.innerType._zod.values;return l?new Set([...l].filter(o=>o!==void 0)):void 0}),n._zod.parse=(l,o)=>{const c=r.innerType._zod.run(l,o);return c instanceof Promise?c.then(f=>z_(f,n)):z_(c,n)}});function z_(n,r){return!n.issues.length&&n.value===void 0&&n.issues.push({code:"invalid_type",expected:"nonoptional",input:n.value,inst:r}),n}const ob=F("$ZodCatch",(n,r)=>{lt.init(n,r),Fe(n._zod,"optin",()=>r.innerType._zod.optin),Fe(n._zod,"optout",()=>r.innerType._zod.optout),Fe(n._zod,"values",()=>r.innerType._zod.values),n._zod.parse=(l,o)=>{if(o.direction==="backward")return r.innerType._zod.run(l,o);const c=r.innerType._zod.run(l,o);return c instanceof Promise?c.then(f=>(l.value=f.value,f.issues.length&&(l.value=r.catchValue({...l,error:{issues:f.issues.map(m=>Ia(m,o,Ha()))},input:l.value}),l.issues=[]),l)):(l.value=c.value,c.issues.length&&(l.value=r.catchValue({...l,error:{issues:c.issues.map(f=>Ia(f,o,Ha()))},input:l.value}),l.issues=[]),l)}}),ub=F("$ZodPipe",(n,r)=>{lt.init(n,r),Fe(n._zod,"values",()=>r.in._zod.values),Fe(n._zod,"optin",()=>r.in._zod.optin),Fe(n._zod,"optout",()=>r.out._zod.optout),Fe(n._zod,"propValues",()=>r.in._zod.propValues),n._zod.parse=(l,o)=>{if(o.direction==="backward"){const f=r.out._zod.run(l,o);return f instanceof Promise?f.then(m=>oo(m,r.in,o)):oo(f,r.in,o)}const c=r.in._zod.run(l,o);return c instanceof Promise?c.then(f=>oo(f,r.out,o)):oo(c,r.out,o)}});function oo(n,r,l){return n.issues.length?(n.aborted=!0,n):r._zod.run({value:n.value,issues:n.issues},l)}const sb=F("$ZodReadonly",(n,r)=>{lt.init(n,r),Fe(n._zod,"propValues",()=>r.innerType._zod.propValues),Fe(n._zod,"values",()=>r.innerType._zod.values),Fe(n._zod,"optin",()=>r.innerType?._zod?.optin),Fe(n._zod,"optout",()=>r.innerType?._zod?.optout),n._zod.parse=(l,o)=>{if(o.direction==="backward")return r.innerType._zod.run(l,o);const c=r.innerType._zod.run(l,o);return c instanceof Promise?c.then(B_):B_(c)}});function B_(n){return n.value=Object.freeze(n.value),n}const cb=F("$ZodCustom",(n,r)=>{Zt.init(n,r),lt.init(n,r),n._zod.parse=(l,o)=>l,n._zod.check=l=>{const o=l.value,c=r.fn(o);if(c instanceof Promise)return c.then(f=>k_(f,l,o,n));k_(c,l,o,n)}});function k_(n,r,l,o){if(!n){const c={code:"custom",input:l,inst:o,path:[...o._zod.def.path??[]],continue:!o._zod.def.abort};o._zod.def.params&&(c.params=o._zod.def.params),r.issues.push(Fi(c))}}var U_;class fb{constructor(){this._map=new WeakMap,this._idmap=new Map}add(r,...l){const o=l[0];return this._map.set(r,o),o&&typeof o=="object"&&"id"in o&&this._idmap.set(o.id,r),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(r){const l=this._map.get(r);return l&&typeof l=="object"&&"id"in l&&this._idmap.delete(l.id),this._map.delete(r),this}get(r){const l=r._zod.parent;if(l){const o={...this.get(l)??{}};delete o.id;const c={...o,...this._map.get(r)};return Object.keys(c).length?c:void 0}return this._map.get(r)}has(r){return this._map.has(r)}}function db(){return new fb}(U_=globalThis).__zod_globalRegistry??(U_.__zod_globalRegistry=db());const Ii=globalThis.__zod_globalRegistry;function mb(n,r){return new n({type:"string",...me(r)})}function _b(n,r){return new n({type:"string",format:"email",check:"string_format",abort:!1,...me(r)})}function j_(n,r){return new n({type:"string",format:"guid",check:"string_format",abort:!1,...me(r)})}function hb(n,r){return new n({type:"string",format:"uuid",check:"string_format",abort:!1,...me(r)})}function pb(n,r){return new n({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...me(r)})}function yb(n,r){return new n({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...me(r)})}function gb(n,r){return new n({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...me(r)})}function vb(n,r){return new n({type:"string",format:"url",check:"string_format",abort:!1,...me(r)})}function bb(n,r){return new n({type:"string",format:"emoji",check:"string_format",abort:!1,...me(r)})}function Sb(n,r){return new n({type:"string",format:"nanoid",check:"string_format",abort:!1,...me(r)})}function Ab(n,r){return new n({type:"string",format:"cuid",check:"string_format",abort:!1,...me(r)})}function Eb(n,r){return new n({type:"string",format:"cuid2",check:"string_format",abort:!1,...me(r)})}function Tb(n,r){return new n({type:"string",format:"ulid",check:"string_format",abort:!1,...me(r)})}function Cb(n,r){return new n({type:"string",format:"xid",check:"string_format",abort:!1,...me(r)})}function Ob(n,r){return new n({type:"string",format:"ksuid",check:"string_format",abort:!1,...me(r)})}function Mb(n,r){return new n({type:"string",format:"ipv4",check:"string_format",abort:!1,...me(r)})}function Nb(n,r){return new n({type:"string",format:"ipv6",check:"string_format",abort:!1,...me(r)})}function Db(n,r){return new n({type:"string",format:"cidrv4",check:"string_format",abort:!1,...me(r)})}function xb(n,r){return new n({type:"string",format:"cidrv6",check:"string_format",abort:!1,...me(r)})}function Rb(n,r){return new n({type:"string",format:"base64",check:"string_format",abort:!1,...me(r)})}function wb(n,r){return new n({type:"string",format:"base64url",check:"string_format",abort:!1,...me(r)})}function Lb(n,r){return new n({type:"string",format:"e164",check:"string_format",abort:!1,...me(r)})}function zb(n,r){return new n({type:"string",format:"jwt",check:"string_format",abort:!1,...me(r)})}function Bb(n,r){return new n({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...me(r)})}function kb(n,r){return new n({type:"string",format:"date",check:"string_format",...me(r)})}function Ub(n,r){return new n({type:"string",format:"time",check:"string_format",precision:null,...me(r)})}function jb(n,r){return new n({type:"string",format:"duration",check:"string_format",...me(r)})}function Hb(n,r){return new n({type:"number",coerce:!0,checks:[],...me(r)})}function Ib(n,r){return new n({type:"number",check:"number_format",abort:!1,format:"safeint",...me(r)})}function $b(n,r){return new n({type:"boolean",...me(r)})}function Gb(n){return new n({type:"unknown"})}function Zb(n,r){return new n({type:"never",...me(r)})}function H_(n,r){return new $h({check:"less_than",...me(r),value:n,inclusive:!1})}function Ks(n,r){return new $h({check:"less_than",...me(r),value:n,inclusive:!0})}function I_(n,r){return new Gh({check:"greater_than",...me(r),value:n,inclusive:!1})}function Qs(n,r){return new Gh({check:"greater_than",...me(r),value:n,inclusive:!0})}function $_(n,r){return new iv({check:"multiple_of",...me(r),value:n})}function Ph(n,r){return new ov({check:"max_length",...me(r),maximum:n})}function Ao(n,r){return new uv({check:"min_length",...me(r),minimum:n})}function Kh(n,r){return new sv({check:"length_equals",...me(r),length:n})}function Fb(n,r){return new cv({check:"string_format",format:"regex",...me(r),pattern:n})}function Yb(n){return new fv({check:"string_format",format:"lowercase",...me(n)})}function qb(n){return new dv({check:"string_format",format:"uppercase",...me(n)})}function Vb(n,r){return new mv({check:"string_format",format:"includes",...me(r),includes:n})}function Pb(n,r){return new _v({check:"string_format",format:"starts_with",...me(r),prefix:n})}function Kb(n,r){return new hv({check:"string_format",format:"ends_with",...me(r),suffix:n})}function Ur(n){return new pv({check:"overwrite",tx:n})}function Qb(n){return Ur(r=>r.normalize(n))}function Xb(){return Ur(n=>n.trim())}function Wb(){return Ur(n=>n.toLowerCase())}function Jb(){return Ur(n=>n.toUpperCase())}function eS(){return Ur(n=>sg(n))}function tS(n,r,l){return new n({type:"array",element:r,...me(l)})}function nS(n,r,l){return new n({type:"custom",check:"custom",fn:r,...me(l)})}function aS(n){const r=rS(l=>(l.addIssue=o=>{if(typeof o=="string")l.issues.push(Fi(o,l.value,r._zod.def));else{const c=o;c.fatal&&(c.continue=!1),c.code??(c.code="custom"),c.input??(c.input=l.value),c.inst??(c.inst=r),c.continue??(c.continue=!r._zod.def.abort),l.issues.push(Fi(c))}},n(l.value,l)));return r}function rS(n,r){const l=new Zt({check:"custom",...me(r)});return l._zod.check=n,l}function Qh(n){let r=n?.target??"draft-2020-12";return r==="draft-4"&&(r="draft-04"),r==="draft-7"&&(r="draft-07"),{processors:n.processors??{},metadataRegistry:n?.metadata??Ii,target:r,unrepresentable:n?.unrepresentable??"throw",override:n?.override??(()=>{}),io:n?.io??"output",counter:0,seen:new Map,cycles:n?.cycles??"ref",reused:n?.reused??"inline",external:n?.external??void 0}}function Mt(n,r,l={path:[],schemaPath:[]}){var o;const c=n._zod.def,f=r.seen.get(n);if(f)return f.count++,l.schemaPath.includes(n)&&(f.cycle=l.path),f.schema;const m={schema:{},count:1,cycle:void 0,path:l.path};r.seen.set(n,m);const _=n._zod.toJSONSchema?.();if(_)m.schema=_;else{const A={...l,schemaPath:[...l.schemaPath,n],path:l.path};if(n._zod.processJSONSchema)n._zod.processJSONSchema(r,m.schema,A);else{const k=m.schema,j=r.processors[c.type];if(!j)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${c.type}`);j(n,r,k,A)}const D=n._zod.parent;D&&(m.ref||(m.ref=D),Mt(D,r,A),r.seen.get(D).isParent=!0)}const p=r.metadataRegistry.get(n);return p&&Object.assign(m.schema,p),r.io==="input"&&Bt(n)&&(delete m.schema.examples,delete m.schema.default),r.io==="input"&&m.schema._prefault&&((o=m.schema).default??(o.default=m.schema._prefault)),delete m.schema._prefault,r.seen.get(n).schema}function Xh(n,r){const l=n.seen.get(r);if(!l)throw new Error("Unprocessed schema. This is a bug in Zod.");const o=new Map;for(const m of n.seen.entries()){const _=n.metadataRegistry.get(m[0])?.id;if(_){const p=o.get(_);if(p&&p!==m[0])throw new Error(`Duplicate schema id "${_}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);o.set(_,m[0])}}const c=m=>{const _=n.target==="draft-2020-12"?"$defs":"definitions";if(n.external){const D=n.external.registry.get(m[0])?.id,k=n.external.uri??(G=>G);if(D)return{ref:k(D)};const j=m[1].defId??m[1].schema.id??`schema${n.counter++}`;return m[1].defId=j,{defId:j,ref:`${k("__shared")}#/${_}/${j}`}}if(m[1]===l)return{ref:"#"};const y=`#/${_}/`,A=m[1].schema.id??`__schema${n.counter++}`;return{defId:A,ref:y+A}},f=m=>{if(m[1].schema.$ref)return;const _=m[1],{ref:p,defId:y}=c(m);_.def={..._.schema},y&&(_.defId=y);const A=_.schema;for(const D in A)delete A[D];A.$ref=p};if(n.cycles==="throw")for(const m of n.seen.entries()){const _=m[1];if(_.cycle)throw new Error(`Cycle detected: #/${_.cycle?.join("/")}/<root>
|
|
86
|
+
|
|
87
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const m of n.seen.entries()){const _=m[1];if(r===m[0]){f(m);continue}if(n.external){const y=n.external.registry.get(m[0])?.id;if(r!==m[0]&&y){f(m);continue}}if(n.metadataRegistry.get(m[0])?.id){f(m);continue}if(_.cycle){f(m);continue}if(_.count>1&&n.reused==="ref"){f(m);continue}}}function Wh(n,r){const l=n.seen.get(r);if(!l)throw new Error("Unprocessed schema. This is a bug in Zod.");const o=m=>{const _=n.seen.get(m);if(_.ref===null)return;const p=_.def??_.schema,y={...p},A=_.ref;if(_.ref=null,A){o(A);const k=n.seen.get(A),j=k.schema;if(j.$ref&&(n.target==="draft-07"||n.target==="draft-04"||n.target==="openapi-3.0")?(p.allOf=p.allOf??[],p.allOf.push(j)):Object.assign(p,j),Object.assign(p,y),m._zod.parent===A)for(const U in p)U==="$ref"||U==="allOf"||U in y||delete p[U];if(j.$ref&&k.def)for(const U in p)U==="$ref"||U==="allOf"||U in k.def&&JSON.stringify(p[U])===JSON.stringify(k.def[U])&&delete p[U]}const D=m._zod.parent;if(D&&D!==A){o(D);const k=n.seen.get(D);if(k?.schema.$ref&&(p.$ref=k.schema.$ref,k.def))for(const j in p)j==="$ref"||j==="allOf"||j in k.def&&JSON.stringify(p[j])===JSON.stringify(k.def[j])&&delete p[j]}n.override({zodSchema:m,jsonSchema:p,path:_.path??[]})};for(const m of[...n.seen.entries()].reverse())o(m[0]);const c={};if(n.target==="draft-2020-12"?c.$schema="https://json-schema.org/draft/2020-12/schema":n.target==="draft-07"?c.$schema="http://json-schema.org/draft-07/schema#":n.target==="draft-04"?c.$schema="http://json-schema.org/draft-04/schema#":n.target,n.external?.uri){const m=n.external.registry.get(r)?.id;if(!m)throw new Error("Schema is missing an `id` property");c.$id=n.external.uri(m)}Object.assign(c,l.def??l.schema);const f=n.external?.defs??{};for(const m of n.seen.entries()){const _=m[1];_.def&&_.defId&&(f[_.defId]=_.def)}n.external||Object.keys(f).length>0&&(n.target==="draft-2020-12"?c.$defs=f:c.definitions=f);try{const m=JSON.parse(JSON.stringify(c));return Object.defineProperty(m,"~standard",{value:{...r["~standard"],jsonSchema:{input:Eo(r,"input",n.processors),output:Eo(r,"output",n.processors)}},enumerable:!1,writable:!1}),m}catch{throw new Error("Error converting schema to JSON.")}}function Bt(n,r){const l=r??{seen:new Set};if(l.seen.has(n))return!1;l.seen.add(n);const o=n._zod.def;if(o.type==="transform")return!0;if(o.type==="array")return Bt(o.element,l);if(o.type==="set")return Bt(o.valueType,l);if(o.type==="lazy")return Bt(o.getter(),l);if(o.type==="promise"||o.type==="optional"||o.type==="nonoptional"||o.type==="nullable"||o.type==="readonly"||o.type==="default"||o.type==="prefault")return Bt(o.innerType,l);if(o.type==="intersection")return Bt(o.left,l)||Bt(o.right,l);if(o.type==="record"||o.type==="map")return Bt(o.keyType,l)||Bt(o.valueType,l);if(o.type==="pipe")return Bt(o.in,l)||Bt(o.out,l);if(o.type==="object"){for(const c in o.shape)if(Bt(o.shape[c],l))return!0;return!1}if(o.type==="union"){for(const c of o.options)if(Bt(c,l))return!0;return!1}if(o.type==="tuple"){for(const c of o.items)if(Bt(c,l))return!0;return!!(o.rest&&Bt(o.rest,l))}return!1}const iS=(n,r={})=>l=>{const o=Qh({...l,processors:r});return Mt(n,o),Xh(o,n),Wh(o,n)},Eo=(n,r,l={})=>o=>{const{libraryOptions:c,target:f}=o??{},m=Qh({...c??{},target:f,io:r,processors:l});return Mt(n,m),Xh(m,n),Wh(m,n)},lS={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},oS=(n,r,l,o)=>{const c=l;c.type="string";const{minimum:f,maximum:m,format:_,patterns:p,contentEncoding:y}=n._zod.bag;if(typeof f=="number"&&(c.minLength=f),typeof m=="number"&&(c.maxLength=m),_&&(c.format=lS[_]??_,c.format===""&&delete c.format,_==="time"&&delete c.format),y&&(c.contentEncoding=y),p&&p.size>0){const A=[...p];A.length===1?c.pattern=A[0].source:A.length>1&&(c.allOf=[...A.map(D=>({...r.target==="draft-07"||r.target==="draft-04"||r.target==="openapi-3.0"?{type:"string"}:{},pattern:D.source}))])}},uS=(n,r,l,o)=>{const c=l,{minimum:f,maximum:m,format:_,multipleOf:p,exclusiveMaximum:y,exclusiveMinimum:A}=n._zod.bag;typeof _=="string"&&_.includes("int")?c.type="integer":c.type="number",typeof A=="number"&&(r.target==="draft-04"||r.target==="openapi-3.0"?(c.minimum=A,c.exclusiveMinimum=!0):c.exclusiveMinimum=A),typeof f=="number"&&(c.minimum=f,typeof A=="number"&&r.target!=="draft-04"&&(A>=f?delete c.minimum:delete c.exclusiveMinimum)),typeof y=="number"&&(r.target==="draft-04"||r.target==="openapi-3.0"?(c.maximum=y,c.exclusiveMaximum=!0):c.exclusiveMaximum=y),typeof m=="number"&&(c.maximum=m,typeof y=="number"&&r.target!=="draft-04"&&(y<=m?delete c.maximum:delete c.exclusiveMaximum)),typeof p=="number"&&(c.multipleOf=p)},sS=(n,r,l,o)=>{l.type="boolean"},cS=(n,r,l,o)=>{l.not={}},fS=(n,r,l,o)=>{},dS=(n,r,l,o)=>{const c=n._zod.def,f=xh(c.entries);f.every(m=>typeof m=="number")&&(l.type="number"),f.every(m=>typeof m=="string")&&(l.type="string"),l.enum=f},mS=(n,r,l,o)=>{const c=n._zod.def,f=[];for(const m of c.values)if(m===void 0){if(r.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof m=="bigint"){if(r.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");f.push(Number(m))}else f.push(m);if(f.length!==0)if(f.length===1){const m=f[0];l.type=m===null?"null":typeof m,r.target==="draft-04"||r.target==="openapi-3.0"?l.enum=[m]:l.const=m}else f.every(m=>typeof m=="number")&&(l.type="number"),f.every(m=>typeof m=="string")&&(l.type="string"),f.every(m=>typeof m=="boolean")&&(l.type="boolean"),f.every(m=>m===null)&&(l.type="null"),l.enum=f},_S=(n,r,l,o)=>{if(r.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},hS=(n,r,l,o)=>{if(r.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},pS=(n,r,l,o)=>{const c=l,f=n._zod.def,{minimum:m,maximum:_}=n._zod.bag;typeof m=="number"&&(c.minItems=m),typeof _=="number"&&(c.maxItems=_),c.type="array",c.items=Mt(f.element,r,{...o,path:[...o.path,"items"]})},yS=(n,r,l,o)=>{const c=l,f=n._zod.def;c.type="object",c.properties={};const m=f.shape;for(const y in m)c.properties[y]=Mt(m[y],r,{...o,path:[...o.path,"properties",y]});const _=new Set(Object.keys(m)),p=new Set([..._].filter(y=>{const A=f.shape[y]._zod;return r.io==="input"?A.optin===void 0:A.optout===void 0}));p.size>0&&(c.required=Array.from(p)),f.catchall?._zod.def.type==="never"?c.additionalProperties=!1:f.catchall?f.catchall&&(c.additionalProperties=Mt(f.catchall,r,{...o,path:[...o.path,"additionalProperties"]})):r.io==="output"&&(c.additionalProperties=!1)},gS=(n,r,l,o)=>{const c=n._zod.def,f=c.inclusive===!1,m=c.options.map((_,p)=>Mt(_,r,{...o,path:[...o.path,f?"oneOf":"anyOf",p]}));f?l.oneOf=m:l.anyOf=m},vS=(n,r,l,o)=>{const c=n._zod.def,f=Mt(c.left,r,{...o,path:[...o.path,"allOf",0]}),m=Mt(c.right,r,{...o,path:[...o.path,"allOf",1]}),_=y=>"allOf"in y&&Object.keys(y).length===1,p=[..._(f)?f.allOf:[f],..._(m)?m.allOf:[m]];l.allOf=p},bS=(n,r,l,o)=>{const c=n._zod.def,f=Mt(c.innerType,r,o),m=r.seen.get(n);r.target==="openapi-3.0"?(m.ref=c.innerType,l.nullable=!0):l.anyOf=[f,{type:"null"}]},SS=(n,r,l,o)=>{const c=n._zod.def;Mt(c.innerType,r,o);const f=r.seen.get(n);f.ref=c.innerType},AS=(n,r,l,o)=>{const c=n._zod.def;Mt(c.innerType,r,o);const f=r.seen.get(n);f.ref=c.innerType,l.default=JSON.parse(JSON.stringify(c.defaultValue))},ES=(n,r,l,o)=>{const c=n._zod.def;Mt(c.innerType,r,o);const f=r.seen.get(n);f.ref=c.innerType,r.io==="input"&&(l._prefault=JSON.parse(JSON.stringify(c.defaultValue)))},TS=(n,r,l,o)=>{const c=n._zod.def;Mt(c.innerType,r,o);const f=r.seen.get(n);f.ref=c.innerType;let m;try{m=c.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}l.default=m},CS=(n,r,l,o)=>{const c=n._zod.def,f=r.io==="input"?c.in._zod.def.type==="transform"?c.out:c.in:c.out;Mt(f,r,o);const m=r.seen.get(n);m.ref=f},OS=(n,r,l,o)=>{const c=n._zod.def;Mt(c.innerType,r,o);const f=r.seen.get(n);f.ref=c.innerType,l.readOnly=!0},Jh=(n,r,l,o)=>{const c=n._zod.def;Mt(c.innerType,r,o);const f=r.seen.get(n);f.ref=c.innerType},MS=F("ZodISODateTime",(n,r)=>{xv.init(n,r),at.init(n,r)});function NS(n){return Bb(MS,n)}const DS=F("ZodISODate",(n,r)=>{Rv.init(n,r),at.init(n,r)});function xS(n){return kb(DS,n)}const RS=F("ZodISOTime",(n,r)=>{wv.init(n,r),at.init(n,r)});function wS(n){return Ub(RS,n)}const LS=F("ZodISODuration",(n,r)=>{Lv.init(n,r),at.init(n,r)});function zS(n){return jb(LS,n)}const BS=(n,r)=>{Bh.init(n,r),n.name="ZodError",Object.defineProperties(n,{format:{value:l=>Ag(n,l)},flatten:{value:l=>Sg(n,l)},addIssue:{value:l=>{n.issues.push(l),n.message=JSON.stringify(n.issues,ac,2)}},addIssues:{value:l=>{n.issues.push(...l),n.message=JSON.stringify(n.issues,ac,2)}},isEmpty:{get(){return n.issues.length===0}}})},mn=F("ZodError",BS,{Parent:Error}),kS=Ac(mn),US=Ec(mn),jS=No(mn),HS=Do(mn),IS=Cg(mn),$S=Og(mn),GS=Mg(mn),ZS=Ng(mn),FS=Dg(mn),YS=xg(mn),qS=Rg(mn),VS=wg(mn),ot=F("ZodType",(n,r)=>(lt.init(n,r),Object.assign(n["~standard"],{jsonSchema:{input:Eo(n,"input"),output:Eo(n,"output")}}),n.toJSONSchema=iS(n,{}),n.def=r,n.type=r.type,Object.defineProperty(n,"_def",{value:r}),n.check=(...l)=>n.clone(ba(r,{checks:[...r.checks??[],...l.map(o=>typeof o=="function"?{_zod:{check:o,def:{check:"custom"},onattach:[]}}:o)]}),{parent:!0}),n.with=n.check,n.clone=(l,o)=>Sa(n,l,o),n.brand=()=>n,n.register=((l,o)=>(l.add(n,o),n)),n.parse=(l,o)=>kS(n,l,o,{callee:n.parse}),n.safeParse=(l,o)=>jS(n,l,o),n.parseAsync=async(l,o)=>US(n,l,o,{callee:n.parseAsync}),n.safeParseAsync=async(l,o)=>HS(n,l,o),n.spa=n.safeParseAsync,n.encode=(l,o)=>IS(n,l,o),n.decode=(l,o)=>$S(n,l,o),n.encodeAsync=async(l,o)=>GS(n,l,o),n.decodeAsync=async(l,o)=>ZS(n,l,o),n.safeEncode=(l,o)=>FS(n,l,o),n.safeDecode=(l,o)=>YS(n,l,o),n.safeEncodeAsync=async(l,o)=>qS(n,l,o),n.safeDecodeAsync=async(l,o)=>VS(n,l,o),n.refine=(l,o)=>n.check(ZA(l,o)),n.superRefine=l=>n.check(FA(l)),n.overwrite=l=>n.check(Ur(l)),n.optional=()=>Y_(n),n.exactOptional=()=>xA(n),n.nullable=()=>q_(n),n.nullish=()=>Y_(q_(n)),n.nonoptional=l=>kA(n,l),n.array=()=>vA(n),n.or=l=>n0([n,l]),n.and=l=>TA(n,l),n.transform=l=>V_(n,NA(l)),n.default=l=>LA(n,l),n.prefault=l=>BA(n,l),n.catch=l=>jA(n,l),n.pipe=l=>V_(n,l),n.readonly=()=>$A(n),n.describe=l=>{const o=n.clone();return Ii.add(o,{description:l}),o},Object.defineProperty(n,"description",{get(){return Ii.get(n)?.description},configurable:!0}),n.meta=(...l)=>{if(l.length===0)return Ii.get(n);const o=n.clone();return Ii.add(o,l[0]),o},n.isOptional=()=>n.safeParse(void 0).success,n.isNullable=()=>n.safeParse(null).success,n.apply=l=>l(n),n)),e0=F("_ZodString",(n,r)=>{Tc.init(n,r),ot.init(n,r),n._zod.processJSONSchema=(o,c,f)=>oS(n,o,c);const l=n._zod.bag;n.format=l.format??null,n.minLength=l.minimum??null,n.maxLength=l.maximum??null,n.regex=(...o)=>n.check(Fb(...o)),n.includes=(...o)=>n.check(Vb(...o)),n.startsWith=(...o)=>n.check(Pb(...o)),n.endsWith=(...o)=>n.check(Kb(...o)),n.min=(...o)=>n.check(Ao(...o)),n.max=(...o)=>n.check(Ph(...o)),n.length=(...o)=>n.check(Kh(...o)),n.nonempty=(...o)=>n.check(Ao(1,...o)),n.lowercase=o=>n.check(Yb(o)),n.uppercase=o=>n.check(qb(o)),n.trim=()=>n.check(Xb()),n.normalize=(...o)=>n.check(Qb(...o)),n.toLowerCase=()=>n.check(Wb()),n.toUpperCase=()=>n.check(Jb()),n.slugify=()=>n.check(eS())}),PS=F("ZodString",(n,r)=>{Tc.init(n,r),e0.init(n,r),n.email=l=>n.check(_b(KS,l)),n.url=l=>n.check(vb(QS,l)),n.jwt=l=>n.check(zb(fA,l)),n.emoji=l=>n.check(bb(XS,l)),n.guid=l=>n.check(j_(G_,l)),n.uuid=l=>n.check(hb(uo,l)),n.uuidv4=l=>n.check(pb(uo,l)),n.uuidv6=l=>n.check(yb(uo,l)),n.uuidv7=l=>n.check(gb(uo,l)),n.nanoid=l=>n.check(Sb(WS,l)),n.guid=l=>n.check(j_(G_,l)),n.cuid=l=>n.check(Ab(JS,l)),n.cuid2=l=>n.check(Eb(eA,l)),n.ulid=l=>n.check(Tb(tA,l)),n.base64=l=>n.check(Rb(uA,l)),n.base64url=l=>n.check(wb(sA,l)),n.xid=l=>n.check(Cb(nA,l)),n.ksuid=l=>n.check(Ob(aA,l)),n.ipv4=l=>n.check(Mb(rA,l)),n.ipv6=l=>n.check(Nb(iA,l)),n.cidrv4=l=>n.check(Db(lA,l)),n.cidrv6=l=>n.check(xb(oA,l)),n.e164=l=>n.check(Lb(cA,l)),n.datetime=l=>n.check(NS(l)),n.date=l=>n.check(xS(l)),n.time=l=>n.check(wS(l)),n.duration=l=>n.check(zS(l))});function ga(n){return mb(PS,n)}const at=F("ZodStringFormat",(n,r)=>{tt.init(n,r),e0.init(n,r)}),KS=F("ZodEmail",(n,r)=>{Sv.init(n,r),at.init(n,r)}),G_=F("ZodGUID",(n,r)=>{vv.init(n,r),at.init(n,r)}),uo=F("ZodUUID",(n,r)=>{bv.init(n,r),at.init(n,r)}),QS=F("ZodURL",(n,r)=>{Av.init(n,r),at.init(n,r)}),XS=F("ZodEmoji",(n,r)=>{Ev.init(n,r),at.init(n,r)}),WS=F("ZodNanoID",(n,r)=>{Tv.init(n,r),at.init(n,r)}),JS=F("ZodCUID",(n,r)=>{Cv.init(n,r),at.init(n,r)}),eA=F("ZodCUID2",(n,r)=>{Ov.init(n,r),at.init(n,r)}),tA=F("ZodULID",(n,r)=>{Mv.init(n,r),at.init(n,r)}),nA=F("ZodXID",(n,r)=>{Nv.init(n,r),at.init(n,r)}),aA=F("ZodKSUID",(n,r)=>{Dv.init(n,r),at.init(n,r)}),rA=F("ZodIPv4",(n,r)=>{zv.init(n,r),at.init(n,r)}),iA=F("ZodIPv6",(n,r)=>{Bv.init(n,r),at.init(n,r)}),lA=F("ZodCIDRv4",(n,r)=>{kv.init(n,r),at.init(n,r)}),oA=F("ZodCIDRv6",(n,r)=>{Uv.init(n,r),at.init(n,r)}),uA=F("ZodBase64",(n,r)=>{jv.init(n,r),at.init(n,r)}),sA=F("ZodBase64URL",(n,r)=>{Iv.init(n,r),at.init(n,r)}),cA=F("ZodE164",(n,r)=>{$v.init(n,r),at.init(n,r)}),fA=F("ZodJWT",(n,r)=>{Zv.init(n,r),at.init(n,r)}),t0=F("ZodNumber",(n,r)=>{Fh.init(n,r),ot.init(n,r),n._zod.processJSONSchema=(o,c,f)=>uS(n,o,c),n.gt=(o,c)=>n.check(I_(o,c)),n.gte=(o,c)=>n.check(Qs(o,c)),n.min=(o,c)=>n.check(Qs(o,c)),n.lt=(o,c)=>n.check(H_(o,c)),n.lte=(o,c)=>n.check(Ks(o,c)),n.max=(o,c)=>n.check(Ks(o,c)),n.int=o=>n.check(Z_(o)),n.safe=o=>n.check(Z_(o)),n.positive=o=>n.check(I_(0,o)),n.nonnegative=o=>n.check(Qs(0,o)),n.negative=o=>n.check(H_(0,o)),n.nonpositive=o=>n.check(Ks(0,o)),n.multipleOf=(o,c)=>n.check($_(o,c)),n.step=(o,c)=>n.check($_(o,c)),n.finite=()=>n;const l=n._zod.bag;n.minValue=Math.max(l.minimum??Number.NEGATIVE_INFINITY,l.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,n.maxValue=Math.min(l.maximum??Number.POSITIVE_INFINITY,l.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,n.isInt=(l.format??"").includes("int")||Number.isSafeInteger(l.multipleOf??.5),n.isFinite=!0,n.format=l.format??null}),dA=F("ZodNumberFormat",(n,r)=>{Fv.init(n,r),t0.init(n,r)});function Z_(n){return Ib(dA,n)}const mA=F("ZodBoolean",(n,r)=>{Yv.init(n,r),ot.init(n,r),n._zod.processJSONSchema=(l,o,c)=>sS(n,l,o)});function _A(n){return $b(mA,n)}const hA=F("ZodUnknown",(n,r)=>{qv.init(n,r),ot.init(n,r),n._zod.processJSONSchema=(l,o,c)=>fS()});function F_(){return Gb(hA)}const pA=F("ZodNever",(n,r)=>{Vv.init(n,r),ot.init(n,r),n._zod.processJSONSchema=(l,o,c)=>cS(n,l,o)});function yA(n){return Zb(pA,n)}const gA=F("ZodArray",(n,r)=>{Pv.init(n,r),ot.init(n,r),n._zod.processJSONSchema=(l,o,c)=>pS(n,l,o,c),n.element=r.element,n.min=(l,o)=>n.check(Ao(l,o)),n.nonempty=l=>n.check(Ao(1,l)),n.max=(l,o)=>n.check(Ph(l,o)),n.length=(l,o)=>n.check(Kh(l,o)),n.unwrap=()=>n.element});function vA(n,r){return tS(gA,n,r)}const bA=F("ZodObject",(n,r)=>{Qv.init(n,r),ot.init(n,r),n._zod.processJSONSchema=(l,o,c)=>yS(n,l,o,c),Fe(n,"shape",()=>r.shape),n.keyof=()=>Rr(Object.keys(n._zod.def.shape)),n.catchall=l=>n.clone({...n._zod.def,catchall:l}),n.passthrough=()=>n.clone({...n._zod.def,catchall:F_()}),n.loose=()=>n.clone({...n._zod.def,catchall:F_()}),n.strict=()=>n.clone({...n._zod.def,catchall:yA()}),n.strip=()=>n.clone({...n._zod.def,catchall:void 0}),n.extend=l=>pg(n,l),n.safeExtend=l=>yg(n,l),n.merge=l=>gg(n,l),n.pick=l=>_g(n,l),n.omit=l=>hg(n,l),n.partial=(...l)=>vg(a0,n,l[0]),n.required=(...l)=>bg(r0,n,l[0])});function SA(n,r){const l={type:"object",shape:n??{},...me(r)};return new bA(l)}const AA=F("ZodUnion",(n,r)=>{Xv.init(n,r),ot.init(n,r),n._zod.processJSONSchema=(l,o,c)=>gS(n,l,o,c),n.options=r.options});function n0(n,r){return new AA({type:"union",options:n,...me(r)})}const EA=F("ZodIntersection",(n,r)=>{Wv.init(n,r),ot.init(n,r),n._zod.processJSONSchema=(l,o,c)=>vS(n,l,o,c)});function TA(n,r){return new EA({type:"intersection",left:n,right:r})}const ic=F("ZodEnum",(n,r)=>{Jv.init(n,r),ot.init(n,r),n._zod.processJSONSchema=(o,c,f)=>dS(n,o,c),n.enum=r.entries,n.options=Object.values(r.entries);const l=new Set(Object.keys(r.entries));n.extract=(o,c)=>{const f={};for(const m of o)if(l.has(m))f[m]=r.entries[m];else throw new Error(`Key ${m} not found in enum`);return new ic({...r,checks:[],...me(c),entries:f})},n.exclude=(o,c)=>{const f={...r.entries};for(const m of o)if(l.has(m))delete f[m];else throw new Error(`Key ${m} not found in enum`);return new ic({...r,checks:[],...me(c),entries:f})}});function Rr(n,r){const l=Array.isArray(n)?Object.fromEntries(n.map(o=>[o,o])):n;return new ic({type:"enum",entries:l,...me(r)})}const CA=F("ZodLiteral",(n,r)=>{eb.init(n,r),ot.init(n,r),n._zod.processJSONSchema=(l,o,c)=>mS(n,l,o),n.values=new Set(r.values),Object.defineProperty(n,"value",{get(){if(r.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return r.values[0]}})});function OA(n,r){return new CA({type:"literal",values:Array.isArray(n)?n:[n],...me(r)})}const MA=F("ZodTransform",(n,r)=>{tb.init(n,r),ot.init(n,r),n._zod.processJSONSchema=(l,o,c)=>hS(n,l),n._zod.parse=(l,o)=>{if(o.direction==="backward")throw new Nh(n.constructor.name);l.addIssue=f=>{if(typeof f=="string")l.issues.push(Fi(f,l.value,r));else{const m=f;m.fatal&&(m.continue=!1),m.code??(m.code="custom"),m.input??(m.input=l.value),m.inst??(m.inst=n),l.issues.push(Fi(m))}};const c=r.transform(l.value,l);return c instanceof Promise?c.then(f=>(l.value=f,l)):(l.value=c,l)}});function NA(n){return new MA({type:"transform",transform:n})}const a0=F("ZodOptional",(n,r)=>{Vh.init(n,r),ot.init(n,r),n._zod.processJSONSchema=(l,o,c)=>Jh(n,l,o,c),n.unwrap=()=>n._zod.def.innerType});function Y_(n){return new a0({type:"optional",innerType:n})}const DA=F("ZodExactOptional",(n,r)=>{nb.init(n,r),ot.init(n,r),n._zod.processJSONSchema=(l,o,c)=>Jh(n,l,o,c),n.unwrap=()=>n._zod.def.innerType});function xA(n){return new DA({type:"optional",innerType:n})}const RA=F("ZodNullable",(n,r)=>{ab.init(n,r),ot.init(n,r),n._zod.processJSONSchema=(l,o,c)=>bS(n,l,o,c),n.unwrap=()=>n._zod.def.innerType});function q_(n){return new RA({type:"nullable",innerType:n})}const wA=F("ZodDefault",(n,r)=>{rb.init(n,r),ot.init(n,r),n._zod.processJSONSchema=(l,o,c)=>AS(n,l,o,c),n.unwrap=()=>n._zod.def.innerType,n.removeDefault=n.unwrap});function LA(n,r){return new wA({type:"default",innerType:n,get defaultValue(){return typeof r=="function"?r():wh(r)}})}const zA=F("ZodPrefault",(n,r)=>{ib.init(n,r),ot.init(n,r),n._zod.processJSONSchema=(l,o,c)=>ES(n,l,o,c),n.unwrap=()=>n._zod.def.innerType});function BA(n,r){return new zA({type:"prefault",innerType:n,get defaultValue(){return typeof r=="function"?r():wh(r)}})}const r0=F("ZodNonOptional",(n,r)=>{lb.init(n,r),ot.init(n,r),n._zod.processJSONSchema=(l,o,c)=>SS(n,l,o,c),n.unwrap=()=>n._zod.def.innerType});function kA(n,r){return new r0({type:"nonoptional",innerType:n,...me(r)})}const UA=F("ZodCatch",(n,r)=>{ob.init(n,r),ot.init(n,r),n._zod.processJSONSchema=(l,o,c)=>TS(n,l,o,c),n.unwrap=()=>n._zod.def.innerType,n.removeCatch=n.unwrap});function jA(n,r){return new UA({type:"catch",innerType:n,catchValue:typeof r=="function"?r:()=>r})}const HA=F("ZodPipe",(n,r)=>{ub.init(n,r),ot.init(n,r),n._zod.processJSONSchema=(l,o,c)=>CS(n,l,o,c),n.in=r.in,n.out=r.out});function V_(n,r){return new HA({type:"pipe",in:n,out:r})}const IA=F("ZodReadonly",(n,r)=>{sb.init(n,r),ot.init(n,r),n._zod.processJSONSchema=(l,o,c)=>OS(n,l,o,c),n.unwrap=()=>n._zod.def.innerType});function $A(n){return new IA({type:"readonly",innerType:n})}const GA=F("ZodCustom",(n,r)=>{cb.init(n,r),ot.init(n,r),n._zod.processJSONSchema=(l,o,c)=>_S(n,l)});function ZA(n,r={}){return nS(GA,n,r)}function FA(n){return aS(n)}const lc={custom:"custom"};function pt(n){return Hb(t0,n)}const YA=["additional_pip","tort_threshold","pip_coverage_type","extended_medical","policy_pip_deductible"],qA=new Set([...YA,"is_corporation"]);SA({additional_pip:Rr(["cov100_10400_LIMITED","cov125_13000_LIMITED","cov175_18200_LIMITED","cov250_26000_LIMITED","cov400_41600_LIMITED","cov500_52000_LIMITED","cov600_62400_LIMITED","cov700_72800_LIMITED","cov100_UNLIMITED","cov125_UNLIMITED","cov175_UNLIMITED","cov250_UNLIMITED","cov400_UNLIMITED","cov500_UNLIMITED","cov600_UNLIMITED","cov700_UNLIMITED"]),tort_threshold:Rr(["Verbal_Threshold","Zero_Threshold"]),pip_coverage_type:Rr(["Primary","Secondary"]),extended_medical:Rr(["cov1000","cov10000"]),policy_pip_deductible:Rr(["cov250","cov500","cov1000","cov2000","cov2500"]),has_health_insurance_auto_accident:_A().nullable().optional()}).superRefine((n,r)=>{n.pip_coverage_type==="Secondary"&&n.has_health_insurance_auto_accident!==!0&&r.addIssue({code:lc.custom,path:["pip_coverage_type"],message:"Secondary PIP coverage requires health insurance that covers auto accidents."})});const VA=new Set(["Home","HomeConstruction","HomeFeatures"]),PA=new Set(["HomePolicy","BundlePolicy"]),KA=new Set(["HomeCustomer","BundleCustomer"]);function To(n){if(typeof n!="string"||!n.trim())return!1;const r=n.trim().toLowerCase();return r==="nj"||r==="n.j."||r==="n.j"||r==="new jersey"}function P_(n){return n?To(n.state??n.State):!1}function i0(n,r,l){return n==="has_health_insurance_auto_accident"?r==="BundleCustomer"?!1:!P_(l):qA.has(n)?!P_(l):n==="household_size"?!(r&&VA.has(r)):n==="number_of_mortgagees"?!(r&&PA.has(r)):(n==="has_co_applicant"||n==="co_applicant_middle_name"||n==="co_applicant_relationship")&&r&&KA.has(r)?!1:n==="multi_policy_discount"&&r==="HomePolicy"?!0:QA.has(n)}const QA=new Set(["anti_theft_type","passive_restraint_type","anti_lock_brakes","daytime_running_lights","vehicle_full_glass","vehicle_loan_lease","percent_to_work","stated_value_amount_cents","vehicle_comp_deductible","vehicle_coll_deductible","vehicle_towing_and_labor","vehicle_transportation_expense","accident_prevention_course","driver_accidents","driver_violations","losses","middle_name","ssn_display","auto_current_annual_premium_cents","has_co_applicant","co_applicant_middle_name","co_applicant_relationship"]),l0=new Date().getUTCFullYear(),so=ga().trim().min(1,"Required").regex(/^[A-Za-z\s]+$/,"Only alphabetic characters are allowed."),K_=n0([OA(""),ga().trim().regex(/^[A-Za-z\s]*$/,"Only alphabetic characters are allowed.")]).optional(),XA=(n,r,l)=>pt({error:`${n} must be a number.`}).min(r,`${n} must be between ${r.toLocaleString()} and ${l.toLocaleString()}.`).max(l,`${n} must be between ${r.toLocaleString()} and ${l.toLocaleString()}.`).int(`${n} must be a whole number.`),xr=(n,r)=>pt({error:`${n} must be a number.`}).min(0,`${n} must be between 0 and ${r.toLocaleString()}.`).max(r,`${n} must be between 0 and ${r.toLocaleString()}.`).int(`${n} must be a whole number.`),co=(n,r=1600)=>pt({error:`${n} must be a valid 4-digit year.`}).int(`${n} must be a whole number.`).min(r,`${n} should be between ${r} and the current year.`).max(l0,`${n} cannot be in the future.`),fo=n=>pt({error:`${n} must be a number.`}).int(`${n} must be a whole number.`).min(0,`${n} must be between 0 and 99.`).max(99,`${n} must be between 0 and 99.`),Bi=(n,r,l=0)=>{const o=Math.pow(10,r)-1,c=o.toLocaleString("en-US"),f=l.toLocaleString("en-US");return pt({error:`${n} must be a number.`}).min(l,`${n}: Value must be between ${f} and ${c}.`).max(o,`${n}: Value must be between ${f} and ${c}.`).int(`${n} must be a whole number.`)},WA={email:ga().trim().min(1,"Required").email("Please enter a valid email address."),phone:ga().trim().min(1,"Required").refine(n=>{let r=n.replace(/\D/g,"");return r.length===11&&r.startsWith("1")&&(r=r.slice(1)),r.length===10},"Please enter a valid 10-digit US phone number."),social_security_number:ga().trim().refine(n=>n===""||/^\d{3}-\d{2}-\d{4}$/.test(n),"Social Security Number must be in the format XXX-XX-XXXX.").optional(),sms_code:ga().trim().min(1,"Required").regex(/^\d{6}$/,"Please enter the 6-digit code."),first_name:so,last_name:so,middle_name:K_,co_applicant_first_name:so,co_applicant_last_name:so,co_applicant_middle_name:K_,year_built:co("Year built",1800),year_roof_updated:pt({error:"Please enter a valid 4-digit year."}).int("Year must be a whole number.").min(1e3,"Please enter a valid 4-digit year.").max(9999,"Please enter a valid 4-digit year."),heating_update_year:co("Heating update year"),plumbing_update_year:co("Plumbing update year"),electrical_update_year:co("Electrical update year"),total_area_sq_ft:XA("Square footage",1,999999),sale_price_cents:pt({error:"Purchase Price must be a number."}).min(1,"Purchase Price must be between 1 and 21,474,836.").max(21474836,"Purchase Price must be between 1 and 21,474,836.").int("Purchase Price must be a whole number."),home_prior_years:fo("Number of years with your prior carrier"),home_continuous_coverage_years:fo("How long you have had continuous home coverage"),household_size:pt({error:"Household size must be a number."}).min(1,"Occupants must be between 1 and 8.").max(8,"Occupants must be between 1 and 8.").int("Occupants must be between 1 and 8."),number_of_mortgagees:pt({error:"Number of mortgagees must be a number."}).int().min(0,"Number of mortgagees cannot be negative.").max(3,"Number of mortgagees must be between 0 and 3."),dwelling_replacement_cost:Bi("Replacement cost",9,1),other_structures_coverage:Bi("Other structures",9),personal_property_coverage:Bi("Personal property",7),loss_of_use_coverage:Bi("Loss of use coverage",8),years_at_address:pt({error:"Years at address must be a number."}).int().min(0,"Years at address cannot be negative.").max(100,"Years at address must be 100 or less."),months_at_address:pt({error:"Months at address must be a number."}).int().min(0,"Months at address cannot be negative.").max(11,"Months at address must be between 0 and 11."),years_at_prior_address:pt({error:"Years at prior address must be a number."}).int().min(0,"Years at prior address cannot be negative.").max(100,"Years at prior address must be 100 or less."),number_of_units:pt({error:"Number of units must be a number."}).int().min(1,"Number of units/apartments should be greater than 0.").max(99,"Number of units/apartments must be between 1 and 99."),number_of_families:pt({error:"Number of families must be a number."}).int("Number of families must be a whole number.").refine(n=>n>=1&&n<=5,{message:"Number of families must be between 1 and 5."}),number_of_dogs:pt({error:"Number of dogs must be a number."}).int().min(0,"Number of dogs must be between 0 and 99.").max(99,"Number of dogs must be between 0 and 99."),distance_to_coast_miles:pt({error:"Distance to coast must be a number."}).int().min(0,"Distance to coast cannot be negative.").max(9999,"Distance to coast must be at most 4 digits."),amount_paid_cents:Bi("Amount paid",7),license_number:ga().trim().min(1,"Required").max(20,"License number must be 20 characters or fewer.").regex(/^[A-Z0-9]+$/i,"License number must contain only letters and numbers."),vin:ga().superRefine((n,r)=>{if(typeof n!="string"||n.trim()==="")return;if(/\s/.test(n)){r.addIssue({code:lc.custom,message:"VIN cannot contain spaces."});return}const l=n.trim();/^[A-HJ-NPR-Z0-9]{17}$/i.test(l)||r.addIssue({code:lc.custom,message:"VIN must be exactly 17 letters and numbers (excluding I, O, and Q)."})}),annual_mileage:pt({error:"Annual mileage must be a number."}).int("Annual mileage must be a whole number.").min(1e3,"Vehicle annual use should be between 1,000 & 100,000 miles.").max(1e5,"Vehicle annual use should be between 1,000 & 100,000 miles."),miles_to_work:pt({error:"Miles driven to work/school must be a number."}).int("Miles driven to work/school must be a whole number.").min(1,"Please enter a value greater than 0.").max(9999,"Miles driven to work/school must be between 1 and 9,999."),custom_equipment_value_cents:xr("Modifications value",9999999),cost_new_value_cents:xr("Cost new value",9999999),stated_value_amount_cents:xr("Stated Value Amount",9999999),property_damage_amount_paid_cents:xr("Property damage amount paid",9999999),personal_injury_amount_paid_cents:xr("Personal injury amount paid",9999999),auto_current_annual_premium_cents:xr("Current annual premium",9999999),auto_prior_years:fo("Years with prior auto carrier"),auto_prior_months:pt({error:"Months with prior carrier must be a number."}).int().min(0,"Months with prior carrier must be between 0 and 11.").max(11,"Months with prior carrier must be between 0 and 11."),auto_continuous_coverage_years:fo("Years with continuous auto coverage")};function ct(n){return new Date(`${n}T00:00:00Z`)}function Ot(){const n=new Date;return new Date(Date.UTC(n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()))}function pa(n,r){let l=r.getUTCFullYear()-n.getUTCFullYear();const o=r.getUTCMonth()-n.getUTCMonth();return(o<0||o===0&&r.getUTCDate()<n.getUTCDate())&&l--,l}const o0=[{targetKey:"social_security_number",dependsOn:["social_security_number","state"],validate:n=>{if(!("social_security_number"in n)||!To(n.state))return;const r=n.social_security_number;return(typeof r=="string"?r.trim():"")===""?"Social Security Number is required in New Jersey.":void 0}},{targetKey:"date_of_birth",dependsOn:["date_of_birth"],validate:n=>{const r=n.date_of_birth;if(!r||typeof r!="string")return;const l=ct(r);return isNaN(l.getTime())?"Invalid date.":l.getUTCFullYear()<1900?"Date of birth year can't be earlier than 1900.":pa(l,Ot())<18?"Applicant can't be under the age of 18.":void 0}},{targetKey:"co_applicant_date_of_birth",dependsOn:["co_applicant_date_of_birth"],validate:n=>{const r=n.co_applicant_date_of_birth;if(!r||typeof r!="string")return;const l=ct(r);return isNaN(l.getTime())?"Invalid date.":l.getUTCFullYear()<1900?"Date of birth year can't be earlier than 1900.":pa(l,Ot())<16?"Co-applicant can't be under the age of 16.":void 0}},{targetKey:"year_roof_updated",dependsOn:["year_roof_updated","year_built"],validate:n=>{const r=Number(n.year_roof_updated),l=Number(n.year_built);if(isNaN(r))return;const o=isNaN(l)?1e3:l;if(r<o||r>l0)return"Roof renovation/replacement year must be between the home's build year and the current year."}},{targetKey:"move_in_date",dependsOn:["move_in_date","year_built"],validate:n=>{const r=n.move_in_date,l=n.year_built;if(!r||l==null)return;const o=ct(String(r));if(isNaN(o.getTime()))return;const c=Number(l);if(!isNaN(c))return o.getUTCFullYear()<c?"Purchase date cannot be prior to the year the building was originally constructed.":void 0}},{targetKey:"date_first_licensed",dependsOn:["date_first_licensed"],validate:n=>{const r=n.date_first_licensed;if(!r||typeof r!="string")return;const l=ct(r);return isNaN(l.getTime())?"Invalid date.":l>Ot()?"Date first licensed cannot be in the future.":void 0}},{targetKey:"date_first_licensed",dependsOn:["date_first_licensed","date_of_birth"],validate:n=>{const r=n.date_first_licensed,l=n.date_of_birth;if(!r||typeof r!="string"||!l||typeof l!="string")return;const o=ct(l),c=ct(r);if(isNaN(o.getTime())||isNaN(c.getTime()))return;if(c<o)return"Date licensed cannot be before driver date of birth.";const f=new Date(Date.UTC(o.getUTCFullYear()+18,o.getUTCMonth(),o.getUTCDate()));return c<f?"Driver can't be licensed to drive before the age of 18.":void 0}},{targetKey:"occurred_at",dependsOn:["occurred_at"],validate:n=>{const r=n.occurred_at;if(!r||typeof r!="string")return;const l=ct(r);return isNaN(l.getTime())?"Invalid date.":l>Ot()?"Incident date cannot be in the future.":void 0}},{targetKey:"accident_prevention_course_date",dependsOn:["accident_prevention_course_date"],validate:n=>{const r=n.accident_prevention_course_date;if(!r||typeof r!="string")return;const l=ct(r);return isNaN(l.getTime())?"Invalid date.":l>Ot()?"Course date cannot be in the future.":void 0}},{targetKey:"effective_date",dependsOn:["effective_date"],validate:n=>{const r=n.effective_date;if(!r||typeof r!="string")return;const l=ct(r);if(isNaN(l.getTime()))return"Invalid date.";const o=Ot(),c=new Date(Date.UTC(o.getUTCFullYear(),o.getUTCMonth()+3,o.getUTCDate()));if(l<o)return"Insurance start date cannot be in the past.";if(l>c)return"Insurance must begin within 3 months from today."}},{targetKey:"years_at_address",dependsOn:["years_at_address","date_of_birth"],validate:n=>{const r=n.years_at_address,l=n.date_of_birth;if(r==null||l==null||typeof l!="string")return;const o=Number(r);if(isNaN(o))return;const c=ct(l);if(isNaN(c.getTime()))return;const f=pa(c,Ot());return o>f?"Time at address cannot be greater than the applicant age.":void 0}},{targetKey:"years_at_prior_address",dependsOn:["years_at_prior_address","date_of_birth"],validate:n=>{const r=n.years_at_prior_address,l=n.date_of_birth;if(r==null||l==null||typeof l!="string")return;const o=Number(r);if(isNaN(o))return;const c=ct(l);if(isNaN(c.getTime()))return;const f=pa(c,Ot());return o>f?"Years at prior address cannot be greater than the applicant age.":void 0}},{targetKey:"home_prior_years",dependsOn:["home_prior_years","home_continuous_coverage_years"],validate:n=>{const r=n.home_prior_years,l=n.home_continuous_coverage_years;if(r==null||l==null)return;const o=Number(r),c=Number(l);if(!(isNaN(o)||isNaN(c)))return o>c?"Years with prior carrier cannot be higher than years with continuous coverage.":void 0}},{targetKey:"home_prior_years",dependsOn:["home_prior_years","date_of_birth"],validate:n=>{const r=n.home_prior_years,l=n.date_of_birth;if(r==null||l==null||typeof l!="string")return;const o=Number(r);if(isNaN(o))return;const c=ct(l);if(isNaN(c.getTime()))return;const f=pa(c,Ot());return o>f?"Years with prior carrier cannot be greater than the Applicant's age.":void 0}},{targetKey:"home_continuous_coverage_years",dependsOn:["home_continuous_coverage_years","date_of_birth"],validate:n=>{const r=n.home_continuous_coverage_years,l=n.date_of_birth;if(r==null||l==null||typeof l!="string")return;const o=Number(r);if(isNaN(o))return;const c=ct(l);if(isNaN(c.getTime()))return;const f=pa(c,Ot());return o>f?"Years with continuous home coverage cannot be greater than the Applicant's age.":void 0}},{targetKey:"move_in_date",dependsOn:["move_in_date"],validate:n=>{const r=n.move_in_date;if(!r||typeof r!="string")return;const l=ct(r);return isNaN(l.getTime())?"Invalid date.":l>Ot()?"Purchase date cannot be in the future.":void 0}},{targetKey:"date_of_incident",dependsOn:["date_of_incident"],validate:n=>{const r=n.date_of_incident;if(!r||typeof r!="string")return;const l=ct(r);if(isNaN(l.getTime()))return"Invalid date.";const o=Ot();return l>o?"Loss date cannot be in the future.":void 0}},{targetKey:"home_prior_expiration_date",dependsOn:["home_prior_expiration_date"],validate:n=>{const r=n.home_prior_expiration_date;if(!r||typeof r!="string")return;const l=ct(r);if(isNaN(l.getTime()))return"Invalid date.";const o=Ot(),c=new Date(Date.UTC(o.getUTCFullYear()-1,o.getUTCMonth(),o.getUTCDate())),f=new Date(Date.UTC(o.getUTCFullYear()+1,o.getUTCMonth(),o.getUTCDate()));if(l<c||l>f)return"Policy expiration date must be between 1 year ago and 1 year from now."}},{targetKey:"purchase_date",dependsOn:["purchase_date"],validate:n=>{const r=n.purchase_date;if(!r||typeof r!="string")return;const l=ct(r);return isNaN(l.getTime())?"Invalid date.":l>Ot()?"Vehicle purchase date cannot be in the future.":void 0}},{targetKey:"purchase_date",dependsOn:["purchase_date","year"],validate:n=>{const r=n.purchase_date,l=n.year;if(!r||typeof r!="string"||l==null)return;const o=ct(r);if(isNaN(o.getTime()))return;const c=Number(l);if(!isNaN(c))return o.getUTCFullYear()<c?"The year the vehicle was purchased is not valid with the model year.":void 0}},{targetKey:"auto_prior_expiration_date",dependsOn:["auto_prior_expiration_date"],validate:n=>{const r=n.auto_prior_expiration_date;if(!r||typeof r!="string")return;const l=ct(r);if(isNaN(l.getTime()))return"Invalid date.";const o=Ot(),c=new Date(Date.UTC(o.getUTCFullYear()-1,o.getUTCMonth(),o.getUTCDate())),f=new Date(Date.UTC(o.getUTCFullYear()+1,o.getUTCMonth(),o.getUTCDate()));if(l<c||l>f)return"Auto policy expiration date must be between 1 year ago and 1 year from now."}},{targetKey:"auto_prior_years",dependsOn:["auto_prior_years","auto_continuous_coverage_years"],validate:n=>{const r=n.auto_prior_years,l=n.auto_continuous_coverage_years;if(r==null||l==null)return;const o=Number(r),c=Number(l);if(!(isNaN(o)||isNaN(c)))return o>c?"Years with prior auto carrier cannot be higher than years with continuous coverage.":void 0}},{targetKey:"auto_prior_years",dependsOn:["auto_prior_years","date_of_birth"],validate:n=>{const r=n.auto_prior_years,l=n.date_of_birth;if(r==null||l==null||typeof l!="string")return;const o=Number(r);if(isNaN(o))return;const c=ct(l);if(isNaN(c.getTime()))return;const f=pa(c,Ot());return o>f?"Years with prior auto carrier cannot be greater than the Applicant's age.":void 0}},{targetKey:"auto_continuous_coverage_years",dependsOn:["auto_continuous_coverage_years","date_of_birth"],validate:n=>{const r=n.auto_continuous_coverage_years,l=n.date_of_birth;if(r==null||l==null||typeof l!="string")return;const o=Number(r);if(isNaN(o))return;const c=ct(l);if(isNaN(c.getTime()))return;const f=pa(c,Ot());return o>f?"Years with continuous auto coverage cannot be greater than the Applicant's age.":void 0}},{targetKey:"vehicle_coll_deductible",dependsOn:["vehicle_coll_deductible","vehicle_comp_deductible"],validate:n=>{const r=n.vehicle_coll_deductible,l=n.vehicle_comp_deductible;if(!(!r||typeof r!="string"||!l||typeof l!="string")&&l==="NoCoverage"&&r!=="NoCoverage")return"Collision Coverage cannot be chosen if Comprehensive is No Coverage."}},{targetKey:"policy_um",dependsOn:["policy_um","policy_bi"],validate:n=>{const r=n.policy_um,l=n.policy_bi;if(!r||typeof r!="string"||!l||typeof l!="string"||r==="Reject"||l==="Dontknow")return;const o=y=>y.endsWith("CSL"),c=o(r),f=o(l);if(c&&!f)return"A Combined Single Limit cannot be selected for Uninsured/Underinsured Motorist unless a Combined Single Limit has also been selected for Liability.";const m={cov30to60:30,cov50to100:50,cov100to100:100,cov100to300:100,cov250to500:250,cov300to300:300,cov500to500:500,cov100CSL:100,cov300CSL:300,cov500CSL:500},_=m[r],p=m[l];if(_!=null&&p!=null&&_>p)return"Uninsured/Underinsured Motorist Limit value cannot be greater than Bodily Injury Limit value."}},{targetKey:"policy_umpd",dependsOn:["policy_umpd","policy_pd"],validate:n=>{const r=n.policy_umpd,l=n.policy_pd;if(!r||typeof r!="string"||!l||typeof l!="string"||r==="NoCoverage"||l==="Dontknow")return;const o=m=>{if(!m.startsWith("cov"))return null;const _=parseInt(m.replace("cov",""),10);return isNaN(_)?null:_},c=o(r),f=o(l);if(c!=null&&f!=null&&c>f)return"Uninsured Motorist Property Damage Limit value cannot be greater than Liability Property Damage Limit value."}},{targetKey:"custom_equipment_value_cents",dependsOn:["custom_equipment_value_cents","stated_value_amount_cents"],validate:n=>{const r=n.custom_equipment_value_cents,l=n.stated_value_amount_cents;if(r==null||l==null)return;const o=Number(r),c=Number(l);if(!(isNaN(o)||isNaN(c))&&c>0&&o>0)return"Modifications should be included in the stated value of the vehicle. If a stated value quote is not required, remove the stated value."}}];function oc(n,r){const l=WA[n];if(!l)return;const o=l.safeParse(r);return o.success?void 0:o.error.issues[0].message}function Q_(n){if(/\s/.test(n))return!1;const r=n.trim();return r.length===17&&/^[A-HJ-NPR-Z0-9]{17}$/i.test(r)}function JA(n,r){const l={};for(const o of o0){if(r?.has(o.targetKey))continue;const c=o.validate(n);c&&(l[o.targetKey]=c)}return l}function uc(n){return n.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/(^-|-$)/g,"")}function Gi(n,r){return n.key??`${uc(n.question)}-${r}`}function va(n,r){return r==="number"?n==null||typeof n=="string"&&n.trim()==="":r==="checkbox"?n!==!0:n==null||typeof n=="string"&&n.trim()===""}function Co(n,r){const l={};n.forEach((m,_)=>{const p=Gi(m,_),y=r[p];if(m.required&&va(y,m.inputType)){l[p]="Required";return}if(!va(y,m.inputType)){const A=oc(p,y);if(A){l[p]=A;return}}});const o={...r};n.forEach((m,_)=>{const p=Gi(m,_);p in o||(o[p]="")});const c=new Set(Object.keys(l).filter(m=>l[m])),f=JA(o,c);for(const[m,_]of Object.entries(f))l[m]=_;return l}function e1(n){if(n===""||n===null||n===void 0)return;const r=Number(n);return Number.isNaN(r)?void 0:r}const t1={NoPriorInsurance:"No Prior Insurance",TwentyFirstCentury:"21st Century",ACentral:"A.Central",AAA:"AAA",AARP:"AARP",Acadia:"Acadia",Ace:"Ace",Acuity:"Acuity",AdirondackInsExchange:"Adirondack Ins Exchange",Aegis:"Aegis",AIC:"AIC",AIG:"AIG",AlfaAlliance:"Alfa Alliance",Allied:"Allied",Allstate:"Allstate",AmericaFirst:"America First",AmericanCommerce:"American Commerce",AmericanFamily:"American Family",Amica:"Amica",ASILloyds:"ASI Lloyds",AustinMutual:"Austin Mutual",Autoone:"Autoone",AutoOwners:"Auto-Owners",BadgerMutual:"Badger Mutual",Balboa:"Balboa",Bankers:"Bankers",BeaconNational:"Beacon National",BrethernMutual:"Brethern Mutual",BristolWest:"Bristol West",CapitalInsuranceGroup:"Capital Insurance Group",Celina:"Celina",CentralMutualOfOH:"Central Mutual of OH",Chubb:"Chubb",Cincinnati:"Cincinnati",Clearcover:"Clearcover",CNA:"CNA",ColonialPenn:"Colonial Penn",ColoradoCasualty:"Colorado Casualty",Columbia:"Columbia",CommerceWest:"Commerce West",CommonwealthCasualty:"Commonwealth Casualty",Ameriprise:"CONNECT",ConstitutionalCasualty:"Constitutional Casualty",Cornerstone:"Cornerstone",Countrywide:"Countrywide",CSE:"CSE",Cumberland:"Cumberland",Dairyland:"Dairyland",Deerbrook:"Deerbrook",Direct:"Direct",Donegal:"Donegal",Drive:"Drive",Electric:"Electric",EMC:"EMC",Encompass:"Encompass",Erie:"Erie",Esurance:"Esurance",Explorer:"Explorer",FarmBureau:"Farm Bureau",Farmers:"Farmers",FiremansFund:"Firemans Fund",FirstAmerican:"First American",Foremost:"Foremost",Geico:"Geico",GeneralCasualty:"General Casualty",GermantownMutual:"Germantown Mutual",GMAC:"GMAC",Grange:"Grange",GreatAmerican:"Great American",Grinnell:"Grinnell",GuideOne:"Guide One",Hanover:"Hanover",Harbor:"Harbor",Harleysville:"Harleysville",HartfordOMNI:"Hartford OMNI",Hartford:"Hartford",HastingsMutual:"Hastings Mutual",HawkeyeSecurity:"Hawkeye Security",HDI:"HDI",HoraceMann:"Horace Mann",HoustonGeneral:"Houston General",IFA:"IFA",ImperialCasualty:"Imperial Casualty",IndianaFarmers:"Indiana Farmers",Indiana:"Indiana",Infinity:"Infinity",Insurequest:"Insurequest",Integon:"Integon",Integrity:"Integrity",Kemper:"Kemper",LibertyMutual:"Liberty Mutual",LibertyNorthwest:"Liberty Northwest",MainStreetAmerica:"Main Street America",Mapfre:"Mapfre",Mendota:"Mendota",MerchantsGroup:"Merchants Group",Mercury:"Mercury",Metlife:"MetLife",Metropolitan:"Metropolitan",MidContinent:"Mid-Continent",MidwesternIndemnity:"Midwestern Indemnity",Montgomery:"Montgomery",MSA:"MSA",MtWashington:"Mt. Washington",MutualBenefit:"Mutual Benefit",NationalGeneral:"National General",Nationwide:"Nationwide",NewYorkCentralMutual:"New York Central Mutual",NJManufacturers:"NJ Manufacturers",NJSkylands:"NJ Skylands",Northstar:"Northstar",Occidental:"Occidental",OhioCasualty:"Ohio Casualty",OmahaPC:"Omaha P/C",OneBeacon:"One Beacon",OregonMutual:"Oregon Mutual",Palisades:"Palisades",PeerlessMontgomery:"Peerless/Montgomery",Pekin:"Pekin",Pemco:"Pemco",PennNational:"Penn National",PlymouthRock:"Plymouth Rock",PreferredMutual:"Preferred Mutual",Proformance:"Proformance",Progressive:"Progressive",Prudential:"Prudential",Republic:"Republic",RockfordMutual:"Rockford Mutual",RoyalAndSunAlliance:"Royal and Sun Alliance",Safeco:"Safeco",SECURA:"SECURA",Selective:"Selective",SouthernCounty:"Southern County",SouthernMutual:"Southern Mutual",SouthernTrust:"Southern Trust",StPaulTravelers:"St. Paul/Travelers",StandardMutual:"Standard Mutual",StarCasualty:"Star Casualty",StateAuto:"State Auto",StateFarm:"State Farm",Fidelity:"Stillwater",Travelers:"Travelers",TWFG:"TWFG",Unigard:"Unigard",UnitedFireAndCasualty:"United Fire and Casualty",Unitrin:"Unitrin",Universal:"Universal",USAA:"USAA",UticaNational:"Utica National",Victoria:"Victoria",WestBend:"West Bend",WesternNational:"Western National",WesternReserveGroup:"Western Reserve Group",Westfield:"Westfield",WhiteMountains:"White Mountains",WilsonMutual:"Wilson Mutual",Windsor:"Windsor",Zurich:"Zurich",OtherStandard:"Other Standard",OtherNonStandard:"Other Non-Standard"},n1={OwnHome:"Own Home",OwnCondo:"Own Condo",RentHome:"Rent Home",RentCondo:"Rent Condo",RentApartment:"Rent Apartment",LiveWithParents:"Live With Parents"},a1={TwentyFirstCentury:"21st Century",AAA:"AAA",Acuity:"Acuity",AdirondackInsExchange:"Adirondack Ins Exchange",AIG:"AIG",AlfaAlliance:"Alfa Alliance",AllianzOfAmerica:"Allianz of America",AllianzOfAmericaJefferson:"Allianz of America-Jefferson",Allied:"Allied",Allmerica:"Allmerica",Allstate:"Allstate",AmericaFirst:"America First",AmericanFamily:"American Family",AmericanCommerce:"American Commerce",Amica:"Amica",ASILloyds:"ASI Lloyds",Assurant:"Assurant",AtlasGeneralAgency:"Atlas General Agency",AustinMutual:"Austin Mutual",AutoOwners:"Auto-Owners",BadgerMutual:"Badger Mutual",Balboa:"Balboa",Bamboo:"Bamboo",BeaconNational:"Beacon National",BunkerHill:"Bunker Hill",CapitalInsuranceGroup:"Capital Insurance Group",CentralMutualOfOH:"Central Mutual of OH",ChubbInsurance:"Chubb",Cincinnati:"Cincinnati",Citizens:"Citizens",ColoradoCasualty:"Colorado Casualty",Ameriprise:"CONNECT",CSE:"CSE",Cumberland:"Cumberland",Cypress:"Cypress",Dairyland:"Dairyland",Donegal:"Donegal",Electric:"Electric",EMC:"EMC",Encompass:"Encompass",Erie:"Erie",Esurance:"Esurance",ExcelsiorInsuranceCompany:"Excelsior Insurance Company",FairPlan:"Fair Plan",FarmBureau:"Farm Bureau",Farmers:"Farmers",FiremansFund:"Firemans Fund",FirstAmerican:"First American",ForemostInsuranceCompany:"Foremost Insurance Company",Geico:"Geico",GeneralCasualty:"General Casualty",GermantownMutual:"Germantown Mutual",GMAC:"GMAC",Grange:"Grange",Grinnell:"Grinnell",GuideOne:"Guide One",Hanover:"Hanover",Harleysville:"Harleysville",Hartford:"Hartford",HartfordOMNI:"Hartford OMNI",HawkeyeSecurity:"Hawkeye Security",HippoInsuranceCompany:"Hippo Insurance Company",HomeownersOfAmerica:"Homeowners of America",Homesite:"Homesite",HoraceMann:"Horace Mann",HoustonGeneral:"Houston General",Indiana:"Indiana",IndianaFarmers:"Indiana Farmers",Integrity:"Integrity",Kemper:"Kemper",LibertyMutual:"Liberty Mutual",LibertyNorthwest:"Liberty Northwest",Lloyds:"Lloyds",MainStreetAmerica:"Main Street America",MarkelInsuranceCompany:"Markel Insurance Company",MerchantsGroup:"Merchants Group",Mercury:"Mercury",Metlife:"MetLife",MidwesternIndemnity:"Midwestern Indemnity",Montgomery:"Montgomery",MSA:"MSA",MutualBenefit:"Mutual Benefit",Tower:"National General",NatGenPremier:"NatGen Premier",Nationwide:"Nationwide",NationwideScottsdale:"Nationwide-Scottsdale",NewYorkCentralMutual:"New York Central Mutual",NJSkylands:"NJ Skylands",Northstar:"Northstar",OhioCasualty:"Ohio Casualty",OneBeacon:"One Beacon",OregonMutual:"Oregon Mutual",PeerlessMontgomery:"Peerless/Montgomery",Pekin:"Pekin",PennNational:"Penn National",PlymouthRock:"Plymouth Rock",PreferredMutual:"Preferred Mutual",Prudential:"Prudential",PureHighValue:"Pure High Value",Republic:"Republic",RoyalAndSunAlliance:"Royal and Sun Alliance",Safeco:"Safeco",SECURA:"SECURA",SouthernMutual:"Southern Mutual",SouthernTrust:"Southern Trust",StPaulTravelers:"St. Paul/Travelers",StandardMutual:"Standard Mutual",StateAuto:"State Auto",StateFarm:"State Farm",StateFarmFloridaInsuranceCompany:"State Farm Florida Insurance Company",Fidelity:"Stillwater",SunshineStateInsuranceCompany:"Sunshine State Insurance Company",Travelers:"Travelers",TWFG:"TWFG",Unigard:"Unigard",UnitedFireAndCasualty:"United Fire and Casualty",Unitrin:"Unitrin",Universal:"Universal",USAA:"USAA",UticaNational:"Utica National",Wellington:"Wellington",WestBend:"West Bend",WesternNational:"Western National",WesternReserveGroup:"Western Reserve Group",Westfield:"Westfield",WhiteMountains:"White Mountains",WilsonMutual:"Wilson Mutual",Zurich:"Zurich",Other:"Other",OtherNonStandard:"Other Non-Standard",OtherStandard:"Other Standard"},r1={Business:"Business",Pleasure:"Pleasure",Farming:"Farming",To_FromWork:"To/From Work",To_FromSchool:"To/From School"},i1={Dontknow:"Don't Know",ThirtyToSixty:"30/60",FiftyToHundred:"50/100",HundredToHundred:"100/100",HundredToThreeHundred:"100/300",TwoHundredFiftyToFiveHundred:"250/500",ThreeHundredToThreeHundred:"300/300",FiveHundredToFiveHundred:"500/500",HundredCSL:"100CSL",ThreeHundredCSL:"300CSL",FiveHundredCSL:"500CSL"},l1={ActiveMilitaryDuty:"Active Military Duty",DrivingCompanyCar:"Driving A Company Car",DrivingCarOwnedByRelative:"Driving A Car Owned By A Relative",HasNotOwnedOrOperatedVehicle:"Has Not Owned Or Operated A Vehicle",OwnedVehParkedStoredOffRoadNotDriven:"Owned Veh Parked/Stored Off Road/Not Driven",NonPayment:"Non-Payment",Other:"Other"},o1={Dontknow:"Don't Know",cov30to60:"30/60",cov35to70:"35/70",cov50to100:"50/100",cov100to100:"100/100",cov100to300:"100/300",cov250to500:"250/500",cov300to300:"300/300",cov500to500:"500/500",cov100CSL:"100 CSL",cov300CSL:"300 CSL",cov500CSL:"500 CSL"},u1={Reject:"Reject",cov30to60:"30/60",cov35to70:"35/70",cov50to100:"50/100",cov100to100:"100/100",cov100to300:"100/300",cov250to500:"250/500",cov300to300:"300/300",cov500to500:"500/500",cov100CSL:"100 CSL",cov300CSL:"300 CSL",cov500CSL:"500 CSL"},s1={Dontknow:"Don't know",cov25000:"25,000",cov50000:"50,000",cov100000:"100,000",cov250000:"250,000",cov500000:"500,000"},c1={None:"None",cov500:"500",cov1000:"1,000",cov2000:"2,000",cov2500:"2,500",cov5000:"5,000",cov10000:"10,000",cov15000:"15,000",cov25000:"25,000",cov50000:"50,000",cov100000:"100,000"},f1={cov25000:"25,000",cov35000:"35,000",cov50000:"50,000",cov100000:"100,000",cov200000:"200,000",cov250000:"250,000",cov300000:"300,000",cov500000:"500,000"},d1={cov15000:"15,000",cov2500:"2,500",cov5000:"5,000",cov10000:"10,000",cov25000:"25,000",cov50000:"50,000",cov100000:"100,000",cov250000:"250,000",cov75000:"75,000",cov150000:"150,000"},m1={NoCoverage:"No Coverage",cov5000:"5,000",cov10000:"10,000"},sc={NoCoverage:"No Coverage",Zero:"0",Fifty:"50",Hundred:"100",TwoHunderd:"200",TwoHundredfifty:"250",FiveHundred:"500",SeventyFiveHundred:"750",Thousand:"1,000",TwoThousand:"2,000"},_1=["NoCoverage","Zero","Fifty","Hundred","TwoHunderd","TwoHundredfifty","FiveHundred","SeventyFiveHundred","Thousand","TwoThousand"],h1=["NoCoverage","Zero","Fifty","Hundred","TwoHunderd","TwoHundredfifty","FiveHundred","Thousand","TwoThousand"],cc={NoCoverage:"No Coverage",TwentyFive:"25",Forty:"40",Fifty:"50",SeventyFive:"75",Eighty:"80",Hundred:"100",TwelveHundred:"120",TwoHundred:"200",Unlimited:"Unlimited"},p1=["NoCoverage","TwentyFive","Fifty","SeventyFive","Hundred","TwoHundred","Unlimited"],u0={NoCoverage:"No Coverage",cov20to600:"20/600",cov25to750:"25/750",cov30to900:"30/900",cov40to1200:"40/1,200",cov50to1500:"50/1,500",cov100to3000:"100/3,000"},y1=["NoCoverage","cov20to600","cov25to750","cov30to900","cov40to1200","cov50to1500","cov100to3000"],g1=["NoCoverage","cov20to600","cov30to900","cov40to1200","cov50to1500"],s0={NoHighSchoolDiploma:"No High School Diploma",HighSchoolDiploma:"High School Diploma",SomeCollegeNoDegree:"Some College - No Degree",VocationalTechnicalDegree:"Vocational Technical Degree",AssociatesDegree:"Associates Degree",Bachelors:"Bachelors",Masters:"Masters",Phd:"Phd",MedicalDegree:"Medical Degree",LawDegree:"Law Degree"},v1={TwoFamilyHome:"2-Family Home",American4square:"American 4-square",Basic:"Basic",BiLevel:"Bi-Level",Bungalow:"Bungalow",CapeCod:"Cape Cod",Colonial:"Colonial",ColonialSpanish:"Colonial - Spanish",CompletelyCustom:"Completely Custom",Contemporary:"Contemporary",ContractorModern:"Contractor Modern",Farmhouse:"Farmhouse",Folk:"Folk",Log:"Log",Mediterranean:"Mediterranean",Ranch:"Ranch",TriLevel:"Tri-Level",Tudor:"Tudor",Vernacular:"Vernacular",Victorian:"Victorian"},b1={SingleFamilyHouse:"Single Family House",Townhouse:"Townhouse",Rowhouse:"Rowhouse",Duplex:"Duplex/Two Family Unit",Triplex:"Tri-plex/Three Family Unit",Fourplex:"Four-plex/Four Family Unit",MultFamily:"Multi-family (more than four units)"},S1={OwnerPrimary:"Owner Primary",OwnerSecondary:"Owner Secondary",OwnerSeasonal:"Owner Seasonal"},A1={Basic:"Basic",Modest:"Modest",Average:"Average",AboveAverage:"Above Average",Expensive:"Expensive",VeryExpensive:"Very Expensive",Opulent:"Opulent"},E1={Frame:"Frame",Masonry:"Masonry",MasonryVeneer:"Masonry Veneer",Log:"Log",Asbestos:"Asbestos",EFIS:"EFIS",HardiPlank:"HardiPlank",SuperiorFireResistive:"Superior Fire Resistive",SuperiorMasonryNonCombustible:"Superior Masonry Non Combustible",SuperiorNonCombustible:"Superior Non Combustible"},T1={Slab:"Slab",Basement:"Basement",CrawlSpace:"Crawl Space",PartialBasement:"Partial Basement",PiersPostsPiles:"Piers / Posts / Piles",Open:"Open"},C1={NotOverWater:"No",PartiallyOverWater:"Partially Over Water",FullyOrEntirelyOverWater:"Fully or Entirely Over Water"},O1={One:"1",OneHalf:"1.5",Two:"2",TwoHalf:"2.5",Three:"3",ThreeHalf:"3.5",Four:"4",BiLevel:"Bi-Level",TriLevel:"Tri-Level"},M1={VinylSiding:"Vinyl Siding",WoodFraming:"Wood Framing",BrickVeneer:"Brick Veneer",Stucco:"Stucco",AdobeBlock:"Adobe Block",AluminumSiding:"Aluminum Siding",CementFiberShingles:"Cement Fiber Shingles",Clapboard:"Clapboard",ConcreteBlock:"Concrete Block",HardboardSiding:"Hardboard Siding",InsulatedConcreteForms:"Insulated Concrete Forms",LightGaugeSteelFraming:"Light Gauge Steel Framing",LogsSolid:"Logs (Solid)",MasoniteSiding:"Masonite Siding",PreEngineeredMetal:"Pre-Engineered Metal",SolidBrickConstruction:"Solid Brick Construction",SolidConcrete:"Solid Concrete",StandardPoleFramed:"Standard Pole Framed",Stone:"Stone",StructuralInsulatedPanels:"Structural Insulated Panels",TimberFraming:"Timber Framing"},N1={ASPHALT_SHINGLES:"Asphalt Shingles",ARCHITECTURAL_SHINGLES:"Architectural Shingles",METAL:"Metal",TILE_CONCRETE:"Tile (Concrete)",ASBESTOS:"Asbestos",BUILT_UP:"Built-Up",COMPOSITION:"Composition",CONCRETE:"Concrete",COPPER:"Copper",CORRUGATED_STEEL:"Corrugated Steel",FIBERGLASS:"Fiberglass",FOAM:"Foam",GRAVEL:"Gravel",MEMBRANE:"Membrane",MINERAL_FIBER_SHAKE:"Mineral Fiber Shake",PLASTIC:"Plastic",ROCK:"Rock",ROLLED_PAPER:"Rolled Paper",RUBBER:"Rubber",SLATE:"Slate",TAR:"Tar",TAR_GRAVEL:"Tar and Gravel",TILE_CLAY:"Tile (Clay)",TILE_MISSION:"Tile (Mission)",TILE_SPANISH:"Tile (Spanish)",TIN:"Tin",WOOD_FIBERGLASS_SHINGLES:"Wood/Fiberglass Shingles",WOOD_SHAKE:"Wood Shake",WOOD_SHINGLES:"Wood Shingles",OTHER:"Other"},D1={B_Gable:"Gable",C_Hip:"Hip",A_Flat:"Flat",D_Other:"Other"},x1={NotUpdated:"Not Updated",PartialUpdate:"Partial Update",CompleteUpdate:"Complete Update"},R1={Electric:"Electric",Gas:"Gas",GasForcedAir:"Gas - Forced Air",GasHotWater:"Gas - Hot Water",Oil:"Oil",OilForcedAir:"Oil - Forced Air",OilHotWater:"Oil - Hot Water",SolidFuel:"Solid Fuel",HeatPump:"Heat Pump",Other:"Other"},w1={AboveGround:"Above Ground",BelowGround:"Below Ground"},L1={Basement:"Below Grade Basement",SplitLevelBasement:"Split Level Basement",WalkoutBasement:"Walkout Basement"},z1={EntirelyCopper:"Entirely Copper",EntirelyGalvanized:"Entirely Galvanized",EntirelyPEX:"Entirely PEX",EntirelyPVC:"Entirely PVC",Polybutylene:"Polybutylene"},B1={TwentyFive:"$25,000",Fifty:"$50,000",OneHundred:"$100,000",TwoHundred:"$200,000",ThreeHundred:"$300,000",FourHundred:"$400,000",FiveHundred:"$500,000"},k1={cov1000:"$1,000",cov2000:"$2,000",cov3000:"$3,000",cov4000:"$4,000",cov5000:"$5,000"},U1={TwoHundredFifty:"$250",FiveHundred:"$500",SevenHundredFifty:"$750",OneThousand:"$1,000",OneThousandFiveHundred:"$1,500",TwoThousand:"$2,000",TwoThousandFiveHundred:"$2,500",ThreeThousands:"$3,000",FourThousands:"$4,000",FiveThousands:"$5,000",OnePercent:"1%",TwoPercent:"2%",ThreePercent:"3%",FourPercent:"4%",FivePercent:"5%"},j1={None:"None",OnePercent:"1%",TwoPercent:"2%",FivePercent:"5%",TenPercent:"10%"},H1={_0_500ft:"0-500 Feet",_501_1000ft:"501-1000 Feet",_1001ftAndGreater:"1001 Feet And Greater"},I1={Lessthan5miles:"Less Than 5 Miles",Over5miles:"Over 5 Miles",NotAvailable:"Not Available"},X_={"Agriclt/Forestry/Fish":"Agriculture/Forestry/Fishing","Art/Design/Media":"Art/Design/Media","Banking/Finance/RE":"Banking/Finance/Real Estate","Business/Sales/Offi":"Business/Sales/Office","Construct/EnrgyTrds":"Construction/Energy Trades",Disabled:"Disabled","Education/Library":"Education/Library","Engr/Archt/Sci/Math":"Engineer/Architect/Science/Math","Government/Military":"Government/Military","Homemaker/Houseprsn":"Homemaker/House Person","Info Tech":"Information Technology",Insurance:"Insurance","Lgl/Law Enfcmt/Sec":"Legal/Law Enforcement/Security","Maint/Rpr/Hsekeep":"Maintenance/Repair/Housekeeping","Mfg/Production":"Manufacturing/Production","Med/Soc Svcs/Relig":"Medical/Social Services/Religion",Other:"Other","Person.Care/Service":"Personal Care/Service","Rest/Hotel Services":"Restaurant/Hotel Services",Retired:"Retired","Sports/Recreation":"Sports/Recreation",Student:"Student","Trvl/Trnsprt/Warehs":"Travel/Transportation/Warehousing",Unemployed:"Unemployed"},W_={Single:"Single",Married:"Married",Seperated:"Separated",Divorced:"Divorced",Widowed:"Widowed",DomesticPartner:"Domestic Partner"},J_={Female:"Female",Male:"Male"},c0={"Agriclt/Forestry/Fish":"Agriculture/Forestry/Fishing","Art/Design/Media":"Art/Design/Media","Banking/Finance/RE":"Banking/Finance/Real Estate","Business/Sales/Offi":"Business/Sales/Office","Construct/EnrgyTrds":"Construction/Energy Trades",Disabled:"Disabled","Education/Library":"Education/Library","Engr/Archt/Sci/Math":"Engineer/Architect/Science/Math","Government/Military":"Government/Military","Homemaker/Houseprsn":"Homemaker/House person","Info Tech":"Information Technology",Insurance:"Insurance","Lgl/Law Enfcmt/Sec":"Legal/Law Enforcement/Security","Maint/Rpr/Hsekeep":"Maintenance/Repair/Housekeeping","Mfg/Production":"Manufacturing/Production","Med/Soc Svcs/Relig":"Medical/Social Services/Religion",Other:"Other","Person.Care/Service":"Personal Care/Service","Rest/Hotel Services":"Restaurant/Hotel Services",Retired:"Retired","Sports/Recreation":"Sports/Recreation",Student:"Student","Trvl/Trnsprt/Warehs":"Travel/Transportation/Warehousing",Unemployed:"Unemployed"},$1={CONTAMINATION:"Contamination",CREDITCARD:"Credit Card",DAMAGETOPROPERTYOFOTHERS:"Damage To Property Of Others",DOGBITELIABILITY:"Dog Bite",EARTHMOVEMENT:"Earth Movement",EARTHQUAKE:"Earthquake",EXTENDEDCOVERAGEPERILS:"Extended Coverage Perils",FIRE:"Fire",FLOOD:"Flood",FREEZINGWATERINCLUDINGBURSTPIPES:"Freezing Water",HAIL:"Hail",HURRICANE:"Hurricane",LIABILITYALLOTHER:"Liability",LIGHTNING:"Lightning",MEDICALPAYMENTS:"Medical Payments",MYSTERIOUSDISAPPEARANCE:"Mysterious Disappearance",MYSTERIOUSDISAPPEARANCESCHEDULEDPROPERTY:"Mysterious Disappearance - Scheduled Property",PHYSICALDAMAGEALLOTHER:"Physical Damage",SINKHOLE:"Sinkhole",SLIPFALLLIABILITY:"Slip/Fall",SMOKE:"Smoke",THEFTSCHEDULEDPROPERTY:"Theft - Scheduled Property",THEFTBURGLARY:"Theft - Burglary",TORNADO:"Tornado",VANDALISMMALICIOUSMISCHIEF:"Vandalism",WATERDAMAGE:"Water Damage",WIND:"Wind",WORKERSCOMPENSATION:"Workers Compensation",ALLOTHER:"All Other"},G1={Verbal_Threshold:"Limited right to sue",Zero_Threshold:"Unlimited right to sue"},Z1={Primary:"Primary",Secondary:"Secondary"},F1={cov1000:"$1,000",cov10000:"$10,000"},Y1={cov100_10400_LIMITED:"100 - 10,400/ LIMITED",cov125_13000_LIMITED:"125 - 13,000/ LIMITED",cov175_18200_LIMITED:"175 - 18,200/ LIMITED",cov250_26000_LIMITED:"250 - 26,000/ LIMITED",cov400_41600_LIMITED:"400 - 41,600/ LIMITED",cov500_52000_LIMITED:"500 - 52,000/ LIMITED",cov600_62400_LIMITED:"600 - 62,400/ LIMITED",cov700_72800_LIMITED:"700 - 72,800/ LIMITED",cov100_UNLIMITED:"100/UNLIMITED",cov125_UNLIMITED:"125/UNLIMITED",cov175_UNLIMITED:"175/UNLIMITED",cov250_UNLIMITED:"250/UNLIMITED",cov400_UNLIMITED:"400/UNLIMITED",cov500_UNLIMITED:"500/UNLIMITED",cov600_UNLIMITED:"600/UNLIMITED",cov700_UNLIMITED:"700/UNLIMITED"},q1={cov250:"$250",cov500:"$500",cov1000:"$1,000",cov2000:"$2,000",cov2500:"$2,500"},V1={"Agriclt/Forestry/Fish":["Agr Inspect/Grader","Arborist","Clerk","Equip. Operator","Farm/Ranch Owner","Farm/Ranch Worker","Fisherman","Florist","Laborer/Worker","Landscape/NursryWkr","Landscaper","Logger","Millworker","Other","Ranger","Supervisor","Timber Grader/Scale"],"Art/Design/Media":["Actor","Admin Assist","Announcer/Broadcstr","Artist/Animator","Author/Writer","Choreography/Dancer","Clerk","Composer/Director","Curator","Designer","Editor","Journalist/Reporter","Musician/Singer","Other","Printer","Producer","Production Crew","Projectionist","Receptionist/Sec","Ticket Sales/Usher"],"Banking/Finance/RE":["Accountant/Auditor","Admin Assist","Analyst/Broker","Bookkeeper","Branch Manager","Clerk","Collections","Consultant","Controller","CSR/Teller","Director/Administr","Executive","Financial Advisor","Investment Banker","Investor","Loan/EscrowProcess","Mgr-Credit/Loan","Mgr-Portfolio/Prod.","Mgr-Property","Other","Realtor","Receptionist/Sec","SalesAgt/Represent.","Trader,Finan Instru","Underwriter"],"Business/Sales/Offi":["Account Executive","Admin Assist","Buyer","Clerk-Office","Consultant","CSR","Director/Administr","Executive","H.R. Representative","Marketing Researchr","Messenger/Courier","Mgr - District","Mgr - Finance","Mgr-Dept/Store","Mgr-General Opers","Mgr-H.R./PublicRel","Mgr-Mkt/Sales","Mgr/Supervisr-Offic","Other","Receptionist/Sec","Sales-Counter/Rentl","Sales-Home Based","Sales-Mfg Rep","Sales-Retail/Whlsle","Sales-Route/Vendor"],"Construct/EnrgyTrds":["Boiler Oper/Maker","Bricklayer/Mason","Carpenter","Carpet Installer","Concrete Worker","Constrct Proj Mgr","Contractor","Crane Operator","Electrician/Linesmn","ElevatorTech/Instl","Equip. Operator","FloorLayer/Finisher","Foreman/Supervisor","Handyman","Heat/Air Technician","Inspector","Laborer/Worker","Metalworker","Miner","Oil/GasDril/RigOpr","Other","Painter","Plstr/Drywall/Stuc","Plumber","Roofer"],Disabled:["Disabled"],"Education/Library":["Admin Assist","Audio-Visual Tech.","Child/DayCare Wrker","Clerk","Counselor","Grad. Teaching/Asst","Instructor-Vocation","Librarian/Curator","Other","Professor, College","Receptionist/Sec","Superintendent","Teacher, College","Teacher, K-12","Teaching Asst/Aide","Tutor"],"Engr/Archt/Sci/Math":["Actuary","Admin Assist","Analyst","Architect","Clerk","Clinical Data Coord.","Drafter","Engineer","Manager-Project","Manager-R&D","Mathematician","Other","Receptionist/Sec","Research Prog. Dir.","Researcher","Scientist","Sociologist","Surveyor/Mapmaker","Technician"],"Government/Military":["Accountant/Auditor","Admin Assist","Analyst","Attorney","Chief Executive","Clerk","Commissioner","Council member","Director/Administr","Enlst Mil Prsnl E1-4","Legislator","Mayor/City Manager","Meter Reader","NCO (E5-9)","Officer-Commissiond","Officer-Warrant","Other","Park Ranger","Planner","Postmaster","Receptionist/Sec","Regulator","US Postal Worker"],"Homemaker/Houseprsn":["Homemaker/Houseprsn"],"Info Tech":["Admin Assist","Analyst","Clerk","Director/Administr","Engineer-Hardware","Engineer-Software","Engineer-Systems","Executive","Manager-Systems","Network Admin","Other","Programmer","Project Coordinator","Receptionist/Sec","Support Technician","Systems Security","Technical Writer","Web Developer"],Insurance:["Accountant/Auditor","Actuarial Clerk","Actuary","Admin Assist","Agent/Broker","Analyst","Attorney","Claims Adjuster","Clerk","Commissioner","CSR","Director/Administr","Executive","Other","Product Manager","Receptionist/Sec","Sales Rep","Underwriter"],"Lgl/Law Enfcmt/Sec":["Airport Sec Ofcr","Animal Control Ofcr","Attorney","Bailiff","Corrections Officer","Court Clrk/Reporter","Deputy Sheriff","Dispatcher","Examiner","Fed Agt/Marshall","Fire Chief","Fire Fighter/Supv.","Gaming Ofcr/Invest","Highway Patrol Ofcr","Judge/Hearing Ofcr","Legal Asst./Sec","Other","Paralegal/Law Clerk","Police Chief","Police Det/Investgr","Police Offcr/Supvr","Process Server","Prvt Invest/Detec.","Security Guard","Sheriff"],"Maint/Rpr/Hsekeep":["Bldg Maint Engineer","Custodian/Janitor","Electrician","Field Service Tech.","Handyman","Heat/AirCond Repair","Housekeeper/Maid","Lndscpe/Grnds Maint","Maint Mechanic","Mechanic","Other"],"Mfg/Production":["Admin Assist","Clerk","Factory Worker","Foreman/Supervisor","Furniture Finisher","Inspector","Jeweler","Machine Operator","Other","Packer","Plant Manager","Printer/Bookbinder","Quality Control","Receptionist/Sec","Refining Operator","Shoemaker","Tailor/Custom Sewer","Textile Worker","Upholsterer"],"Med/Soc Svcs/Relig":["Admin Assist","Assist-Med/Dent/Vet","Clergy","Clerk","Client Care Worker","Dental Hygenist","Dentist","Doctor","Hospice Volunteer","Mortician","Nurse - C.N.A.","Nurse - LPN","Nurse - RN","Nurse Practitioner","Optometrist","Other","Paramedic/EM Tech","Pharmacist","Receptionist/Sec","Social Worker","Support Services","Technician","Therapist","Veterinarian"],Other:["Other"],"Person.Care/Service":["Caregiver","Dry Cleaner/Laundry","Hair Stylist/Barber","Housekeeper","Manicurist","Masseuse","Nanny","Other","Pet Services","Receptionist/Sec"],"Rest/Hotel Services":["Baker","Bartender","Bellhop","Bus Person","Caterer","Chef","Concessionaire","Concierge","Cook-Rest/Cafeteria","Cook/Wrkr-Fast Food","Delivery Person","Desk Clerk","Dishwasher","Food Prod/Packing","Host/Maitre d","Housekeeper/Maid","Manager","Other","Valet","Waiter/Waitress","Wine Steward"],Retired:["Retired"],"Sports/Recreation":["Activity/Recre.Asst","Admin Assist","Agent","Athlete","CampCounselor/Lead","Clerk","Coach","Concessionaire","Director, Program","Event Mgr/Promoter","Life Guard","Mgr - Fitness Club","Other","Park Ranger","Receptionist/Sec","Sales-Tkt/Mmbrshp","SportsBrdcstr/Journ","Trainer/Instructor","Umpire/Referee"],Student:["Graduate Student","High school","Other","Undergraduate"],"Trvl/Trnsprt/Warehs":["Admin Assist","Air Traffic Control","Airport Ops Crew","Bellhop/Porter","Clerk","Crane Loader/Oper","Dispatcher","Driver-Bus/Strcar","Driver-Taxi/Limo","Driver-Truck/Delvry","Flight Attendant","Forklift Operator","Laborer","Longshoreman","Mate/Sailor","Mgr Warehse/Dist","Other","Parking Lot Attend","Pilot/Capt/Eng","Railroad Worker","Receptionist/Sec","Shipping/RecClk","Subway/LgtRail Oper","Ticket Agent","Transportation Spec"],Unemployed:["Unemployed"]},P1={"Agr Inspect/Grader":"Agriculture Inspector/Grader",Arborist:"Arborist",Clerk:"Clerk","Equip. Operator":"Equipment Operator","Farm/Ranch Owner":"Farm/Ranch Owner","Farm/Ranch Worker":"Farm/Ranch Worker",Fisherman:"Fisherman",Florist:"Florist","Laborer/Worker":"Laborer/Worker","Landscape/NursryWkr":"Landscaper/Nursery Worker",Landscaper:"Landscaper",Logger:"Logger",Millworker:"Mill worker",Other:"Other",Ranger:"Ranger",Supervisor:"Supervisor","Timber Grader/Scale":"Timber Grader/Scale",Actor:"Actor","Admin Assist":"Administrative Assistant","Announcer/Broadcstr":"Announcer/Broadcaster","Artist/Animator":"Artist/Animator","Author/Writer":"Author/Writer","Choreography/Dancer":"Choreography/Dancer","Composer/Director":"Composer/Director",Curator:"Curator",Designer:"Designer",Editor:"Editor","Journalist/Reporter":"Journalist/Reporter","Musician/Singer":"Musician/Singer",Printer:"Printer",Producer:"Producer","Production Crew":"Production Crew",Projectionist:"Projectionist","Receptionist/Sec":"Receptionist/Secretary","Ticket Sales/Usher":"Ticket Sales/Usher","Accountant/Auditor":"Accountant/Auditor","Analyst/Broker":"Analyst/Broker",Bookkeeper:"Bookkeeper","Branch Manager":"Branch Manager",Collections:"Collections",Consultant:"Consultant",Controller:"Controller","CSR/Teller":"CSR/Teller","Director/Administr":"Director/Administrator",Executive:"Executive","Financial Advisor":"Financial Advisor","Investment Banker":"Investment Banker",Investor:"Investor","Loan/EscrowProcess":"Loan/Escrow Processor","Mgr-Credit/Loan":"Manager-Credit/Loan","Mgr-Portfolio/Prod.":"Manager-Portfolio/Production","Mgr-Property":"Manager-Property",Realtor:"Realtor","SalesAgt/Represent.":"Sales Agent/Representative","Trader,Finan Instru":"Trader, Financial Instruments",Underwriter:"Underwriter","Account Executive":"Account Executive",Buyer:"Buyer","Clerk-Office":"Clerk-Office",CSR:"Customer Service Representative","H.R. Representative":"H.R. Representative","Marketing Researchr":"Marketing Researcher","Messenger/Courier":"Messenger/Courier","Mgr - District":"Manager - District","Mgr - Finance":"Manager - Finance","Mgr-Dept/Store":"Manager - Department/Store","Mgr-General Opers":"Manager - General Operations","Mgr-H.R./PublicRel":"Manager - H.R./Public Relations","Mgr-Mkt/Sales":"Manager - Marketing/Sales","Mgr/Supervisr-Offic":"Manager/Supervisor - Office","Sales-Counter/Rentl":"Sales-Counter/Rental","Sales-Home Based":"Sales-Home Based","Sales-Mfg Rep":"Sales-Manufacture Rep","Sales-Retail/Whlsle":"Sales-Retail/Wholesale","Sales-Route/Vendor":"Sales-Route/Vendor","Boiler Oper/Maker":"Boiler Operator/Maker","Bricklayer/Mason":"Bricklayer/Mason",Carpenter:"Carpenter","Carpet Installer":"Carpet Installer","Concrete Worker":"Concrete Worker","Constrct Proj Mgr":"Construction - Project Manager",Contractor:"Contractor","Crane Operator":"Crane Operator","Electrician/Linesmn":"Electrician/Linesman","ElevatorTech/Instl":"Elevator Technician/Installer","FloorLayer/Finisher":"Floor Layer/Finisher","Foreman/Supervisor":"Foreman/Supervisor",Handyman:"Handyman","Heat/Air Technician":"Heat/Air Technician",Inspector:"Inspector",Metalworker:"Metalworker",Miner:"Miner","Oil/GasDril/RigOpr":"Oil/Gas Driller/Rig Operator",Painter:"Painter","Plstr/Drywall/Stuc":"Plaster/Drywall/Stucco",Plumber:"Plumber",Roofer:"Roofer",Disabled:"Disabled","Audio-Visual Tech.":"Audio-Visual Tech.","Child/DayCare Wrker":"Child/Daycare Worker",Counselor:"Counselor","Grad. Teaching/Asst":"Graduate Teaching Assistant","Instructor-Vocation":"Instructor-Vocation","Librarian/Curator":"Librarian/Curator","Professor, College":"Professor, College",Superintendent:"Superintendent","Teacher, College":"Teacher, College","Teacher, K-12":"Teacher, K-12","Teaching Asst/Aide":"Teaching Assistant/Aide",Tutor:"Tutor",Actuary:"Actuary",Analyst:"Analyst",Architect:"Architect","Clinical Data Coord.":"Clinical Data Coordinator",Drafter:"Drafter",Engineer:"Engineer","Manager-Project":"Manager-Project","Manager-R&D":"Manager-R&D",Mathematician:"Mathematician","Research Prog. Dir.":"Research Program Director",Researcher:"Researcher",Scientist:"Scientist",Sociologist:"Sociologist","Surveyor/Mapmaker":"Surveyor/Mapmaker",Technician:"Technician",Attorney:"Attorney","Chief Executive":"Chief Executive",Commissioner:"Commissioner","Council member":"Council member","Enlst Mil Prsnl E1-4":"Enlisted Military Personnel (E1-4)",Legislator:"Legislator","Mayor/City Manager":"Mayor/City Manager","Meter Reader":"Meter Reader","NCO (E5-9)":"NCO (E5-9)","Officer-Commissiond":"Officer-Commissioned","Officer-Warrant":"Officer-Warrant","Park Ranger":"Park Ranger",Planner:"Planner",Postmaster:"Postmaster",Regulator:"Regulator","US Postal Worker":"US Postal Worker","Homemaker/Houseprsn":"Homemaker/House person","Engineer-Hardware":"Engineer-Hardware","Engineer-Software":"Engineer-Software","Engineer-Systems":"Engineer-Systems","Manager-Systems":"Manager-Systems","Network Admin":"Network Administrator",Programmer:"Programmer","Project Coordinator":"Project Coordinator","Support Technician":"Support Technician","Systems Security":"Systems Security","Technical Writer":"Technical Writer","Web Developer":"Web Developer","Actuarial Clerk":"Actuarial Clerk","Agent/Broker":"Agent/Broker","Claims Adjuster":"Claims Adjuster","Product Manager":"Product Manager","Sales Rep":"Sales Representative","Airport Sec Ofcr":"Airport Security Officer","Animal Control Ofcr":"Animal Control Officer",Bailiff:"Bailiff","Corrections Officer":"Corrections Officer","Court Clrk/Reporter":"Court Clerk/Reporter","Deputy Sheriff":"Deputy Sheriff",Dispatcher:"Dispatcher",Examiner:"Examiner","Fed Agt/Marshall":"Federal Agent/Marshall","Fire Chief":"Fire Chief","Fire Fighter/Supv.":"Fire Fighter/Supervisor","Gaming Ofcr/Invest":"Gaming Officer/Investigator","Highway Patrol Ofcr":"Highway Patrol Officer","Judge/Hearing Ofcr":"Judge/Hearing Officer","Legal Asst./Sec":"Legal Assistant/Secretary","Paralegal/Law Clerk":"Paralegal/Law Clerk","Police Chief":"Police Chief","Police Det/Investgr":"Police Detective/Investigator","Police Offcr/Supvr":"Police Officer/Supervisor","Process Server":"Process Server","Prvt Invest/Detec.":"Private Investigator/Detective","Security Guard":"Security Guard",Sheriff:"Sheriff","Bldg Maint Engineer":"Building Maintenance Engineer","Custodian/Janitor":"Custodian/Janitor",Electrician:"Electrician","Field Service Tech.":"Field Service Technician","Heat/AirCond Repair":"Heat/Air Conditioner Repairman","Housekeeper/Maid":"Housekeeper/Maid","Lndscpe/Grnds Maint":"Landscape/Grounds Maintenance","Maint Mechanic":"Maintenance Mechanic",Mechanic:"Mechanic","Factory Worker":"Factory Worker","Furniture Finisher":"Furniture Finisher",Jeweler:"Jeweler","Machine Operator":"Machine Operator",Packer:"Packer","Plant Manager":"Plant Manager","Printer/Bookbinder":"Printer/Bookbinder","Quality Control":"Quality Control","Refining Operator":"Refining Operator",Shoemaker:"Shoemaker","Tailor/Custom Sewer":"Tailor/Custom Sewer","Textile Worker":"Textile Worker",Upholsterer:"Upholsterer","Assist-Med/Dent/Vet":"Assistant - Medic/Dent/Vet",Clergy:"Clergy","Client Care Worker":"Client Care Worker","Dental Hygenist":"Dental Hygienist",Dentist:"Dentist",Doctor:"Doctor","Hospice Volunteer":"Hospice Volunteer",Mortician:"Mortician","Nurse - C.N.A.":"Nurse - C.N.A.","Nurse - LPN":"Nurse - LPN","Nurse - RN":"Nurse - RN","Nurse Practitioner":"Nurse Practitioner",Optometrist:"Optometrist","Paramedic/EM Tech":"Paramedic/E.M. Technician",Pharmacist:"Pharmacist","Social Worker":"Social Worker","Support Services":"Support Services",Therapist:"Therapist",Veterinarian:"Veterinarian",Caregiver:"Caregiver","Dry Cleaner/Laundry":"Dry Cleaner/Laundry","Hair Stylist/Barber":"Hair Stylist/Barber",Housekeeper:"Housekeeper",Manicurist:"Manicurist",Masseuse:"Masseuse",Nanny:"Nanny","Pet Services":"Pet Services",Baker:"Baker",Bartender:"Bartender",Bellhop:"Bellhop","Bus Person":"Bus Person",Caterer:"Caterer",Chef:"Chef",Concessionaire:"Concessionaire",Concierge:"Concierge","Cook-Rest/Cafeteria":"Cook - Restaurant/Cafeteria","Cook/Wrkr-Fast Food":"Cook/Worker-Fast Food","Delivery Person":"Delivery Person","Desk Clerk":"Desk Clerk",Dishwasher:"Dishwasher","Food Prod/Packing":"Food Production/Packing","Host/Maitre d":"Host/Maitre d",Manager:"Manager",Valet:"Valet","Waiter/Waitress":"Waiter/Waitress","Wine Steward":"Wine Steward",Retired:"Retired","Activity/Recre.Asst":"Activity/Recreational Assistant",Agent:"Agent",Athlete:"Athlete","CampCounselor/Lead":"Camp Counselor/Lead",Coach:"Coach","Director, Program":"Director, Program","Event Mgr/Promoter":"Event Manager/Promoter","Life Guard":"Life Guard","Mgr - Fitness Club":"Manager - Fitness Club","Sales-Tkt/Mmbrshp":"Sales-Ticket/Membership","SportsBrdcstr/Journ":"Sports Broadcaster/Journalist","Trainer/Instructor":"Trainer/Instructor","Umpire/Referee":"Umpire/Referee","Graduate Student":"Graduate Student","High school":"High school",Undergraduate:"Undergraduate","Air Traffic Control":"Air Traffic Control","Airport Ops Crew":"Airport Operations Crew","Bellhop/Porter":"Bellhop/Porter","Crane Loader/Oper":"Crane Loader/Operator","Driver-Bus/Strcar":"Driver - Bus/Streetcar","Driver-Taxi/Limo":"Driver-Taxi/Limo","Driver-Truck/Delvry":"Driver-Truck/Delivery","Flight Attendant":"Flight Attendant","Forklift Operator":"Forklift Operator",Laborer:"Laborer",Longshoreman:"Longshoreman","Mate/Sailor":"Mate/Sailor","Mgr Warehse/Dist":"Manager - Warehouse/District","Parking Lot Attend":"Parking Lot Attendant","Pilot/Capt/Eng":"Pilot/Captain/Engineer","Railroad Worker":"Railroad Worker","Shipping/RecClk":"Shipping/Receiving Clerk","Subway/LgtRail Oper":"Subway/Light Rail Operator","Ticket Agent":"Ticket Agent","Transportation Spec":"Transportation Specialist",Unemployed:"Unemployed"},eh=V1,f0=P1;function Cc(n,r){if(typeof n!="string")return n;const l=n.trim();if(!l)return n;if(r[l])return l;const o=l.toLowerCase();return Object.keys(r).find(f=>f.toLowerCase()===o||r[f]?.toLowerCase()===o)??n}function Oo(n){return Cc(n,c0)}function d0(n){return Cc(n,s0)}function m0(n){return Cc(n,f0)}function K1(n){return n.trim().toLowerCase()}function th(n){if(typeof n!="string")return null;const r=n.match(/^(\d{4})-(\d{2})-(\d{2})$/);if(!r)return null;const l=Number(r[1]),o=Number(r[2]),c=Number(r[3]);if(!Number.isFinite(l)||!Number.isFinite(o)||!Number.isFinite(c)||o<1||o>12||c<1||c>31)return null;const f=new Date(Date.UTC(l,o-1,c));return f.getUTCFullYear()!==l||f.getUTCMonth()!==o-1||f.getUTCDate()!==c?null:f.getTime()}function zr(n,r){if(!r.effectiveDateKey||!r.expirationDateKey)return!1;const l=th(n[r.expirationDateKey]),o=th(n[r.effectiveDateKey]);return l==null||o==null?!1:l<o}const Q1=new Set(["HomePolicy","BundlePolicy"]);function po(n,r,l){return String(n.key??"")!=="lapse_in_coverage"||!l||!Q1.has(l)?!0:r.home_prior_carrier_name!=="NoPriorInsurance"}function Oc(n){let r=null,l=null,o=null;const c=new Set,f=new Set,m=p=>{const y=String(p.key??""),A=K1(String(p.question??""));!r&&(y==="auto_prior_carrier_name"||y==="home_prior_carrier_name"||A.includes("current auto insurance company"))&&(r=y),!l&&(y==="effective_date"||A.includes("when do you need your insurance to begin"))&&(l=y),!o&&(y==="auto_prior_expiration_date"||y==="home_prior_expiration_date"||A.includes("when does the current policy expire"))&&(o=y),(y==="auto_reason_for_no_insurance"||A.includes("reason you are not currently insured")||A.includes("reason for lapse in coverage"))&&c.add(y),(y==="auto_prior_years"||y==="auto_prior_months"||y==="auto_continuous_coverage_years"||y==="auto_prior_expiration_date"||y==="auto_current_annual_premium_cents"||y==="auto_prior_liability_limit")&&f.add(y)};n.forEach(m);const _=p=>{p.forEach(y=>{(y.conditionals??[]).forEach(A=>{const D=A.conditionalQuestions??[];D.forEach(m),_(D)})})};return _(n),{currentCarrierKey:r,effectiveDateKey:l,expirationDateKey:o,noInsuranceReasonKeys:c,hideWhenNoPriorInsuranceKeys:f}}function Yi(n,r){return r.currentCarrierKey==="home_prior_carrier_name"&&n.home_prior_carrier_name==="NoPriorInsurance"&&n.auto_prior_carrier_name!=="NoPriorInsurance"?!1:(r.currentCarrierKey?n[r.currentCarrierKey]:void 0)==="NoPriorInsurance"?!0:!r.effectiveDateKey||!r.expirationDateKey||r.expirationDateKey==="home_prior_expiration_date"&&zr(n,r)?!1:zr(n,r)}function yo(n,r,l){const o=String(n.key??"");if(l.noInsuranceReasonKeys.has(o)&&l.currentCarrierKey==="home_prior_carrier_name"&&r.home_prior_carrier_name==="NoPriorInsurance"&&r.auto_prior_carrier_name!=="NoPriorInsurance")return!1;const f=(l.currentCarrierKey?r[l.currentCarrierKey]:void 0)==="NoPriorInsurance";return f&&l.hideWhenNoPriorInsuranceKeys.has(o)?!1:!l.noInsuranceReasonKeys.has(o)||f?!0:Yi(r,l)}function Mo(n,r){const l=String(n.key??"");return r.noInsuranceReasonKeys.has(l)}const X1=["ACURA","ALFA ROMEO","ASTON MARTIN","AUDI","BENTLEY","BMW","BUGATTI","BUICK","CADILLAC","CHEVROLET","CHRYSLER","CRUISE","DODGE","FERRARI","FIAT","FORD","FREIGHTLINER","GENESIS","GLOBAL ELECTRIC MOTORS","GMC","HONDA","HYUNDAI","INFINITI","JAGUAR","JEEP","KARMA AUTOMOTIVE","KIA","LAMBORGHINI","LAND ROVER","LEXUS","LINCOLN","LOTUS","MASERATI","MAZDA","MCLAREN AUTOMOTIVE","MERCEDES-BENZ","MINI","MITSUBISHI","NISSAN","POLESTAR","PORSCHE","RAM","ROLLS-ROYCE","SUBARU","TESLA","TOYOTA","VOLKSWAGEN","VOLVO"],Mc="credify_quote_id",Nc="credify_auth_token";function W1(n){try{localStorage.setItem(Mc,n)}catch(r){console.error("Failed to save quoteId to localStorage:",r)}}function J1(){try{return localStorage.getItem(Mc)}catch(n){return console.error("Failed to load quoteId from localStorage:",n),null}}function _0(){try{localStorage.removeItem(Mc)}catch(n){console.error("Failed to clear quoteId from localStorage:",n)}}function eE(n){try{localStorage.setItem(Nc,n)}catch(r){console.error("Failed to save authToken to localStorage:",r)}}function tE(){try{return localStorage.getItem(Nc)}catch(n){return console.error("Failed to load authToken from localStorage:",n),null}}function h0(){try{localStorage.removeItem(Nc)}catch(n){console.error("Failed to clear authToken from localStorage:",n)}}function nE(){_0(),h0()}const bn="https://api.getcredify.com";let kr=null;function aE(n){kr=n,eE(n)}function go(){return kr}function fc(){const n=tE();n&&(kr=n)}function p0(){kr=null,h0()}async function Sn(n,r){const l={"Content-Type":"application/json"};kr&&(l.Authorization=`Bearer ${kr}`);const o=await fetch(n,{method:"POST",headers:l,body:JSON.stringify(r)});if(!o.ok){let c=`Request failed with status ${o.status}`;try{c=(await o.json()).error||c}catch{c=o.statusText||c}const f=new Error(c);throw f.statusCode=o.status,f}return o}async function rE(n){try{return await n.json()}catch{return{}}}async function iE(n,r){const l=r?{stage:n,quoteId:r}:{stage:n};return await(await Sn(`${bn}/get-questions-by-stage`,l)).json()}async function mo(n){const r=n?{quoteId:n}:{};return await(await Sn(`${bn}/get-stages-for-quote`,r)).json()}async function lE(n){const l=await(await Sn(`${bn}/create-quote`,{phone:n})).json();if(!l||typeof l!="object"||!l.quoteId)throw new Error(`Invalid createQuote response: ${JSON.stringify(l)}`);return l}async function ki(n,r,l){const o={payload:n,getRates:r};l&&typeof l=="string"&&l.trim()!==""&&(o.quoteId=l);const c=await Sn(`${bn}/update-quote`,o),f=await rE(c);return!f||typeof f!="object"||!("status"in f)||f.status==null?{status:"success"}:f}async function oE(n,r){return await(await Sn(`${bn}/verify-quote`,{quoteId:n,smsCode:r})).json()}async function uE(n){return await(await Sn(`${bn}/is-supported-state`,{state:n})).json()}async function nh(){return await(await Sn(`${bn}/get-rates`,{})).json()}async function ah(n){const r=n?{quoteId:n}:{};return await(await Sn(`${bn}/get-quote`,r)).json()}async function rh(n){return(await Sn(`${bn}/get-vehicle-options`,n)).json()}async function sE(n){return(await Sn(`${bn}/get-vehicle-options`,{...n,action:"vinDecode"})).json()}async function cE(n){const l=await(await Sn(`${bn}/request-bind`,{quoteRateId:n})).json();return l&&typeof l=="object"&&"success"in l?l:{success:!0}}const Xs=new Set(["auto_prior_years","auto_prior_months","auto_continuous_coverage_years"]),fE={None:"None","30000/60000/25000":"30/60k","30000/60000/30000":"30/60k","50000/100000/30000":"50/100k","50000/100000/50000":"50/100k","100000/300000/50000":"100/300k","100000/300000/100000":"100/300k","250000/500000/100000":"250/500k","250000/500000/250000":"250/500k","300000/500000/250000":"300/500k","300000/500000/300000":"300/500k","500000/500000/300000":"500k CSL","500000/500000/500000":"500k CSL","500000/1000000/300000":"500k/1M","500000/1000000/500000":"500k/1M"},ih={auto_prior_carrier_name:t1,auto_prior_liability_limit:i1,auto_reason_for_no_insurance:l1,residence_type:n1,home_prior_carrier_name:a1,policy_bi:o1,policy_um:u1,policy_pd:s1,policy_mp:c1,policy_umpd:f1,policy_pip:d1,policy_auto_death_indemnity:m1,vehicle_comp_deductible:sc,vehicle_coll_deductible:sc,vehicle_towing_and_labor:cc,vehicle_transportation_expense:u0,education_level:s0,industry:c0,occupation:f0,usage:r1,architectural_style:v1,dwelling_type:b1,occupancy_type:S1,construction_quality:A1,construction_type:E1,foundation_type:T1,located_over_water:C1,number_of_stories:O1,exterior_wall_type:M1,roof_material_type:N1,roof_shape:D1,roof_updated_type:x1,heating_type:R1,oil_tank_location:w1,basement_type:L1,plumbing_type:z1,personal_liability:B1,dwelling_medical_payments:k1,all_perils_deductible:U1,windstorm_deductible:j1,distance_from_fire_hydrant_ft:H1,distance_from_fire_station_miles:I1,employment_industry:X_,marital_status:W_,gender:J_,co_applicant_employment_industry:X_,co_applicant_marital_status:W_,co_applicant_gender:J_,description:$1,tort_threshold:G1,pip_coverage_type:Z1,extended_medical:F1,additional_pip:Y1,policy_pip_deductible:q1},dE=["OTHER / NOT LISTED"],mE=["SEDAN","SUV","COUPE","HATCHBACK","PICKUP","VAN","WAGON","OTHER"],_E=["Other"];function Jt(n){const r=n.getUTCFullYear(),l=String(n.getUTCMonth()+1).padStart(2,"0"),o=String(n.getUTCDate()).padStart(2,"0");return`${r}-${l}-${o}`}function lh(n){const r=n.replace(/\D+/g,"");if(r!=="")return e1(r)}function hE(n){return n==="-"||n==="+"||n==="."||n==="e"||n==="E"}const pE={year_built:4,year_roof_updated:4,heating_update_year:4,plumbing_update_year:4,electrical_update_year:4,total_area_sq_ft:6,sale_price_cents:9,dwelling_replacement_cost:9,other_structures_coverage:9,personal_property_coverage:7,amount_paid_cents:7,loss_of_use_coverage:8,home_prior_years:2,home_continuous_coverage_years:2,number_of_dogs:2,number_of_units:2,months_at_address:2,years_at_address:3,years_at_prior_address:3,distance_to_coast_miles:4,household_size:1,number_of_families:1,number_of_mortgagees:1,annual_mileage:6,miles_to_work:4,custom_equipment_value_cents:7,cost_new_value_cents:7,stated_value_amount_cents:7,property_damage_amount_paid_cents:7,personal_injury_amount_paid_cents:7,auto_current_annual_premium_cents:7,auto_prior_years:2,auto_prior_months:2,auto_continuous_coverage_years:2},oh=new Set(["sale_price_cents","dwelling_replacement_cost","other_structures_coverage","personal_property_coverage","loss_of_use_coverage","custom_equipment_value_cents","cost_new_value_cents","stated_value_amount_cents","property_damage_amount_paid_cents","personal_injury_amount_paid_cents","auto_current_annual_premium_cents","amount_paid_cents"]),yE=new Set(["total_area_sq_ft","annual_mileage","miles_to_work","distance_to_coast_miles"]),_o={first_name:"given-name",last_name:"family-name",co_applicant_first_name:"given-name",co_applicant_last_name:"family-name",date_of_birth:"bday",co_applicant_date_of_birth:"bday",sms_code:"one-time-code",vin:"off",license_number:"off",effective_date:"off"},gE={license_number:20};function vE(n){const r=new Date,l=new Date(Date.UTC(r.getUTCFullYear(),r.getUTCMonth(),r.getUTCDate()));if(n==="effective_date"){const o=new Date(Date.UTC(l.getUTCFullYear(),l.getUTCMonth()+3,l.getUTCDate()));return{min:Jt(l),max:Jt(o)}}if(n==="home_prior_expiration_date"){const o=new Date(Date.UTC(l.getUTCFullYear()-1,l.getUTCMonth(),l.getUTCDate())),c=new Date(Date.UTC(l.getUTCFullYear()+1,l.getUTCMonth(),l.getUTCDate()));return{min:Jt(o),max:Jt(c)}}if(n==="date_of_incident")return{max:Jt(l)};if(n==="move_in_date")return{max:Jt(l)};if(n==="purchase_date")return{max:Jt(l)};if(n==="date_of_birth")return{max:Jt(l)};if(n==="date_first_licensed")return{max:Jt(l)};if(n==="occurred_at")return{max:Jt(l)};if(n==="accident_prevention_course_date")return{max:Jt(l)};if(n==="auto_prior_expiration_date"){const o=new Date(Date.UTC(l.getUTCFullYear()-1,l.getUTCMonth(),l.getUTCDate())),c=new Date(Date.UTC(l.getUTCFullYear()+1,l.getUTCMonth(),l.getUTCDate()));return{min:Jt(o),max:Jt(c)}}return{}}const bE=new Set(["Disabled","Retired","Unemployed","Other"]);function Ws(n,r,l){const o=String(n.key??"");if(o!=="occupation"&&o!=="co_applicant_occupation"||o==="co_applicant_occupation")return!0;const c=Lt(r,l,"industry"),f=Lt(r,l,"employment_industry"),m=String(c??f??"").trim();return!bE.has(m)}function Js(n,r,l,o){return i0(n,o,l)}function vo(n){return n.inputType!=="radio"||!n.options||n.options.length!==1||n.options[0]!=="Yes"?!1:(n.conditionals??[]).some(l=>l.conditionalQuestionsAllowMultiple&&l.conditionalType==="equals"&&l.conditionalValue==="Yes")}function uh(n,r){return vo(n)?"Yes":r}function sh(n){return typeof n=="number"&&Number.isFinite(n)?n:typeof n=="string"&&n.trim()!==""&&!Number.isNaN(Number(n))?Number(n):null}function ch(n){if(n instanceof Date&&!Number.isNaN(n.getTime()))return n.getTime();if(typeof n=="string"){const r=Date.parse(n);return Number.isNaN(r)?null:r}return null}function fh(n,r){const l=sh(n),o=sh(r);if(l!=null&&o!=null)return l-o;const c=ch(n),f=ch(r);return c!=null&&f!=null?c-f:n==null||r==null?null:String(n).localeCompare(String(r))}function SE(n,r){return Array.isArray(n)?n.some(l=>l===r):typeof n=="string"?r!=null&&n.includes(String(r)):!1}function Ui(n,r,l){switch(r){case"equals":return n===l;case"notEquals":return n!==l&&n!==""&&n!=null;case"lessThan":{const o=fh(n,l);return o!=null&&o<0}case"greaterThan":{const o=fh(n,l);return o!=null&&o>0}case"contains":return SE(n,l);case"startsWith":return n!=null&&l!=null&&String(n).startsWith(String(l));case"endsWith":return n!=null&&l!=null&&String(n).endsWith(String(l));default:return!1}}function $i(n,r){return r.reduce((l,o)=>l?.[o],n)}function vn(n,r,l){if(r.length===0)return n;const[o,...c]=r;if(c.length===0){if(typeof o=="number"){const y=(Array.isArray(n)?n:[]).slice();return y[o]=l,y}return{...n,[o]:l}}const f=n?.[o],m=typeof c[0]=="number"?Array.isArray(f)?f:[]:f&&typeof f=="object"?f:{},_=vn(m,c,l);if(typeof o=="number"){const y=(Array.isArray(n)?n:[]).slice();return y[o]=_,y}return{...n,[o]:_}}function Lt(n,r,l){return $i(n,[...r??[],l])}function wt(n,r,l,o){return vn(n,[...r??[],l],o)}function AE(n,r){return n?.length?`${n.join("-")}-${r}`:r}const EE="__items",ho=n=>`${n}${EE}`;function $t(n){return n==null?"":typeof n=="string"?n:String(n)}function dh(n){return n==null?"":typeof n=="number"&&Number.isFinite(n)||typeof n=="string"?n:""}function TE(n){return n==null?"":typeof n=="string"||typeof n=="number"?n:String(n)}function CE({questions:n,initialValues:r,controlledValues:l,onChangeValues:o,onSubmit:c,quoteId:f,widgetStageKey:m}){const _=I.useMemo(()=>yc(n),[n]),p=I.useMemo(()=>Oc(_),[_]),y=I.useMemo(()=>m==="BundlePolicy"?!0:_.some(O=>String(O.key)==="home_prior_carrier_name")&&_.some(O=>String(O.key)==="driver_vehicle_assignments"),[m,_]),A=I.useMemo(()=>{const O={};return r&&Object.assign(O,r),O},[r]),[D,k]=I.useState(A);I.useEffect(()=>{k(A)},[A]);const[j,G]=I.useState({}),U=I.useMemo(()=>({...j,...l??D}),[j,l,D]);I.useEffect(()=>{l&&G(O=>({...O,...l}))},[l]);const[ue,oe]=I.useState({}),_e=I.useRef(new Map),ee=I.useRef(new Set),[,re]=I.useState({}),[W,le]=I.useState({}),ne=I.useRef(!1);I.useEffect(()=>{!f||ne.current||!_.some(T=>T.key==="year"||T.key==="make"||T.key==="model"||T.key==="body_style")||(ne.current=!0,rh({quoteId:f}).catch(()=>{}))},[f,_]);const[Ae,te]=I.useState({}),[xe,ve]=I.useState({}),Le=I.useCallback(async(O,T)=>{if(!f||!Q_(T))return;const S=O?O.join("-"):"_root";te(H=>({...H,[S]:!0})),ve(H=>({...H,[S]:null}));try{const H=await sE({quoteId:f,vin:T});if(H.error){ve(V=>({...V,[S]:H.error}));return}let w=U;H.year&&(w=wt(w,O,"year",String(H.year))),H.make&&(w=wt(w,O,"make",H.make)),H.model&&(w=wt(w,O,"model",H.model)),H.bodyStyle&&(w=wt(w,O,"body_style",H.bodyStyle)),l&&o?o(w):k(w),G(w),_e.current.clear(),ee.current.clear(),re({})}catch{ve(H=>({...H,[S]:"VIN lookup failed — please enter vehicle details manually"}))}finally{te(H=>({...H,[S]:!1}))}},[f,U,l,o]),Ke=I.useCallback(O=>{const T=`${O.year}|${O.make??""}|${O.model??""}`,S=O.model?"bodyStyles":O.make?"models":"makes",H=_e.current.get(T);return H?H[S]??[]:void 0},[]),We=I.useCallback((O,T)=>{if(!f)return;const S=`${T.year}|${T.make??""}|${T.model??""}`,H=T.model?"bodyStyles":T.make?"models":"makes",w=`${O}:${H}`;_e.current.has(S)||ee.current.has(S)||(ee.current.add(S),le(V=>({...V,[w]:!0})),rh({quoteId:f,...T}).then(V=>{_e.current.set(S,V),re(K=>({...K,[w]:V[H]??[]}))}).catch(()=>{_e.current.set(S,{}),re(V=>({...V,[w]:[]}))}).finally(()=>{ee.current.delete(S),le(V=>({...V,[w]:!1}))}))},[f]);function fe(O,T,S){const H=U,w=O?$i(U,O)??{}:H;return O?{state:H.state,...w,[T]:S}:{...w,[T]:S}}function v(O,T){const S=o0.filter(w=>w.targetKey===O||w.dependsOn.includes(O)),H={[O]:void 0};for(const w of S){const V=w.validate(T);w.targetKey in H?V!==void 0&&(H[w.targetKey]=V):H[w.targetKey]=V}oe(w=>({...w,...H}))}const R=(O,T,S)=>{const H=Lt(U,S,O);if(va(H,T)){ue[O]&&oe(V=>({...V,[O]:void 0}));return}const w=oc(O,H);if(w){oe(V=>({...V,[O]:w}));return}v(O,fe(S,O,H))};I.useEffect(()=>{let O=U,T=!1;_.forEach(S=>{if(!vo(S))return;const H=String(S.key);Lt(O,void 0,H)!=="Yes"&&(O=wt(O,void 0,H,"Yes"),T=!0)}),T&&(l&&o?o(O):k(O),G(O))},[_,U,l,o]);function Y(O,T){const S=O.key;if((S==="relationship_to_insured"||S==="is_registered_owner")&&T){const Q=T[T.length-1];if(typeof Q=="number"&&Q===0)return null}if((S==="purchase_date"||S==="cost_new_value_cents")&&T)return null;if(S==="custom_equipment_value_cents"&&T){const Q=Lt(U,T,"vehicle_has_modifications");if(Q!=="Yes"&&Q!==!0)return null}const H=S==="auto_reason_for_no_insurance"&&p.currentCarrierKey?U[p.currentCarrierKey]==="NoPriorInsurance"?"Reason you are not currently insured":"Reason for lapse in coverage":O.question,w=O.hint,V=Lt(U,T,S),K=Mo(O,p)?Yi(U,p):S==="social_security_number"&&To(U.state??U.State)?!0:O.required,ie=ue[S],Se=Q=>{let X=wt(U,T,S,Q);if(O.inputType==="radio"&&O.conditionals){const J=O.conditionals??[];for(const de of J){const ke=Lt(U,T,S),Ie=Ui(ke,de.conditionalType,de.conditionalValue),he=Ui(Q,de.conditionalType,de.conditionalValue);if(Ie&&!he&&de.conditionalQuestionsAllowMultiple){const Qe=de.conditionalQuestions??[];if(Qe.length>0){const se=ho(S);X=vn(X,[...T??[],se],[]);const $e=(Ee,ze)=>{Ee.forEach(Je=>{(Je.conditionals??[]).forEach(Ft=>{if(Ft.conditionalQuestionsAllowMultiple){const Be=ho(Je.key);X=vn(X,[...ze,Be],[])}const Yt=Ft.conditionalQuestions??[];Yt.length>0&&$e(Yt,ze)})})};$e(Qe,[...T??[],se])}}}}l&&o?o(X):k(X),G(X)};if(S==="vehicle_policy_selections"){const Q=U.vehicles__items??[],X=U.drivers__items??[];if(Q.length===0)return g.jsx("p",{style:{color:"#666",fontStyle:"italic"},children:"Add vehicles first to configure coverage selections."},S);const J=U.driver_vehicle_assignments??{},de=X.length>1,ke=Be=>Object.entries(Be).map(([Me,je])=>({value:Me,label:je})),Ie=To(U.state??U.State),he=(Be,Me)=>Object.fromEntries(Be.filter(je=>je in Me).map(je=>[je,Me[je]])),se=ke(he(Ie?_1:h1,sc)),$e=Ie?he(p1,cc):cc,Ee=ke($e),Je=ke(he(Ie?y1:g1,u0)),At=(Be,Me,je)=>{const ft=vn(U,["vehicles__items",Be,Me],je);l&&o?o(ft):k(ft),G(ft)},Ft=(Be,Me,je)=>{const ft={...J},Nt=`v${Be}`;ft[Nt]={...ft[Nt]??{}},ft[Nt][`d${Me}`]=je;const Re=vn(U,["driver_vehicle_assignments"],ft);l&&o?o(Re):k(Re),G(Re)},Yt=Be=>{if(!de)return null;const Me=J[`v${Be}`];if(!Me)return null;const je=X.map((Re,yt)=>Me[`d${yt}`]??0),ft=je.filter(Re=>Re>0);if(ft.length>=2&&ft.every(Re=>Re===ft[0])&&ft[0]===50)return`Assignments for Vehicle ${Be+1} cannot be 50 percent for both Drivers.`;const Nt=je.reduce((Re,yt)=>Re+yt,0);return Nt>0&&Nt!==100?`Driver percentages for this vehicle must add up to 100% (currently ${Nt}%).`:null};return g.jsx("div",{children:Q.map((Be,Me)=>{const je=[Be.year,Be.make,Be.model].filter(Boolean).join(" ")||`Vehicle ${Me+1}`,ft=Yt(Me),Nt=Re=>typeof Be[Re]=="string"?Be[Re]:"";return g.jsxs("fieldset",{style:{border:`1px solid ${ft?"#dc3545":"#ddd"}`,borderRadius:"8px",padding:"16px",marginBottom:"16px"},children:[g.jsx("legend",{style:{fontWeight:600,padding:"0 8px"},children:je}),g.jsxs("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(200px, 1fr))",gap:"12px"},children:[g.jsx(zi,{id:`veh-${Me}-comp`,label:"Comprehensive deductible",required:!0,placeholder:"Select...",options:se,value:Nt("vehicle_comp_deductible"),onChange:Re=>At(Me,"vehicle_comp_deductible",Re.currentTarget.value)}),g.jsx(zi,{id:`veh-${Me}-coll`,label:"Collision deductible",required:!0,placeholder:"Select...",options:se,value:Nt("vehicle_coll_deductible"),onChange:Re=>At(Me,"vehicle_coll_deductible",Re.currentTarget.value)}),g.jsx(zi,{id:`veh-${Me}-tow`,label:"Towing and Labor",required:!0,placeholder:"Select...",options:Ee,value:Nt("vehicle_towing_and_labor"),onChange:Re=>At(Me,"vehicle_towing_and_labor",Re.currentTarget.value)}),g.jsx(zi,{id:`veh-${Me}-trans`,label:"Transportation expense",required:!0,placeholder:"Select...",options:Je,value:Nt("vehicle_transportation_expense"),onChange:Re=>At(Me,"vehicle_transportation_expense",Re.currentTarget.value)})]}),de&&g.jsxs("div",{style:{marginTop:"16px"},children:[g.jsx("p",{style:{fontWeight:600,margin:"0 0 8px"},children:"Drivers usage (%)"}),g.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:"12px"},children:X.map((Re,yt)=>{const tn=[Re.first_name,Re.last_name].filter(Boolean).join(" ")||`Driver ${yt+1}`,nn=J[`v${Me}`]?.[`d${yt}`];return g.jsx("div",{style:{flex:"0 0 140px"},children:g.jsx(qs,{id:`assignment-v${Me}-d${yt}`,label:`${tn} %`,value:nn??"",min:0,max:100,step:1,inputMode:"numeric",onChange:_n=>{const Dn=_n.currentTarget.value.replace(/\D+/g,"");Ft(Me,yt,Dn===""?0:Math.min(100,parseInt(Dn,10)))}})},`${Me}-${yt}`)})}),ft&&g.jsx("p",{style:{color:"#dc3545",fontSize:"0.85rem",marginTop:"8px",marginBottom:0},children:ft})]})]},Me)})},S)}if(S==="driver_vehicle_assignments"){const Q=U.vehicles__items??[],X=U.drivers__items??[];if(y&&X.length<=1)return null;if(Q.length===0||X.length===0)return g.jsx("p",{style:{color:"#666",fontStyle:"italic"},children:"Add vehicles and drivers first to configure driver usage percentages."},S);const J=U.driver_vehicle_assignments??{},de=(Ie,he,Qe)=>{const se={...J},$e=`v${Ie}`;se[$e]={...se[$e]??{}},se[$e][`d${he}`]=Qe,Se(se)},ke=Ie=>{if(X.length<2)return null;const he=J[`v${Ie}`];if(!he)return null;const Qe=X.map((Ee,ze)=>he[`d${ze}`]??0),se=Qe.filter(Ee=>Ee>0);if(se.length>=2&&se.every(Ee=>Ee===se[0])&&se[0]===50)return`Assignments for Vehicle ${Ie+1} cannot be 50 percent for both Drivers.`;const $e=Qe.reduce((Ee,ze)=>Ee+ze,0);return $e>0&&$e!==100?`Driver percentages for this vehicle must add up to 100% (currently ${$e}%).`:null};return g.jsxs("div",{children:[g.jsx("h4",{style:{marginBottom:"12px"},children:H}),Q.map((Ie,he)=>{const Qe=[Ie.year,Ie.make,Ie.model].filter(Boolean).join(" ")||`Vehicle ${he+1}`,se=ke(he);return g.jsxs("fieldset",{style:{border:`1px solid ${se?"#dc3545":"#ddd"}`,borderRadius:"8px",padding:"16px",marginBottom:"16px"},children:[g.jsx("legend",{style:{fontWeight:600,padding:"0 8px"},children:Qe}),g.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:"12px"},children:X.map(($e,Ee)=>{const ze=[$e.first_name,$e.last_name].filter(Boolean).join(" ")||`Driver ${Ee+1}`,Je=J[`v${he}`]?.[`d${Ee}`];return g.jsx("div",{style:{flex:"0 0 140px"},children:g.jsx(qs,{id:`assignment-v${he}-d${Ee}`,label:`${ze} %`,value:Je??"",min:0,max:100,step:1,inputMode:"numeric",onChange:At=>{const Ft=At.currentTarget.value.replace(/\D+/g,"");de(he,Ee,Ft===""?0:Math.min(100,parseInt(Ft,10)))}})},`${he}-${Ee}`)})}),se&&g.jsx("p",{style:{color:"#dc3545",fontSize:"0.85rem",marginTop:"8px",marginBottom:0},children:se})]},he)})]},S)}switch(O.inputType){case"text":{if(S==="vin"&&f){const Q=T?T.join("-"):"_root",X=Ae[Q]??!1,J=xe[Q]??null,de=[w?`${S}-hint`:null,ie?`${S}-error`:null,J?`${S}-vin-error`:null].filter(Boolean).join(" ");return g.jsxs("div",{children:[g.jsx(en,{id:S,label:H,hint:w,error:ie,required:K,children:g.jsxs("div",{className:"flex items-end gap-2",children:[g.jsx("div",{className:"flex-1 min-w-0",children:g.jsx("input",{id:S,className:`form-input ${ie?"input-error":""}`,"aria-invalid":!!ie,"aria-describedby":de||void 0,"aria-required":K||void 0,required:K,value:$t(V),maxLength:17,onChange:ke=>Se(ke.currentTarget.value),onBlur:()=>R(S,"text",T),autoComplete:_o[S],type:"text"})}),g.jsx("button",{type:"button",disabled:X||!Q_($t(V)),className:"btn btn-outline shrink-0 self-end !w-auto min-w-[8.5rem] px-4 whitespace-nowrap disabled:opacity-50",onClick:()=>Le(T,$t(V)),children:X?"Looking up...":"Verify VIN"})]})}),J&&g.jsx("p",{id:`${S}-vin-error`,className:"text-sm text-red-600 mt-1",children:J})]},S)}if(S==="sms_code"){const Q=$t(V);return g.jsx(Ys,{id:S,label:H,hint:w,value:Q,inputMode:"numeric",pattern:"[0-9]*",maxLength:6,onChange:X=>{const J=X.currentTarget.value.replace(/\D+/g,"").slice(0,6);Se(J)},onBlur:()=>R(S,"text",T),"aria-required":K||void 0,error:ie,autoComplete:_o[S]},S)}return S==="license_number"?g.jsx(Ys,{id:S,label:H,hint:w,value:$t(V),onChange:Q=>Se(Q.currentTarget.value.replace(/[^A-Z0-9]/gi,"").slice(0,20)),onBlur:()=>R(S,"text",T),"aria-required":K||void 0,error:ie,autoComplete:"off",maxLength:20},S):S==="social_security_number"?g.jsx(Py,{id:S,label:H,hint:w,value:$t(V),onChange:Q=>Se(Q.currentTarget.value),onBlur:()=>R(S,"text",T),"aria-required":K||void 0,error:ie},S):g.jsx(Ys,{id:S,label:H,hint:w,value:$t(V),onChange:Q=>Se(Q.currentTarget.value),onBlur:()=>R(S,"text",T),"aria-required":K||void 0,error:ie,autoComplete:_o[S],maxLength:gE[S]},S)}case"email":return g.jsx(Ky,{id:S,label:H,value:$t(V),onChange:Q=>Se(Q.currentTarget.value),onBlur:()=>R(S,"email",T),"aria-required":K||void 0,error:ie},S);case"password":return g.jsx(Wy,{id:S,label:H,value:$t(V),onChange:Q=>Se(Q.currentTarget.value),onBlur:()=>R(S,"password",T),"aria-required":K||void 0,error:ie},S);case"tel":return g.jsxs(g.Fragment,{children:[g.jsx(Qy,{id:S,label:H,value:$t(V),onChange:Q=>Se(Q.currentTarget.value),onBlur:()=>R(S,"tel",T),"aria-required":K||void 0,error:ie},S),S==="phone"&&g.jsxs("div",{className:"mt-3 text-xs text-slate-600 space-y-1",children:[g.jsx("p",{children:"By entering your phone number, you agree to receive a one-time SMS from Credify Insurance with a verification code."}),g.jsx("p",{children:"Message & data rates may apply. One message per request."}),g.jsxs("p",{children:["See our"," ",g.jsx("a",{href:"https://getcredify.com/privacy-policy",target:"_blank",rel:"noopener noreferrer",className:"credify-link-underline",children:"Privacy Policy"})," ","and"," ",g.jsx("a",{href:"https://getcredify.com/terms-of-service",target:"_blank",rel:"noopener noreferrer",className:"credify-link-underline",children:"Terms of Service"}),"."]})]})]});case"url":return g.jsx(Xy,{id:S,label:H,value:$t(V),onChange:Q=>Se(Q.currentTarget.value),onBlur:()=>R(S,"url",T),"aria-required":K||void 0,error:ie},S);case"number":{const Q=pE[S];return oh.has(S)||yE.has(S)?g.jsx(Vy,{id:S,label:H,hint:w,value:dh(V),isCurrency:oh.has(S),maxDigits:Q,onChange:X=>Se(lh(X.currentTarget.value)),onBlur:()=>R(S,"number",T),"aria-required":K||void 0,error:ie},S):g.jsx(qs,{id:S,label:H,hint:w,value:dh(V),inputMode:"numeric",pattern:"[0-9]*",onKeyDown:X=>{if(hE(X.key)){X.preventDefault();return}Q!==void 0&&/^\d$/.test(X.key)&&String(X.currentTarget.value).replace(/\D/g,"").length>=Q&&X.preventDefault()},onChange:X=>{let J=X.currentTarget.value;Q!==void 0&&(J=J.slice(0,Q)),Se(lh(J))},onBlur:()=>R(S,"number",T),"aria-required":K||void 0,error:ie},S)}case"textarea":return g.jsx(Jy,{id:S,label:H,value:$t(V),onChange:Q=>Se(Q.currentTarget.value),onBlur:()=>R(S,"textarea",T),"aria-required":K||void 0,error:ie,rows:4},S);case"date":{const{min:Q,max:X}=vE(S);return g.jsx(eg,{id:S,label:H,hint:w,value:$t(V),min:Q,max:X,onChange:J=>{const de=J.currentTarget.value;Se(de),!va(de,"date")&&!oc(S,de)&&v(S,fe(T,S,de))},onBlur:()=>R(S,"date",T),"aria-required":K||void 0,error:ie,autoComplete:_o[S]},S)}case"checkbox":{if(O.options){const Q=Array.isArray(V)?V:[];return g.jsxs("div",{className:"space-y-2",children:[g.jsxs("div",{className:"form-label",children:[H,K&&g.jsx("span",{className:"text-red-600 ml-1",children:"*"})]}),g.jsx("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2",children:O.options.map(X=>{const J=`${S}-${uc(X)}`,de=Q.includes(X);return g.jsx(nc,{id:J,label:X,checked:de,onChange:ke=>{const Ie=new Set(Q);ke.currentTarget.checked?Ie.add(X):Ie.delete(X),Se(Array.from(Ie))},"aria-required":K||void 0},J)})}),ie&&g.jsx("p",{className:"mt-1 text-sm text-red-600",children:ie})]},S)}return g.jsx(nc,{id:S,label:K?`${H} *`:H,checked:!!V,onChange:Q=>Se(Q.currentTarget.checked),"aria-required":K||void 0},S)}case"radio":{if(vo(O))return null;const Q=O.options??[],X=T&&T.length>0?`${S}__${T.join("__")}`:S;return g.jsx(ag,{legend:H,legendClassName:K?"legend-required":void 0,children:Q.map(J=>g.jsx(ng,{name:X,value:J,checked:V===J,onChange:()=>{Se(J),v(S,fe(T,S,J))},children:ih[S]?.[J]??J},`${S}-${uc(J)}`))},S)}case"select":{let Q=O.options??[];S==="quote_vehicle_id"&&(Q=l?.vehicles__items?.map(he=>he.vin)??[]);let X=!1,J,de,ke;if(S==="year"||S==="make"||S==="model"||S==="body_style"){const he=T?T.join("-"):"_root";Ae[he]&&(X=!0,J="Looking up VIN...")}if(!X&&(S==="make"||S==="model"||S==="body_style")){const he=T?T.join("-"):"_root";ke=he;const Qe=Lt(U,T,"year"),se=typeof Qe=="number"?Qe:Number(Qe);if(S==="make"){const $e=`${he}:makes`;if(!se||!Number.isFinite(se))X=!0,J="Select a year first";else{de={year:se};const Ee=Ke(de);Ee&&Ee.length>0?Q=Ee:W[$e]?(X=!0,J="Loading makes..."):Q=[...X1]}}else if(S==="model"){const $e=`${he}:models`,Ee=String(Lt(U,T,"make")??"");if(!Ee)X=!0,J="Select a make first";else if(se&&Number.isFinite(se)){de={year:se,make:Ee};const ze=Ke(de);ze&&ze.length>0?Q=ze:W[$e]?(X=!0,J="Loading models..."):Q=[...dE]}typeof V=="string"&&V&&!Q.includes(V)&&(Q=[V,...Q])}else{const $e=`${he}:bodyStyles`,Ee=String(Lt(U,T,"make")??""),ze=String(Lt(U,T,"model")??"");if(!ze)X=!0,J="Select a model first";else if(se&&Number.isFinite(se)&&Ee){de={year:se,make:Ee,model:ze};const Je=Ke(de);Je&&Je.length>0?Q=Je:W[$e]?(X=!0,J="Loading body styles..."):Q=[...mE]}typeof V=="string"&&V&&!Q.includes(V)&&(Q=[V,...Q])}}if(S==="occupation"||S==="co_applicant_occupation"){const he=S==="co_applicant_occupation"?"co_applicant_employment_industry":void 0,Qe=he?void 0:Lt(U,T,"industry"),se=Lt(U,T,he??"employment_industry"),Ee=String(Oo(Qe??se)??"").trim();Q=[...eh[Ee]??_E],typeof V=="string"&&V&&!Q.includes(V)&&(Q=[V,...Q])}const Ie=AE(T,S);return g.jsx(zi,{id:Ie,label:J?`${H} — ${J}`:H,"aria-required":K||void 0,error:ie,disabled:X,value:TE(V),onChange:he=>{const Qe=he.currentTarget.value;if(S!=="year"&&S!=="make"&&S!=="model"&&S!=="industry"&&S!=="employment_industry"&&S!=="co_applicant_employment_industry"){Se(Qe),v(S,fe(T,S,Qe));return}let se=wt(U,T,S,Qe);if(S==="year")se=wt(se,T,"make",""),se=wt(se,T,"model",""),se=wt(se,T,"body_style","");else if(S==="make")se=wt(se,T,"model",""),se=wt(se,T,"body_style","");else if(S==="model")se=wt(se,T,"body_style","");else if(S==="industry"||S==="employment_industry")se=wt(se,T,"occupation","");else if(S==="co_applicant_employment_industry"){const Ee=String(Oo(Qe)??"").trim(),ze=eh[Ee]??[],Je=ze.find(At=>At===Ee)??ze[0]??"";se=wt(se,T,"co_applicant_occupation",Je??"")}l&&o?o(se):k(se),G(se);const $e=T?$i(se,T)??{}:se;v(S,{...$e,[S]:Qe})},placeholder:J??"Select an option",onFocus:de&&ke?()=>We(ke,de):void 0,options:Q.map(he=>({value:he,label:ih[S]?.[he]??fE[he]??he}))},Ie)}case"address":return g.jsx(og,{id:S,label:H,value:$t(V),onChange:(Q,X)=>{let J=wt(U,T,S,Q);const de=X?.state??(typeof Q=="string"?Q.match(/,\s*([A-Z]{2})\s+\d{5}\b/)?.[1]:void 0);if(de){const ke=T?[...T,"state"]:["state"];J=vn(J,ke,de)}l&&o?o(J):k(J),G(J)},onBlur:()=>R(S,"address",T),required:K,"aria-required":K||void 0,error:ie},S);default:return null}}function P(O,T){return O.map((S,H)=>{const w=String(S.key);if(!yo(S,U,p)||!Ws(S,U,T)||!po(S,U,m))return null;if(Js(w,S,U,m)){const X=p.currentCarrierKey?U[p.currentCarrierKey]:void 0;if(!(X&&X!=="NoPriorInsurance"&&zr(U,p)&&Xs.has(w)))return null}const V=Y(S,T),K=S.conditionals??[];if(!K.length)return m==="BundlePolicy"&&w==="policy_bi"?g.jsxs("div",{children:[g.jsx("h3",{className:"text-lg font-semibold mt-6 mb-3",children:"Vehicle Coverage Information"}),V]},`wrap-${w}-${H}`):g.jsx("div",{children:V},`wrap-${w}-${H}`);const ie=uh(S,Lt(U,T,w)),Se=K.filter(X=>Ui(ie,X.conditionalType,X.conditionalValue)),Q=Se.length>1&&!Se.some(X=>X.conditionalQuestionsAllowMultiple)?Se.slice(0,1):Se;return g.jsxs("div",{children:[V,Q.map((X,J)=>{const de=X.conditionalQuestions??[];if(!de.length)return null;if(!X.conditionalQuestionsAllowMultiple)return g.jsx("div",{className:"mt-3",children:P(de,T)},`branch-${w}-${J}`);const ke=ho(w),Ie=$i(U,[...T??[],ke])??[],he=Math.max(1,Ie.length||1),Qe=()=>{const Ee=vn(U,[...T??[],ke,Ie.length],{});l&&o?o(Ee):k(Ee),G(Ee)},se=()=>{const Ee=Ie.slice(0,Math.max(0,Ie.length-1)),ze=vn(U,[...T??[],ke],Ee);l&&o?o(ze):k(ze),G(ze)},$e=`${w}__c${J}`;return g.jsxs("div",{className:"mt-3",children:[g.jsxs("div",{className:"flex items-center justify-between mb-2",children:[g.jsx("div",{className:"text-sm font-medium opacity-75",children:"Add one or more entries"}),g.jsxs("div",{className:"space-x-2",children:[g.jsx("button",{type:"button",className:"btn-outline px-3 py-1",onClick:Qe,children:"Add another"}),he>1&&g.jsx("button",{type:"button",className:"btn-outline px-3 py-1",onClick:se,children:"Remove last"})]})]}),Array.from({length:he}).map((Ee,ze)=>{const Je=[...T??[],ke,ze],At=`${$e}__i${ze}`,Ft=Ie[ze]??{},Yt=w==="drivers",je=Yt?`Driver #${ze+1}`:w==="vehicles"?`Vehicle #${ze+1}`:w==="home_losses"||w==="losses"?`Loss #${ze+1}`:`Entry #${ze+1}`,Nt=Yt&&typeof Ft.ssn_display=="string"&&Ft.ssn_display?` — ${Ft.ssn_display}`:"";return g.jsxs("div",{className:"rounded-lg border p-3 mb-3",children:[g.jsxs("div",{className:"text-sm font-semibold mb-2",children:[je,Nt]}),de.map(Re=>{const yt=String(Re.key);if(!yo(Re,U,p)||!Ws(Re,U,Je)||!po(Re,U,m))return null;if(Js(yt,Re,U,m)){const tn=p.currentCarrierKey?U[p.currentCarrierKey]:void 0;if(!(tn&&tn!=="NoPriorInsurance"&&zr(U,p)&&Xs.has(yt)))return null}return g.jsxs("div",{className:"mt-3",children:[Y(Re,Je),(()=>{const tn=Re.conditionals??[];if(!tn.length)return null;const nn=Lt(U,Je,Re.key),_n=tn.filter(xn=>Ui(nn,xn.conditionalType,xn.conditionalValue));return(_n.length>1&&!_n.some(xn=>xn.conditionalQuestionsAllowMultiple)?_n.slice(0,1):_n).map((xn,Za)=>{const Fa=xn.conditionalQuestions??[];if(!Fa.length)return null;if(!xn.conditionalQuestionsAllowMultiple)return g.jsx("div",{className:"mt-3",children:P(Fa,Je)},`nested-${At}-${Za}`);const qn=ho(Re.key),An=$i(U,[...Je,qn])??[],qi=Math.max(1,An.length||1),Vi=()=>{const En=vn(U,[...Je,qn,An.length],{});l&&o?o(En):k(En),G(En)},Pi=()=>{const En=An.slice(0,Math.max(0,An.length-1)),hn=vn(U,[...Je,qn],En);l&&o?o(hn):k(hn),G(hn)};return g.jsxs("div",{className:"mt-3",children:[g.jsxs("div",{className:"flex items-center justify-between mb-2",children:[g.jsx("div",{className:"text-sm font-medium opacity-75",children:"Add one or more entries"}),g.jsxs("div",{className:"space-x-2",children:[g.jsx("button",{type:"button",className:"btn-outline px-3 py-1",onClick:Vi,children:"Add another"}),qi>1&&g.jsx("button",{type:"button",className:"btn-outline px-3 py-1",onClick:Pi,children:"Remove last"})]})]}),Array.from({length:qi}).map((En,hn)=>{const Ki=[...Je,qn,hn];return g.jsxs("div",{className:"rounded-lg border p-3 mb-3",children:[g.jsxs("div",{className:"text-sm font-semibold mb-2",children:["Entry #",hn+1]}),P(Fa,Ki)]},`nested-item-${At}-${Za}-${hn}`)})]},`nested-repeat-${At}-${Za}`)})})()]},`${At}-${yt}`)})]},`group-${At}`)})]},`branch-${w}-${J}`)})]},`wrap-${w}-${H}`)})}const b=I.useMemo(()=>{const O=[],T=(S,H)=>{S.forEach(w=>{if(!yo(w,U,p)||!Ws(w,U,H)||!po(w,U,m))return;const V=String(w.key);if(Js(V,w,U,m)){const X=p.currentCarrierKey?U[p.currentCarrierKey]:void 0;if(!(X&&X!=="NoPriorInsurance"&&zr(U,p)&&Xs.has(V)))return}vo(w)||O.push(w);const K=w.conditionals??[];if(!K.length)return;const ie=uh(w,Lt(U,H,V)),Se=K.filter(X=>Ui(ie,X.conditionalType,X.conditionalValue));(Se.length>1&&!Se.some(X=>X.conditionalQuestionsAllowMultiple)?Se.slice(0,1):Se).forEach(X=>{const J=X.conditionalQuestions??[];J.length&&(X.conditionalQuestionsAllowMultiple||T(J,H))})})};return T(_),O},[_,U,p,m]);function L(O){O.preventDefault();const T=Yi(U,p),S=b.map(w=>Mo(w,p)?{...w,required:T}:w),H=Co(S,U);if(oe(H),Object.keys(H).length>0){const w=b.findIndex(V=>H[V.key]);w>=0&&document.getElementById(b[w].key)?.focus();return}c(U)}return g.jsx("form",{className:"space-y-6 px-1",onSubmit:L,noValidate:!0,children:P(_)})}const OE="GTM-NK8LGHTQ";function ME(){return typeof window>"u"?[]:(window.dataLayer=window.dataLayer??[],window.dataLayer)}function Ga(n,r={}){ME().push({event:n,credifyWidget:{...r,containerId:OE}})}function NE(){Ga("credify_widget_opened")}function mh(){Ga("credify_widget_closed")}function DE(n){Ga("credify_widget_stage_viewed",n)}function _h(n){Ga("credify_widget_stage_completed",n)}function xE(){Ga("credify_widget_flow_completed")}function RE(n){Ga("credify_widget_rates_viewed",n??{})}function wE(){Ga("credify_widget_rates_back")}const y0=new Set(["Disabled","Retired","Unemployed","Other"]);function LE(n,r){const l=String(n.key??"");if(l==="co_applicant_occupation"||l!=="occupation")return!0;const o=r.industry,c=r.employment_industry,f=String(o??c??"").trim();return!y0.has(f)}function zE(n,r){const l=String(n.key??"");if(l==="co_applicant_occupation"||l!=="occupation")return!0;const o=r.industry,c=r.employment_industry,f=String(o??c??"").trim();return!y0.has(f)}function g0(n){return n.inputType!=="radio"||!n.options||n.options.length!==1||n.options[0]!=="Yes"?!1:(n.conditionals??[]).some(l=>l.conditionalQuestionsAllowMultiple&&l.conditionalType==="equals"&&l.conditionalValue==="Yes")}function v0(n,r){return g0(n)?"Yes":r}function hh(n){return typeof n=="number"&&Number.isFinite(n)?n:typeof n=="string"&&n.trim()!==""&&!Number.isNaN(Number(n))?Number(n):null}function ph(n){if(n instanceof Date&&!Number.isNaN(n.getTime()))return n.getTime();if(typeof n=="string"){const r=Date.parse(n);return Number.isNaN(r)?null:r}return null}function yh(n,r){const l=hh(n),o=hh(r);if(l!=null&&o!=null)return l-o;const c=ph(n),f=ph(r);return c!=null&&f!=null?c-f:n==null||r==null?null:String(n).localeCompare(String(r))}function BE(n,r){return Array.isArray(n)?n.some(l=>l===r):typeof n=="string"?r!=null&&n.includes(String(r)):!1}function b0(n,r,l){switch(r){case"equals":return n===l;case"notEquals":return n!==l&&n!==""&&n!=null;case"lessThan":{const o=yh(n,l);return o!=null&&o<0}case"greaterThan":{const o=yh(n,l);return o!=null&&o>0}case"contains":return BE(n,l);case"startsWith":return n!=null&&l!=null&&String(n).startsWith(String(l));case"endsWith":return n!=null&&l!=null&&String(n).endsWith(String(l));default:return!1}}const kE=new Set(["auto_prior_years","auto_prior_months","auto_continuous_coverage_years"]);function dc(n,r,l){const o=yc([...n]),c=Oc(o),f=[],m=_=>{_.forEach(p=>{if(!yo(p,r,c)||!LE(p,r)||!po(p,r,l))return;const y=String(p.key);if(i0(y,l,r)){const G=c.currentCarrierKey?r[c.currentCarrierKey]:void 0;if(!(G&&G!=="NoPriorInsurance"&&zr(r,c)&&kE.has(y)))return}g0(p)||f.push(p);const A=v0(p,r[y]),D=p.conditionals??[];if(!D.length)return;const k=D.filter(G=>b0(A,G.conditionalType,G.conditionalValue));(k.length>1&&!k.some(G=>G.conditionalQuestionsAllowMultiple)?k.slice(0,1):k).forEach(G=>{const U=G.conditionalQuestions??[];U.length&&(G.conditionalQuestionsAllowMultiple||m(U))})})};return m(o),f}const S0="__items",mc=n=>`${n}${S0}`;function UE(n,r){if(n.key==="relationship_to_insured"||n.key==="is_registered_owner"){const l=r[r.length-1];return typeof l=="number"&&l===0}return!1}function _c(n,r,l=[],o=void 0,c=r){for(const f of n){const m=String(f.key),_=v0(f,r[m]),p=f.conditionals??[];if(!p.length)continue;const y=p.filter(D=>b0(_,D.conditionalType,D.conditionalValue)),A=y.length>1&&!y.some(D=>D.conditionalQuestionsAllowMultiple)?y.slice(0,1):y;for(const D of A){const k=D.conditionalQuestions??[];if(!k.length)continue;if(!D.conditionalQuestionsAllowMultiple){if(_c(k,r,l,o,c))return!0;continue}const j=r[mc(m)]??[];if(j.length===0)return!0;for(const[G,U]of j.entries()){const ue=[...l,mc(m),G],oe=dc(k,U,o).filter(re=>!(UE(re,ue)||!zE(re,U))),_e={state:c.state,...U},ee=Co(oe,_e);if(Object.values(ee).some(Boolean)||_c(k,U,ue,o,c))return!0}}}return!1}function gh(n,r,l){return _c(n,r,[],l,r)}function vh(n){const r=n.vehicles__items??[];if(!Array.isArray(r)||r.length===0)return!1;for(const l of r)if(va(l.vehicle_comp_deductible,"select")||va(l.vehicle_coll_deductible,"select")||va(l.vehicle_towing_and_labor,"select")||va(l.vehicle_transportation_expense,"select"))return!0;return!1}function jE({stages:n,onStageComplete:r,onComplete:l,initialValues:o,initialActive:c,quoteId:f}){const[m,_]=I.useState(c??0),[p,y]=I.useState(o??{}),[A,D]=I.useState({}),[k,j]=I.useState(!1),[G,U]=I.useState(!1),[ue,oe]=I.useState(null),_e=I.useRef([]),ee=I.useRef(n),re=Array.isArray(n)&&n.length>0,W=re?Math.min(m,n.length-1):0,le=re?n[W]:null,ne=le?.key??null;I.useEffect(()=>{c!==void 0&&_(c)},[c]),ee.current=n;const Ae=I.useMemo(()=>!!(W>=n.length-1||n.slice(W+1).every(R=>R.key==="AutoPolicy")&&(p.drivers__items??[]).length<=1),[W,n,p]);I.useEffect(()=>{re&&m>=n.length&&_(n.length-1)},[m,n.length,re]),I.useEffect(()=>{const v=_e.current[W];v&&v.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})},[W]),I.useEffect(()=>{o!==void 0&&y(o)},[o]),I.useEffect(()=>{if(!le||!ne){j(!1),oe(null);return}if(A[ne]){j(!1),oe(null);return}let v=!1;return j(!0),oe(null),Promise.resolve(le.loadQuestions()).then(R=>{if(!v){if(!Array.isArray(R))throw new Error(`loadQuestions("${ne}") did not return an array`);D(Y=>({...Y,[ne]:R}))}}).catch(R=>{v||oe(`Failed to load stage "${le?.title??""}": ${R?.message??"Unknown error"}`)}).finally(()=>{v||j(!1)}),()=>{v=!0}},[le,ne,A]);const te=ne?A[ne]:void 0,xe=I.useMemo(()=>Oc(yc(te??[])),[te]);I.useEffect(()=>{le&&ne&&te&&DE({stageKey:ne,stageTitle:le.title??ne,stepIndex:m+1,totalSteps:n.length})},[ne,m,n.length,le,te]);const ve=I.useMemo(()=>{if(!te)return{};const v={};(P=>{const b=[],L=O=>{O.forEach((T,S)=>{const H=Gi(T,S);b.push(H);const w=mc(H);b.push(w),(T.conditionals??[]).forEach(K=>{const ie=K.conditionalQuestions??[];ie.length>0&&L(ie)})})};return L(P),b})(te).forEach(P=>{P in p&&(v[P]=p[P])});for(const P of["state","State","address","product"])P in p&&(v[P]=p[P]);for(const[P,b]of Object.entries(p))P.endsWith(S0)&&!(P in v)&&(v[P]=b);return v},[te,p]),Le=v=>{y(R=>({...R,...v}))},Ke=()=>{_(v=>v>0?v-1:0),document.querySelector(".panel-body")?.scrollTo({top:0,behavior:"instant"})},We=async()=>{if(!te||!le||k||ue||G)return;const v=dc(te,ve,ne??void 0),R=Yi(p,xe),Y=v.map(K=>Mo(K,xe)?{...K,required:R}:K),P=Co(Y,ve),b=new Set(Y.map((K,ie)=>Gi(K,ie))),L=Object.entries(P).some(([K,ie])=>ie&&b.has(K)),O=gh(te,p,ne??void 0),S=v.some(K=>String(K.key??"")==="vehicle_policy_selections")?vh(p):!1,H=p.driver_vehicle_assignments,w=p.drivers__items??[];let V=!1;if(H&&w.length>=2){const K=p.vehicles__items??[];for(let ie=0;ie<K.length;ie++){const Se=H[`v${ie}`];if(!Se)continue;const Q=w.map((de,ke)=>Se[`d${ke}`]??0),X=Q.filter(de=>de>0);if(X.length>=2&&X.every(de=>de===50)){V=!0;break}const J=Q.reduce((de,ke)=>de+ke,0);if(J>0&&J!==100){V=!0;break}}}if(!(L||O||S||V)){U(!0);try{const K=Ae,{success:ie,error:Se}=K?await l(p,ne??""):await r(ve,ne??"");if(!ie){oe(Se??"An error occurred");return}if(!K){const Q=ee.current,X=Q.findIndex(de=>de.key===ne),J=X>=0?Math.min(X+1,Q.length-1):Math.min(m+1,Q.length-1);_(J)}}finally{U(!1)}}},fe=I.useMemo(()=>{if(!te||k||ue||G)return!0;const v=dc(te,ve,ne??void 0),R=Yi(p,xe),Y=v.map(K=>Mo(K,xe)?{...K,required:R}:K),P=Co(Y,ve),b=new Set(Y.map((K,ie)=>Gi(K,ie))),L=Object.entries(P).some(([K,ie])=>ie&&b.has(K)),O=gh(te,p,ne??void 0),S=v.some(K=>String(K.key??"")==="vehicle_policy_selections")?vh(p):!1,H=p.driver_vehicle_assignments,w=p.drivers__items??[];let V=!1;if(H&&w.length>=2){const K=p.vehicles__items??[];for(let ie=0;ie<K.length;ie++){const Se=H[`v${ie}`];if(!Se)continue;const Q=w.map((de,ke)=>Se[`d${ke}`]??0),X=Q.filter(de=>de>0);if(X.length>=2&&X.every(de=>de===50)){V=!0;break}const J=Q.reduce((de,ke)=>de+ke,0);if(J>0&&J!==100){V=!0;break}}}return L||O||S||V},[te,ve,p,k,ue,G,xe,ne]);return re?g.jsxs("div",{className:"space-y-6",children:[g.jsxs("div",{className:"form-wizard-steps-header flex items-center justify-between gap-4",children:[g.jsx("ol",{className:"form-wizard-steps flex gap-2 text-xs overflow-x-auto flex-1 pb-1 scrollbar-hide items-center",style:{scrollbarWidth:"none",msOverflowStyle:"none"},children:n.flatMap((v,R)=>[g.jsx("li",{ref:Y=>{_e.current[R]=Y},className:`form-wizard-step-pill px-2.5 py-1 rounded-full border whitespace-nowrap flex-shrink-0 ${R<W?"bg-blue-600 text-white border-blue-600":R===W?"border-blue-600 text-blue-600 bg-white":"border-slate-200 text-slate-600"}`,children:v.title},v.key??`stage-${R}`),...R<n.length-1?[g.jsx("li",{className:"form-wizard-step-arrow text-slate-400 flex-shrink-0",children:"→"},`arrow-${v.key??R}`)]:[]])}),g.jsxs("div",{className:"form-wizard-step-counter text-sm text-slate-500 flex-shrink-0",children:[W+1," / ",n.length]})]}),g.jsxs("div",{children:[k&&g.jsx("div",{className:"text-slate-500",children:"Loading…"}),le&&g.jsx(CE,{questions:te??[],controlledValues:ve,onChangeValues:Le,onSubmit:()=>We(),quoteId:f,widgetStageKey:ne??void 0},le.key)]}),!k&&ue&&g.jsxs("div",{className:"text-red-600 text-sm -mt-4",children:[g.jsx("div",{children:ue}),le&&g.jsx("button",{type:"button",className:"credify-retry-btn underline mt-1 font-bold",onClick:()=>{D(v=>{if(!ne)return v;const R={...v};return delete R[ne],R})},children:"Retry"})]}),g.jsxs("div",{className:W>0?"grid grid-cols-2 gap-3":"",children:[W>0&&g.jsx("button",{type:"button",onClick:Ke,disabled:k,className:"credify-btn-back h-12 rounded-full border border-gray-300 text-text-primary hover:bg-gray-50 transition",children:"Back"}),g.jsxs("button",{type:"button","data-widget-ctrl":"next",onClick:We,disabled:fe,className:["form-wizard-next-btn",W>0?"":"w-full","h-12 rounded-full text-white transition","disabled:opacity-50 disabled:cursor-not-allowed","flex items-center justify-center gap-2",fe?"bg-gray-300":"bg-blue-600 hover:bg-blue-600/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-600/40 bg-primary hover:bg-primary/90 focus-visible:ring-primary/40"].join(" "),children:[G&&g.jsxs("svg",{className:"animate-spin h-5 w-5 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[g.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),g.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),Ae?"Finish":"Next"]})]})]}):g.jsx("div",{className:"text-slate-600",children:"Loading..."})}const A0={SafecoPersonal:{name:"Safeco",abbr:"SFC",color:"#0F337A"},SafecoPersoanl:{name:"Safeco",abbr:"SFC",color:"#0F337A"},AssuranceAmerica:{name:"Assurance America",abbr:"AA",color:"#2768B5"},CommonWealthCasualty:{name:"Commonwealth Casualty",abbr:"CW",color:"#2D69EC"},Alinsco:{name:"Alinsco",abbr:"AL",color:"#20395D"},ACORDBOLTPersonalAuto:{name:"Bolt Auto",abbr:"BLT",color:"#1F2937"},ACORDBOLTPersonalHome:{name:"Bolt Home",abbr:"BLT",color:"#1F2937"},TwentyFirstCentury:{name:"21st Century",abbr:"21C",color:"#B2392A"},ACentral:{name:"A-Central",abbr:"ACT",color:"#EAAD1D"},AAA:{name:"AAA",abbr:"AAA",color:"#DB461C"},AARP:{name:"AARP",abbr:"ARP",color:"#DB4724"},Acadia:{name:"Acadia",abbr:"ACD",color:"#386B61"},Ace:{name:"ACE",abbr:"ACE",color:"#457D48"},Acuity:{name:"Acuity",abbr:"ACU",color:"#D74630"},AdirondackInsExchange:{name:"Adirondack",abbr:"ADK",color:"#1F5490"},Aegis:{name:"Aegis",abbr:"AEG",color:"#1A4675"},AIC:{name:"AIC",abbr:"AIC",color:"#508F47"},AIG:{name:"AIG",abbr:"AIG",color:"#223572"},AlfaAlliance:{name:"Alfa Alliance",abbr:"ALF",color:"#C13D17"},AllianzOfAmerica:{name:"Allianz",abbr:"ALZ",color:"#003781"},AllianzOfAmericaJefferson:{name:"Allianz Jefferson",abbr:"ALZ",color:"#003781"},Allied:{name:"Allied",abbr:"ALD",color:"#0047BB"},Allmerica:{name:"Allmerica",abbr:"ALM",color:"#003DA5"},Allstate:{name:"Allstate",abbr:"ALS",color:"#002F87"},AmericaFirst:{name:"America First",abbr:"AMF",color:"#003DA5"},AmericanCommerce:{name:"American Commerce",abbr:"ACM",color:"#003DA5"},AmericanFamily:{name:"American Family",abbr:"AMF",color:"#0033A0"},Amica:{name:"Amica",abbr:"AMI",color:"#003DA5"},Ameriprise:{name:"Ameriprise",abbr:"AMP",color:"#003DA5"},ASILloyds:{name:"ASI Lloyds",abbr:"ASI",color:"#003DA5"},Assurant:{name:"Assurant",abbr:"ASR",color:"#0033A0"},AtlasGeneralAgency:{name:"Atlas General",abbr:"ATL",color:"#1F3864"},AustinMutual:{name:"Austin Mutual",abbr:"AUS",color:"#1F3864"},Autoone:{name:"AutoOne",abbr:"AON",color:"#003DA5"},AutoOwners:{name:"Auto-Owners",abbr:"AO",color:"#C8102E"},BadgerMutual:{name:"Badger Mutual",abbr:"BDG",color:"#003DA5"},Balboa:{name:"Balboa",abbr:"BAL",color:"#1F3864"},Bamboo:{name:"Bamboo",abbr:"BMB",color:"#0F4C3A"},Bankers:{name:"Bankers",abbr:"BNK",color:"#1F3864"},BeaconNational:{name:"Beacon National",abbr:"BCN",color:"#003DA5"},BrethernMutual:{name:"Brethren Mutual",abbr:"BRT",color:"#1F3864"},BristolWest:{name:"Bristol West",abbr:"BW",color:"#003DA5"},BunkerHill:{name:"Bunker Hill",abbr:"BHL",color:"#1F3864"},CapitalInsuranceGroup:{name:"Capital Insurance",abbr:"CIG",color:"#003DA5"},Celina:{name:"Celina",abbr:"CEL",color:"#1F3864"},CentralMutualOfOH:{name:"Central Mutual",abbr:"CMO",color:"#003DA5"},Chubb:{name:"Chubb",abbr:"CHB",color:"#000000"},ChubbInsurance:{name:"Chubb",abbr:"CHB",color:"#000000"},Cincinnati:{name:"Cincinnati",abbr:"CIN",color:"#003DA5"},Citizens:{name:"Citizens",abbr:"CTZ",color:"#003DA5"},Clearcover:{name:"Clearcover",abbr:"CC",color:"#00B5E2"},CNA:{name:"CNA",abbr:"CNA",color:"#CC3232"},ColonialPenn:{name:"Colonial Penn",abbr:"CPN",color:"#0072CE"},ColoradoCasualty:{name:"Colorado Casualty",abbr:"COC",color:"#1F3864"},Columbia:{name:"Columbia",abbr:"CLM",color:"#003DA5"},CommerceWest:{name:"Commerce West",abbr:"CMW",color:"#003DA5"},CommonwealthCasualty:{name:"Commonwealth Casualty",abbr:"CW",color:"#1F3864"},ConstitutionalCasualty:{name:"Constitutional Casualty",abbr:"CON",color:"#1F3864"},Cornerstone:{name:"Cornerstone",abbr:"CRN",color:"#1F3864"},Countrywide:{name:"Countrywide",abbr:"CTW",color:"#003DA5"},CSE:{name:"CSE",abbr:"CSE",color:"#003DA5"},Cumberland:{name:"Cumberland",abbr:"CMB",color:"#1F3864"},Cypress:{name:"Cypress",abbr:"CYP",color:"#0F4C3A"},Dairyland:{name:"Dairyland",abbr:"DL",color:"#0072CE"},Deerbrook:{name:"Deerbrook",abbr:"DBK",color:"#1F3864"},Direct:{name:"Direct",abbr:"DIR",color:"#D52B1E"},Donegal:{name:"Donegal",abbr:"DON",color:"#003DA5"},Drive:{name:"Drive",abbr:"DRV",color:"#1F3864"},Electric:{name:"Electric",abbr:"ELC",color:"#003DA5"},EMC:{name:"EMC",abbr:"EMC",color:"#003DA5"},Encompass:{name:"Encompass",abbr:"ENC",color:"#002F87"},Erie:{name:"Erie",abbr:"ERI",color:"#005FAC"},Esurance:{name:"Esurance",abbr:"ESU",color:"#00A6CE"},ExcelsiorInsuranceCompany:{name:"Excelsior",abbr:"EXC",color:"#1F3864"},Explorer:{name:"Explorer",abbr:"EXP",color:"#1F3864"},FairPlan:{name:"FAIR Plan",abbr:"FPN",color:"#1F3864"},FarmBureau:{name:"Farm Bureau",abbr:"FB",color:"#00843D"},Farmers:{name:"Farmers",abbr:"FRM",color:"#1C428B"},Fidelity:{name:"Fidelity",abbr:"FID",color:"#00833F"},FiremansFund:{name:"Fireman's Fund",abbr:"FF",color:"#E31837"},FirstAmerican:{name:"First American",abbr:"FAM",color:"#003DA5"},Foremost:{name:"Foremost",abbr:"FOR",color:"#E31837"},ForemostInsuranceCompany:{name:"Foremost",abbr:"FOR",color:"#E31837"},Geico:{name:"GEICO",abbr:"GEI",color:"#0F4293"},GeneralCasualty:{name:"General Casualty",abbr:"GC",color:"#1F3864"},GermantownMutual:{name:"Germantown Mutual",abbr:"GTM",color:"#1F3864"},GMAC:{name:"GMAC",abbr:"GMA",color:"#003DA5"},Grange:{name:"Grange",abbr:"GRG",color:"#003DA5"},GreatAmerican:{name:"Great American",abbr:"GA",color:"#003DA5"},Grinnell:{name:"Grinnell Mutual",abbr:"GRN",color:"#E31837"},GuideOne:{name:"GuideOne",abbr:"GO",color:"#0072CE"},Hanover:{name:"Hanover",abbr:"HAN",color:"#003DA5"},Harbor:{name:"Harbor",abbr:"HBR",color:"#1F3864"},Harleysville:{name:"Harleysville",abbr:"HRL",color:"#003DA5"},Hartford:{name:"The Hartford",abbr:"HFD",color:"#7F1734"},HartfordOMNI:{name:"Hartford OMNI",abbr:"HOM",color:"#7F1734"},HastingsMutual:{name:"Hastings Mutual",abbr:"HST",color:"#1F3864"},HawkeyeSecurity:{name:"Hawkeye Security",abbr:"HWK",color:"#1F3864"},HDI:{name:"HDI",abbr:"HDI",color:"#00563F"},HippoInsuranceCompany:{name:"Hippo",abbr:"HPO",color:"#00C9A7"},HomeownersOfAmerica:{name:"Homeowners of America",abbr:"HOA",color:"#003DA5"},Homesite:{name:"Homesite",abbr:"HMS",color:"#0033A0"},HoraceMann:{name:"Horace Mann",abbr:"HM",color:"#003DA5"},HoustonGeneral:{name:"Houston General",abbr:"HG",color:"#1F3864"},IFA:{name:"IFA",abbr:"IFA",color:"#003DA5"},ImperialCasualty:{name:"Imperial Casualty",abbr:"IMP",color:"#1F3864"},Indiana:{name:"Indiana Insurance",abbr:"IND",color:"#003DA5"},IndianaFarmers:{name:"Indiana Farmers",abbr:"IFM",color:"#00843D"},Infinity:{name:"Infinity",abbr:"INF",color:"#E31837"},Insurequest:{name:"Insurequest",abbr:"INQ",color:"#1F3864"},Integon:{name:"Integon",abbr:"ITG",color:"#003DA5"},Integrity:{name:"Integrity",abbr:"ITY",color:"#1F3864"},Kemper:{name:"Kemper",abbr:"KMP",color:"#0033A0"},LibertyMutual:{name:"Liberty Mutual",abbr:"LM",color:"#FFD000"},LibertyNorthwest:{name:"Liberty Northwest",abbr:"LNW",color:"#FFD000"},Lloyds:{name:"Lloyd's",abbr:"LLY",color:"#003DA5"},MainStreetAmerica:{name:"Main Street America",abbr:"MSA",color:"#003DA5"},Mapfre:{name:"MAPFRE",abbr:"MAP",color:"#E31837"},MarkelInsuranceCompany:{name:"Markel",abbr:"MKL",color:"#003DA5"},Mendota:{name:"Mendota",abbr:"MND",color:"#1F3864"},MerchantsGroup:{name:"Merchants Group",abbr:"MRC",color:"#003DA5"},Mercury:{name:"Mercury",abbr:"MER",color:"#ED1C24"},Metlife:{name:"MetLife",abbr:"MET",color:"#0090DA"},Metropolitan:{name:"Metropolitan",abbr:"MTP",color:"#0090DA"},MidContinent:{name:"Mid-Continent",abbr:"MC",color:"#003DA5"},MidwesternIndemnity:{name:"Midwestern Indemnity",abbr:"MWI",color:"#003DA5"},Montgomery:{name:"Montgomery",abbr:"MTG",color:"#1F3864"},MSA:{name:"MSA",abbr:"MSA",color:"#003DA5"},MtWashington:{name:"Mt. Washington",abbr:"MTW",color:"#1F3864"},MutualBenefit:{name:"Mutual Benefit",abbr:"MB",color:"#1F3864"},NatGenPremier:{name:"NatGen Premier",abbr:"NGP",color:"#0033A0"},NationalGeneral:{name:"National General",abbr:"NG",color:"#0033A0"},Nationwide:{name:"Nationwide",abbr:"NW",color:"#204D9B"},NationwideScottsdale:{name:"Nationwide Scottsdale",abbr:"NWS",color:"#204D9B"},NewYorkCentralMutual:{name:"NY Central Mutual",abbr:"NYC",color:"#003DA5"},NJManufacturers:{name:"NJM Insurance",abbr:"NJM",color:"#003DA5"},NJSkylands:{name:"NJ Skylands",abbr:"NJS",color:"#003DA5"},Northstar:{name:"Northstar",abbr:"NST",color:"#1F3864"},Occidental:{name:"Occidental",abbr:"OCC",color:"#1F3864"},OhioCasualty:{name:"Ohio Casualty",abbr:"OHC",color:"#003DA5"},OmahaPC:{name:"Omaha P&C",abbr:"OMA",color:"#003DA5"},OneBeacon:{name:"OneBeacon",abbr:"OB",color:"#003DA5"},OregonMutual:{name:"Oregon Mutual",abbr:"ORE",color:"#003DA5"},Palisades:{name:"Palisades",abbr:"PAL",color:"#1F3864"},PeerlessMontgomery:{name:"Peerless Montgomery",abbr:"PRM",color:"#1F3864"},Pekin:{name:"Pekin",abbr:"PEK",color:"#003DA5"},Pemco:{name:"PEMCO",abbr:"PMC",color:"#0072CE"},PennNational:{name:"Penn National",abbr:"PN",color:"#003DA5"},PlymouthRock:{name:"Plymouth Rock",abbr:"PLR",color:"#003DA5"},PreferredMutual:{name:"Preferred Mutual",abbr:"PFM",color:"#003DA5"},Proformance:{name:"Proformance",abbr:"PRF",color:"#1F3864"},Progressive:{name:"Progressive",abbr:"PRG",color:"#0053BA"},Prudential:{name:"Prudential",abbr:"PRU",color:"#0033A0"},PureHighValue:{name:"PURE",abbr:"PUR",color:"#003DA5"},Republic:{name:"Republic",abbr:"REP",color:"#003DA5"},RockfordMutual:{name:"Rockford Mutual",abbr:"RKF",color:"#1F3864"},RoyalAndSunAlliance:{name:"Royal & SunAlliance",abbr:"RSA",color:"#003DA5"},Safeco:{name:"Safeco",abbr:"SFC",color:"#E4002B"},SECURA:{name:"SECURA",abbr:"SEC",color:"#003DA5"},Selective:{name:"Selective",abbr:"SEL",color:"#003DA5"},SouthernCounty:{name:"Southern County",abbr:"SCM",color:"#1F3864"},SouthernMutual:{name:"Southern Mutual",abbr:"SM",color:"#1F3864"},SouthernTrust:{name:"Southern Trust",abbr:"ST",color:"#1F3864"},StPaulTravelers:{name:"St. Paul Travelers",abbr:"SPT",color:"#C8102E"},StandardMutual:{name:"Standard Mutual",abbr:"STM",color:"#1F3864"},StarCasualty:{name:"Star Casualty",abbr:"SC",color:"#1F3864"},StateAuto:{name:"State Auto",abbr:"SA",color:"#003DA5"},StateFarm:{name:"State Farm",abbr:"SF",color:"#CC0717"},StateFarmFloridaInsuranceCompany:{name:"State Farm Florida",abbr:"SFF",color:"#CC0717"},SunshineStateInsuranceCompany:{name:"Sunshine State",abbr:"SSS",color:"#FFC72C"},Travelers:{name:"Travelers",abbr:"TRV",color:"#C8102E"},Tower:{name:"Tower",abbr:"TWR",color:"#1F3864"},TWFG:{name:"TWFG",abbr:"TWF",color:"#003DA5"},Unigard:{name:"Unigard",abbr:"UNG",color:"#1F3864"},UnitedFireAndCasualty:{name:"United Fire & Casualty",abbr:"UFC",color:"#003DA5"},Unitrin:{name:"Unitrin",abbr:"UTN",color:"#003DA5"},Universal:{name:"Universal",abbr:"UNV",color:"#003DA5"},USAA:{name:"USAA",abbr:"USA",color:"#1A3258"},UticaNational:{name:"Utica National",abbr:"UTC",color:"#003DA5"},Victoria:{name:"Victoria",abbr:"VIC",color:"#1F3864"},Wellington:{name:"Wellington",abbr:"WLG",color:"#1F3864"},WestBend:{name:"West Bend",abbr:"WB",color:"#003DA5"},WesternNational:{name:"Western National",abbr:"WN",color:"#003DA5"},WesternReserveGroup:{name:"Western Reserve",abbr:"WR",color:"#003DA5"},Westfield:{name:"Westfield",abbr:"WF",color:"#F05136"},WhiteMountains:{name:"White Mountains",abbr:"WM",color:"#1F3864"},WilsonMutual:{name:"Wilson Mutual",abbr:"WLM",color:"#1F3864"},Windsor:{name:"Windsor",abbr:"WIN",color:"#1F3864"},Zurich:{name:"Zurich",abbr:"ZUR",color:"#003399"}},bh=["#0369A1","#1D4ED8","#0F766E","#7C3AED","#B45309","#DC2626","#0891B2","#9333EA"];function HE(n){return n.replace(/[^A-Za-z0-9]/g,"").slice(0,3).toUpperCase()||"CAR"}function E0(n){return n.replace(/([a-z])([A-Z])/g,"$1 $2").replace(/_/g," ").trim()}function ec(n){if(!n)return n;const r=A0[n];return r?r.name:E0(n)}function IE(n){const r=new Set,l=[];return n.forEach((o,c)=>{const m=A0[o]??{name:E0(o),abbr:HE(o),color:bh[c%bh.length]};r.has(m.name)||(r.add(m.name),l.push(m))}),l}function $E(n,r){if(!n)return[];const l=[];return(r==="Auto"||r==="Bundle")&&Array.isArray(n.PersonalAuto)&&l.push(...n.PersonalAuto),(r==="Home"||r==="Bundle")&&Array.isArray(n.PersonalHome)&&l.push(...n.PersonalHome),IE(l)}const GE=new Intl.NumberFormat("en-US",{style:"currency",currency:"USD"}),T0={PersonalHome:"Homeowners",PersonalAuto:"Personal Auto",Flood:"Flood",ExcessFlood:"Excess Flood",_other:"Other"},Sh=["PersonalHome","PersonalAuto","Flood","ExcessFlood"],ji="rounded-2xl border-2 border-blue-300 bg-blue-50/30 p-4 shadow-blue-100/60 ring-1 ring-blue-100",Hi="mb-3 inline-flex w-fit items-center rounded-full bg-blue-100 px-2.5 py-1 text-xs font-semibold text-blue-700",Ah="w-full max-w-md min-w-0 sm:max-w-[calc((100%-1rem)/2)]",ZE="rounded-2xl border-2 border-transparent p-4";function Eh({onBack:n}){const r=()=>{wE(),n?.()};return g.jsx("button",{type:"button",onClick:r,className:"credify-btn-back credify-btn-back-rates h-12 rounded-full border border-gray-300 text-text-primary hover:bg-gray-50 transition w-full",children:"Back"})}function ya({rate:n,status:r,onRequestBind:l,disabled:o,featured:c=!1,showLobLabel:f=!0,showFeaturedBadge:m,className:_}){const p=Number.isFinite(n.term_months)&&n.term_months>0?n.term_months:1,A=(n.monthly_premium_cents!=null?n.monthly_premium_cents:Math.round((n.premium_cents||0)/p))/100,D=GE.format(A),k=r==="loading",j=r==="success",G=!!o||k||j,U=!!(n.effective_date&&n.policy_end_date),ue=n.lob?T0[n.lob]||n.lob:null,oe=m??c;return g.jsxs("div",{className:`flex w-full flex-col rounded-xl bg-white p-6 shadow-sm transition hover:shadow-md ${c?"border-2 border-blue-300 shadow-blue-100/60 ring-1 ring-blue-100":"border border-slate-200"}${_?` ${_}`:""}`,children:[f&&ue&&g.jsx("div",{className:"mb-2 text-xs font-semibold uppercase tracking-wide text-slate-500",children:ue}),oe&&g.jsx("div",{className:"mb-3 inline-flex w-fit items-center rounded-full bg-blue-50 px-2.5 py-1 text-xs font-semibold text-blue-700",children:"Featured"}),g.jsxs("div",{className:"mb-4 flex flex-col items-start gap-2",children:[n.carrier_logo_base64?g.jsx("img",{src:`data:image/png;base64,${n.carrier_logo_base64}`,alt:ec(n.carrier_name),className:"h-12 w-auto max-w-full object-contain"}):g.jsx("div",{className:"flex h-12 w-12 items-center justify-center rounded-md bg-slate-100 text-sm font-semibold text-slate-500",children:ec(n.carrier_name).charAt(0).toUpperCase()}),g.jsx("h4",{className:"w-full break-words text-left font-semibold text-slate-900",children:ec(n.carrier_name)})]}),g.jsx("div",{className:"mb-2",children:g.jsxs("p",{className:"text-2xl font-bold text-slate-900",children:[D,g.jsx("span",{className:"ml-1 text-sm font-medium text-slate-500",children:"/month"})]})}),U&&g.jsx("div",{className:"mb-2",children:g.jsxs("p",{className:"text-xs text-slate-500",children:["Effective ",n.effective_date," - ",n.policy_end_date]})}),n.carrier_quote_id&&g.jsx("div",{className:"mb-4",children:g.jsxs("p",{className:"text-xs text-slate-400",children:["Quote ID: ",n.carrier_quote_id]})}),g.jsxs("div",{className:"mt-auto pt-4",children:[g.jsx("button",{type:"button",onClick:l,disabled:G,className:`rates-bind-btn w-full rounded-full px-4 py-2.5 text-sm font-semibold transition focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-600/40 disabled:cursor-not-allowed ${j?"rates-bind-btn-requested":"hover:bg-blue-600/90 disabled:bg-slate-300 disabled:text-slate-500"}`,children:k?"Requesting…":j?"Requested":"Request Bind"}),r==="error"&&g.jsx("p",{className:"mt-2 text-xs text-red-600",children:"Something went wrong. Please try again."}),r==="success"&&g.jsx("p",{className:"mt-2 text-xs text-emerald-600",children:"We received your bind request."})]})]})}function FE({rates:n,onBack:r,isBundleFlow:l=!1}){const o=Array.isArray(n)?n:[],c=o.length>0,[f,m]=I.useState({}),[_,p]=I.useState("admitted"),[y,A]=I.useState(!1),D=I.useMemo(()=>o.some(v=>v.lob==="PersonalAuto"),[o]),k=I.useMemo(()=>o.some(v=>v.lob==="PersonalHome"),[o]),j=I.useMemo(()=>{if(!l)return[];const v=[];return D&&v.push("PersonalAuto"),k&&v.push("PersonalHome"),v},[l,D,k]),G=I.useMemo(()=>{const v=new Set;for(const R of o){const Y=R.lob??null;Y&&f[R.quote_rate_id]==="success"&&v.add(Y)}return v},[o,f]),U=I.useMemo(()=>Object.values(f).some(v=>v==="success"),[f]),ue=I.useMemo(()=>y?!0:!l||j.length===0?U:j.every(v=>G.has(v)),[y,l,U,j,G]),oe=I.useMemo(()=>c?o.filter(v=>(v.admitted_status??"admitted")==="admitted"):[],[o,c]),_e=I.useMemo(()=>c?o.filter(v=>v.admitted_status==="non_admitted"):[],[o,c]),ee=oe.length,re=_e.length,W=ee+re>0;I.useEffect(()=>{W&&_==="admitted"&&ee===0&&re>0&&p("non_admitted")},[_,ee,re,W]);const le=I.useMemo(()=>W?_==="admitted"?oe:_e:[],[W,_,oe,_e]);I.useEffect(()=>{fc()},[]),I.useEffect(()=>{!ue||y||(nE(),p0(),A(!0))},[ue,y]);const ne=I.useMemo(()=>{if(le.length===0)return[];if(!le.some(P=>P.lob))return[{lob:null,title:"Rates",rates:[...le].sort((b,L)=>{const O=Number.isFinite(b.term_months)&&b.term_months>0?b.term_months:1,T=Number.isFinite(L.term_months)&&L.term_months>0?L.term_months:1,S=b.monthly_premium_cents??Math.round((b.premium_cents||0)/O),H=L.monthly_premium_cents??Math.round((L.premium_cents||0)/T);return S-H})}];const R=new Map;for(const P of le){const b=P.lob||"_other",L=R.get(b);L?L.push(P):R.set(b,[P])}return[...R.entries()].sort(([P],[b])=>{const L=Sh.indexOf(P),O=Sh.indexOf(b);return(L===-1?999:L)-(O===-1?999:O)}).map(([P,b])=>({lob:P,title:T0[P]??P,rates:[...b].sort((L,O)=>{const T=Number.isFinite(L.term_months)&&L.term_months>0?L.term_months:1,S=Number.isFinite(O.term_months)&&O.term_months>0?O.term_months:1,H=L.monthly_premium_cents??Math.round((L.premium_cents||0)/T),w=O.monthly_premium_cents??Math.round((O.premium_cents||0)/S);return H-w})}))},[le]),Ae=I.useMemo(()=>{if(!l)return[];const v=o.some(P=>P.lob==="PersonalAuto"),R=o.some(P=>P.lob==="PersonalHome"),Y=[];return v||Y.push("Sorry, no rates found for Personal Auto."),R||Y.push("Sorry, no rates found for Homeowners."),Y},[l,o]);if(!W)return g.jsxs("section",{className:"mt-8",children:[g.jsx("h3",{className:"text-lg font-semibold text-slate-900",children:"Rates"}),g.jsx("p",{className:"mt-2 text-sm text-slate-500",children:"Sorry, no rates are available at this time."}),r&&g.jsx(Eh,{onBack:r})]});const te=async v=>{m(R=>({...R,[v]:"loading"}));try{if(fc(),!go())throw new Error("Authentication required. Please verify your phone number first.");if(!((await cE(v))?.success!==!1))throw new Error("Request failed");m(b=>({...b,[v]:"success"}))}catch{m(R=>({...R,[v]:"error"}))}},xe=ne.find(v=>v.lob==="PersonalAuto"),ve=ne.find(v=>v.lob==="PersonalHome"),Le=!!(xe?.rates.length&&ve?.rates.length),Ke=ne.filter(v=>!Le||v.lob!=="PersonalAuto"&&v.lob!=="PersonalHome"),We=Le&&xe&&ve?[{rate:xe.rates[0]},{rate:ve.rates[0]}]:[],fe=We.length===1;return g.jsxs("section",{className:"mt-8",children:[g.jsx("h3",{className:"text-lg font-semibold text-slate-900",children:"Rates"}),Ae.length>0&&g.jsx("div",{className:"mt-3 space-y-1",children:Ae.map(v=>g.jsx("p",{className:"text-sm text-slate-600",children:v},v))}),g.jsx("div",{className:"mt-4 border-b border-slate-200",children:g.jsxs("div",{className:"flex items-center gap-6",children:[g.jsxs("button",{type:"button",onClick:()=>p("admitted"),className:`border-b-2 px-1 py-2 text-sm font-semibold transition ${_==="admitted"?"border-cyan-500 text-slate-900":"border-transparent text-slate-500 hover:text-slate-800"}`,children:["Admitted (",ee,")"]}),g.jsxs("button",{type:"button",onClick:()=>p("non_admitted"),className:`border-b-2 px-1 py-2 text-sm font-semibold transition ${_==="non_admitted"?"border-cyan-500 text-slate-900":"border-transparent text-slate-500 hover:text-slate-800"}`,children:["Non-admitted (",re,")"]})]})}),le.length===0&&g.jsx("p",{className:"mt-4 text-sm text-slate-500",children:_==="admitted"?"Sorry, no admitted rates are available at this time.":"Sorry, no non-admitted rates are available at this time."}),le.length>0&&Le&&xe&&ve&&g.jsxs(g.Fragment,{children:[g.jsx("div",{className:fe?"mt-6 flex justify-center":"mt-6",children:g.jsxs("div",{className:fe?`w-full max-w-md ${ji}`:ji,children:[g.jsx("div",{className:Hi,children:"Featured Bundle"}),g.jsx("div",{className:fe?"grid justify-items-center gap-4":"grid gap-4 sm:grid-cols-2",children:We.map(({rate:v})=>g.jsx("div",{className:"mx-auto w-full min-w-0 max-w-md",children:g.jsx(ya,{rate:v,featured:!1,showLobLabel:!0,showFeaturedBadge:!1,status:f[v.quote_rate_id]??"idle",disabled:ue||(l?!!(v.lob&&j.includes(v.lob)&&G.has(v.lob)):U),onRequestBind:()=>te(v.quote_rate_id)})},v.quote_rate_id))})]})}),xe.rates.length>1&&g.jsxs("div",{className:"mt-6",children:[g.jsxs("h4",{className:"mb-3 text-base font-semibold text-slate-800",children:["More ",xe.title," Options"]}),g.jsx("div",{className:"grid gap-4 sm:grid-cols-2",children:xe.rates.slice(1).map(v=>g.jsx("div",{className:"mx-auto w-full min-w-0 max-w-md",children:g.jsx(ya,{rate:v,featured:!1,showLobLabel:!0,showFeaturedBadge:!1,status:f[v.quote_rate_id]??"idle",disabled:ue||(l?!!(v.lob&&j.includes(v.lob)&&G.has(v.lob)):U),onRequestBind:()=>te(v.quote_rate_id)})},v.quote_rate_id))})]}),ve.rates.length>1&&g.jsxs("div",{className:"mt-6",children:[g.jsxs("h4",{className:"mb-3 text-base font-semibold text-slate-800",children:["More ",ve.title," Options"]}),g.jsx("div",{className:"grid gap-4 sm:grid-cols-2",children:ve.rates.slice(1).map(v=>g.jsx("div",{className:"mx-auto w-full min-w-0 max-w-md",children:g.jsx(ya,{rate:v,featured:!1,showLobLabel:!0,showFeaturedBadge:!1,status:f[v.quote_rate_id]??"idle",disabled:ue||(l?!!(v.lob&&j.includes(v.lob)&&G.has(v.lob)):U),onRequestBind:()=>te(v.quote_rate_id)})},v.quote_rate_id))})]})]}),le.length>0&&Ke.map(v=>{const[R,...Y]=v.rates;return g.jsxs("div",{className:"mt-6",children:[g.jsx("h4",{className:"mb-3 text-base font-semibold text-slate-800",children:v.title}),Y.length===0?g.jsx("div",{className:"grid gap-4 sm:grid-cols-2",children:g.jsx("div",{className:"col-span-full flex justify-center",children:g.jsxs("div",{className:`${Ah} ${ji}`,children:[g.jsx("div",{className:Hi,children:"Featured"}),g.jsx(ya,{rate:R,featured:!1,showLobLabel:v.lob==null,showFeaturedBadge:!1,status:f[R.quote_rate_id]??"idle",disabled:ue||(l?!!(R.lob&&j.includes(R.lob)&&G.has(R.lob)):U),onRequestBind:()=>te(R.quote_rate_id)})]})})}):Y.length===1?g.jsxs("div",{className:"grid items-stretch gap-4 sm:grid-cols-2",children:[g.jsxs("div",{className:`flex h-full min-h-0 w-full min-w-0 flex-col ${ji}`,children:[g.jsx("div",{className:Hi,children:"Featured"}),g.jsx("div",{className:"flex min-h-0 flex-1 flex-col",children:g.jsx(ya,{rate:R,featured:!1,showLobLabel:v.lob==null,showFeaturedBadge:!1,status:f[R.quote_rate_id]??"idle",onRequestBind:()=>te(R.quote_rate_id),disabled:ue||(l?!!(R.lob&&j.includes(R.lob)&&G.has(R.lob)):U),className:"h-full min-h-0"})})]}),g.jsxs("div",{className:`flex h-full min-h-0 w-full min-w-0 flex-col ${ZE}`,children:[g.jsx("div",{className:`${Hi} pointer-events-none invisible shrink-0`,"aria-hidden":!0,children:"Featured"}),g.jsx("div",{className:"flex min-h-0 flex-1 flex-col",children:g.jsx(ya,{rate:Y[0],featured:!1,showLobLabel:v.lob==null,showFeaturedBadge:!1,status:f[Y[0].quote_rate_id]??"idle",onRequestBind:()=>te(Y[0].quote_rate_id),disabled:ue||(l?!!(Y[0].lob&&j.includes(Y[0].lob)&&G.has(Y[0].lob)):U),className:"h-full min-h-0"})})]})]}):g.jsxs(g.Fragment,{children:[g.jsx("div",{className:"grid gap-4 sm:grid-cols-2",children:g.jsx("div",{className:"col-span-full flex justify-center",children:g.jsxs("div",{className:`${Ah} ${ji}`,children:[g.jsx("div",{className:Hi,children:"Featured"}),g.jsx(ya,{rate:R,featured:!1,showLobLabel:v.lob==null,showFeaturedBadge:!1,status:f[R.quote_rate_id]??"idle",disabled:ue||(l?!!(R.lob&&j.includes(R.lob)&&G.has(R.lob)):U),onRequestBind:()=>te(R.quote_rate_id)})]})})}),g.jsx("div",{className:"mt-6 grid gap-4 sm:grid-cols-2",children:Y.map(P=>g.jsx("div",{className:"mx-auto w-full min-w-0 max-w-md",children:g.jsx(ya,{rate:P,featured:!1,showLobLabel:v.lob==null,showFeaturedBadge:!1,status:f[P.quote_rate_id]??"idle",disabled:ue||(l?!!(P.lob&&j.includes(P.lob)&&G.has(P.lob)):U),onRequestBind:()=>te(P.quote_rate_id)})},P.quote_rate_id))})]})]},v.lob??"all")}),r&&g.jsx(Eh,{onBack:r})]})}const tc=["Validating your details...","Checking underwriting rules...","Applying eligible discounts...","Reviewing your risk profile...","Calculating premium...","Check complete"],Th={Auto:{label:"Auto Policy",icon:"🚗",accent:"#0369A1"},Home:{label:"Home Policy",icon:"🏠",accent:"#059669"},Bundle:{label:"Home + Auto Bundle",icon:"🔗",accent:"#7C3AED"}},Ch={Auto:6e4,Home:9e4,Bundle:12e4};function YE({progress:n,color:r,size:l=80}){const o=(l-10)/2,c=2*Math.PI*o,f=c-n/100*c;return g.jsxs("svg",{width:l,height:l,style:{transform:"rotate(-90deg)"},children:[g.jsx("circle",{cx:l/2,cy:l/2,r:o,fill:"none",stroke:"#F1F5F9",strokeWidth:6}),g.jsx("circle",{cx:l/2,cy:l/2,r:o,fill:"none",stroke:r,strokeWidth:6,strokeLinecap:"round",strokeDasharray:c,strokeDashoffset:f,style:{transition:"stroke-dashoffset 0.2s linear"}})]})}function qE({providers:n=[],totalTime:r=6e4,flow:l="Auto",isComplete:o=!1,onComplete:c}){const f=Th[l]??Th.Auto,m=Ch[l]??Ch.Auto,_=n.length>0?Math.floor(m/n.length):r,[p,y]=I.useState(0),[A,D]=I.useState(0),[k,j]=I.useState(0),[G,U]=I.useState(0),[ue,oe]=I.useState(!0),_e=I.useRef(o),ee=I.useRef(c),re=I.useRef(p),W=I.useRef(n.length),le=I.useRef(!1),ne=I.useRef(!1);I.useEffect(()=>{_e.current=o,o&&n.length===0&&!le.current&&(le.current=!0,ee.current?.())},[o,n.length]),I.useEffect(()=>{ee.current=c},[c]),I.useEffect(()=>{re.current=p},[p]),I.useEffect(()=>{W.current=n.length,n.length>0&&(ne.current=!1,y(0),D(0),j(0),U(0),oe(!0))},[n.length]),I.useEffect(()=>{if(n.length===0){_e.current&&!le.current&&(le.current=!0,ee.current?.());return}ne.current=!1;const ve=100,Le=100/(_/ve),Ke=setInterval(()=>{j(We=>{if(ne.current||le.current)return We;const fe=We+Le;return fe<100?fe:(ne.current=!0,setTimeout(()=>{if(_e.current){if(le.current)return;le.current=!0,ee.current?.();return}const R=re.current===W.current-1;oe(!1),setTimeout(()=>{R?(y(0),D(Y=>Y+1)):y(Y=>Y+1),j(0),U(0),oe(!0)},300)},400),100)})},ve);return()=>clearInterval(Ke)},[p,_,n.length]),I.useEffect(()=>{if(n.length===0)return;const ve=Math.floor(_/tc.length),Le=setInterval(()=>U(Ke=>Math.min(Ke+1,tc.length-1)),ve);return()=>clearInterval(Le)},[p,_,n.length]);const Ae=n.length===0,te=Ae?null:n[Math.min(p,n.length-1)],xe=A>0;return g.jsxs(g.Fragment,{children:[g.jsx("style",{children:`
|
|
88
|
+
@keyframes providerPulse {
|
|
89
|
+
0%, 100% { transform: scale(1); }
|
|
90
|
+
50% { transform: scale(1.05); }
|
|
91
|
+
}
|
|
92
|
+
@keyframes ringPulse {
|
|
93
|
+
0%, 100% { transform: scale(1); opacity: 0.5; }
|
|
94
|
+
50% { transform: scale(1.6); opacity: 0; }
|
|
95
|
+
}
|
|
96
|
+
@keyframes shimmerSlide {
|
|
97
|
+
0% { transform: translateX(0%); }
|
|
98
|
+
100% { transform: translateX(195%); }
|
|
99
|
+
}
|
|
100
|
+
@keyframes statusFadeIn {
|
|
101
|
+
from { opacity: 0; transform: translateX(8px); }
|
|
102
|
+
to { opacity: 1; transform: translateX(0); }
|
|
103
|
+
}
|
|
104
|
+
@keyframes skeletonPulse {
|
|
105
|
+
0%, 100% { opacity: 0.4; transform: scale(1); }
|
|
106
|
+
50% { opacity: 0.8; transform: scale(1.06); }
|
|
107
|
+
}
|
|
108
|
+
.iq-card-fade {
|
|
109
|
+
transition: opacity 0.3s ease, transform 0.3s ease;
|
|
110
|
+
}
|
|
111
|
+
.iq-card-hidden {
|
|
112
|
+
opacity: 0;
|
|
113
|
+
transform: translateY(-12px);
|
|
114
|
+
}
|
|
115
|
+
.iq-card-visible {
|
|
116
|
+
opacity: 1;
|
|
117
|
+
transform: translateY(0);
|
|
118
|
+
}
|
|
119
|
+
.iq-status-text {
|
|
120
|
+
animation: statusFadeIn 0.25s ease forwards;
|
|
121
|
+
}
|
|
122
|
+
`}),g.jsx("div",{style:{background:"#F8FAFC",display:"flex",alignItems:"center",justifyContent:"center",padding:"2rem",fontFamily:"'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif",height:"100%",minHeight:400,overflowY:"auto"},children:g.jsxs("div",{style:{width:"100%",maxWidth:560},children:[g.jsxs("div",{style:{textAlign:"center",marginBottom:40},children:[g.jsxs("div",{style:{display:"inline-flex",alignItems:"center",gap:8,background:f.accent+"12",border:`1px solid ${f.accent}30`,borderRadius:100,padding:"6px 16px",marginBottom:16},children:[g.jsx("span",{style:{fontSize:14},children:f.icon}),g.jsx("span",{style:{fontSize:12,fontWeight:700,color:f.accent,letterSpacing:"0.1em",textTransform:"uppercase"},children:f.label})]}),g.jsx("h1",{style:{fontSize:26,fontWeight:700,color:"#0F172A",margin:0,letterSpacing:"-0.02em",lineHeight:1.3},children:Ae?"Connecting to top carriers":"Fetching your best rates"}),g.jsx("p",{style:{fontSize:14,color:"#64748B",marginTop:8,marginBottom:0},children:Ae?"Identifying the carriers eligible for your quote...":xe?"Still gathering — a few carriers are taking a little longer...":"We're reaching out to multiple insurers on your behalf"})]}),g.jsx("div",{style:{display:"flex",justifyContent:"center",marginBottom:32},children:Ae?g.jsx("div",{style:{display:"flex",gap:20},children:[0,1,2,3,4].map(ve=>g.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:6},children:[g.jsx("div",{style:{width:48,height:48,borderRadius:14,background:"#E2E8F0",animation:"skeletonPulse 1.4s ease-in-out infinite",animationDelay:`${ve*.12}s`}}),g.jsx("div",{style:{width:40,height:8,borderRadius:4,background:"#E2E8F0",animation:"skeletonPulse 1.4s ease-in-out infinite",animationDelay:`${ve*.12}s`}})]},`skeleton-${ve}`))}):te?g.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:8},children:[g.jsxs("div",{style:{width:64,height:64,borderRadius:18,background:te.color+"18",border:`2px solid ${te.color}`,display:"flex",alignItems:"center",justifyContent:"center",fontWeight:700,fontSize:16,color:te.color,position:"relative",animation:"providerPulse 1.8s ease-in-out infinite"},children:[te.abbr,g.jsx("div",{style:{position:"absolute",inset:-5,borderRadius:22,border:`2px solid ${te.color}`,pointerEvents:"none",animation:"ringPulse 1.6s ease-in-out infinite"}})]}),g.jsx("span",{style:{fontSize:13,fontWeight:600,color:te.color,letterSpacing:"0.04em"},children:te.name})]}):null}),g.jsxs("div",{className:`iq-card-fade ${ue?"iq-card-visible":"iq-card-hidden"}`,style:{background:"#FFFFFF",borderRadius:24,border:"1px solid #E2E8F0",padding:32},children:[g.jsx("div",{style:{display:"flex",alignItems:"center",gap:20,marginBottom:28},children:Ae||!te?g.jsxs("div",{style:{flex:1,textAlign:"center",padding:"8px 0"},children:[g.jsx("p",{style:{fontSize:11,fontWeight:700,color:"#94A3B8",letterSpacing:"0.1em",textTransform:"uppercase",margin:"0 0 6px"},children:"Please wait"}),g.jsx("h2",{style:{fontSize:18,fontWeight:700,color:"#0F172A",margin:"0 0 6px",letterSpacing:"-0.02em"},children:"Checking eligible providers"}),g.jsx("p",{style:{fontSize:13,color:"#64748B",margin:0},children:"Reviewing your details against our carrier network"})]}):g.jsxs(g.Fragment,{children:[g.jsxs("div",{style:{position:"relative",flexShrink:0},children:[g.jsx(YE,{progress:k,color:te.color,size:80}),g.jsx("div",{style:{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center"},children:g.jsxs("span",{style:{fontSize:14,fontWeight:700,color:te.color},children:[Math.round(k),"%"]})})]}),g.jsxs("div",{style:{flex:1},children:[g.jsx("p",{style:{fontSize:11,fontWeight:700,color:"#94A3B8",letterSpacing:"0.1em",textTransform:"uppercase",margin:"0 0 4px"},children:xe?"Still checking":"Now checking"}),g.jsx("h2",{style:{fontSize:20,fontWeight:700,color:"#0F172A",margin:"0 0 6px",letterSpacing:"-0.02em"},children:te.name}),g.jsx("p",{className:"iq-status-text",style:{fontSize:13,color:"#64748B",margin:0},children:tc[G]},`${p}-${G}`)]})]})}),g.jsxs("div",{children:[g.jsx("p",{style:{fontSize:11,fontWeight:700,color:"#94A3B8",letterSpacing:"0.08em",textTransform:"uppercase",margin:"0 0 8px"},children:Ae?"Initializing":"Gathering quotes"}),g.jsx("div",{style:{height:6,background:"#F1F5F9",borderRadius:100,overflow:"hidden"},children:g.jsx("div",{style:{height:"100%",width:"35%",background:f.accent,borderRadius:100,animation:"shimmerSlide 1.4s ease-in-out infinite"}})})]})]})]})})]})}function VE({onGoBack:n}){return g.jsxs("section",{className:"mt-4",children:[g.jsxs("div",{className:"rounded-xl border border-red-200 bg-red-50 p-5",children:[g.jsx("h3",{className:"text-base font-semibold text-red-700",children:"Sorry, quote submission failed"}),g.jsx("p",{className:"mt-2 text-sm text-red-700",children:"We ran into an issue submitting your quote. Our team will investigate and get back to you soon."})]}),g.jsx("div",{className:"mt-5",children:g.jsx("button",{type:"button",onClick:n,className:"h-12 w-full rounded-full border border-gray-300 text-text-primary hover:bg-gray-50 transition",children:"Go back"})})]})}function ge(n){if(n===!0)return"Yes";if(n===!1)return"No"}function Gt(n){if(n)try{const r=typeof n=="string"?new Date(n):n;return isNaN(r.getTime())?void 0:r.toISOString().split("T")[0]}catch{return}}function PE(n){const r=n,l={};r.phone&&(l.phone=r.phone),r.first_name&&(l.first_name=r.first_name),r.last_name&&(l.last_name=r.last_name),r.email&&(l.email=r.email),r.date_of_birth&&(l.date_of_birth=Gt(r.date_of_birth)),r.product&&(l.product=r.product),r.state&&(l.state=r.state);const o=[];r.line_1&&o.push(r.line_1),r.line_2&&o.push(r.line_2),r.city&&o.push(r.city),r.state&&o.push(r.state),r.postal_code&&o.push(r.postal_code),o.length>0&&(l.address=o.join(", ")),r.years_at_address!==null&&r.years_at_address!==void 0&&(l.years_at_address=r.years_at_address),r.months_at_address!==null&&r.months_at_address!==void 0&&(l.months_at_address=r.months_at_address),r.move_in_date&&(l.move_in_date=Gt(r.move_in_date));const c=[];r.prior_line_1&&c.push(r.prior_line_1),r.prior_line_2&&c.push(r.prior_line_2),r.prior_city&&c.push(r.prior_city),r.prior_state&&c.push(r.prior_state),r.prior_postal_code&&c.push(r.prior_postal_code),c.length>0&&(l.prior_address=c.join(", ")),r.years_at_prior_address!==null&&r.years_at_prior_address!==void 0&&(l.years_at_prior_address=r.years_at_prior_address),r.is_mailing_address_different!==null&&r.is_mailing_address_different!==void 0&&(l.is_mailing_address_different=ge(r.is_mailing_address_different)),r.mailing_address&&(l.mailing_address=r.mailing_address),r.effective_date&&(l.effective_date=Gt(r.effective_date)),r.auto_has_prior_insurance!==null&&r.auto_has_prior_insurance!==void 0&&(l.auto_has_prior_insurance=ge(r.auto_has_prior_insurance)),r.auto_prior_expiration_date&&(l.auto_prior_expiration_date=Gt(r.auto_prior_expiration_date)),r.auto_prior_carrier_name&&(l.auto_prior_carrier_name=r.auto_prior_carrier_name),r.auto_prior_liability_limit&&(l.auto_prior_liability_limit=r.auto_prior_liability_limit),r.auto_reason_for_no_insurance&&(l.auto_reason_for_no_insurance=r.auto_reason_for_no_insurance),r.auto_prior_years!==null&&r.auto_prior_years!==void 0&&(l.auto_prior_years=r.auto_prior_years),r.auto_prior_months!==null&&r.auto_prior_months!==void 0&&(l.auto_prior_months=r.auto_prior_months),r.auto_continuous_coverage_years!==null&&r.auto_continuous_coverage_years!==void 0&&(l.auto_continuous_coverage_years=r.auto_continuous_coverage_years),r.auto_cancelled_declined_refused_to_renew!==null&&r.auto_cancelled_declined_refused_to_renew!==void 0&&(l.auto_cancelled_declined_refused_to_renew=ge(r.auto_cancelled_declined_refused_to_renew)),r.auto_current_annual_premium_cents!==null&&r.auto_current_annual_premium_cents!==void 0&&(l.auto_current_annual_premium_cents=r.auto_current_annual_premium_cents),r.policy_bi&&(l.policy_bi=r.policy_bi),r.policy_um&&(l.policy_um=r.policy_um),r.policy_pd&&(l.policy_pd=r.policy_pd),r.policy_mp&&(l.policy_mp=r.policy_mp),r.policy_umpd&&(l.policy_umpd=r.policy_umpd),r.policy_pip&&(l.policy_pip=r.policy_pip),r.policy_auto_death_indemnity&&(l.policy_auto_death_indemnity=r.policy_auto_death_indemnity),r.driver_vehicle_assignments&&(l.driver_vehicle_assignments=r.driver_vehicle_assignments),r.home_has_prior_insurance!==null&&r.home_has_prior_insurance!==void 0&&(l.home_has_prior_insurance=ge(r.home_has_prior_insurance)),r.home_prior_expiration_date&&(l.home_prior_expiration_date=Gt(r.home_prior_expiration_date)),r.home_prior_carrier_name&&(l.home_prior_carrier_name=r.home_prior_carrier_name),r.home_prior_years!==null&&r.home_prior_years!==void 0&&(l.home_prior_years=r.home_prior_years),r.home_continuous_coverage_years!==null&&r.home_continuous_coverage_years!==void 0&&(l.home_continuous_coverage_years=r.home_continuous_coverage_years),r.property_insurance_cancelled!==null&&r.property_insurance_cancelled!==void 0&&(l.property_insurance_cancelled=ge(r.property_insurance_cancelled)),r.lapse_in_coverage!==null&&r.lapse_in_coverage!==void 0&&(l.lapse_in_coverage=ge(r.lapse_in_coverage)),r.year_built!==null&&r.year_built!==void 0&&(l.year_built=r.year_built),r.number_of_units!==null&&r.number_of_units!==void 0&&(l.number_of_units=r.number_of_units),r.number_of_stories!==null&&r.number_of_stories!==void 0&&(l.number_of_stories=r.number_of_stories),r.number_of_beds!==null&&r.number_of_beds!==void 0&&(l.number_of_beds=r.number_of_beds),r.number_of_full_baths!==null&&r.number_of_full_baths!==void 0&&(l.number_of_full_baths=r.number_of_full_baths),r.number_of_partial_baths!==null&&r.number_of_partial_baths!==void 0&&(l.number_of_partial_baths=r.number_of_partial_baths),r.under_construction!==null&&r.under_construction!==void 0&&(l.under_construction=ge(r.under_construction)),r.distance_from_fire_hydrant_ft&&(l.distance_from_fire_hydrant_ft=r.distance_from_fire_hydrant_ft),r.distance_from_fire_station_miles&&(l.distance_from_fire_station_miles=r.distance_from_fire_station_miles),r.architectural_style&&(l.architectural_style=r.architectural_style),r.dwelling_type&&(l.dwelling_type=r.dwelling_type),r.construction_quality&&(l.construction_quality=r.construction_quality),r.located_over_water!==null&&r.located_over_water!==void 0&&(l.located_over_water=r.located_over_water),r.construction_type&&(l.construction_type=r.construction_type),r.exterior_wall_type&&(l.exterior_wall_type=r.exterior_wall_type),r.foundation_type&&(l.foundation_type=r.foundation_type),r.roof_material_type&&(l.roof_material_type=r.roof_material_type),r.roof_shape&&(l.roof_shape=r.roof_shape),r.roof_updated_type&&(l.roof_updated_type=r.roof_updated_type),r.year_roof_updated!==null&&r.year_roof_updated!==void 0&&(l.year_roof_updated=r.year_roof_updated),r.mit_credit_form!==null&&r.mit_credit_form!==void 0&&(l.mit_credit_form=ge(r.mit_credit_form)),r.storm_shutters!==null&&r.storm_shutters!==void 0&&(l.storm_shutters=ge(r.storm_shutters)),r.heating_type&&(l.heating_type=r.heating_type),r.oil_tank_location&&(l.oil_tank_location=r.oil_tank_location),r.heating_fuel_type&&(l.heating_fuel_type=r.heating_fuel_type),r.number_of_fireplaces!==null&&r.number_of_fireplaces!==void 0&&(l.number_of_fireplaces=r.number_of_fireplaces),r.basement_type&&(l.basement_type=r.basement_type),r.parking_type&&(l.parking_type=r.parking_type),r.number_of_parking_spaces!==null&&r.number_of_parking_spaces!==void 0&&(l.number_of_parking_spaces=r.number_of_parking_spaces),r.plumbing_type&&(l.plumbing_type=r.plumbing_type),r.pool_type&&(l.pool_type=r.pool_type),r.total_area_sq_ft!==null&&r.total_area_sq_ft!==void 0&&(l.total_area_sq_ft=r.total_area_sq_ft),r.parcel_area_sq_ft!==null&&r.parcel_area_sq_ft!==void 0&&(l.parcel_area_sq_ft=r.parcel_area_sq_ft),r.residence_type&&(l.residence_type=r.residence_type),r.usage_type&&(l.usage_type=r.usage_type),r.household_size!==null&&r.household_size!==void 0&&(l.household_size=r.household_size),r.number_of_mortgagees!==null&&r.number_of_mortgagees!==void 0&&(l.number_of_mortgagees=r.number_of_mortgagees),r.has_dog!==null&&r.has_dog!==void 0&&(l.has_dog=ge(r.has_dog)),r.dog_breed_type&&(l.dog_breed_type=r.dog_breed_type),r.number_of_dogs!==null&&r.number_of_dogs!==void 0&&(l.number_of_dogs=r.number_of_dogs),r.has_vicious_animals!==null&&r.has_vicious_animals!==void 0&&(l.has_vicious_animals=ge(r.has_vicious_animals)),r.has_business_on_premises!==null&&r.has_business_on_premises!==void 0&&(l.has_business_on_premises=ge(r.has_business_on_premises)),r.business_class&&(l.business_class=r.business_class),r.occupancy_type&&(l.occupancy_type=r.occupancy_type),r.short_term_rental!==null&&r.short_term_rental!==void 0&&(l.short_term_rental=ge(r.short_term_rental)),r.sale_price_cents!==null&&r.sale_price_cents!==void 0&&(l.sale_price_cents=Math.round(Number(r.sale_price_cents)/100)),r.number_of_families!==null&&r.number_of_families!==void 0&&(l.number_of_families=r.number_of_families),r.number_of_units_in_firewall!==null&&r.number_of_units_in_firewall!==void 0&&(l.number_of_units_in_firewall=r.number_of_units_in_firewall),r.heating_update_yn!==null&&r.heating_update_yn!==void 0&&(l.heating_update_yn=ge(r.heating_update_yn)),r.heating_update_type&&(l.heating_update_type=r.heating_update_type),r.heating_update_year!==null&&r.heating_update_year!==void 0&&(l.heating_update_year=r.heating_update_year),r.plumbing_update_yn!==null&&r.plumbing_update_yn!==void 0&&(l.plumbing_update_yn=ge(r.plumbing_update_yn)),r.plumbing_update_type&&(l.plumbing_update_type=r.plumbing_update_type),r.plumbing_update_year!==null&&r.plumbing_update_year!==void 0&&(l.plumbing_update_year=r.plumbing_update_year),r.electrical_update_yn!==null&&r.electrical_update_yn!==void 0&&(l.electrical_update_yn=ge(r.electrical_update_yn)),r.electrical_update_type&&(l.electrical_update_type=r.electrical_update_type),r.electrical_update_year!==null&&r.electrical_update_year!==void 0&&(l.electrical_update_year=r.electrical_update_year),r.electric_circuit_breaker!==null&&r.electric_circuit_breaker!==void 0&&(l.electric_circuit_breaker=ge(r.electric_circuit_breaker)),r.dwelling_replacement_cost!==null&&r.dwelling_replacement_cost!==void 0&&(l.dwelling_replacement_cost=r.dwelling_replacement_cost),r.other_structures_coverage!==null&&r.other_structures_coverage!==void 0&&(l.other_structures_coverage=r.other_structures_coverage),r.personal_property_coverage!==null&&r.personal_property_coverage!==void 0&&(l.personal_property_coverage=r.personal_property_coverage),r.loss_of_use_coverage!==null&&r.loss_of_use_coverage!==void 0&&(l.loss_of_use_coverage=r.loss_of_use_coverage),r.personal_liability&&(l.personal_liability=r.personal_liability),r.dwelling_medical_payments&&(l.dwelling_medical_payments=r.dwelling_medical_payments),r.all_perils_deductible&&(l.all_perils_deductible=r.all_perils_deductible),r.windstorm_deductible&&(l.windstorm_deductible=r.windstorm_deductible),r.has_garage!==null&&r.has_garage!==void 0&&(l.has_garage=ge(r.has_garage)),r.has_pool!==null&&r.has_pool!==void 0&&(l.has_pool=ge(r.has_pool)),r.has_trampoline!==null&&r.has_trampoline!==void 0&&(l.has_trampoline=ge(r.has_trampoline)),r.gender&&(l.gender=r.gender),r.marital_status&&(l.marital_status=r.marital_status),r.employment_industry&&(l.employment_industry=r.employment_industry),r.occupation&&(l.occupation=r.occupation),r.has_co_applicant!==null&&r.has_co_applicant!==void 0&&(l.has_co_applicant=ge(r.has_co_applicant)),r.co_applicant_first_name&&(l.co_applicant_first_name=r.co_applicant_first_name),r.co_applicant_middle_name&&(l.co_applicant_middle_name=r.co_applicant_middle_name),r.co_applicant_last_name&&(l.co_applicant_last_name=r.co_applicant_last_name),r.co_applicant_gender&&(l.co_applicant_gender=r.co_applicant_gender),r.co_applicant_marital_status&&(l.co_applicant_marital_status=r.co_applicant_marital_status),r.co_applicant_relationship&&(l.co_applicant_relationship=r.co_applicant_relationship),r.co_applicant_date_of_birth&&(l.co_applicant_date_of_birth=Gt(r.co_applicant_date_of_birth)),r.co_applicant_employment_industry&&(l.co_applicant_employment_industry=r.co_applicant_employment_industry),r.co_applicant_occupation&&(l.co_applicant_occupation=r.co_applicant_occupation),r.retiree_discount!==null&&r.retiree_discount!==void 0&&(l.retiree_discount=ge(r.retiree_discount)),r.gated_community_discount!==null&&r.gated_community_discount!==void 0&&(l.gated_community_discount=ge(r.gated_community_discount)),r.multi_policy_discount!==null&&r.multi_policy_discount!==void 0&&(l.multi_policy_discount=ge(r.multi_policy_discount)),r.non_smoker_discount!==null&&r.non_smoker_discount!==void 0&&(l.non_smoker_discount=ge(r.non_smoker_discount)),r.first_time_buyer_discount!==null&&r.first_time_buyer_discount!==void 0&&(l.first_time_buyer_discount=ge(r.first_time_buyer_discount)),r.fire_detection_system!==null&&r.fire_detection_system!==void 0&&(l.fire_detection_system=ge(r.fire_detection_system)),r.burglar_alarm_system!==null&&r.burglar_alarm_system!==void 0&&(l.burglar_alarm_system=ge(r.burglar_alarm_system)),r.burglar_alarm_system_type&&(l.burglar_alarm_system_type=r.burglar_alarm_system_type),r.smoke_detectors!==null&&r.smoke_detectors!==void 0&&(l.smoke_detectors=ge(r.smoke_detectors)),r.sprinkler_system!==null&&r.sprinkler_system!==void 0&&(l.sprinkler_system=ge(r.sprinkler_system)),r.sprinkler_system_type&&(l.sprinkler_system_type=r.sprinkler_system_type),r.gas_leakage_detector!==null&&r.gas_leakage_detector!==void 0&&(l.gas_leakage_detector=ge(r.gas_leakage_detector)),r.deadbolt_locks!==null&&r.deadbolt_locks!==void 0&&(l.deadbolt_locks=ge(r.deadbolt_locks)),r.fire_extinguisher!==null&&r.fire_extinguisher!==void 0&&(l.fire_extinguisher=ge(r.fire_extinguisher)),r.order_credit_authorized!==null&&r.order_credit_authorized!==void 0&&(l.order_credit_authorized=ge(r.order_credit_authorized)),r.has_health_insurance_auto_accident!==null&&r.has_health_insurance_auto_accident!==void 0&&(l.has_health_insurance_auto_accident=ge(r.has_health_insurance_auto_accident)),r.is_corporation!==null&&r.is_corporation!==void 0&&(l.is_corporation=ge(r.is_corporation)),r.named_insured_foreclosure_repo_bankruptcy!==null&&r.named_insured_foreclosure_repo_bankruptcy!==void 0&&(l.named_insured_foreclosure_repo_bankruptcy=ge(r.named_insured_foreclosure_repo_bankruptcy)),r.named_insured_convicted_insurance_fraud!==null&&r.named_insured_convicted_insurance_fraud!==void 0&&(l.named_insured_convicted_insurance_fraud=ge(r.named_insured_convicted_insurance_fraud));const f={};if(r.vehicles)for(const m of r.vehicles)m.quote_vehicle_id&&m.vin&&(f[m.quote_vehicle_id]=m.vin);return r.drivers&&r.drivers.length>0?(l.drivers="Yes",l.drivers__items=r.drivers.map(m=>{const _=m,p={};_.first_name&&(p.first_name=_.first_name),_.middle_name&&(p.middle_name=_.middle_name),_.last_name&&(p.last_name=_.last_name),_.date_of_birth&&(p.date_of_birth=Gt(_.date_of_birth)),_.gender&&(p.gender=_.gender),_.marital_status&&(p.marital_status=_.marital_status),_.relationship_to_insured&&(p.relationship_to_insured=_.relationship_to_insured),_.is_registered_owner!==null&&_.is_registered_owner!==void 0&&(p.is_registered_owner=_.is_registered_owner?"Yes":"No"),_.license_state&&(p.license_state=_.license_state),_.license_status&&(p.license_status=_.license_status),_.license_number&&(p.license_number=_.license_number),_.date_first_licensed&&(p.date_first_licensed=Gt(_.date_first_licensed)),_.education_level&&(p.education_level=d0(_.education_level)),_.occupation&&(p.occupation=m0(_.occupation)),_.industry&&(p.industry=Oo(_.industry)),_.employment_status&&(p.employment_status=_.employment_status),_.last_5_years_license_suspended_or_revoked!==null&&_.last_5_years_license_suspended_or_revoked!==void 0&&(p.last_5_years_license_suspended_or_revoked=ge(_.last_5_years_license_suspended_or_revoked)),_.accident_prevention_course!==null&&_.accident_prevention_course!==void 0&&(p.accident_prevention_course=ge(_.accident_prevention_course)),_.accident_prevention_course_date&&(p.accident_prevention_course_date=Gt(_.accident_prevention_course_date)),_.sr22!==null&&_.sr22!==void 0&&(p.sr22=ge(_.sr22));const y=_.ssn_display;typeof y=="string"&&(p.ssn_display=y);const A=_.driver_violations;A&&A.length>0&&(p.driver_violations="Yes",p.driver_violations__items=A.map(j=>{const G={};return j.code&&(G.code=j.code),j.occurred_at&&(G.occurred_at=Gt(j.occurred_at)),G}));const D=_.driver_accidents;D&&D.length>0&&(p.driver_accidents="Yes",p.driver_accidents__items=D.map(j=>{const G={};return j.occurred_at&&(G.occurred_at=Gt(j.occurred_at)),j.description&&(G.description=j.description),j.quote_vehicle_id&&(G.quote_vehicle_id=f[j.quote_vehicle_id]??j.quote_vehicle_id),j.property_damage_amount_paid_cents!==null&&j.property_damage_amount_paid_cents!==void 0&&(G.property_damage_amount_paid_cents=j.property_damage_amount_paid_cents),j.personal_injury_amount_paid_cents!==null&&j.personal_injury_amount_paid_cents!==void 0&&(G.personal_injury_amount_paid_cents=j.personal_injury_amount_paid_cents),G}));const k=_.losses;return k&&k.length>0&&(p.losses="Yes",p.losses__items=k.map(j=>{const G={};return j.description&&(G.description=j.description),j.date_of_incident&&(G.date_of_incident=Gt(j.date_of_incident)),j.amount_paid_cents!==null&&j.amount_paid_cents!==void 0&&(G.amount_paid_cents=j.amount_paid_cents),j.quote_vehicle_id&&(G.quote_vehicle_id=f[j.quote_vehicle_id]??j.quote_vehicle_id),G})),p})):l.drivers="No",r.vehicles&&r.vehicles.length>0?(l.vehicles="Yes",l.vehicles__items=r.vehicles.map(m=>{const _=m,p={};_.vin&&(p.vin=_.vin),_.year!==null&&_.year!==void 0&&(p.year=String(_.year)),_.make&&(p.make=_.make),_.model&&(p.model=_.model),_.body_style&&(p.body_style=_.body_style),_.ownership_type&&(p.ownership_type=_.ownership_type),_.usage&&(p.usage=_.usage),_.annual_mileage!==null&&_.annual_mileage!==void 0&&(p.annual_mileage=_.annual_mileage),_.miles_to_work!==null&&_.miles_to_work!==void 0&&(p.miles_to_work=_.miles_to_work),_.percent_to_work!==null&&_.percent_to_work!==void 0&&(p.percent_to_work=_.percent_to_work);const y=[];return _.garaging_address_line_1&&y.push(_.garaging_address_line_1),_.garaging_address_line_2&&y.push(_.garaging_address_line_2),_.garaging_address_city&&y.push(_.garaging_address_city),_.garaging_address_state&&y.push(_.garaging_address_state),_.garaging_address_postal_code&&y.push(_.garaging_address_postal_code),y.length>0&&(p.garaging_address=y.join(", ")),_.new_when_purchased!==null&&_.new_when_purchased!==void 0&&(p.new_when_purchased=ge(_.new_when_purchased)),_.purchase_date&&(p.purchase_date=Gt(_.purchase_date)),_.anti_theft_type&&(p.anti_theft_type=_.anti_theft_type),_.passive_restraint_type&&(p.passive_restraint_type=_.passive_restraint_type),_.anti_lock_brakes!==null&&_.anti_lock_brakes!==void 0&&(p.anti_lock_brakes=ge(_.anti_lock_brakes)),_.daytime_running_lights!==null&&_.daytime_running_lights!==void 0&&(p.daytime_running_lights=ge(_.daytime_running_lights)),_.custom_equipment_value_cents!==null&&_.custom_equipment_value_cents!==void 0&&(p.custom_equipment_value_cents=_.custom_equipment_value_cents),_.cost_new_value_cents!==null&&_.cost_new_value_cents!==void 0&&(p.cost_new_value_cents=_.cost_new_value_cents),_.stated_value_amount_cents!==null&&_.stated_value_amount_cents!==void 0&&(p.stated_value_amount_cents=_.stated_value_amount_cents),_.vehicle_has_modifications!==null&&_.vehicle_has_modifications!==void 0&&(p.vehicle_has_modifications=ge(_.vehicle_has_modifications)),_.vehicle_garaged_at_residence!==null&&_.vehicle_garaged_at_residence!==void 0&&(p.vehicle_garaged_at_residence=ge(_.vehicle_garaged_at_residence)),_.vehicle_comp_deductible&&(p.vehicle_comp_deductible=_.vehicle_comp_deductible),_.vehicle_coll_deductible&&(p.vehicle_coll_deductible=_.vehicle_coll_deductible),_.vehicle_towing_and_labor&&(p.vehicle_towing_and_labor=_.vehicle_towing_and_labor),_.vehicle_transportation_expense&&(p.vehicle_transportation_expense=_.vehicle_transportation_expense),_.vehicle_full_glass!==null&&_.vehicle_full_glass!==void 0&&(p.vehicle_full_glass=ge(_.vehicle_full_glass)),_.vehicle_loan_lease!==null&&_.vehicle_loan_lease!==void 0&&(p.vehicle_loan_lease=ge(_.vehicle_loan_lease)),_.coverages&&_.coverages.length>0&&(p.coverages__items=_.coverages.map(A=>{const D={};return A.type&&(D.type=A.type),A.per_person_limit_cents!==null&&A.per_person_limit_cents!==void 0&&(D.per_person_limit_cents=A.per_person_limit_cents),A.per_incident_limit_cents!==null&&A.per_incident_limit_cents!==void 0&&(D.per_incident_limit_cents=A.per_incident_limit_cents),A.per_incident_limit_percent!==null&&A.per_incident_limit_percent!==void 0&&(D.per_incident_limit_percent=A.per_incident_limit_percent),A.per_day_limit_cents!==null&&A.per_day_limit_cents!==void 0&&(D.per_day_limit_cents=A.per_day_limit_cents),A.deductible_cents!==null&&A.deductible_cents!==void 0&&(D.deductible_cents=A.deductible_cents),A.is_declined!==null&&A.is_declined!==void 0&&(D.is_declined=ge(A.is_declined)),D})),_.vehicle_lienholders&&_.vehicle_lienholders.length>0&&(p.vehicle_lienholders__items=_.vehicle_lienholders.map(A=>{const D={};return A.name&&(D.name=A.name),A.type&&(D.type=A.type),A.line_1&&(D.line_1=A.line_1),A.line_2&&(D.line_2=A.line_2),A.city&&(D.city=A.city),A.state&&(D.state=A.state),A.postal_code&&(D.postal_code=A.postal_code),A.phone&&(D.phone=A.phone),A.fax&&(D.fax=A.fax),D})),p})):l.vehicles="No",r.losses&&r.losses.length>0&&(l.home_losses="Yes",l.home_losses__items=r.losses.map(m=>{const _={};return m.description&&(_.description=m.description),m.date_of_incident&&(_.date_of_incident=Gt(m.date_of_incident)),m.amount_paid_cents!==null&&m.amount_paid_cents!==void 0&&(_.amount_paid_cents=Math.round(Number(m.amount_paid_cents)/100)),_})),l}const KE=new Set(["Product","Driver","Vehicle"]);function QE(n){return n?Array.isArray(n.drivers__items)?n.drivers__items.length:Array.isArray(n.drivers)?n.drivers.length:null:null}function Oh(n,r){const l=QE(r),o=n.filter(f=>f.key!=="AutoPolicy"),c=o.length>0?o:n;return c}function hc(n){const r={},l=y=>{if(typeof y=="string"){if(y==="Yes")return!0;if(y==="No")return!1}return y},o=Object.keys(n).filter(y=>!y.includes("__items")),c=new Set,f=new Set;for(const[y,A]of Object.entries(n))y.endsWith("__items")&&Array.isArray(A)&&(f.add(y.replace("__items","")),A.forEach(D=>{typeof D=="object"&&D!==null&&Object.keys(D).forEach(k=>{c.add(k)})}));for(const[y,A]of Object.entries(n))if(y.endsWith("__items")){const D=y.replace("__items","");if(o.includes(D)){const j=Array.isArray(A)?A.map(G=>hc(G)):A;r[D]=j}}else if(!y.includes("__items")){if(f.has(y))continue;c.has(y)||(r[y]=l(A))}const m=r.auto_prior_carrier_name;if(typeof m=="string"&&m.trim()!==""){const y=m==="NoPriorInsurance";r.auto_has_prior_insurance=!y,y&&(delete r.auto_prior_years,delete r.auto_prior_months,delete r.auto_prior_expiration_date,delete r.auto_prior_liability_limit,delete r.auto_continuous_coverage_years,delete r.auto_cancelled_declined_refused_to_renew,delete r.auto_current_annual_premium_cents)}const _=r.home_prior_carrier_name;if(typeof _=="string"&&_.trim()!==""){const y=_==="NoPriorInsurance";r.home_has_prior_insurance=!y,y&&(delete r.home_prior_years,delete r.home_continuous_coverage_years,delete r.home_prior_expiration_date,delete r.property_insurance_cancelled)}Array.isArray(r.drivers)&&(r.drivers=r.drivers.map(y=>{if(!y||typeof y!="object")return y;const A={...y};return A.industry=Oo(A.industry),A.education_level=d0(A.education_level),A.occupation=m0(A.occupation),A})),console.log("[DEBUG_TRANSFORM] transformed.drivers type:",typeof r.drivers,"isArray:",Array.isArray(r.drivers),Array.isArray(r.drivers)?`count=${r.drivers.length}`:`value=${JSON.stringify(r.drivers)?.slice(0,100)}`),Array.isArray(r.drivers)&&r.drivers.forEach((y,A)=>{const D=y;console.log(`[DEBUG_TRANSFORM] Driver ${A}:`,{first_name:D.first_name,gender:D.gender,marital_status:D.marital_status,education_level:D.education_level,industry:D.industry,occupation:D.occupation,sr22:D.sr22,keys:Object.keys(D)})});const p=21474836;if("sale_price_cents"in r){const y=r.sale_price_cents;if(typeof y=="number"&&Number.isFinite(y)){const A=Math.trunc(y);if(A>=1){const D=Math.min(A,p);r.sale_price_cents=D*100}}}return Array.isArray(r.home_losses)&&(r.home_losses=r.home_losses.map(y=>{if(!y||typeof y!="object")return y;const A=y,D=A.amount_paid_cents;if(typeof D!="number"||!Number.isFinite(D))return A;const k=Math.trunc(D),j=Math.min(Math.max(k,0),p);return{...A,amount_paid_cents:j*100}})),r}function XE(n,r){const l=n.findIndex(c=>c.key===r);return l<0?r:n[l+1]?.key??r}function C0(n){return n.some(r=>String(r.key)==="BundlePolicy"||String(r.key)==="BundleCustomer")}function Mh(n){return C0(n)?"Bundle":n.some(r=>String(r.key)==="Vehicle"||String(r.key)==="Driver")?"Auto":"Home"}const WE={Auto:45e3,Home:5e4,Bundle:1e5};function JE(n,r){if(n!=="AutoCurrentCarrier")return r;const l=r.some(f=>String(f.key)==="auto_cancelled_declined_refused_to_renew"),o=r.some(f=>String(f.key)==="vehicle_policy_selections"),c=[...r];return l||c.push({question:"Has any auto insurance company cancelled, declined or refused to renew you in the last 5 years?",inputType:"radio",options:["Yes","No"],key:"auto_cancelled_declined_refused_to_renew",required:!0}),o||c.push({question:"Vehicle coverage selections",inputType:"custom",key:"vehicle_policy_selections",required:!1}),c}function eT(n,r){if(n!=="Vehicle")return r;const l=o=>o.map(c=>{const f=c.conditionals?.map(m=>{const _=m.conditionalQuestions??[];return _.length?{...m,conditionalQuestions:l(_)}:m});return String(c.key)!=="vin"?f?{...c,conditionals:f}:c:{...c,required:!1,...f?{conditionals:f}:{}}});return l(r)}function tT({isOpen:n,onClose:r}){const[l,o]=I.useState([]),[c,f]=I.useState(null),m=I.useRef(null);I.useEffect(()=>{m.current=c},[c]);const[_,p]=I.useState(null),[y,A]=I.useState(!1),[D,k]=I.useState(!1),[j,G]=I.useState([]),U=I.useRef(null),[ue,oe]=I.useState(null),[_e,ee]=I.useState(void 0),[re,W]=I.useState(!1),[le,ne]=I.useState(null),[Ae,te]=I.useState(null),[xe,ve]=I.useState(!1),Le=I.useRef(!1);I.useEffect(()=>{if(!y||D)return;const Y=Mh(l);let P=!1;const b=[];let L=0,O=0;const T=24,S=3,H=5e3;let w=!1;const V=async()=>{if(P)return;L++;try{const{quote:ie}=await ah();if(P)return;if(O=0,!w){const Q=ie?.appetites??null,X=$E(Q,Y);X.length>0&&(G(X),w=!0)}const Se=ie?.rates_status??null;if(Se==="completed"){const{rates:Q}=await nh();if(P)return;U.current=Q,k(!0);return}if(Se==="no_rates"){U.current=[],k(!0);return}if(Se==="failed"){ne({message:"submission_failed"}),A(!1);return}}catch(ie){if(O++,console.warn("Provider polling: getQuote failed",{attempt:L,consecutiveFailures:O,error:ie}),O>=S){ne({message:"submission_failed"}),A(!1);return}}if(P)return;if(L>=T){ne({message:"submission_failed"}),A(!1);return}const K=window.setTimeout(V,H);b.push(K)};return V(),()=>{P=!0,b.forEach(K=>window.clearTimeout(K))}},[y,D,l]);function Ke(Y){const P={SMSVerification:"Verify",Name:"Basic Details",Product:"Product & Address",AutoCurrentCarrier:"Policy",HomeCurrentCarrier:"Current Home Policy",AutoPolicy:"Policy",Vehicle:"Vehicle Details",Driver:"Operator",Customer:"Applicant",HomeConstruction:"Structure",HomeFeatures:"Features",HomePolicy:"Policy",HomeCustomer:"Applicant",BundlePolicy:"Policy",BundleCustomer:"Customer"};let b=Y.map(O=>({key:O,title:P[O]||O,loadQuestions:async()=>{const T=await iE(O,m.current??void 0);let S=JE(O,T.questions);return S=eT(O,S),S}}));if(Y.includes("Vehicle")&&Y.includes("Driver")&&Y.includes("AutoCurrentCarrier")&&Y.includes("Customer")){const O=b.findIndex(T=>T.key==="Product");if(O>=0){const T=b.slice(0,O+1),S=b.slice(O+1),H=K=>S.find(ie=>ie.key===K)??null,w=[H("Vehicle"),H("Driver"),H("AutoCurrentCarrier"),H("Customer")].filter(K=>!!K),V=S.filter(K=>!["Vehicle","Driver","AutoCurrentCarrier","Customer","AutoPolicy"].includes(String(K.key)));b=[...T,...w,...V]}}return b}I.useEffect(()=>{const Y=async()=>{try{const P=J1();if(fc(),P){W(!0),f(P);try{const b=go(),L=await ah(b?void 0:P);if(!L||!L.quote)throw new Error("Invalid response from getQuote: missing quote data");const{quote:O}=L,{stages:T}=await mo(P),S=Ke(T);o(S);let H;try{H=PE(O),oe(H)}catch(V){throw new Error(`Failed to transform quote data: ${V instanceof Error?V.message:"Unknown error"}`)}const w=Oh(S,H);if(o(w),O.current_stage){const V=O.current_stage==="State"?"Product":O.current_stage,K=w.findIndex(ie=>ie.key===V);K>=0?ee(K):ee(w.length-1)}else ee(w.length-1)}catch(b){const L=b;if(L.statusCode===404)_0(),f(null);else if(L.statusCode===401){p0();try{const{stages:O}=await mo(P),T=Ke(O);o(T);const S=T.findIndex(H=>H.key==="SMSVerification");S>=0&&ee(S)}catch{}}}finally{W(!1)}}else{const{stages:b}=await mo();o(Ke(b))}}catch{W(!1)}};n&&!Le.current&&(Le.current=!0,Y())},[n]),I.useEffect(()=>{if(!n)return;const{overflow:Y}=document.body.style;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=Y}},[n]);const We=I.useCallback(Y=>{Y.key==="Escape"&&(mh(),r())},[r]);I.useEffect(()=>{if(n)return window.addEventListener("keydown",We),()=>window.removeEventListener("keydown",We)},[n,We]),I.useEffect(()=>{n||(oe(null),ee(void 0),W(!1),A(!1),te(null),ve(!1))},[n]),I.useEffect(()=>{n&&NE()},[n]),I.useEffect(()=>{_&&Array.isArray(_)&&RE({rateCount:_.length})},[_]);const fe=I.useCallback(()=>{ne(null),ee(Math.max(0,l.length-1))},[l.length]),v=I.useCallback(async Y=>{if(!(!Ae||!c||xe)){ve(!0);try{const b={...hc(Ae.allValues),communications_consent:Y};G([]),k(!1),U.current=null,A(!0),te(null);let L;try{L=await ki(b,!0)}catch(S){throw A(!1),S}if(L.status==="submission_failed"){A(!1),k(!1),U.current=null,ne({message:L.message});return}if(L.status==="success")try{const{rates:S}=await nh();U.current=S,k(!0)}catch(S){throw A(!1),S}const O=l.length,T=l[O-1];_h({stageKey:T?.key??"unknown",stageTitle:T?.title??"unknown",stepIndex:O,totalSteps:O}),xE()}catch{A(!1),ne({message:"Oops, something went wrong. Please try again later."})}finally{ve(!1)}}},[Ae,c,xe,l]);if(!n)return null;const R=()=>{mh(),r()};return g.jsxs("div",{className:"fixed inset-0 z-[9999] flex items-center justify-center",role:"dialog","aria-modal":"true","aria-labelledby":"insurance-modal-title",children:[g.jsx("div",{className:"backdrop","aria-hidden":"true"}),g.jsxs("div",{className:"modal-panel bg-white relative w-full max-w-2xl flex flex-col max-h-[90vh] overflow-hidden",role:"document",children:[g.jsx("button",{onClick:R,className:"modal-close-btn absolute top-4 right-4 text-slate-400 hover:text-slate-600 text-xl","aria-label":"Close",type:"button",children:"×"}),!y&&!le&&g.jsx("div",{className:"text-center mb-6",children:g.jsx("h2",{id:"insurance-modal-title",className:"h1-title",children:"Let's shop multiple leading carriers for you."})}),g.jsxs("div",{className:"panel-body flex-1 min-h-0 overflow-y-auto",children:[le&&g.jsx(VE,{onGoBack:fe}),!le&&y&&(()=>{const Y=Mh(l);return g.jsx(qE,{providers:j,totalTime:WE[Y],flow:Y,isComplete:D,onComplete:()=>{A(!1),k(!1),G([]),U.current&&(p(U.current),U.current=null)}})})(),!le&&!y&&Ae&&g.jsx(tg,{onChoose:v,isSubmitting:xe}),!le&&!_&&!y&&!Ae&&g.jsx(g.Fragment,{children:re||l.length===0?g.jsx("div",{className:"flex items-center justify-center py-12",children:g.jsx("div",{className:"text-slate-600",children:"Loading..."})}):g.jsx(jE,{stages:l,initialValues:ue??void 0,initialActive:_e,quoteId:c??void 0,onStageComplete:async(Y,P)=>{try{const b=hc(Y);let L=c,O=l;const T=O.findIndex(w=>w.key===P),S=O[T],H=XE(O,P);if(L)if(P==="SMSVerification"){const{isVerified:w,token:V}=await oE(L,b.sms_code);if(!w)throw new Error("Invalid SMS code");V&&aE(V),await ki({current_stage:H},!1)}else if(P==="Product"){const{isSupported:w}=await uE(b.state);if(!w)throw new Error("State is not supported");const V=go();await ki({...b,current_stage:H},!1,V?void 0:L)}else{const w=go();await ki({...b,current_stage:H},!1,w?void 0:L||void 0)}else{const V=(await lE(b.phone))?.quoteId;if(!V||typeof V!="string"||V.trim()==="")throw new Error(`Failed to create quote - invalid quoteId returned: ${V}`);L=V,f(V),W1(V),await ki({current_stage:H},!1,V)}if(KE.has(P))try{const{stages:w}=await mo(L||void 0);O=Ke(w),O=Oh(O,Y),o(O)}catch(w){console.warn("Unable to refresh stages after flow-shaping step",w)}return _h({stageKey:P,stageTitle:S?.title??P,stepIndex:T+1,totalSteps:O.length}),{success:!0}}catch(b){return{success:!1,error:b instanceof Error?b.message:"An error occurred"}}},onComplete:async Y=>c?(oe(Y),te({allValues:Y}),{success:!0}):{success:!1,error:"Oops, something went wrong. Please try again later."}})})," ",!le&&_&&c&&g.jsx(FE,{rates:_,onBack:()=>p(null),isBundleFlow:C0(l)})]}),g.jsxs("div",{className:"mt-4 pt-4 border-t border-slate-200 space-y-1",children:[g.jsxs("p",{className:"text-center text-sm text-slate-500",children:["Credify Corporation – Texas #3309669."," ",g.jsx("a",{href:"https://getcredify.com/privacy-policy",target:"_blank",rel:"noopener noreferrer",className:"credify-link-underline",children:"Privacy Policy"})," ","|"," ",g.jsx("a",{href:"https://getcredify.com/terms-of-service",target:"_blank",rel:"noopener noreferrer",className:"credify-link-underline",children:"Terms of Service"})]}),g.jsx("p",{className:"text-center text-sm text-slate-500",children:"Insurance products offered through Credify Corporation, a licensed insurance agency."})]})]})]})}function nT(){const[n,r]=I.useState(!1),l=I.useCallback(c=>{window.parent&&window.parent!==window&&window.parent.postMessage({type:c,source:"credify-insurance-widget"},"*")},[]);I.useEffect(()=>{const c=f=>{if(f.data?.source==="credify-insurance-widget")switch(f.data.type){case"open":r(!0),l("opened");break;case"close":r(!1),l("closed");break;case"init":l("ready");break}};return window.addEventListener("message",c),l("ready"),()=>{window.removeEventListener("message",c)}},[l]);const o=I.useCallback(()=>{r(!1),l("closed")},[l]);return g.jsx(tT,{isOpen:n,onClose:o})}qy.createRoot(document.getElementById("root")).render(g.jsx(I.StrictMode,{children:g.jsx(nT,{})}));
|
|
123
|
+
//# sourceMappingURL=iframe-fjayzn6o.js.map
|